FIC_Solar/SolarPower/Views/PowerStation/_DeviceSetting.cshtml
2021-06-17 21:41:21 +08:00

138 lines
6.8 KiB
Plaintext

<div class="row mb-5">
<div class="col-6"><h3>裝置設定</h3></div>
<div class="col-6 text-right">
<a href="javascript:;" class="btn btn-success waves-effect waves-themed mb-3" id="addDevice-btn" onclick="AddDevice()">
<span class="fal fa-plus mr-1"></span>新增
</a>
</div>
<div class="w-100">
<table id="Device_table" class="table table-bordered table-hover m-0 text-center">
<thead class="thead-themed">
<tr>
<th>設備ID</th>
<th>裝置名稱</th>
<th>裝置類型</th>
<th>廠牌</th>
<th>型號</th>
<th>DBName</th>
<th>tableName</th>
<th>columnName</th>
<th>備註</th>
<th>功能</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">PEP-NTP001-PYR-01</th>
<td>日照計01</td>
<td>日照計</td>
<td>ADTEK</td>
<td>CS1</td>
<td></td>
<td>CS1</td>
<td></td>
<td></td>
<td>
<button type="button" class="btn btn-primary btn-pills waves-effect waves-themed">修改</button>
</td>
</tr>
<tr>
<th scope="row">PEP-NTP001-THR-01</th>
<td>溫度計03</td>
<td>溫度計</td>
<td>ADTEK</td>
<td>CS1</td>
<td></td>
<td>CS1</td>
<td></td>
<td></td>
<td>
<button type="button" class="btn btn-primary btn-pills waves-effect waves-themed">修改</button>
</td>
</tr>
<tr>
<th scope="row">05101300967-PWR</th>
<td>電表01</td>
<td>電表</td>
<td>ADTEK</td>
<td>CS1</td>
<td></td>
<td>CS1</td>
<td></td>
<td></td>
<td>
<button type="button" class="btn btn-primary btn-pills waves-effect waves-themed">修改</button>
</td>
</tr>
</tbody>
</table>
</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_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_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_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"><span class="text-danger">*</span>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"><span class="text-danger">*</span>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"><span class="text-danger">*</span>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">
<div style="margin-bottom: 0.3rem">
<label class="form-label" for="Device_Remark_modal"><span class="text-danger">*</span>備註</label>
<input type="text" id="Device_Remark_modal" name="Device_Remark_modal" class="form-control">
</div>
</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>