|
|
@ -14,10 +14,16 @@
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<!-- 상단 버튼 -->
|
|
|
|
<!-- 상단 버튼 -->
|
|
|
|
<div class="container-page-btn">
|
|
|
|
<div class="container-page-btn">
|
|
|
|
<button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화">초기화</button>
|
|
|
|
<button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화" onclick="fnReset${pageName}();">
|
|
|
|
|
|
|
|
초기화
|
|
|
|
|
|
|
|
</button>
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색">검색</button>
|
|
|
|
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색" onclick="fnSearchList${pageName}();">
|
|
|
|
<button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀">엑셀</button>
|
|
|
|
검색
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();">
|
|
|
|
|
|
|
|
엑셀
|
|
|
|
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- / 상단 버튼 -->
|
|
|
|
<!-- / 상단 버튼 -->
|
|
|
@ -35,10 +41,8 @@
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<c:forEach items="${FIM054List}" var="item">
|
|
|
|
<c:forEach items="${FIM054List}" var="item">
|
|
|
|
<label>
|
|
|
|
<label>
|
|
|
|
<input type="radio" class="form-check-input" id="rdoTaskSeCd--${pageName}" name="taskSeCd" alt="업무구분"
|
|
|
|
<input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분"
|
|
|
|
value="${item.code}"
|
|
|
|
value="${item.code}" onchange="fnResetAndChangeBiz${pageName}(this.value);">
|
|
|
|
onchange="pageObject['${pageName}'].fnResetAndChangeBiz(this.value);"
|
|
|
|
|
|
|
|
required>
|
|
|
|
|
|
|
|
${item.value}
|
|
|
|
${item.value}
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
</c:forEach>
|
|
|
|
</c:forEach>
|
|
|
@ -46,8 +50,9 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 재등록일자 -->
|
|
|
|
<!-- 재등록일자 -->
|
|
|
|
<div class="col-1 text-end">
|
|
|
|
<div class="col-1 text-end">
|
|
|
|
<select class="form-select" id="schDateOpt--${pageName}" name="schDateOpt">
|
|
|
|
<select class="form-select text-end" id="schDateOpt--${pageName}" name="schDateOpt">
|
|
|
|
<option value="crdnRegYmd">재등록일자</option>
|
|
|
|
<option value="reRegYmd">재등록일자</option>
|
|
|
|
|
|
|
|
<option value="crdnYmd">단속일자</option>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-5">
|
|
|
|
<div class="col-5">
|
|
|
@ -66,17 +71,19 @@
|
|
|
|
<label class="form-label fw-bold form-search-title">차량번호</label>
|
|
|
|
<label class="form-label fw-bold form-search-title">차량번호</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-5">
|
|
|
|
<div class="col-5">
|
|
|
|
<input type="text" class="form-control" id="schVhrno--${pageName}" name="schVhrno" />
|
|
|
|
<input type="text" class="form-control w-px-150" id="schVhrno--${pageName}" name="schVhrno" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 동적검색 -->
|
|
|
|
<!-- 동적검색 -->
|
|
|
|
<div class="col-1 text-end">
|
|
|
|
<div class="col-1 text-end">
|
|
|
|
<input type="hidden" id="by--${pageName}" name="by" />
|
|
|
|
<input type="hidden" id="by--${pageName}" name="by" />
|
|
|
|
<input type="text" class="form-control w-100 text-end" id="byOutput--${pageName}" value="동적 검색" readonly />
|
|
|
|
<input type="text" class="form-control w-px-120 text-end" id="byOutput--${pageName}" value="동적 검색" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-3">
|
|
|
|
<div class="col-9">
|
|
|
|
<input type="text" class="form-control" id="term--${pageName}" name="term" />
|
|
|
|
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
|
|
|
|
|
|
|
|
<input type="hidden" id="subOption--${pageName}" name="subOption" />
|
|
|
|
|
|
|
|
<input type="text" class="form-control w-px-250" id="term--${pageName}" name="term" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-8">
|
|
|
|
<div class="col-2">
|
|
|
|
<!-- 상세 검색조건 버튼 -->
|
|
|
|
<!-- 상세 검색조건 버튼 -->
|
|
|
|
<span class="flr">
|
|
|
|
<span class="flr">
|
|
|
|
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
|
|
|
|
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
|
|
|
@ -91,7 +98,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 상세 조건 -->
|
|
|
|
<!-- 상세 조건 -->
|
|
|
|
<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 g-1">
|
|
|
|
|
|
|
|
<!-- 등록일자, 수정일자 -->
|
|
|
|
|
|
|
|
<div class="col-1 text-end">
|
|
|
|
|
|
|
|
<select class="form-select" id="schRegDateOpt--${pageName}" name="schRegDateOpt">
|
|
|
|
|
|
|
|
<option value="regDt">등록일자</option>
|
|
|
|
|
|
|
|
<option value="mdfcnDt">수정일자</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-5">
|
|
|
|
|
|
|
|
<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" 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>
|
|
|
|
<!-- 등록자명, 수정자명 -->
|
|
|
|
<!-- 등록자명, 수정자명 -->
|
|
|
|
<div class="col-1 text-end">
|
|
|
|
<div class="col-1 text-end">
|
|
|
|
<select class="form-select" id="schDetailUserOpt--${pageName}" name="schDetailUserOpt">
|
|
|
|
<select class="form-select" id="schDetailUserOpt--${pageName}" name="schDetailUserOpt">
|
|
|
@ -99,7 +124,7 @@
|
|
|
|
<option value="mdfr">수정자명</option>
|
|
|
|
<option value="mdfr">수정자명</option>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-11">
|
|
|
|
<div class="col-5">
|
|
|
|
<input type="text" class="form-control" id="schDetailUserNm--${pageName}" name="schDetailUserNm" />
|
|
|
|
<input type="text" class="form-control" id="schDetailUserNm--${pageName}" name="schDetailUserNm" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -119,7 +144,15 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
<a href="#" class="btn btn-blue" id="" title="재등록 이전 단속정보 보기">재등록 이전 단속정보 보기</a>
|
|
|
|
<button class="btn btn-primary" id="btnCreateNotLevy--${pageName}" title="등록" onclick="fnCreate${pageName}();">
|
|
|
|
|
|
|
|
등록
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button class="btn btn-primary" id="btnRemove--${pageName}" title="삭제" onclick="fnRemove${pageName}();">
|
|
|
|
|
|
|
|
삭제
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button class="btn btn-primary" id="btnBfrCrdnTotalInfo--${pageName}" title="이전 단속정보 보기" onclick="fnBfrCrdnTotalInfo${pageName}();">
|
|
|
|
|
|
|
|
이전 단속정보 보기
|
|
|
|
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -132,46 +165,49 @@
|
|
|
|
<table class="datatables-ajax table table-bordered dataTable no-footer"
|
|
|
|
<table class="datatables-ajax table table-bordered dataTable no-footer"
|
|
|
|
id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
|
|
|
|
id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<tr id="theadTr--${pageName}" style="text-align:center;">
|
|
|
|
<tr id="theadTr--${pageName}"
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 24px;">NO.</th>
|
|
|
|
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 24px;">
|
|
|
|
<th class="sorting" style="width: 24px;">NO.</th>
|
|
|
|
|
|
|
|
<th class="sorting" style="width: 24px;">
|
|
|
|
<input type="checkbox" class="form-check-input" onchange="${pageName}Control.select(this.checked);">
|
|
|
|
<input type="checkbox" class="form-check-input" onchange="${pageName}Control.select(this.checked);">
|
|
|
|
</th>
|
|
|
|
</th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">등록일자</th>
|
|
|
|
<th onclick="searchFromGridTitle('RE_REG_YMD', this.innerText, 'ymd', '');">재등록일자</th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">단속구분명</th>
|
|
|
|
<th onclick="searchFromGridTitle('CRDN_REG_SE_NM', this.innerText, 'codeValue', 'FIM026');">단속등록구분명</th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">단속일시</th>
|
|
|
|
<th onclick="searchFromGridTitle('ETC_CN', this.innerText, 'match', 'part');">기타내용</th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">차량번호</th>
|
|
|
|
<th onclick="searchFromGridTitle('CRDN_YMD', this.innerText, 'ymd', '');">단속일시</th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">단속장소</th>
|
|
|
|
<th onclick="searchFromGridTitle('VHRNO', this.innerText, 'match', 'part');">차량번호</th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">과태료금액</th>
|
|
|
|
<th onclick="searchFromGridTitle('CRDN_STDG_NM', this.innerText, 'match', 'part');">법정동</th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">첨부파일수</th>
|
|
|
|
<th onclick="searchFromGridTitle('CRDN_PLC', this.innerText, 'match', 'part');">단속장소</th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">단속상태명</th>
|
|
|
|
<th onclick="searchFromGridTitle('FFNLG_AMT', this.innerText, 'match', 'part');">과태료금액</th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">등록일시</th>
|
|
|
|
<th onclick="searchFromGridTitle('CRDN_STTS_NM', this.innerText, 'codeValue', 'FIM010');">처리상태명</th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">등록사용자</th>
|
|
|
|
<th>등록일시</th>
|
|
|
|
|
|
|
|
<th>등록사용자</th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody id="tbody--${pageName}">
|
|
|
|
<tbody id="tbody--${pageName}">
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
<tr data-key="{RE_REG_ID}">
|
|
|
|
<tr data-key="{RE_REG_ID}">
|
|
|
|
<td style="text-align:center;" {onclick} {ondblclick}>{ROW_NUM}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
|
|
|
|
<td style="text-align:center;">
|
|
|
|
<td class="text-center">
|
|
|
|
<input value="{RE_REG_ID}" onchange="${pageName}Control.select('{RE_REG_ID}', this.checked);" type="checkbox" class="form-check-input">
|
|
|
|
<input type="checkbox" class="form-check-input" value="{RE_REG_ID}" onchange="${pageName}Control.select('{RE_REG_ID}', this.checked);">
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td style="text-align:center;" {onclick} {ondblclick}>{CRDN_REG_YMD}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RE_REG_YMD}</td>
|
|
|
|
<td style="text-align:center;" {onclick} {ondblclick}>{CRDN_INPT_SE_NM}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_REG_SE_NM}</td>
|
|
|
|
<td style="text-align:center;" {onclick} {ondblclick}>{CRDN_YMD_TM}</td>
|
|
|
|
<td class="text-start" onclick="{onclick}" ondblclick="{ondblclick}">{ETC_CN}</td>
|
|
|
|
<td style="text-align:left;" {onclick} {ondblclick}>{VHRNO}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_YMD_TM}</td>
|
|
|
|
<td style="text-align:left;" {onclick} {ondblclick}>{CRDN_PLC}</td>
|
|
|
|
<td class="text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VHRNO}</td>
|
|
|
|
<td style="text-align:right;" {onclick} {ondblclick}>{FFNLG_AMT}</td>
|
|
|
|
<td class="text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STDG_NM}</td>
|
|
|
|
<td style="text-align:right;" {onclick} {ondblclick}>{ATCH_FILE_CNT}</td>
|
|
|
|
<td class="text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_PLC}</td>
|
|
|
|
<td style="text-align:center;" {onclick} {ondblclick}>{CRDN_STTS_NM}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_AMT}</td>
|
|
|
|
<td style="text-align:center;" {onclick} {ondblclick}>{REG_DT}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STTS_NM}</td>
|
|
|
|
<td style="text-align:center;" {onclick} {ondblclick}>{RGTR}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{REG_DT}</td>
|
|
|
|
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RGTR}</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<tr class="odd">
|
|
|
|
<tr class="odd">
|
|
|
|
<td valign="top" colspan="14" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
<td valign="top" colspan="13" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
@ -193,70 +229,43 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Content wrapper -->
|
|
|
|
<!-- Content wrapper -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- js -->
|
|
|
|
|
|
|
|
<script src="<c:url value="/resources/js/fims/excl/excl03010.js?${ver}"/>"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Global Variable
|
|
|
|
* Global Variable
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// Control 생성
|
|
|
|
// URL
|
|
|
|
var ${pageName}Control = new CrdnReControl("${urlPrefix}");
|
|
|
|
var prefixUrl = "/excl/excl03";
|
|
|
|
|
|
|
|
// 공통 코드
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 초기 셋팅
|
|
|
|
* DatasetControl
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 검색조건 초기값 셋팅
|
|
|
|
var ${pageName}Control = new DatasetControl({
|
|
|
|
function initSearch${pageName}() {
|
|
|
|
prefix : "crdnReReg"
|
|
|
|
// 업무구분
|
|
|
|
, prefixName : "단속재등록"
|
|
|
|
let defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
, infoSize : "lg"
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
|
|
|
|
, keymapper : info => info ? info.RE_REG_ID : ""
|
|
|
|
|
|
|
|
, dataGetter : obj => obj.crdnReRegList
|
|
|
|
// 달력 초기화
|
|
|
|
, appendData : true
|
|
|
|
initDatepicker("frmSearch--${pageName}");
|
|
|
|
, urls : {
|
|
|
|
$("#schDateFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-365).date);
|
|
|
|
load : wctx.url(prefixUrl + "/010/list.do") // 검색
|
|
|
|
$("#schDateTo--${pageName}").datepicker("setDate", new Date());
|
|
|
|
, getInfo : wctx.url(prefixUrl + "/020/info.do") // 등록 및 수정 팝업
|
|
|
|
|
|
|
|
, create : wctx.url(prefixUrl + "/020/create.do") // 신규 등록
|
|
|
|
|
|
|
|
, update : wctx.url(prefixUrl + "/020/update.do") // 자료 수정
|
|
|
|
|
|
|
|
, remove : wctx.url(prefixUrl + "/010/remove.do") // 자료 삭제
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
, formats : {
|
|
|
|
//
|
|
|
|
RE_REG_YMD : dateFormat
|
|
|
|
function setEvent${pageName}() {
|
|
|
|
, CRDN_YMD_TM : datetimeFormat
|
|
|
|
// 버튼 이벤트
|
|
|
|
, FFNLG_AMT : numberFormat
|
|
|
|
$("#btnSearch--${pageName}").on("click", () => searchList${pageName}()); // 검색
|
|
|
|
, REG_DT : datetimeFormat
|
|
|
|
$("#term--${pageName}").onEnterPress(() => searchList${pageName}()); // 동적 검색
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables 스크롤 이벤트
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}").scroll(function() {
|
|
|
|
|
|
|
|
let el = $(this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (el.scrollTop() == 0) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((el[0].scrollHeight - el.scrollTop() + 15) == el.outerHeight()) {
|
|
|
|
|
|
|
|
searchList${pageName}(${pageName}Control.query.pageNum + 1);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Event
|
|
|
|
* DatasetControl
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
// onDatasetChange 이벤트
|
|
|
|
function renderList${pageName}() {
|
|
|
|
|
|
|
|
let ${infoPrefix}List = ${pageName}Control.dataset;
|
|
|
|
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ?
|
|
|
|
|
|
|
|
[document.getElementById("${infoPrefix}NotFound--${pageName}").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
|
|
|
|
|
|
|
${infoPrefix}List.inStrings(
|
|
|
|
|
|
|
|
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
|
|
|
|
|
|
|
(str, dataItem) => str
|
|
|
|
|
|
|
|
.replace(/{onclick}/gi, 'onclick="${pageName}Control.setCurrent(\'' + dataItem.getValue("RE_REG_ID") + '\');"')
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
$("th input[type='checkbox']").prop("checked", false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Dataset 변경
|
|
|
|
|
|
|
|
${pageName}Control.onDatasetChange = obj => {
|
|
|
|
${pageName}Control.onDatasetChange = obj => {
|
|
|
|
renderList${pageName}();
|
|
|
|
renderList${pageName}();
|
|
|
|
|
|
|
|
|
|
|
@ -270,7 +279,7 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables 클릭 이벤트
|
|
|
|
// onCurrentChange 이벤트
|
|
|
|
${pageName}Control.onCurrentChange = item => {
|
|
|
|
${pageName}Control.onCurrentChange = item => {
|
|
|
|
//
|
|
|
|
//
|
|
|
|
if (!item) return;
|
|
|
|
if (!item) return;
|
|
|
@ -280,7 +289,7 @@
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables checkbox 클릭 이벤트
|
|
|
|
// onSelectionChange 이벤트
|
|
|
|
${pageName}Control.onSelectionChange = selected => {
|
|
|
|
${pageName}Control.onSelectionChange = selected => {
|
|
|
|
let ${infoPrefix}List = ${pageName}Control.dataset;
|
|
|
|
let ${infoPrefix}List = ${pageName}Control.dataset;
|
|
|
|
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
|
|
|
|
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
|
|
|
@ -291,26 +300,84 @@
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// $("#btnRemove${infoPrefix}s").prop("disabled", keys.length < 1);
|
|
|
|
$("#btnRemove--${pageName}").prop("disabled", keys.length < 1);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 개별총정보 dialog
|
|
|
|
|
|
|
|
${pageName}Control.getTotalInfo = (crdnId) => {
|
|
|
|
|
|
|
|
if (crdnId == undefined || crdnId == "") {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : wctx.url("/sprt/sprt01/020/info.do")
|
|
|
|
|
|
|
|
, data : { crdnId : crdnId }
|
|
|
|
|
|
|
|
, success : resp => {
|
|
|
|
|
|
|
|
resp = resp.replace(/infoPrefix/g, this.prefix)
|
|
|
|
|
|
|
|
.replace(/prefixName/g, this.prefixName)
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
id : ${pageName}Control.prefixed("dialog")
|
|
|
|
|
|
|
|
, title : "개별총정보"
|
|
|
|
|
|
|
|
, content : resp
|
|
|
|
|
|
|
|
, size : "xl"
|
|
|
|
|
|
|
|
// , init : () => ${pageName}Control.setInfo(info) // 개별총정보 다이얼로그에서 실행할 함수
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* function
|
|
|
|
*
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 검색
|
|
|
|
// 초기 설정
|
|
|
|
function searchList${pageName}(pageNumber) {
|
|
|
|
function initForm${pageName}() {
|
|
|
|
// pageNumber 값 확인
|
|
|
|
// 달력 초기화
|
|
|
|
if (!pageNumber) pageNumber = 1;
|
|
|
|
initDatepicker("frmSearch--${pageName}");
|
|
|
|
|
|
|
|
$("#schDateFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-365).date);
|
|
|
|
|
|
|
|
$("#schDateTo--${pageName}").datepicker("setDate", new Date());
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.query = fnGetParams${pageName}(); // 검색조건
|
|
|
|
${pageName}Control.dataset.clear();
|
|
|
|
${pageName}Control.query.orderBy = "RE_REG_ID"; // 정렬
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.load(pageNumber);
|
|
|
|
// 이벤트
|
|
|
|
|
|
|
|
function setEvent${pageName}() {
|
|
|
|
|
|
|
|
// DataTables 스크롤 이벤트
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}").scroll(function() {
|
|
|
|
|
|
|
|
let el = $(this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (el.scrollTop() == 0) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if ((el[0].scrollHeight - el.scrollTop() + 17) == el.outerHeight()) {
|
|
|
|
|
|
|
|
if ((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()) {
|
|
|
|
|
|
|
|
fnSearchList${pageName}(${pageName}Control.query.pageNum + 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
|
|
|
|
function renderList${pageName}() {
|
|
|
|
|
|
|
|
let ${infoPrefix}List = ${pageName}Control.dataset;
|
|
|
|
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ?
|
|
|
|
|
|
|
|
[document.getElementById("${infoPrefix}NotFound--${pageName}").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
|
|
|
|
|
|
|
${infoPrefix}List.inStrings(
|
|
|
|
|
|
|
|
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
|
|
|
|
|
|
|
(str, dataItem) => str
|
|
|
|
|
|
|
|
.replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("RE_REG_ID") + "');")
|
|
|
|
|
|
|
|
.replace(/{ondblclick}/gi, "${pageName}Control.getTotalInfo('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
$("th input[type='checkbox']").prop("checked", false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
|
|
|
* function
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
// 업무구분 변경
|
|
|
|
// 업무구분 변경
|
|
|
|
function fnResetAndChangeBiz(taskSeCd) {
|
|
|
|
function fnResetAndChangeBiz${pageName}(taskSeCd) {
|
|
|
|
$("tbody--${pageName}").html("");
|
|
|
|
fnReset${pageName}();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 검색 조건 파라미터 가져오기
|
|
|
|
// 검색 조건 파라미터 가져오기
|
|
|
@ -324,18 +391,61 @@
|
|
|
|
return formData;
|
|
|
|
return formData;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 초기화
|
|
|
|
|
|
|
|
function fnReset${pageName}() {
|
|
|
|
|
|
|
|
initForm${pageName}();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 검색
|
|
|
|
|
|
|
|
function fnSearchList${pageName}(pageNumber) {
|
|
|
|
|
|
|
|
// pageNumber 값 확인
|
|
|
|
|
|
|
|
if (!pageNumber) pageNumber = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.query = fnGetParams${pageName}(); // 검색조건
|
|
|
|
|
|
|
|
${pageName}Control.query.orderBy = "RE_REG_ID"; // 정렬
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.load(pageNumber);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 엑셀
|
|
|
|
|
|
|
|
function fnExcel${pageName}() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 삭제
|
|
|
|
|
|
|
|
function fnRemove${pageName}() {
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
|
|
|
content : "선택한 ${prefixName} 정보를 삭제하시겠습니까?"
|
|
|
|
|
|
|
|
, onOK : () => {
|
|
|
|
|
|
|
|
${pageName}Control.remove();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 이전 단속정보 보기
|
|
|
|
|
|
|
|
function fnBfrCrdnTotalInfo${pageName}() {
|
|
|
|
|
|
|
|
let bfrCrdnId = ${pageName}Control.dataset.getValue("BFR_CRDN_ID");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 개별총정보 dialog
|
|
|
|
|
|
|
|
${pageName}Control.getTotalInfo(bfrCrdnId);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* script 진입
|
|
|
|
* script 진입
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(document).ready(function() {
|
|
|
|
// 검색조건 초기값 설정
|
|
|
|
|
|
|
|
initSearch${pageName}();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 이벤트 설정
|
|
|
|
// 이벤트 설정
|
|
|
|
setEvent${pageName}();
|
|
|
|
setEvent${pageName}();
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.addData(${crdnRe});
|
|
|
|
// 업무구분 및 화면 초기 설정
|
|
|
|
|
|
|
|
let defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked", true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fnResetAndChangeBiz${pageName}(defaultBizValue);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 보안모드
|
|
|
|
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// #sourceURL=excl03010-main.jsp
|
|
|
|
// #sourceURL=excl03010-main.jsp
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|