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