|
|
|
@ -14,10 +14,16 @@
|
|
|
|
|
<div>
|
|
|
|
|
<!-- 상단 버튼 -->
|
|
|
|
|
<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">
|
|
|
|
|
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색">검색</button>
|
|
|
|
|
<button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀">엑셀</button>
|
|
|
|
|
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색" onclick="fnSearchList${pageName}();">
|
|
|
|
|
검색
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();">
|
|
|
|
|
엑셀
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- / 상단 버튼 -->
|
|
|
|
@ -35,10 +41,8 @@
|
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
|
<c:forEach items="${FIM054List}" var="item">
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" class="form-check-input" id="rdoTaskSeCd--${pageName}" name="taskSeCd" alt="업무구분"
|
|
|
|
|
value="${item.code}"
|
|
|
|
|
onchange="pageObject['${pageName}'].fnResetAndChangeBiz(this.value);"
|
|
|
|
|
required>
|
|
|
|
|
<input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분"
|
|
|
|
|
value="${item.code}" onchange="fnResetAndChangeBiz${pageName}(this.value);">
|
|
|
|
|
${item.value}
|
|
|
|
|
</label>
|
|
|
|
|
</c:forEach>
|
|
|
|
@ -46,8 +50,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 재등록일자 -->
|
|
|
|
|
<div class="col-1 text-end">
|
|
|
|
|
<select class="form-select" id="schDateOpt--${pageName}" name="schDateOpt">
|
|
|
|
|
<option value="crdnRegYmd">재등록일자</option>
|
|
|
|
|
<select class="form-select text-end" id="schDateOpt--${pageName}" name="schDateOpt">
|
|
|
|
|
<option value="reRegYmd">재등록일자</option>
|
|
|
|
|
<option value="crdnYmd">단속일자</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-5">
|
|
|
|
@ -66,17 +71,19 @@
|
|
|
|
|
<label class="form-label fw-bold form-search-title">차량번호</label>
|
|
|
|
|
</div>
|
|
|
|
|
<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 class="col-1 text-end">
|
|
|
|
|
<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 class="col-3">
|
|
|
|
|
<input type="text" class="form-control" id="term--${pageName}" name="term" />
|
|
|
|
|
<div class="col-9">
|
|
|
|
|
<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 class="col-8">
|
|
|
|
|
<div class="col-2">
|
|
|
|
|
<!-- 상세 검색조건 버튼 -->
|
|
|
|
|
<span class="flr">
|
|
|
|
|
<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 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">
|
|
|
|
|
<select class="form-select" id="schDetailUserOpt--${pageName}" name="schDetailUserOpt">
|
|
|
|
@ -99,7 +124,7 @@
|
|
|
|
|
<option value="mdfr">수정자명</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-11">
|
|
|
|
|
<div class="col-5">
|
|
|
|
|
<input type="text" class="form-control" id="schDetailUserNm--${pageName}" name="schDetailUserNm" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -119,7 +144,15 @@
|
|
|
|
|
</div>
|
|
|
|
|
<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>
|
|
|
|
|
</div>
|
|
|
|
@ -132,46 +165,49 @@
|
|
|
|
|
<table class="datatables-ajax table table-bordered dataTable no-footer"
|
|
|
|
|
id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr id="theadTr--${pageName}" style="text-align:center;">
|
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 24px;">NO.</th>
|
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 24px;">
|
|
|
|
|
<tr id="theadTr--${pageName}"
|
|
|
|
|
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
|
|
|
|
|
<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);">
|
|
|
|
|
</th>
|
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">등록일자</th>
|
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">단속구분명</th>
|
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">단속일시</th>
|
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">차량번호</th>
|
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">단속장소</th>
|
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">과태료금액</th>
|
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">첨부파일수</th>
|
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">단속상태명</th>
|
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">등록일시</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 onclick="searchFromGridTitle('CRDN_REG_SE_NM', this.innerText, 'codeValue', 'FIM026');">단속등록구분명</th>
|
|
|
|
|
<th onclick="searchFromGridTitle('ETC_CN', this.innerText, 'match', 'part');">기타내용</th>
|
|
|
|
|
<th onclick="searchFromGridTitle('CRDN_YMD', this.innerText, 'ymd', '');">단속일시</th>
|
|
|
|
|
<th onclick="searchFromGridTitle('VHRNO', this.innerText, 'match', 'part');">차량번호</th>
|
|
|
|
|
<th onclick="searchFromGridTitle('CRDN_STDG_NM', this.innerText, 'match', 'part');">법정동</th>
|
|
|
|
|
<th onclick="searchFromGridTitle('CRDN_PLC', this.innerText, 'match', 'part');">단속장소</th>
|
|
|
|
|
<th onclick="searchFromGridTitle('FFNLG_AMT', this.innerText, 'match', 'part');">과태료금액</th>
|
|
|
|
|
<th onclick="searchFromGridTitle('CRDN_STTS_NM', this.innerText, 'codeValue', 'FIM010');">처리상태명</th>
|
|
|
|
|
<th>등록일시</th>
|
|
|
|
|
<th>등록사용자</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody id="tbody--${pageName}">
|
|
|
|
|
</tbody>
|
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
|
<tr data-key="{RE_REG_ID}">
|
|
|
|
|
<td style="text-align:center;" {onclick} {ondblclick}>{ROW_NUM}</td>
|
|
|
|
|
<td style="text-align:center;">
|
|
|
|
|
<input value="{RE_REG_ID}" onchange="${pageName}Control.select('{RE_REG_ID}', this.checked);" type="checkbox" class="form-check-input">
|
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
|
|
|
|
|
<td class="text-center">
|
|
|
|
|
<input type="checkbox" class="form-check-input" value="{RE_REG_ID}" onchange="${pageName}Control.select('{RE_REG_ID}', this.checked);">
|
|
|
|
|
</td>
|
|
|
|
|
<td style="text-align:center;" {onclick} {ondblclick}>{CRDN_REG_YMD}</td>
|
|
|
|
|
<td style="text-align:center;" {onclick} {ondblclick}>{CRDN_INPT_SE_NM}</td>
|
|
|
|
|
<td style="text-align:center;" {onclick} {ondblclick}>{CRDN_YMD_TM}</td>
|
|
|
|
|
<td style="text-align:left;" {onclick} {ondblclick}>{VHRNO}</td>
|
|
|
|
|
<td style="text-align:left;" {onclick} {ondblclick}>{CRDN_PLC}</td>
|
|
|
|
|
<td style="text-align:right;" {onclick} {ondblclick}>{FFNLG_AMT}</td>
|
|
|
|
|
<td style="text-align:right;" {onclick} {ondblclick}>{ATCH_FILE_CNT}</td>
|
|
|
|
|
<td style="text-align:center;" {onclick} {ondblclick}>{CRDN_STTS_NM}</td>
|
|
|
|
|
<td style="text-align:center;" {onclick} {ondblclick}>{REG_DT}</td>
|
|
|
|
|
<td style="text-align:center;" {onclick} {ondblclick}>{RGTR}</td>
|
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RE_REG_YMD}</td>
|
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_REG_SE_NM}</td>
|
|
|
|
|
<td class="text-start" onclick="{onclick}" ondblclick="{ondblclick}">{ETC_CN}</td>
|
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_YMD_TM}</td>
|
|
|
|
|
<td class="text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VHRNO}</td>
|
|
|
|
|
<td class="text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STDG_NM}</td>
|
|
|
|
|
<td class="text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_PLC}</td>
|
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_AMT}</td>
|
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STTS_NM}</td>
|
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{REG_DT}</td>
|
|
|
|
|
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RGTR}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
|
<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>
|
|
|
|
|
</template>
|
|
|
|
|
</table>
|
|
|
|
@ -193,70 +229,43 @@
|
|
|
|
|
</div>
|
|
|
|
|
<!-- Content wrapper -->
|
|
|
|
|
|
|
|
|
|
<!-- js -->
|
|
|
|
|
<script src="<c:url value="/resources/js/fims/excl/excl03010.js?${ver}"/>"></script>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* Global Variable
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
// Control 생성
|
|
|
|
|
var ${pageName}Control = new CrdnReControl("${urlPrefix}");
|
|
|
|
|
// URL
|
|
|
|
|
var prefixUrl = "/excl/excl03";
|
|
|
|
|
// 공통 코드
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* 초기 셋팅
|
|
|
|
|
* DatasetControl
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
// 검색조건 초기값 셋팅
|
|
|
|
|
function initSearch${pageName}() {
|
|
|
|
|
// 업무구분
|
|
|
|
|
let defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
|
|
|
|
|
|
|
|
|
|
// 달력 초기화
|
|
|
|
|
initDatepicker("frmSearch--${pageName}");
|
|
|
|
|
$("#schDateFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-365).date);
|
|
|
|
|
$("#schDateTo--${pageName}").datepicker("setDate", new Date());
|
|
|
|
|
var ${pageName}Control = new DatasetControl({
|
|
|
|
|
prefix : "crdnReReg"
|
|
|
|
|
, prefixName : "단속재등록"
|
|
|
|
|
, infoSize : "lg"
|
|
|
|
|
, keymapper : info => info ? info.RE_REG_ID : ""
|
|
|
|
|
, dataGetter : obj => obj.crdnReRegList
|
|
|
|
|
, appendData : true
|
|
|
|
|
, urls : {
|
|
|
|
|
load : wctx.url(prefixUrl + "/010/list.do") // 검색
|
|
|
|
|
, 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") // 자료 삭제
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
function setEvent${pageName}() {
|
|
|
|
|
// 버튼 이벤트
|
|
|
|
|
$("#btnSearch--${pageName}").on("click", () => searchList${pageName}()); // 검색
|
|
|
|
|
$("#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);
|
|
|
|
|
, formats : {
|
|
|
|
|
RE_REG_YMD : dateFormat
|
|
|
|
|
, CRDN_YMD_TM : datetimeFormat
|
|
|
|
|
, FFNLG_AMT : numberFormat
|
|
|
|
|
, REG_DT : datetimeFormat
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* Event
|
|
|
|
|
* DatasetControl
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
// 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, 'onclick="${pageName}Control.setCurrent(\'' + dataItem.getValue("RE_REG_ID") + '\');"')
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}").html(trs.join());
|
|
|
|
|
$("th input[type='checkbox']").prop("checked", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Dataset 변경
|
|
|
|
|
// onDatasetChange 이벤트
|
|
|
|
|
${pageName}Control.onDatasetChange = obj => {
|
|
|
|
|
renderList${pageName}();
|
|
|
|
|
|
|
|
|
@ -270,7 +279,7 @@
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// DataTables 클릭 이벤트
|
|
|
|
|
// onCurrentChange 이벤트
|
|
|
|
|
${pageName}Control.onCurrentChange = item => {
|
|
|
|
|
//
|
|
|
|
|
if (!item) return;
|
|
|
|
@ -280,7 +289,7 @@
|
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// DataTables checkbox 클릭 이벤트
|
|
|
|
|
// onSelectionChange 이벤트
|
|
|
|
|
${pageName}Control.onSelectionChange = selected => {
|
|
|
|
|
let ${infoPrefix}List = ${pageName}Control.dataset;
|
|
|
|
|
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
|
|
|
|
@ -291,26 +300,84 @@
|
|
|
|
|
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) {
|
|
|
|
|
// pageNumber 값 확인
|
|
|
|
|
if (!pageNumber) pageNumber = 1;
|
|
|
|
|
// 초기 설정
|
|
|
|
|
function initForm${pageName}() {
|
|
|
|
|
// 달력 초기화
|
|
|
|
|
initDatepicker("frmSearch--${pageName}");
|
|
|
|
|
$("#schDateFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-365).date);
|
|
|
|
|
$("#schDateTo--${pageName}").datepicker("setDate", new Date());
|
|
|
|
|
|
|
|
|
|
${pageName}Control.query = fnGetParams${pageName}(); // 검색조건
|
|
|
|
|
${pageName}Control.query.orderBy = "RE_REG_ID"; // 정렬
|
|
|
|
|
${pageName}Control.dataset.clear();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
${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) {
|
|
|
|
|
$("tbody--${pageName}").html("");
|
|
|
|
|
function fnResetAndChangeBiz${pageName}(taskSeCd) {
|
|
|
|
|
fnReset${pageName}();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 검색 조건 파라미터 가져오기
|
|
|
|
@ -324,17 +391,60 @@
|
|
|
|
|
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 진입
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
// 검색조건 초기값 설정
|
|
|
|
|
initSearch${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
|
|
|
|
|