1. 電站管理加入 電站類型
This commit is contained in:
parent
3f969389b9
commit
dbb5948f7c
@ -276,6 +276,7 @@ namespace SolarPower.Controllers
|
|||||||
PhotovoltaicPanelSpecification = post.PhotovoltaicPanelSpecification,
|
PhotovoltaicPanelSpecification = post.PhotovoltaicPanelSpecification,
|
||||||
PhotovoltaicPanelAmount = post.PhotovoltaicPanelAmount,
|
PhotovoltaicPanelAmount = post.PhotovoltaicPanelAmount,
|
||||||
SiteDB = company.SiteDB,
|
SiteDB = company.SiteDB,
|
||||||
|
SolarType = post.SolarType,
|
||||||
CreatedBy = myUser.Id
|
CreatedBy = myUser.Id
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -303,6 +304,7 @@ namespace SolarPower.Controllers
|
|||||||
"PhotovoltaicPanelSpecification",
|
"PhotovoltaicPanelSpecification",
|
||||||
"PhotovoltaicPanelAmount",
|
"PhotovoltaicPanelAmount",
|
||||||
"SiteDB",
|
"SiteDB",
|
||||||
|
"SolarType",
|
||||||
"CreatedBy"
|
"CreatedBy"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -392,6 +394,7 @@ namespace SolarPower.Controllers
|
|||||||
PhotovoltaicPanelProductModel = post.PhotovoltaicPanelProductModel,
|
PhotovoltaicPanelProductModel = post.PhotovoltaicPanelProductModel,
|
||||||
PhotovoltaicPanelSpecification = post.PhotovoltaicPanelSpecification,
|
PhotovoltaicPanelSpecification = post.PhotovoltaicPanelSpecification,
|
||||||
PhotovoltaicPanelAmount = post.PhotovoltaicPanelAmount,
|
PhotovoltaicPanelAmount = post.PhotovoltaicPanelAmount,
|
||||||
|
SolarType = post.SolarType,
|
||||||
UpdatedBy = myUser.Id
|
UpdatedBy = myUser.Id
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -416,6 +419,7 @@ namespace SolarPower.Controllers
|
|||||||
"PhotovoltaicPanelProductModel",
|
"PhotovoltaicPanelProductModel",
|
||||||
"PhotovoltaicPanelSpecification",
|
"PhotovoltaicPanelSpecification",
|
||||||
"PhotovoltaicPanelAmount",
|
"PhotovoltaicPanelAmount",
|
||||||
|
"SolarType",
|
||||||
"UpdatedBy",
|
"UpdatedBy",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -177,6 +177,7 @@ namespace SolarPower.Models.PowerStation
|
|||||||
public string PhotovoltaicPanelProductModel { get; set; } //光電板型號
|
public string PhotovoltaicPanelProductModel { get; set; } //光電板型號
|
||||||
public string PhotovoltaicPanelSpecification { get; set; } //光電板規格
|
public string PhotovoltaicPanelSpecification { get; set; } //光電板規格
|
||||||
public int PhotovoltaicPanelAmount { get; set; } //光電板規格
|
public int PhotovoltaicPanelAmount { get; set; } //光電板規格
|
||||||
|
public byte SolarType { get; set; } //電站類型
|
||||||
}
|
}
|
||||||
|
|
||||||
public class UpdatePowerStationInfo : Updated
|
public class UpdatePowerStationInfo : Updated
|
||||||
@ -199,6 +200,7 @@ namespace SolarPower.Models.PowerStation
|
|||||||
public string PhotovoltaicPanelProductModel { get; set; } //光電板型號
|
public string PhotovoltaicPanelProductModel { get; set; } //光電板型號
|
||||||
public string PhotovoltaicPanelSpecification { get; set; } //光電板規格
|
public string PhotovoltaicPanelSpecification { get; set; } //光電板規格
|
||||||
public int PhotovoltaicPanelAmount { get; set; } //光電板規格
|
public int PhotovoltaicPanelAmount { get; set; } //光電板規格
|
||||||
|
public byte SolarType { get; set; } //電站類型
|
||||||
}
|
}
|
||||||
|
|
||||||
public class PostBoETPCInfo
|
public class PostBoETPCInfo
|
||||||
|
|||||||
@ -129,6 +129,8 @@
|
|||||||
$("#canecl-station-info-btn").hide();
|
$("#canecl-station-info-btn").hide();
|
||||||
$("#check_escrow").attr('disabled', false);
|
$("#check_escrow").attr('disabled', false);
|
||||||
|
|
||||||
|
$("#select_solar_tpye").attr('disabled', false);
|
||||||
|
|
||||||
$(".city-name").hide();
|
$(".city-name").hide();
|
||||||
$(".power-station-name").html("新增電站");
|
$(".power-station-name").html("新增電站");
|
||||||
|
|
||||||
@ -897,7 +899,8 @@
|
|||||||
PhotovoltaicPanelBrand: $("#photovoltaic_panel_brand").val(),
|
PhotovoltaicPanelBrand: $("#photovoltaic_panel_brand").val(),
|
||||||
PhotovoltaicPanelSpecification: $("#photovoltaic_panel_specification").val(),
|
PhotovoltaicPanelSpecification: $("#photovoltaic_panel_specification").val(),
|
||||||
PhotovoltaicPanelAmount: $("#photovoltaic_panel_amount").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) {
|
$.post(url, send_data, function (rel) {
|
||||||
@ -1039,6 +1042,8 @@
|
|||||||
$("#electricity_meter_at").hide();
|
$("#electricity_meter_at").hide();
|
||||||
$("#estimated_recovery_time").hide();
|
$("#estimated_recovery_time").hide();
|
||||||
|
|
||||||
|
$("#select_solar_tpye").attr("disabled", true);
|
||||||
|
|
||||||
$("#generating_capacity").hide();
|
$("#generating_capacity").hide();
|
||||||
$("#escrow_name").hide();
|
$("#escrow_name").hide();
|
||||||
$("#power_rate").hide();
|
$("#power_rate").hide();
|
||||||
@ -1099,6 +1104,8 @@
|
|||||||
$("#electricity_meter_at").show();
|
$("#electricity_meter_at").show();
|
||||||
$("#estimated_recovery_time").show();
|
$("#estimated_recovery_time").show();
|
||||||
|
|
||||||
|
$("#select_solar_tpye").attr("disabled", false);
|
||||||
|
|
||||||
$("#generating_capacity").show();
|
$("#generating_capacity").show();
|
||||||
$("#escrow_name").show();
|
$("#escrow_name").show();
|
||||||
$("#power_rate").show();
|
$("#power_rate").show();
|
||||||
@ -1277,6 +1284,7 @@
|
|||||||
|
|
||||||
$("#select_city").val(powerStationData.cityId).trigger("change");
|
$("#select_city").val(powerStationData.cityId).trigger("change");
|
||||||
$("#select_area").val(powerStationData.areaId);
|
$("#select_area").val(powerStationData.areaId);
|
||||||
|
$("#select_solar_tpye").val(powerStationData.solarType);
|
||||||
|
|
||||||
//#region 電站基本資料 文字
|
//#region 電站基本資料 文字
|
||||||
$("#address_detail_text").html(powerStationData.address);
|
$("#address_detail_text").html(powerStationData.address);
|
||||||
|
|||||||
@ -34,12 +34,22 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xl-6 row align-items-center">
|
<div class="col-xl-3 row align-items-center">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<label id="address_detail_text" class="color-info-600"></label>
|
<label id="address_detail_text" class="color-info-600"></label>
|
||||||
<input type="text" id="address_detail" name="address_detail" class="form-control">
|
<input type="text" id="address_detail" name="address_detail" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
</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>
|
||||||
|
|
||||||
<div class="row mb-3 d-flex justify-content-between">
|
<div class="row mb-3 d-flex justify-content-between">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user