FIC_Solar/SolarPower/Views/StationOverview/_Exception.cshtml
2021-10-13 10:18:01 +08:00

179 lines
9.0 KiB
Plaintext

<div class="row mb-5 d-flex justify-content-start">
<div class="pr-3">
<div class="btn-group btn-group-md">
<button type="button" class="btn btn-success waves-effect waves-themed" onclick="ChangeStatus(1)" id="errbutton1">未解決</button>
<button type="button" class="btn btn-secondary waves-effect waves-themed" onclick="ChangeStatus(0)" id="errbutton0">己解決</button>
</div>
</div>
<div class="pr-3">
<button type="button" class="btn btn-secondary waves-effect waves-themed" onclick="ChangeDate30exception()" id="to30day">近30天</button>
</div>
<div class="pr-6">
<div class="form-group">
<input class="form-control" id="date-range-exception" type="text" name="date" value="" style="width:205px;">
</div>
</div>
</div>
<div class="row d-flex justify-content-end">
<button type="button" class="btn btn-success waves-effect waves-themed mb-3" onclick="ExportExcelToExc()">
<span class="fal fa-file-excel mr-1"></span>
匯出
</button>
</div>
<div class="row mb-5">
<div class="w-100">
<table class="table table-bordered table-hover m-0 text-center" id="Exception_Table">
<thead class="thead-themed">
<tr>
<th>電站名稱</th>
<th>異常ID</th>
<th>發生時間</th>
<th>復歸時間</th>
<th>異常類別</th>
<th>設備編號</th>
<th>異常訊息</th>
<th>派工/維運單號</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<table class="table table-bordered table-hover m-0 text-center" id="NOSEE" style="display:none">
<thead class="thead-themed">
<tr>
<th>電站名稱</th>
<th>異常ID</th>
<th>發生時間</th>
<th>復歸時間</th>
<th>異常類別</th>
<th>設備編號</th>
<th>異常訊息</th>
</tr>
</thead>
<tbody id="NOSEEBODY">
</tbody>
</table>
</div>
</div>
<div class="modal fade" id="exception-form-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">
<span class="main-title"></span><span class="sub-title"></span>
</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 id="record-form-exc">
<div class="row mb-3">
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="power_station_select_modal_exc">電站</label>
<input class="form-control" id="power_station_select_modal_exc" type="text" name="power_station_select_modal_exc" />
@*<select class="form-control" id="power_station_select_modal_exc">
</select>*@
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="work_time_modal_exc">作業日期</label>
<input class="form-control" id="work_time_modal_exc" type="date" name="work_time_modal_exc" />
</div>
</div>
</div>
<div class="row mb-3">
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="example-select">狀態</label>
<div>
<div class="custom-control custom-radio custom-control-inline">
<input type="radio" class="custom-control-input ml-auto" id="status_none_complete_exc" name="status_modal" value="0" />
<label class="custom-control-label" for="status_none_complete_exc">未完成</label>
</div>
<div class="custom-control custom-radio custom-control-inline">
<input type="radio" class="custom-control-input ml-auto" id="status_complete_exc" name="status_modal" value="1" />
<label class="custom-control-label" for="status_complete_exc">完成</label>
</div>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="work_person_select_modal_exc">執行人員</label>
<select class="form-control" id="work_person_select_modal_exc">
</select>
</div>
</div>
</div>
<div class="row mb-3 fix-div">
<div class="col-lg-6">
<div class="form-group">
<div class="form-group">
<label class="form-label" for="error_code_modal_exc">異常編號</label>
<input class="form-control" id="error_code_modal_exc" type="text" name="error_code_modal_exc" />
</div>
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="fix_do_modal_exc">維修項目</label>
<input class="form-control" id="fix_do_modal_exc" type="text" name="fix_do_modal_exc" />
</div>
</div>
</div>
<div class="row mb-3">
<div class="col-lg-12">
<div class="form-group">
<label class="form-label" for="notice_textarea_modal_exc">項目內容</label>
<textarea class="form-control" id="notice_textarea_modal_exc" rows="5"></textarea>
</div>
</div>
</div>
<div class="row mb-3">
<div class="col-lg-12">
<div class="form-group">
<label class="form-label" for="description_textarea_modal_exc">結果描述</label>
<textarea class="form-control" id="description_textarea_modal_exc" rows="5"></textarea>
</div>
</div>
</div>
</form>
<div class="row align-items-center">
<div class="col-2">
<p>檔案上傳</p>
</div>
<div id="record_files_div_exc" class="col-10">
<div class="row px-3 mb-3 d-flex justify-content-start align-items-center img-zoom-div">
</div>
</div>
</div>
<div class="row px-3">
<form id="record-file-form_exc" class="dropzone needsclick dz-clickable col-12" style="min-height: 7rem;">
<div class="fallback">
<input type="file" multiple />
</div>
<div class="dz-message needsclick">
<i class="fal fa-cloud-upload text-muted mb-3"></i> <br>
<span class="text-uppercase">將圖片拖曳至這裡或點擊選擇圖片.</span>
<br>
<span class="fs-sm text-muted">僅供預覽,並未實際上傳。</span>
</div>
</form>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
<button type="button" class="btn btn-primary" id="save-record-btn" onclick="SaveException()">確定</button>
</div>
</div>
</div>
</div>