diff --git a/SolarPower/Controllers/PowerStationController.cs b/SolarPower/Controllers/PowerStationController.cs index 01780dc..6a75b6b 100644 --- a/SolarPower/Controllers/PowerStationController.cs +++ b/SolarPower/Controllers/PowerStationController.cs @@ -304,7 +304,6 @@ namespace SolarPower.Controllers { "Address", "PowerStationId", - "CreatedBy", "CreatedBy" }; await powerStationRepository.AddOneLandBuildingInfo(landBuilding, landBuildingProperties); diff --git a/SolarPower/Views/PowerStation/PowerStationEdit.cshtml b/SolarPower/Views/PowerStation/PowerStationEdit.cshtml index a5ea878..52d63f9 100644 --- a/SolarPower/Views/PowerStation/PowerStationEdit.cshtml +++ b/SolarPower/Views/PowerStation/PowerStationEdit.cshtml @@ -1028,6 +1028,16 @@ //#region 創建每份土地房屋資訊卡片 function CreateLandBuildingCard(dom, value) { + + //資料重整 + value.address = value.address ? value.address : ''; + value.coordinate = value.coordinate ? value.coordinate : ''; + value.leaseNotarizationAt = value.leaseNotarizationAt ? value.leaseNotarizationAt : ''; + value.leaseRate = value.leaseRate ? value.leaseRate : 0; + value.landowner = value.landowner ? value.landowner : ''; + value.phone = value.phone ? value.phone : ''; + value.purpose = value.purpose ? value.purpose : ''; + var appendStr = ""; appendStr += '