359 lines
19 KiB
Plaintext
359 lines
19 KiB
Plaintext
<div class="row mb-5">
|
|
<div class="card border mb-g w-100">
|
|
<div class="card-header bg-fusion-25 py-2 pr-3 d-flex align-items-center flex-wrap justify-content-between">
|
|
<!-- we wrap header title inside a div tag with utility padding -->
|
|
<div class="card-title font-weight-bold">控制器</div>
|
|
<div class="text-right ">
|
|
<a href="javascript:;" class="btn btn-sm btn-success ml-auto waves-effect waves-themed" id="addController-btn" onclick="AddController()">
|
|
<span class="fal fa-plus mr-1"></span> 新增
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="w-100">
|
|
<table id="Controller_table" class="table table-bordered table-hover m-0 text-center">
|
|
<thead class="thead-themed">
|
|
<tr>
|
|
<th>控制器編號</th>
|
|
<th>建立時間</th>
|
|
<th>建立人</th>
|
|
<th>功能</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card border mb-g w-100">
|
|
<div class="card-header bg-fusion-25 py-2 pr-3 d-flex align-items-center flex-wrap justify-content-between">
|
|
<!-- we wrap header title inside a div tag with utility padding -->
|
|
<div class="card-title font-weight-bold">逆變器</div>
|
|
<div class="text-right">
|
|
<a href="javascript:;" class="btn btn-sm btn-success ml-auto waves-effect waves-themed" id="addInverter-btn" onclick="AddInverter()">
|
|
<span class="fal fa-plus mr-1"></span> 新增
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="w-100">
|
|
<table id="Inverter_table" class="table table-bordered table-hover m-0 text-center">
|
|
<thead class="thead-themed">
|
|
<tr>
|
|
<th>控制器編號</th>
|
|
<th>逆變器編號</th>
|
|
<th>逆變器名稱</th>
|
|
<th>啟用</th>
|
|
<th>狀態</th>
|
|
<th>安裝日期</th>
|
|
<th>廠牌</th>
|
|
<th>型號</th>
|
|
<th>裝置容量 kWp</th>
|
|
<th>日照計編號</th>
|
|
<th>功能</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card border mb-g w-100">
|
|
<div class="card-header bg-fusion-25 py-2 pr-3 d-flex align-items-center flex-wrap justify-content-between">
|
|
<!-- we wrap header title inside a div tag with utility padding -->
|
|
<div class="card-title font-weight-bold">裝置設定</div>
|
|
<div class="text-right">
|
|
<a href="javascript:;" class="btn btn-sm btn-success ml-auto waves-effect waves-themed" id="addDevice-btn" onclick="AddDevice()">
|
|
<span class="fal fa-plus mr-1"></span> 新增
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="w-100">
|
|
<table id="Device_table" class="table table-bordered table-hover m-0 text-center">
|
|
<thead class="thead-themed">
|
|
<tr>
|
|
<th>電站編號</th>
|
|
<th>控制器編號</th>
|
|
<th>設備編號</th>
|
|
<th>設備名稱</th>
|
|
<th>是否啟用</th>
|
|
<th>設備狀態</th>
|
|
<th>裝置類型</th>
|
|
<th>廠牌</th>
|
|
<th>型號</th>
|
|
<th>安裝日期</th>
|
|
<th>DBName</th>
|
|
<th>tableName</th>
|
|
<th>columnName</th>
|
|
<th>功能</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card border mb-g w-100">
|
|
<div class="card-header bg-fusion-25 py-2 pr-3 d-flex align-items-center flex-wrap justify-content-between">
|
|
<!-- we wrap header title inside a div tag with utility padding -->
|
|
<div class="card-title font-weight-bold">共用裝置</div>
|
|
<div class="text-right">
|
|
<a href="javascript:;" class="btn btn-sm btn-success ml-auto waves-effect waves-themed" id="addShareDevice-btn" onclick="AddShareDevice()">
|
|
<span class="fal fa-plus mr-1"></span> 新增
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="w-100">
|
|
<table id="ShareDevice_table" class="table table-bordered table-hover m-0 text-center">
|
|
<thead class="thead-themed">
|
|
<tr>
|
|
<th>電站編號</th>
|
|
<th>控制器編號</th>
|
|
<th>設備編號</th>
|
|
<th>設備名稱</th>
|
|
<th>是否啟用</th>
|
|
<th>設備狀態</th>
|
|
<th>裝置類型</th>
|
|
<th>廠牌</th>
|
|
<th>型號</th>
|
|
<th>安裝日期</th>
|
|
<th>DBName</th>
|
|
<th>tableName</th>
|
|
<th>columnName</th>
|
|
<th>功能</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="Controller-modal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false">
|
|
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title">
|
|
控制器 - 新增
|
|
</h4>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true"><i class="fal fa-times"></i></span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form class="Controller-form" id="Controller-form">
|
|
<div class="row">
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="Controller_Count_modal"><span class="text-danger">*</span>控制器數量</label>
|
|
<input type="number" id="Controller_Count_modal" name="Controller_Count_modal" class="form-control">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
|
|
<button type="button" class="btn btn-primary" onclick="SaveController()">確定</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="Inverter-modal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false">
|
|
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title">
|
|
逆變器 - 新增
|
|
</h4>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true"><i class="fal fa-times"></i></span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form class="Inverter-form" id="Inverter-form">
|
|
<div class="row">
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="Inverter_ControllerId_modal"><span class="text-danger">*</span>控制器編號</label>
|
|
<select class="form-control" id="Inverter_ControllerId_modal">
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="Inverter_InverterName_modal"><span class="text-danger">*</span>逆變器名稱</label>
|
|
<input type="text" id="Inverter_InverterName_modal" name="Inverter_InverterName_modal" class="form-control">
|
|
</div>
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="Inverter_InstallDate_modal"><span class="text-danger">*</span>安裝日期</label>
|
|
<input type="date" id="Inverter_InstallDate_modal" name="Inverter_InstallDate_modal" class="form-control">
|
|
</div>
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="Inverter_Brand_modal"><span class="text-danger">*</span>廠牌</label>
|
|
<input type="text" id="Inverter_Brand_modal" name="Inverter_Brand_modal" class="form-control">
|
|
</div>
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="Inverter_Model_modal"><span class="text-danger">*</span>型號</label>
|
|
<input type="text" id="Inverter_Model_modal" name="Inverter_Model_modal" class="form-control">
|
|
</div>
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="Inverter_Capacity_modal"><span class="text-danger">*</span>裝置容量 kWp</label>
|
|
<input type="number" id="Inverter_Capacity_modal" name="Inverter_Capacity_modal" class="form-control">
|
|
</div>
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="Inverter_Pyrheliometer_modal">日照計編號</label>
|
|
<select class="form-control" id="Inverter_Pyrheliometer_modal">
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-lg-3">
|
|
<label class="form-label" for="Inverter_Status_modal">狀態</label>
|
|
<select class="form-control" id="Inverter_Status_modal" disabled>
|
|
<option value="0" action>未啟用</option>
|
|
<option value="1">正常</option>
|
|
<option value="2">異常</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-lg-3">
|
|
<label class="form-label" for="Inverter_Enabled">啟用</label>
|
|
<select class="form-control" id="Inverter_Enabled_modal" disabled>
|
|
<option value="0" action>未啟用</option>
|
|
<option value="1">啟用</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
|
|
<button type="button" class="btn btn-primary" onclick="SaveInverter()">確定</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="Device-modal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false">
|
|
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title">
|
|
裝置資料 - 新增
|
|
</h4>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true"><i class="fal fa-times"></i></span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form class="Device-form" id="Device-form">
|
|
|
|
<div class="row">
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="Device_Controller_modal"><span class="text-danger">*</span>控制器編號</label>
|
|
<select class="form-control" id="Device_Controller_modal">
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="Device_Type_modal"><span class="text-danger">*</span>裝置類型</label>
|
|
<select class="form-control" id="Device_Type_modal">
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="Device_Brand_modal"><span class="text-danger">*</span>廠牌</label>
|
|
<input type="text" id="Device_Brand_modal" name="Device_Brand_modal" class="form-control">
|
|
</div>
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="Device_Name_modal"><span class="text-danger">*</span>名稱</label>
|
|
<input type="text" id="Device_Name_modal" name="Device_Name_modal" class="form-control">
|
|
</div>
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="Device_ProductModel_modal"><span class="text-danger">*</span>型號</label>
|
|
<input type="text" id="Device_ProductModel_modal" name="Device_ProductModel_modal" class="form-control">
|
|
</div>
|
|
<div class="form-group col-lg-6">
|
|
<div style="margin-bottom: 0.3rem">
|
|
<label class="form-label" for="Device_DBName_modal">DBName</label>
|
|
<input type="text" id="Device_DBName_modal" name="Device_DBName_modal" class="form-control">
|
|
</div>
|
|
</div>
|
|
<div class="form-group col-lg-6">
|
|
<div style="margin-bottom: 0.3rem">
|
|
<label class="form-label" for="Device_TableName_modal">tableName</label>
|
|
<input type="text" id="Device_TableName_modal" name="Device_TableName_modal" class="form-control">
|
|
</div>
|
|
</div>
|
|
<div class="form-group col-lg-6">
|
|
<div style="margin-bottom: 0.3rem">
|
|
<label class="form-label" for="Device_ColName_modal">columnName</label>
|
|
<input type="text" id="Device_ColName_modal" name="Device_ColName_modal" class="form-control">
|
|
</div>
|
|
</div>
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="Device_InstallDate_modal"><span class="text-danger">*</span>安裝日期</label>
|
|
<input type="date" id="Device_InstallDate_modal" name="Device_InstallDate_modal" class="form-control">
|
|
</div>
|
|
<div class="form-group col-lg-3">
|
|
<label class="form-label" for="Device_Status_modal">狀態</label>
|
|
<select class="form-control" id="Device_Status_modal" disabled>
|
|
<option value="0" action>未啟用</option>
|
|
<option value="1">正常</option>
|
|
<option value="2">異常</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-lg-3">
|
|
<label class="form-label" for="Device_Enabled_modal">啟用</label>
|
|
<select class="form-control" id="Device_Enabled_modal" disabled>
|
|
<option value="0" action>未啟用</option>
|
|
<option value="1">啟用</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
|
|
<button type="button" class="btn btn-primary" onclick="SaveDevice()">確定</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="ShareDevice-modal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false">
|
|
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title">
|
|
共用裝置 - 新增
|
|
</h4>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true"><i class="fal fa-times"></i></span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form class="ShareDevice-form" id="ShareDevice-form">
|
|
<div class="row">
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="ShareDevice_PowerStationId_modal"><span class="text-danger">*</span>電站編號</label>
|
|
<select class="form-control" id="ShareDevice_PowerStationId_modal">
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-lg-6">
|
|
<label class="form-label" for="ShareDevice_UID_modal"><span class="text-danger">*</span>設備編號</label>
|
|
<select class="form-control" id="ShareDevice_UID_modal">
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
|
|
<button type="button" class="btn btn-primary" onclick="SaveShareDevice()">確定</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |