|
|
|
@ -139,41 +139,38 @@
|
|
|
|
|
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" aria-describedby="DataTables_Table_0_info">
|
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
|
<tr name="theadTr" data-search-target="[data-doctx='${pageName}']">
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<template name="tmpltCols">
|
|
|
|
|
<th class="cmn" style="width: 72px;">No.</th>
|
|
|
|
|
<th class="cmn" style="width: 56px;"><input type="checkbox" class="form-check-input" name="gridAllCheckbox" onchange="pageObject['${pageName}'].dataTableCheckbox(this, this.checked);" /></th>
|
|
|
|
|
<th class="cmn" style="width: 160px;">업무구분</th>
|
|
|
|
|
<th class="cmn" style="width: 120px;">대상여부</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="FimsSupport.searchFromGridTitle('DMND_DT', this.innerText, 'ymd', '');">요청일시</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('RQSTR_NM', this.innerText, 'match', 'perfect');">요청자</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('CHG_APRV_STTS', this.innerText, 'codeValue', 'CMN010');">승인상태</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="FimsSupport.searchFromGridTitle('CHG_APRV_DT', this.innerText, 'ymd', '');">승인일시</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('CHG_AUTZR_NM', this.innerText, 'match', 'perfect');">승인자</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('CHG_APRV_RSN', this.innerText, 'match', 'part');">승인사유</th>
|
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="FimsSupport.searchFromGridTitle('ENT_NM', this.innerText, 'match', 'part');">기업명</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('ENT_REG_NO', this.innerText, 'match', 'part');">법인(사업자)번호</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="FimsSupport.searchFromGridTitle('CRDN_YMD', this.innerText, 'ymd', '');">단속일시</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('VHRNO', this.innerText, 'match', 'part');">자동차등록번호</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="FimsSupport.searchFromGridTitle('CTRT_BGNG_DT', this.innerText, 'ymd', '');">계약시작일시</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="FimsSupport.searchFromGridTitle('CTRT_END_DT', this.innerText, 'ymd', '');">계약종료일시</th>
|
|
|
|
|
<th class="cmn" style="width: 100px;" onclick="FimsSupport.searchFromGridTitle('HIRER_SE_CD', this.innerText, 'codeValue', 'FIM089');">임차인구분</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('HIRER_REG_NO', this.innerText, 'match', 'part');">임차인번호</th>
|
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="FimsSupport.searchFromGridTitle('HIRER_NM', this.innerText, 'match', 'part');">임차인명</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('HIRER_TELNO', this.innerText, 'match', 'part');">전화번호</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('HIRER_MBL_TELNO', this.innerText, 'match', 'part');">휴대전화번호</th>
|
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="FimsSupport.searchFromGridTitle('CRDN_STDG_NM', this.innerText, 'match', 'part');">단속법정동</th>
|
|
|
|
|
<th class="cmn" style="width: 280px;" onclick="FimsSupport.searchFromGridTitle('CRDN_PLC', this.innerText, 'match', 'part');">단속장소</th>
|
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="FimsSupport.searchFromGridTitle('FFNLG_CRDN_AMT', this.innerText, 'match', 'part');">단속원금</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('CRDN_STTS_CD', this.innerText, 'codeValue', 'FIM010');">처리상태</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;">등록일시</th>
|
|
|
|
|
<th class="cmn" style="width: 140px;">등록사용자</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;">수정일시</th>
|
|
|
|
|
<th class="cmn" style="width: 140px;">수정사용자</th>
|
|
|
|
|
<th class="cmn dummy-th"></th>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 72px;">No.</th>
|
|
|
|
|
<th class="cmn" style="width: 56px;"><input type="checkbox" class="form-check-input" name="gridAllCheckbox" onchange="pageObject['${pageName}'].dataTableCheckbox(this, this.checked);" /></th>
|
|
|
|
|
<th class="cmn" style="width: 160px;">업무구분</th>
|
|
|
|
|
<th class="cmn" style="width: 120px;">대상여부</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="FimsSupport.searchFromGridTitle('DMND_DT', this.innerText, 'ymd', '');">요청일시</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('RQSTR_NM', this.innerText, 'match', 'perfect');">요청자</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('CHG_APRV_STTS', this.innerText, 'codeValue', 'CMN010');">승인상태</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="FimsSupport.searchFromGridTitle('CHG_APRV_DT', this.innerText, 'ymd', '');">승인일시</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('CHG_AUTZR_NM', this.innerText, 'match', 'perfect');">승인자</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('CHG_APRV_RSN', this.innerText, 'match', 'part');">승인사유</th>
|
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="FimsSupport.searchFromGridTitle('ENT_NM', this.innerText, 'match', 'part');">기업명</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('ENT_REG_NO', this.innerText, 'match', 'part');">법인(사업자)번호</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="FimsSupport.searchFromGridTitle('CRDN_YMD', this.innerText, 'ymd', '');">단속일시</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('VHRNO', this.innerText, 'match', 'part');">자동차등록번호</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="FimsSupport.searchFromGridTitle('CTRT_BGNG_DT', this.innerText, 'ymd', '');">계약시작일시</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="FimsSupport.searchFromGridTitle('CTRT_END_DT', this.innerText, 'ymd', '');">계약종료일시</th>
|
|
|
|
|
<th class="cmn" style="width: 100px;" onclick="FimsSupport.searchFromGridTitle('HIRER_SE_CD', this.innerText, 'codeValue', 'FIM089');">임차인구분</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('HIRER_REG_NO', this.innerText, 'match', 'part');">임차인번호</th>
|
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="FimsSupport.searchFromGridTitle('HIRER_NM', this.innerText, 'match', 'part');">임차인명</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('HIRER_TELNO', this.innerText, 'match', 'part');">전화번호</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('HIRER_MBL_TELNO', this.innerText, 'match', 'part');">휴대전화번호</th>
|
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="FimsSupport.searchFromGridTitle('CRDN_STDG_NM', this.innerText, 'match', 'part');">단속법정동</th>
|
|
|
|
|
<th class="cmn" style="width: 280px;" onclick="FimsSupport.searchFromGridTitle('CRDN_PLC', this.innerText, 'match', 'part');">단속장소</th>
|
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="FimsSupport.searchFromGridTitle('FFNLG_CRDN_AMT', this.innerText, 'match', 'part');">단속원금</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('CRDN_STTS_CD', this.innerText, 'codeValue', 'FIM010');">처리상태</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;">등록일시</th>
|
|
|
|
|
<th class="cmn" style="width: 140px;">등록사용자</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;">수정일시</th>
|
|
|
|
|
<th class="cmn" style="width: 140px;">수정사용자</th>
|
|
|
|
|
<th class="cmn dummy-th"></th>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody name="tbodyList">
|
|
|
|
|
</tbody>
|
|
|
|
|
<template is="curly-brackets" name="tmpltRows">
|
|
|
|
@ -211,7 +208,7 @@
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
<template name="tmpltNotFound">
|
|
|
|
|
<tr class="cmn">
|
|
|
|
|
<tr class="odd">
|
|
|
|
|
<td valign="top" colspan="30" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
@ -243,14 +240,10 @@
|
|
|
|
|
// pageObject
|
|
|
|
|
let $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
// URL
|
|
|
|
|
$P.prefixUrl = "${prefixUrl}";
|
|
|
|
|
// datasetControl
|
|
|
|
|
$P.ctrl = newRent02050Control("${pageName}", "[data-doctx=${pageName}]");
|
|
|
|
|
// paging
|
|
|
|
|
$P.pagingSupport = new FimsPagingSupport({
|
|
|
|
|
ctrl: $P.ctrl // DatasetControl
|
|
|
|
|
, ignoreCtrlPrefix: true // ctrl.prefix 가 있더라도 무시
|
|
|
|
|
, linkContainer: "[name='dataPaging']" // <ul class="pagination pagination-primary" name="dataPaging">
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* DataTable 이벤트
|
|
|
|
@ -273,7 +266,7 @@
|
|
|
|
|
|
|
|
|
|
// dataTable 클릭 이벤트
|
|
|
|
|
$P.dataTableClick = (dataIndex) => {
|
|
|
|
|
if (dataIndex == "") return;
|
|
|
|
|
if (!dataIndex) return;
|
|
|
|
|
|
|
|
|
|
$P.$findn("tbodyList").setCurrentRow(dataIndex);
|
|
|
|
|
|
|
|
|
@ -282,9 +275,15 @@
|
|
|
|
|
|
|
|
|
|
// dataTable 더블 클릭 이벤트
|
|
|
|
|
$P.dataTableDblClick = (dataIndex) => {
|
|
|
|
|
if (!dataIndex) return;
|
|
|
|
|
|
|
|
|
|
// 임대차계약 매핑 ID 가 없다면.. 종료
|
|
|
|
|
let lsctMpngId = $P.ctrl.getValue("LSCT_MPNG_ID");
|
|
|
|
|
if (!lsctMpngId) return;
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
callPurpose: "view"
|
|
|
|
|
, lsctMpngId: $P.ctrl.getValue("LSCT_MPNG_ID")
|
|
|
|
|
, lsctMpngId: lsctMpngId
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.ctrl.getInfo(params);
|
|
|
|
@ -298,14 +297,6 @@
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* 사용자 함수(function)
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
// URL 설정
|
|
|
|
|
$P.setUrl = (prefixUrl) => {
|
|
|
|
|
$P.ctrl.urls.load = wctx.url(prefixUrl + "/050/list.do"); // 검색
|
|
|
|
|
$P.ctrl.urls.create = wctx.url(prefixUrl + "/050/createAprv.do") // 승인 요청
|
|
|
|
|
$P.ctrl.urls.remove = wctx.url(prefixUrl + "/050/removeAprv.do") // 승인 요청 취소
|
|
|
|
|
$P.ctrl.urls.getInfo = wctx.url(prefixUrl + "/060/info.do"); // 상세 정보
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 버튼 설정
|
|
|
|
|
$P.setButton = (tabName) => {
|
|
|
|
|
// tab
|
|
|
|
@ -328,7 +319,6 @@
|
|
|
|
|
$P.fnReset = () => {
|
|
|
|
|
// 초기화
|
|
|
|
|
$P.findn("frmSearch").reset(); // 화면 초기화
|
|
|
|
|
$P.ctrl.dataset.clear(); // dataset 초기화
|
|
|
|
|
AppSupport.initDatepicker($P.findn("frmSearch")); // 달력 초기화
|
|
|
|
|
AppSupport.initDetailSearchButton($P.findn("frmSearch")); // 상세검색 버튼 화살표
|
|
|
|
|
|
|
|
|
@ -346,20 +336,16 @@
|
|
|
|
|
$P.$findn("schCrdnYmdTo").datepicker("setDate", TODAY()); // 단속 일자 종료
|
|
|
|
|
$P.$findn("byOutput").val("동적 검색"); // 동적 검색
|
|
|
|
|
|
|
|
|
|
// URL 설정
|
|
|
|
|
$P.setUrl("${prefixUrl}");
|
|
|
|
|
|
|
|
|
|
// 그리드 th
|
|
|
|
|
let colContent = $P.findn("tmpltCols").content;
|
|
|
|
|
let cols = $(colContent).find(".cmn");
|
|
|
|
|
let colsOuterHTML = "";
|
|
|
|
|
// dataset 초기화
|
|
|
|
|
$P.ctrl.dataset.clear();
|
|
|
|
|
|
|
|
|
|
cols.each(function() {
|
|
|
|
|
colsOuterHTML += this.outerHTML;
|
|
|
|
|
});
|
|
|
|
|
$P.findn("tableRspns").changeColumn(colsOuterHTML);
|
|
|
|
|
// URL 설정
|
|
|
|
|
$P.ctrl.urls.load = wctx.url($P.prefixUrl + "/050/list.do"); // 검색
|
|
|
|
|
$P.ctrl.urls.create = wctx.url($P.prefixUrl + "/050/createAprv.do"); // 승인 요청
|
|
|
|
|
$P.ctrl.urls.remove = wctx.url($P.prefixUrl + "/050/removeAprv.do"); // 승인 요청 취소
|
|
|
|
|
$P.ctrl.urls.getInfo = wctx.url($P.prefixUrl + "/060/info.do"); // 상세 정보
|
|
|
|
|
|
|
|
|
|
// 버튼 설정
|
|
|
|
|
// Tab 버튼 설정
|
|
|
|
|
$($P.find(".nav-link.active")).removeClass("active"); // 기존의 활성화된 탭에서 active 클래스 제거
|
|
|
|
|
$P.$findn("tabItem0").addClass("active"); // 새로운 탭에 active 클래스 추가
|
|
|
|
|
|
|
|
|
@ -498,9 +484,9 @@
|
|
|
|
|
// 이벤트 설정
|
|
|
|
|
$P.setEvent = () => {
|
|
|
|
|
// 기본 버튼 이벤트
|
|
|
|
|
$P.$findn("btnReset").on("click", () => { $P.fnReset() }); // 초기화
|
|
|
|
|
$P.$findn("btnSearch").on("click", () => { $P.fnSearchList() }); // 검색
|
|
|
|
|
$P.$findn("btnExcel").on("click", () => { $P.fnExcel() }); // 엑셀
|
|
|
|
|
$P.$findn("btnReset").on("click", () => $P.fnReset()); // 초기화
|
|
|
|
|
$P.$findn("btnSearch").on("click", () => $P.fnSearchList()); // 검색
|
|
|
|
|
$P.$findn("btnExcel").on("click", () => $P.fnExcel()); // 엑셀
|
|
|
|
|
|
|
|
|
|
// 업무 버튼 이벤트
|
|
|
|
|
$P.$findn("btnCreate").on("click", () => {
|
|
|
|
|