1. 電站管理加入 電站類型

This commit is contained in:
Kai 2021-06-29 16:22:35 +08:00
parent 3f969389b9
commit dbb5948f7c
4 changed files with 26 additions and 2 deletions

View File

@ -276,6 +276,7 @@ namespace SolarPower.Controllers
PhotovoltaicPanelSpecification = post.PhotovoltaicPanelSpecification,
PhotovoltaicPanelAmount = post.PhotovoltaicPanelAmount,
SiteDB = company.SiteDB,
SolarType = post.SolarType,
CreatedBy = myUser.Id
};
@ -303,6 +304,7 @@ namespace SolarPower.Controllers
"PhotovoltaicPanelSpecification",
"PhotovoltaicPanelAmount",
"SiteDB",
"SolarType",
"CreatedBy"
};
@ -392,6 +394,7 @@ namespace SolarPower.Controllers
PhotovoltaicPanelProductModel = post.PhotovoltaicPanelProductModel,
PhotovoltaicPanelSpecification = post.PhotovoltaicPanelSpecification,
PhotovoltaicPanelAmount = post.PhotovoltaicPanelAmount,
SolarType = post.SolarType,
UpdatedBy = myUser.Id
};
@ -416,6 +419,7 @@ namespace SolarPower.Controllers
"PhotovoltaicPanelProductModel",
"PhotovoltaicPanelSpecification",
"PhotovoltaicPanelAmount",
"SolarType",
"UpdatedBy",
};

View File

@ -177,6 +177,7 @@ namespace SolarPower.Models.PowerStation
public string PhotovoltaicPanelProductModel { get; set; } //光電板型號
public string PhotovoltaicPanelSpecification { get; set; } //光電板規格
public int PhotovoltaicPanelAmount { get; set; } //光電板規格
public byte SolarType { get; set; } //電站類型
}
public class UpdatePowerStationInfo : Updated
@ -199,6 +200,7 @@ namespace SolarPower.Models.PowerStation
public string PhotovoltaicPanelProductModel { get; set; } //光電板型號
public string PhotovoltaicPanelSpecification { get; set; } //光電板規格
public int PhotovoltaicPanelAmount { get; set; } //光電板規格
public byte SolarType { get; set; } //電站類型
}
public class PostBoETPCInfo

View File

@ -129,6 +129,8 @@
$("#canecl-station-info-btn").hide();
$("#check_escrow").attr('disabled', false);
$("#select_solar_tpye").attr('disabled', false);
$(".city-name").hide();
$(".power-station-name").html("新增電站");
@ -897,7 +899,8 @@
PhotovoltaicPanelBrand: $("#photovoltaic_panel_brand").val(),
PhotovoltaicPanelSpecification: $("#photovoltaic_panel_specification").val(),
PhotovoltaicPanelAmount: $("#photovoltaic_panel_amount").val(),
PhotovoltaicPanelProductModel: $("#photovoltaic_panel_product_model").val()
PhotovoltaicPanelProductModel: $("#photovoltaic_panel_product_model").val(),
SolarType: $("#select_solar_tpye").val()
}
$.post(url, send_data, function (rel) {
@ -1039,6 +1042,8 @@
$("#electricity_meter_at").hide();
$("#estimated_recovery_time").hide();
$("#select_solar_tpye").attr("disabled", true);
$("#generating_capacity").hide();
$("#escrow_name").hide();
$("#power_rate").hide();
@ -1099,6 +1104,8 @@
$("#electricity_meter_at").show();
$("#estimated_recovery_time").show();
$("#select_solar_tpye").attr("disabled", false);
$("#generating_capacity").show();
$("#escrow_name").show();
$("#power_rate").show();
@ -1277,6 +1284,7 @@
$("#select_city").val(powerStationData.cityId).trigger("change");
$("#select_area").val(powerStationData.areaId);
$("#select_solar_tpye").val(powerStationData.solarType);
//#region 電站基本資料 文字
$("#address_detail_text").html(powerStationData.address);

View File

@ -34,12 +34,22 @@
</select>
</div>
</div>
<div class="col-xl-6 row align-items-center">
<div class="col-xl-3 row align-items-center">
<div class="col-12">
<label id="address_detail_text" class="color-info-600"></label>
<input type="text" id="address_detail" name="address_detail" class="form-control">
</div>
</div>
<div class="col-xl-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="solar_tpye_label">電站類型</label>
<div class="col-xl-8">
<select class="form-control" id="select_solar_tpye">
<option value="0" selected>自建躉售</option>
<option value="1" selected>租建躉售</option>
<option value="2" selected>自建自用</option>
</select>
</div>
</div>
</div>
<div class="row mb-3 d-flex justify-content-between">