From 0af564af5b8d9d34cf75a140f3a369b802bd748d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=82=E4=BB=BB=20=E6=9E=97?= Date: Mon, 14 Jun 2021 18:05:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=BB=E7=AB=99=E5=9F=BA=E6=9C=AC=E8=B3=87?= =?UTF-8?q?=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SolarPower/Helper/DatabaseHelper.cs | 4 +- SolarPower/Views/PowerStation/Index.cshtml | 2 +- .../PowerStation/PowerStationEdit.cshtml | 31 ++++++++++- .../Views/PowerStation/_StationInfo.cshtml | 55 +++++++++++++------ 4 files changed, 70 insertions(+), 22 deletions(-) diff --git a/SolarPower/Helper/DatabaseHelper.cs b/SolarPower/Helper/DatabaseHelper.cs index 0894d69..b359893 100644 --- a/SolarPower/Helper/DatabaseHelper.cs +++ b/SolarPower/Helper/DatabaseHelper.cs @@ -36,8 +36,8 @@ namespace SolarPower.Helper var rootStr = ed.DESDecrypt(dbConfig.Root); var passwordStr = ed.DESDecrypt(dbConfig.Password); - var connStr = $"server={serverStr};database={databaseStr};user={rootStr};password={passwordStr};charset=utf8;"; - //var connStr = @"server=127.0.0.1;database=solar_power;user=root;password=000000;charset=utf8;"; + //var connStr = $"server={serverStr};database={databaseStr};user={rootStr};password={passwordStr};charset=utf8;"; + var connStr = @"server=127.0.0.1;database=solar_power;user=root;password=000000;charset=utf8;"; this._connectionString = connStr; } diff --git a/SolarPower/Views/PowerStation/Index.cshtml b/SolarPower/Views/PowerStation/Index.cshtml index 0597490..39700bf 100644 --- a/SolarPower/Views/PowerStation/Index.cshtml +++ b/SolarPower/Views/PowerStation/Index.cshtml @@ -50,7 +50,7 @@
- + 新增電站 diff --git a/SolarPower/Views/PowerStation/PowerStationEdit.cshtml b/SolarPower/Views/PowerStation/PowerStationEdit.cshtml index 9a3d60b..c7f1895 100644 --- a/SolarPower/Views/PowerStation/PowerStationEdit.cshtml +++ b/SolarPower/Views/PowerStation/PowerStationEdit.cshtml @@ -27,7 +27,7 @@ 新竹巨城站
-