|
|
|
@ -28,8 +28,8 @@
|
|
|
|
|
<form id="frmSearch--${pageName}" name="frmSearch">
|
|
|
|
|
<div class="container-search">
|
|
|
|
|
<div class="row g-1">
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<span class="form-label fw-bold form-search-title">업무구분</span>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<span class="form-label fw-bold form-search-title w-px-120 text-end">업무구분</span>
|
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
|
<c:forEach items="${TaskListForSgg}" var="item">
|
|
|
|
|
<label>
|
|
|
|
@ -42,7 +42,7 @@
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<span class="form-label fw-bold form-search-title">단속일자</span>
|
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schCrdnYmdFrom--${pageName}">단속일자</label>
|
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
|
<input type="text" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom"
|
|
|
|
|
class="form-control form-date"
|
|
|
|
@ -55,8 +55,8 @@
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-4">
|
|
|
|
|
<label class="form-label fw-bold form-search-title" for="crdnInptSeCd--${pageName}">단속구분</label>
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="crdnInptSeCd--${pageName}">단속구분</label>
|
|
|
|
|
<select id="crdnInptSeCd--${pageName}" name="crdnInptSeCd" class="form-select">
|
|
|
|
|
<option value="">전체</option>
|
|
|
|
|
<c:forEach items="${FIM003List}" var="item">
|
|
|
|
@ -64,18 +64,18 @@
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-4">
|
|
|
|
|
<label class="form-label fw-bold form-search-title" for="vhrno--${pageName}">차량번호</label>
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="vhrno--${pageName}">차량번호</label>
|
|
|
|
|
<input type="text" id="vhrno--${pageName}" name="vhrno" class="form-control" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-4">
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<span class="area-samevehicleinspection">
|
|
|
|
|
<span class="form-label fw-bold form-search-title">단속건수</span>
|
|
|
|
|
<span class="form-label fw-bold form-search-title w-px-120 text-end">단속건수</span>
|
|
|
|
|
<input type="text" name="schCrdnCntFrom" class="form-control w-px-50" placeholder="2" />
|
|
|
|
|
~ <input type="text" name="schCrdnCntTo" class="form-control w-px-50"/>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<label>
|
|
|
|
|
<input type="checkbox" name="schExclEnd" class="form-check-input" />
|
|
|
|
|
서손자료제외
|
|
|
|
@ -98,27 +98,28 @@
|
|
|
|
|
</slot>
|
|
|
|
|
</template>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="flr">
|
|
|
|
|
<button type="button" class="btn btn-open-detail"
|
|
|
|
|
data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
|
|
|
|
|
<i class="bx bx-chevron-down"></i>
|
|
|
|
|
상세검색
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 동적검색 -->
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<input type="hidden" id="by--${pageName}" name="by" />
|
|
|
|
|
<input type="text" class="form-control fw-bold w-px-120 text-end" id="byOutput--${pageName}" value="동적 검색" readonly />
|
|
|
|
|
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
|
|
|
|
|
<input type="hidden" id="subOption--${pageName}" name="subOption" />
|
|
|
|
|
<input type="text" class="form-control w-px-400" id="term--${pageName}" name="term" autocomplete="off" />
|
|
|
|
|
<!-- 상세 검색조건 버튼 -->
|
|
|
|
|
<span class="flr">
|
|
|
|
|
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
|
|
|
|
|
<i class="bx bx-chevron-down"></i>
|
|
|
|
|
상세검색
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<input type="hidden" id="by--${pageName}" name="by" />
|
|
|
|
|
<input type="text" id="byOutput--${pageName}" class="form-control" readonly value="동적 검색" />
|
|
|
|
|
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
|
|
|
|
|
<input type="hidden" id="subOption--${pageName}" name="subOption" />
|
|
|
|
|
<input type="text" id="term--${pageName}" name="term" class="form-control" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<label class="form-label fw-bold form-search-title" for="crdnSttsCd--${pageName}">자료상태</label>
|
|
|
|
|
<div class="col-4">
|
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="crdnSttsCd--${pageName}">자료상태</label>
|
|
|
|
|
<select id="crdnSttsCd--${pageName}" name="crdnSttsCd" class="form-select">
|
|
|
|
|
<option value="">전체</option>
|
|
|
|
|
<c:forEach items="${FIM010List}" var="item">
|
|
|
|
@ -126,23 +127,32 @@
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<select id="schDateOpt--${pageName}" name="schDateOpt" class="form-select">
|
|
|
|
|
<option value="regDt">등록일자</option>
|
|
|
|
|
<option value="mdfcnDt">수정일자</option>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
|
<input type="text" id="schDateFrom--${pageName}" name="schDateFrom"
|
|
|
|
|
class="form-control form-date"
|
|
|
|
|
data-fmt-type="day" title="시작 날짜 선택" />
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
<!-- 등록일자, 수정일자 -->
|
|
|
|
|
<div class="col-4">
|
|
|
|
|
<select class="form-select w-px-120 text-center" id="schRegDateOpt--${pageName}" name="schRegDateOpt">
|
|
|
|
|
<option value="regDt">등록일자</option>
|
|
|
|
|
<option value="mdfcnDt">수정일자</option>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
|
<input type="text" class="form-control form-date" id="schRegDateFrom--${pageName}" name="schRegDateFrom"
|
|
|
|
|
data-fmt-type="day" title="시작 날짜 선택" />
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
~
|
|
|
|
|
<input type="text" id="schDateTo--${pageName}" name="schDateTo"
|
|
|
|
|
class="form-control form-date"
|
|
|
|
|
<input type="text" class="form-control form-date" id="schRegDateTo--${pageName}" name="schRegDateTo"
|
|
|
|
|
data-fmt-type="day" title="종료 날짜 선택">
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 등록자명, 수정자명 -->
|
|
|
|
|
<div class="col-4">
|
|
|
|
|
<select class="form-select w-px-120 text-center" id="schRgtrOpt--${pageName}" name="schRgtrOpt">
|
|
|
|
|
<option value="rgtr">등록자</option>
|
|
|
|
|
<option value="mdfr">수정자</option>
|
|
|
|
|
</select>
|
|
|
|
|
<input type="hidden" id="schRgtrCd--${pageName}" name="schRgtrCd" />
|
|
|
|
|
<input type="text" class="form-control w-px-160" id="schRgtrNm--${pageName}" name="schRgtrNm" />
|
|
|
|
|
<button type="button" class="btn btn-sm btn-outline-dark" id="btnFindUser--${pageName}" title="사용자 검색">검색</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
@ -261,7 +271,7 @@
|
|
|
|
|
<div class="card-datatable text-nowrap d-inline-flex">
|
|
|
|
|
<div id="sameVehicleInspectionMain_Table_0_wrapper--${pageName}"
|
|
|
|
|
class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
|
<div id="sameVehicleInspectionMain-responsive--${pageName}"
|
|
|
|
|
<div id="sameVehicleInspectionMain-responsive--${pageName}"
|
|
|
|
|
class="table-responsive ox-scroll oy-scroll h-px-400 w-px-350">
|
|
|
|
|
<table id="sameVehicleInspectionMain_Table_0--${pageName}"
|
|
|
|
|
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
|
|
|
|
@ -297,10 +307,10 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="card-datatable text-nowrap d-inline-flex ms-3">
|
|
|
|
|
<div id="sameVehicleInspectionSub_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
|
<div id="sameVehicleInspectionSub-responsive--${pageName}"
|
|
|
|
|
<div id="sameVehicleInspectionSub-responsive--${pageName}"
|
|
|
|
|
class="table-responsive ox-scroll oy-scroll h-px-400 w-px-1000">
|
|
|
|
|
<table id="sameVehicleInspectionSub_Table_0--${pageName}"
|
|
|
|
|
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
|
|
|
|
@ -360,12 +370,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="content-backdrop fade"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -392,8 +399,8 @@ $(document).ready(function(){
|
|
|
|
|
$P.photoInspectionControl = new DatasetControl({
|
|
|
|
|
dataGetter : obj => obj["List"], appendData:true,
|
|
|
|
|
keymapper : info => info ? info.CRDN_ID : "",
|
|
|
|
|
urls : {
|
|
|
|
|
load : ""
|
|
|
|
|
urls : {
|
|
|
|
|
load : ""
|
|
|
|
|
},
|
|
|
|
|
formats: {
|
|
|
|
|
CRDN_YMD_TM : datetimeFormat,
|
|
|
|
@ -412,22 +419,22 @@ $(document).ready(function(){
|
|
|
|
|
$P.sameVehicleMainControl = new DatasetControl({
|
|
|
|
|
dataGetter : obj => obj["List"], appendData:true,
|
|
|
|
|
keymapper : info => info ? info.CRDN_ID_LIST : "",
|
|
|
|
|
urls : {
|
|
|
|
|
load : ""
|
|
|
|
|
urls : {
|
|
|
|
|
load : ""
|
|
|
|
|
},
|
|
|
|
|
formats: {
|
|
|
|
|
CRDN_CNT : numberFormat,
|
|
|
|
|
FFNLG_CRDN_AMT : numberFormat
|
|
|
|
|
formats: {
|
|
|
|
|
CRDN_CNT : numberFormat,
|
|
|
|
|
FFNLG_CRDN_AMT : numberFormat
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$P.sameVehicleMainControl.defaultFetchSize = FETCH_XS;
|
|
|
|
|
$P.sameVehicleMainControl.untilPageNum = 0;
|
|
|
|
|
$P.sameVehicleMainControl.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleSubControl = new DatasetControl({
|
|
|
|
|
dataGetter : obj => obj["List"],
|
|
|
|
|
keymapper : info => info ? info.CRDN_ID : "",
|
|
|
|
|
urls : {
|
|
|
|
|
urls : {
|
|
|
|
|
load : ""
|
|
|
|
|
},
|
|
|
|
|
formats: {
|
|
|
|
@ -437,7 +444,7 @@ $(document).ready(function(){
|
|
|
|
|
FFNLG_CRDN_AMT : numberFormat
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.photoInspectionControl.getNext = (key) => {
|
|
|
|
|
|
|
|
|
|
var ds = $P.photoInspectionControl.dataset.getDataset();
|
|
|
|
@ -457,7 +464,7 @@ $(document).ready(function(){
|
|
|
|
|
var t = $P.getGridTemplate("photoInspection");
|
|
|
|
|
var trs = Apply.fromDataset.getTbody($P.photoInspectionControl.dataset, t.found, t.notFound, t.replacer);
|
|
|
|
|
$P.renderInspectionDataList(obj["Total"], $P.photoInspectionControl.dataset.length, trs, "photoInspection");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Apply.fromDataset.paging($P.photoInspectionControl.dataset, obj, "photoInspectionPaging--${pageName}");
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -475,7 +482,7 @@ $(document).ready(function(){
|
|
|
|
|
nextDataKey = nextData != null ? nextData.CRDN_ID : "";
|
|
|
|
|
nextDataVhrno = nextData != null ? nextData.VHRNO : "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.showPhoto(dataKey,nextDataKey,curDataVhrno,nextDataVhrno);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -484,14 +491,14 @@ $(document).ready(function(){
|
|
|
|
|
var t = $P.getGridTemplate("sameVehicleInspectionMain");
|
|
|
|
|
var trs = Apply.fromDataset.getTbody($P.sameVehicleMainControl.dataset, t.found, t.notFound, t.replacer);
|
|
|
|
|
$P.renderInspectionDataList(obj["Total"], $P.sameVehicleMainControl.dataset.length, trs, "sameVehicleInspectionMain");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Apply.fromDataset.paging($P.sameVehicleMainControl.dataset, obj, "sameVehicleInspectionMainPaging--${pageName}");
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleMainControl.dataset.onCurrentChange = (dataItem) => {
|
|
|
|
|
Apply.fromDataset.currentRow($P.sameVehicleMainControl.dataset, dataItem, $("#sameVehicleInspectionMainTbody--${pageName}")[0]);
|
|
|
|
|
if(dataItem){
|
|
|
|
|
$P.searchDetailInspectionDataList(dataItem.data["CRDN_ID_LIST"]);
|
|
|
|
|
$P.searchDetailInspectionDataList(dataItem.data["CRDN_ID_LIST"]);
|
|
|
|
|
} else {
|
|
|
|
|
$("#sameVehicleInspectionSubTbody--${pageName}").html("");
|
|
|
|
|
}
|
|
|
|
@ -519,12 +526,13 @@ $(document).ready(function(){
|
|
|
|
|
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
|
|
|
|
|
|
|
|
|
|
$("#byOutput--${pageName}").val("동적 검색");
|
|
|
|
|
$("#schRgtrNm--${pageName}").prop("readonly", true); // 사용자 이름
|
|
|
|
|
$('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-7).date);
|
|
|
|
|
$('#schCrdnYmdTo--${pageName}').datepicker('setDate', TODAY());
|
|
|
|
|
$P.photoInspectionControl.dataset.setData([]);
|
|
|
|
|
$P.sameVehicleMainControl.dataset.setData([]);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnResetAndChangeBiz = (taskSeCd) => {
|
|
|
|
|
$P.fnReset();
|
|
|
|
|
$P.photoInspectionControl.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn02/020/list.do");
|
|
|
|
@ -555,7 +563,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.searchInspectionList = () => {
|
|
|
|
|
switch ($P.currentDisplay) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
@ -571,7 +579,7 @@ $(document).ready(function(){
|
|
|
|
|
default: break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.searchDetailInspectionDataList = (dataKey) => {
|
|
|
|
|
$P.sameVehicleSubControl.query = {};
|
|
|
|
|
$P.sameVehicleSubControl.query.inspectionDataType = "sameVehicleSub";
|
|
|
|
@ -591,7 +599,7 @@ $(document).ready(function(){
|
|
|
|
|
default: break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.refreshInspectionList = () => {
|
|
|
|
|
switch ($P.currentDisplay) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
@ -601,22 +609,22 @@ $(document).ready(function(){
|
|
|
|
|
key : $P.photoInspectionControl.dataset.getCurrent()["CRDN_ID"],
|
|
|
|
|
index : $P.photoInspectionControl.dataset.getCurrent()["ROW_NUM"] - 1
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Apply.fromDatasetControl.load($P.photoInspectionControl, 1).then((resp)=>{
|
|
|
|
|
Apply.toDataset.set($P.photoInspectionControl.dataset, resp);
|
|
|
|
|
$P.photoInspectionControl.dataset.onDatasetChange(resp);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.photoInspectionControl.untilPageNum != 0){
|
|
|
|
|
$P.photoInspectionControl.query.fetchSize = $P.photoInspectionControl.defaultFetchSize;
|
|
|
|
|
$P.photoInspectionControl.query.pageNum = $P.photoInspectionControl.untilPageNum;
|
|
|
|
|
$P.photoInspectionControl.untilPageNum = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.photoInspectionControl.beforeCurrent != null){
|
|
|
|
|
var beforeCurrentKey = $P.photoInspectionControl.beforeCurrent.key;
|
|
|
|
|
var beforeCurrentIndex = $P.photoInspectionControl.beforeCurrent.index;
|
|
|
|
|
$P.photoInspectionControl.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!$P.photoInspectionControl.dataset.empty){
|
|
|
|
|
var info = $P.photoInspectionControl.dataset.getData(beforeCurrentKey);
|
|
|
|
|
|
|
|
|
@ -630,9 +638,9 @@ $(document).ready(function(){
|
|
|
|
|
} else {
|
|
|
|
|
info = $P.photoInspectionControl.dataset.getDataset()[beforeCurrentIndex];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.photoInspectionControl.dataset.setCurrent(info["CRDN_ID"], true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -645,17 +653,17 @@ $(document).ready(function(){
|
|
|
|
|
key : $P.sameVehicleMainControl.dataset.getCurrent()["CRDN_ID_LIST"],
|
|
|
|
|
index : $P.sameVehicleMainControl.dataset.getCurrent()["ROW_NUM"] - 1
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Apply.fromDatasetControl.load($P.sameVehicleMainControl, 1).then((resp)=>{
|
|
|
|
|
Apply.toDataset.set($P.sameVehicleMainControl.dataset, resp);
|
|
|
|
|
$P.sameVehicleMainControl.dataset.onDatasetChange(resp);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.sameVehicleMainControl.untilPageNum != 0){
|
|
|
|
|
$P.sameVehicleMainControl.query.fetchSize = $P.sameVehicleMainControl.defaultFetchSize;
|
|
|
|
|
$P.sameVehicleMainControl.query.pageNum = $P.sameVehicleMainControl.untilPageNum;
|
|
|
|
|
$P.sameVehicleMainControl.untilPageNum = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.sameVehicleMainControl.beforeCurrent != null){
|
|
|
|
|
var beforeCurrentKey = $P.sameVehicleMainControl.beforeCurrent.key;
|
|
|
|
|
var beforeCurrentIndex = $P.sameVehicleMainControl.beforeCurrent.index;
|
|
|
|
@ -679,14 +687,14 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
default: break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnExcelDown = async() => {
|
|
|
|
|
if($P.currentDisplay == "photoInspection"){
|
|
|
|
|
if($P.photoInspectionControl.dataset.empty){
|
|
|
|
@ -708,10 +716,10 @@ $(document).ready(function(){
|
|
|
|
|
alert("조회된 자료가 없습니다.");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var excelTarget = await dialog2("저장할 자료를 선택하세요.","",
|
|
|
|
|
[{key:"main",value:"단속건수 엑셀저장"},{key:"sub",value:"상세내역 엑셀저장"},{key:"cancel",value:"취소"}]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(excelTarget == "main"){
|
|
|
|
|
|
|
|
|
|
var cellDefs = getCellDefs(
|
|
|
|
@ -735,14 +743,14 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.getGridTemplate = (gridType) => {
|
|
|
|
|
var notFound;
|
|
|
|
|
var found;
|
|
|
|
|
var replacer;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch (gridType) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
|
case "photoInspection":
|
|
|
|
|
notFound = [document.getElementById("photoInspectionNotFound--${pageName}").innerHTML]
|
|
|
|
|
found = document.getElementById("photoInspectionRow--${pageName}").innerHTML;
|
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
@ -750,30 +758,30 @@ $(document).ready(function(){
|
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');");
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionMain":
|
|
|
|
|
case "sameVehicleInspectionMain":
|
|
|
|
|
notFound = [document.getElementById("sameVehicleInspectionMainNotFound--${pageName}").innerHTML];
|
|
|
|
|
found = document.getElementById("sameVehicleInspectionMainRow--${pageName}").innerHTML;
|
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID_LIST") + "','sameVehicleInspectionMain');");
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionSub":
|
|
|
|
|
case "sameVehicleInspectionSub":
|
|
|
|
|
notFound = [document.getElementById("sameVehicleInspectionSubNotFound--${pageName}").innerHTML]
|
|
|
|
|
found = document.getElementById("sameVehicleInspectionSubRow--${pageName}").innerHTML;
|
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');")
|
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
found : found,
|
|
|
|
|
notFound : notFound,
|
|
|
|
|
replacer : replacer
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderInspectionDataList = (total, listLength, trs, renderDataType) => {
|
|
|
|
|
|
|
|
|
|
switch (renderDataType) {
|
|
|
|
@ -802,9 +810,9 @@ $(document).ready(function(){
|
|
|
|
|
//보안모드
|
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.clickInspectionDataList = (dataKey, gridType) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch (gridType) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
|
|
|
|
|
@ -812,7 +820,7 @@ $(document).ready(function(){
|
|
|
|
|
$("#photoInspectionTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
Apply.toDataset.current($P.photoInspectionControl.dataset, dataKey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var curDataVhrno = $P.photoInspectionControl.dataset.getData(dataKey)["VHRNO"];
|
|
|
|
|
var nextData = $P.photoInspectionControl.getNext(dataKey);
|
|
|
|
|
var nextDataKey = nextData != null ? nextData.CRDN_ID : "";
|
|
|
|
@ -824,9 +832,9 @@ $(document).ready(function(){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$("#sameVehicleInspectionMainTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Apply.toDataset.current($P.sameVehicleMainControl.dataset, dataKey);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.searchDetailInspectionDataList(dataKey);
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
@ -835,7 +843,7 @@ $(document).ready(function(){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$("#sameVehicleInspectionSubTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Apply.toDataset.current($P.sameVehicleSubControl.dataset, dataKey);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
@ -868,7 +876,7 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.showPhoto = (dataKey, nextDataKey, curDataVhrno, nextDataVhrno) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(dataKey == ""){
|
|
|
|
|
$("#curDataVhrno--${pageName}").html("");
|
|
|
|
|
$("#nextDataVhrno--${pageName}").html("");
|
|
|
|
@ -876,10 +884,10 @@ $(document).ready(function(){
|
|
|
|
|
$("#nextDataFiles--${pageName}").html("");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#curDataVhrno--${pageName}").html(curDataVhrno);
|
|
|
|
|
$("#nextDataVhrno--${pageName}").html(nextDataVhrno);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
url:"file/list.do",
|
|
|
|
|
data: {
|
|
|
|
@ -909,7 +917,7 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.openLevyExclPop = (levyExclSeCd) => {
|
|
|
|
|
var info = "";
|
|
|
|
|
|
|
|
|
@ -942,8 +950,8 @@ $(document).ready(function(){
|
|
|
|
|
if((typeof resp) != "string"){
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content : resp.message,
|
|
|
|
|
init : function(){
|
|
|
|
|
focusClose();
|
|
|
|
|
init : function(){
|
|
|
|
|
focusClose();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
@ -988,8 +996,8 @@ $(document).ready(function(){
|
|
|
|
|
if((typeof resp) != "string"){
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content : resp.message,
|
|
|
|
|
init : function(){
|
|
|
|
|
focusClose();
|
|
|
|
|
init : function(){
|
|
|
|
|
focusClose();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
@ -1011,12 +1019,39 @@ $(document).ready(function(){
|
|
|
|
|
if($("#levyExclDialog--${pageName}").length > 0){
|
|
|
|
|
dialog.close("levyExclDialog--${pageName}");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(saved){
|
|
|
|
|
$P.refreshInspectionList();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 사용자검색 callback
|
|
|
|
|
$P.callbackFindUser = (userId, userNm) => {
|
|
|
|
|
$("#schRgtrCd--${pageName}").val(userId); // 사용자 ID
|
|
|
|
|
$("#schRgtrNm--${pageName}").val(userNm); // 사용자 명
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 사용자검색 버튼 클릭 이벤트
|
|
|
|
|
$P.fnGetFindUser = () => {
|
|
|
|
|
let params = {
|
|
|
|
|
openerPageName: "${pageName}"
|
|
|
|
|
, callbackFuncName: "pageObject['${pageName}']['callbackFindUser']"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
url: wctx.url("/user/user02/010/main.do")
|
|
|
|
|
, data: params || {}
|
|
|
|
|
, success: resp => {
|
|
|
|
|
dialog.open({
|
|
|
|
|
id: "userDialog"
|
|
|
|
|
, title: "사용자 검색"
|
|
|
|
|
, content: resp
|
|
|
|
|
, size: "lg"
|
|
|
|
|
, init: () => { setDialogZindex(); }
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* element.on
|
|
|
|
@ -1043,12 +1078,11 @@ $(document).ready(function(){
|
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => $P.searchInspectionList()); //검색버튼
|
|
|
|
|
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
|
|
|
|
|
$("#term--${pageName}").onEnterPress($P.searchInspectionList);
|
|
|
|
|
|
|
|
|
|
$('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown());
|
|
|
|
|
|
|
|
|
|
$('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown());
|
|
|
|
|
$("#btnFindUser--${pageName}").on("click", () => $P.fnGetFindUser()); // 사용자 검색
|
|
|
|
|
$("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop("1"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fnMakeResizableTable($("#photoInspection-responsive--${pageName}")[0]);
|
|
|
|
|
fnMakeResizableTable($("#sameVehicleInspectionMain-responsive--${pageName}")[0]);
|
|
|
|
|
fnMakeResizableTable($("#sameVehicleInspectionSub-responsive--${pageName}")[0]);
|
|
|
|
|