1. 修改左邊選單字體大小

2. 電站總覽 基本資料
This commit is contained in:
Kai 2021-08-25 11:31:38 +08:00
parent 0a4ce4bf42
commit a94346d77d
8 changed files with 130 additions and 73 deletions

View File

@ -398,7 +398,7 @@
'<div class="mr-2">' +
'<input type="checkbox" class="" name="selectedInverterLayer2[]" value="' + inverter.powerStationId + '" valueName ="' + inverter.powerStationName + '" checked>' +
'</div>' +
'<h4 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h4>' +
'<h5 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h5>' +
'</div>' +
'</li>';
}
@ -408,7 +408,7 @@
'<div class="mr-2">' +
'<input type="checkbox" class="" name="selectedInverterLayer2[]" value="' + inverter.powerStationId + '" valueName ="' + inverter.powerStationName + '">' +
'</div>' +
'<h4 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h4>' +
'<h5 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h5>' +
'</div>' +
'</li>';
}

View File

@ -502,7 +502,7 @@
'<div class="mr-2">' +
'<input type="checkbox" class="" name="selectedInverterLayer2[]" value="' + inverter.powerStationId + '" valueName ="' + inverter.powerStationName + '" checked>' +
'</div>' +
'<h4 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h4>' +
'<h5 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h5>' +
'</div>' +
'</li>';
}
@ -512,7 +512,7 @@
'<div class="mr-2">' +
'<input type="checkbox" class="" name="selectedInverterLayer2[]" value="' + inverter.powerStationId + '" valueName ="' + inverter.powerStationName + '">' +
'</div>' +
'<h4 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h4>' +
'<h5 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h5>' +
'</div>' +
'</li>';
}

View File

@ -297,7 +297,7 @@
"info": true,
"autoWidth": false,
"responsive": true,
"order": [[9, "desc"]],
"order": [[8, "desc"]],
"columns": [{
"data": "planId"
}, {

View File

@ -416,7 +416,7 @@
'<div class="mr-2">' +
'<input type="checkbox" class="" name="selectedInverterLayer2[]" value="' + inverter.powerStationId + '" valueName ="' + inverter.powerStationName + '" checked>' +
'</div>' +
'<h4 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h4>' +
'<h5 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h5>' +
'</div>' +
'</li>';
}
@ -426,7 +426,7 @@
'<div class="mr-2">' +
'<input type="checkbox" class="" name="selectedInverterLayer2[]" value="' + inverter.powerStationId + '" valueName ="' + inverter.powerStationName + '">' +
'</div>' +
'<h4 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h4>' +
'<h5 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h5>' +
'</div>' +
'</li>';
}

View File

@ -743,6 +743,9 @@
return data;
}
},
"error": function (xhr, error, thrown) {
console.log(xhr);
}
});
@ -1624,7 +1627,6 @@
$("#generating_capacity_text").html(powerStationData.generatingCapacity);
$("#escrow_name_text").html(powerStationData.escrowName);
$("#power_rate_text").html(powerStationData.powerRate);
$("#coordinate_text").html(powerStationData.coordinate);
$("#created_at_text").html(powerStationData.createdAt);
$("#power_station_operation_personnel").val(powerStationData.operationPersonnelIds).trigger("change");

View File

@ -1731,17 +1731,16 @@
$("#city_name_text").html(powerStationData.cityName);
$("#area_name_text").html(powerStationData.areaName);
$("#address_detail_text").html(powerStationData.address);
$("#power_station_code_text").html(powerStationData.code);
$("#power_station_name_text").html(powerStationData.name);
$("#electricity_meter_at_text").html(powerStationData.electricityMeterAt);
$("#estimated_recovery_time_text").html(powerStationData.estimatedRecoveryTime);
$("#escrow_name_text").html(powerStationData.escrowName);
$("#created_by_text").html(powerStationData.creatorName);
$("#generating_capacity_text").html(powerStationData.generatingCapacity);
$("#escrow_name_text").html(powerStationData.escrowName);
$("#power_rate_text").html(powerStationData.powerRate);
$("#estimated_recovery_time_text").html(powerStationData.estimatedRecoveryTime);
$("#coordinate_text").html(powerStationData.coordinate);
$("#created_at_text").html(powerStationData.createdAt);
$("#power_station_operation_personnel").val(powerStationData.operationPersonnelIds).trigger("change");
$("#power_station_operation_personnel").attr("disabled", true);
@ -1749,6 +1748,7 @@
$("#estimate_kwh_text").html(powerStationData.estimate_kwh);
$("#estimate_efficacy_text").html(powerStationData.estimateEfficacy);
$("#created_at_text").html(powerStationData.createdAt);
@if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformUser)
{
<text>
@ -1785,16 +1785,23 @@
//#region 設定能源局與台電資料
function SetBoETPCInfo() {
$("#link-boe-file").html(powerStationData.boEFileName).attr("href", powerStationData.boEFile);
$("#BoE_discount_rate_text").html(powerStationData.boEDiscountRate);
@*$("#BoE_discount_rate_text").html(powerStationData.boEDiscountRate);*@
$("#BoE_register_post_at_text").html(powerStationData.boERegisterPostAt);
$("#BoE_device_register_number_text").html(powerStationData.boEDeviceRegisterNumber);
$("#BoE_rent_ratio_text").html(powerStationData.boERentRatio);
@*$("#BoE_rent_ratio_text").html(powerStationData.boERentRatio);*@
$("#TPC_contract_number_text").html(powerStationData.tpcContractNumber);
$("#TPC_contract_at_text").html(powerStationData.tpcContractAt);
$("#TPC_sell_deadline_text").html(powerStationData.tpcSellDeadline);
$("#electricity_meter_at_text").html(powerStationData.electricityMeterAt);
$("#power_rate_text").html(powerStationData.powerRate);
$("#TPC_meter_reading_text").html(powerStationData.tpcMeterReading);
$("#TPC_purchase_electricity_at_text").html(powerStationData.tpcPurchaseElectricityAt);
$("#TPC_sell_electricity_at_text").html(powerStationData.tpcSellElectricityAt);
$("#TPC_invoice_buyer_text").html(powerStationData.tpcInvoiceBuyer);
$("#GUI_number_text").html(powerStationData.guiNumber);
$("#TPC_invoice_address_text").html(powerStationData.tpcInvoiceAddress);
$("#TPC_meter_number_text").html(powerStationData.tpcMeterNumber);
$("#BOE_TPC_created_by_text").html(powerStationData.creatorName);
$("#BOE_TPC_created_at_text").html(powerStationData.createdAt);
}
@ -1825,7 +1832,7 @@
var appendStr = "";
appendStr += '<div class="card border mb-g w-100" data-land-building-id="' + value.id + '">' +
'<div class="card-header bg-fusion-50 pr-3 d-flex align-items-center flex-wrap justify-content-between">' +
'<div class="card-header bg-fusion-25 py-2 pr-3 d-flex align-items-center flex-wrap justify-content-between">' +
'<div class="card-title font-weight-bold">土地房屋資料</div>' +
'</div>';
@ -1839,11 +1846,17 @@
'</div>' +
'</div>' +
'<div class="row">' +
'<label class="col-xl-4 form-label">租金比例 (%)</label>' +
'<div class="col-xl-8">' +
'<label id="land_building_lease_Rate_text_' + value.id + '" class="color-info-600">' + value.leaseRate + '</label>' +
'</div>' +
'</div>' +
@*'<div class="row">' +
'<label class="col-xl-4 form-label">經緯度</label>' +
'<div class="col-xl-8">' +
'<label id="land_building_coordinate_text_' + value.id + '" class="color-info-600">' + value.coordinate + '</label>' +
'</div>' +
'</div>' +
'</div>' +*@
'</div>' +
'<div class="col-xl">' +
'<div class="row mb-3">' +
@ -1852,34 +1865,29 @@
'<label id="lease_notarization_at_text_' + value.id + '" class="color-info-600">' + value.leaseNotarizationAt + '</label>' +
'</div>' +
'</div>' +
'<div class="row">' +
'<label class="col-xl-4 form-label">租金比例 (%)</label>' +
'<div class="col-xl-8">' +
'<label id="land_building_lease_Rate_text_' + value.id + '" class="color-info-600">' + value.leaseRate + '</label>' +
'</div>' +
'</div>' +
'</div>' +
'<div class="col-xl">' +
'<div class="row mb-3">' +
'<label class="col-xl-4 form-label">地主姓名</label>' +
'<label class="col-xl-4 form-label">出租人</label>' +
'<div class="col-xl-8">' +
'<label id="land_building_landowner_text_' + value.id + '" class="color-info-600">' + value.landowner + '</label>' +
'</div>' +
'</div>' +
'<div class="row">' +
@*'<div class="row">' +
'<label class="col-xl-4 form-label">電話</label>' +
'<div class="col-xl-8">' +
'<label id="land_building_phone_text_' + value.id + '" class="color-info-600">' + value.phone + '</label>' +
'</div>' +
'</div>' +
'</div>' +*@
'</div>' +
'<div class="col-xl">' +
'<div class="row mb-3">' +
@*'<div class="row mb-3">' +
'<label class="col-xl-4 form-label">房屋用途</label>' +
'<div class="col-xl-8">' +
'<label id="land_building_purpose_text_' + value.id + '" class="color-info-600">' + value.purpose + '</label>' +
'</div>' +
'</div>' +
'</div>' +*@
'</div>' +
'<div class="col-xl">' +
'<div class="row mb-3">' +

View File

@ -69,25 +69,44 @@
</div>
<div class="row mb-3 d-flex justify-content-between">
<div class="col-xl-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="estimated_recovery_time_label" for="estimated_recovery_time">預計回收年限</label>
<div class="col-xl-8">
<label id="estimated_recovery_time_text" class="color-info-600"></label>
</div>
</div>
<div class="col-xl-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="generating_capacity_label" for="generating_capacity">電廠發電容量(kW)</label>
<label class="col-xl-4 form-label" id="generating_capacity_label" for="generating_capacity">
裝置容量(kWp)
</label>
<div class="col-xl-8">
<label id="generating_capacity_text" class="color-info-600"></label>
</div>
</div>
<div class="col-xl-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="coordinate_label" for="coordinate">
預估發電效能
</label>
<div class="col-xl-8">
<label id="estimate_efficacy_text" class="color-info-600"></label>
</div>
</div>
<div class="col-xl-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="coordinate_label" for="coordinate">
預估發電度數(kW/日)
</label>
<div class="col-xl-8">
<label id="estimate_kwh_text" class="color-info-600"></label>
</div>
</div>
<div class="col-xl-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="estimated_recovery_time_label" for="estimated_recovery_time">
預計回收年限
</label>
<div class="col-xl-8">
<label id="estimated_recovery_time_text" class="color-info-600"></label>
</div>
</div>
</div>
<div class="row mb-5 d-flex justify-content-between ">
<div class="col-xl-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="power_station_operation_personnel_label">運維人員</label>
<div class="col-xl-8">
<div class="col-xl-6 row justify-content-center align-items-center">
<label class="col-xl-2 form-label" id="power_station_operation_personnel_label">運維人員</label>
<div class="col-xl-10">
<select class="js-example-basic-multiple form-control" id="power_station_operation_personnel" multiple="multiple">
</select>
</div>
@ -104,29 +123,14 @@
<label id="line_token_text" class="color-info-600"></label>
</div>
</div>
<div class="col-xl-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="coordinate_label" for="coordinate">
預估發電度數(kW/日)
</label>
<div class="col-xl-8">
<label id="estimate_kwh_text" class="color-info-600"></label>
</div>
</div>
</div>
<div class="row mb-5 d-flex justify-content-between ">
<div class="col-xl-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="coordinate_label" for="coordinate">
預估發電效能
</label>
<div class="col-xl-8">
<label id="estimate_efficacy_text" class="color-info-600"></label>
</div>
</div>
<div class="col-xl-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="select_power_station_company_title">
<div class="col-xl-6 row justify-content-center align-items-center">
<label class="col-xl-2 form-label" id="select_power_station_company_title">
電站歸屬
</label>
<div class="col-xl-8">
<div class="col-xl-10">
<select class="form-control" id="select_power_station_company">
</select>
</div>
@ -158,9 +162,12 @@
</div>
<div class="col-xl-3 mb-3 row">
<label class="col-xl-4 form-label" id="photovoltaic_panel_specification_label" for="photovoltaic_panel_specification">規格</label>
<div class="col-xl-8">
<div class="col-xl-6">
<label id="photovoltaic_panel_specification_text" class="color-info-600"></label>
</div>
<div class="col-xl-2 p-0">
<span>mm</span>
</div>
</div>
<div class="col-xl-3 mb-3 row">
<label class="col-xl-4 form-label" id="photovoltaic_panel_amount_label" for="photovoltaic_panel_amount">數量</label>
@ -199,11 +206,17 @@
<a id="link-boe-file" class="color-info-600" href="link/to/your/download/file" download>Download link</a>
</div>
</div>
<div class="col-xl-6 mb-3 row justify-content-center align-items-center">
@*<div class="col-xl-6 mb-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label">折扣率</label>
<div class="col-xl-8">
<label id="BoE_discount_rate_text" class="color-info-600"></label>
</div>
</div>*@
<div class="col-xl-6 mb-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" for="BoE_register_post_at">登記發文日期</label>
<div class="col-xl-8">
<label id="BoE_register_post_at_text" class="color-info-600"></label>
</div>
</div>
<div class="col-xl-6 mb-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" for="BoE_device_register_number">能源局設備登記編號</label>
@ -211,12 +224,12 @@
<label id="BoE_device_register_number_text" class="color-info-600"></label>
</div>
</div>
<div class="col-xl-6 mb-3 row justify-content-center align-items-center">
@*<div class="col-xl-6 mb-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label">租金比例(%)</label>
<div class="col-xl-8">
<label id="BoE_rent_ratio_text" class="color-info-600"></label>
</div>
</div>
</div>*@
</div>
</div>
<div class="col-xl-6">
@ -240,7 +253,7 @@
<label id="TPC_sell_deadline_text" class="color-info-600"></label>
</div>
</div>
<div class="col-xl-6 mb-3 row justify-content-center align-items-center">
@*<div class="col-xl-6 mb-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" for="TPC_meter_reading">每期抄錶日</label>
<div class="col-xl-8">
<label id="TPC_meter_reading_text" class="color-info-600"></label>
@ -251,6 +264,20 @@
<div class="col-xl-8">
<label id="TPC_purchase_electricity_at_text" class="color-info-600"></label>
</div>
</div>*@
<div class="col-xl-6 mb-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="electricity_meter_at_label" for="electricity_meter_at">
台電掛錶日
</label>
<div class="col-xl-8">
<label id="electricity_meter_at_text" class="color-info-600"></label>
</div>
</div>
<div class="col-xl-6 mb-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="power_rate_label" for="power_rate">授電費率</label>
<div class="col-xl-8">
<label id="power_rate_text" class="color-info-600"></label>
</div>
</div>
<div class="col-xl-6 mb-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" for="TPC_sell_electricity_at">正式售電日</label>
@ -258,16 +285,36 @@
<label id="TPC_sell_electricity_at_text" class="color-info-600"></label>
</div>
</div>
<div class="col-xl-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="electricity_meter_at_label" for="electricity_meter_at">台電掛錶日</label>
<div class="col-xl-6 mb-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="TPC_invoice_buyer_label" for="TPC_invoice_buyer">
買受人
</label>
<div class="col-xl-8">
<label id="electricity_meter_at_text" class="color-info-600"></label>
<label id="TPC_invoice_buyer_text" class="color-info-600"></label>
</div>
</div>
<div class="col-xl-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="power_rate_label" for="power_rate">授電費率</label>
<div class="col-xl-6 mb-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="GUI_number_label" for="GUI_number">
統一編號
</label>
<div class="col-xl-8">
<label id="power_rate_text" class="color-info-600"></label>
<label id="GUI_number_text" class="color-info-600"></label>
</div>
</div>
<div class="col-xl-6 mb-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="TPC_invoice_address_label" for="TPC_invoice_address">
發票地址
</label>
<div class="col-xl-8">
<label id="TPC_invoice_address_text" class="color-info-600"></label>
</div>
</div>
<div class="col-xl-6 mb-3 row justify-content-center align-items-center">
<label class="col-xl-4 form-label" id="TPC_meter_number_label" for="TPC_meter_number">
台電電號
</label>
<div class="col-xl-8">
<label id="TPC_meter_number_text" class="color-info-600"></label>
</div>
</div>
</div>

View File

@ -614,7 +614,7 @@
'<div class="mr-2">' +
'<input type="checkbox" class="" name="selectedInverterLayer2[]" value="' + inverter.powerStationId + '" valueName ="' + inverter.powerStationName + '" checked>' +
'</div>' +
'<h4 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h4>' +
'<h5 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h5>' +
'</div>' +
'</li>';
}
@ -624,7 +624,7 @@
'<div class="mr-2">' +
'<input type="checkbox" class="" name="selectedInverterLayer2[]" value="' + inverter.powerStationId + '" valueName ="' + inverter.powerStationName + '">' +
'</div>' +
'<h4 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h4>' +
'<h5 class="font-weight-bold"><i class="fal fa-charging-station"></i> ' + inverter.powerStationName + '</h5>' +
'</div>' +
'</li>';
}