|
|
@ -2,99 +2,101 @@
|
|
|
|
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
|
|
|
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Page Body -->
|
|
|
|
<!-- Page Body -->
|
|
|
|
<div class="content-pop">
|
|
|
|
<div class="content-pop" data-doctx="${pageName}">
|
|
|
|
<div class="d-flex flex-row justify-content-evenly">
|
|
|
|
<div class="d-flex flex-row justify-content-evenly">
|
|
|
|
<!-- 수납 정보 -->
|
|
|
|
<!-- 수납 정보 -->
|
|
|
|
<div class="col-xl-12 mx-1">
|
|
|
|
<div class="col-xl-12 mx-1">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card">
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
<div class="container-page-btn">
|
|
|
|
<div class="container-page-btn">
|
|
|
|
<label class="w-px-120 bg-label-danger pe-2 col-form-label text-sm-center">수납 정보</label>
|
|
|
|
<label class="col-form-label bg-label-danger pe-2 w-px-120 text-sm-center">수납 정보</label>
|
|
|
|
<!-- 버튼 우측 정렬 -->
|
|
|
|
<!-- 버튼 우측 정렬 -->
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnCreateRcvmt--${pageName}" title="수납 등록">
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" name="btnCreateRcvmt" title="수납 등록">
|
|
|
|
수납 등록
|
|
|
|
수납 등록
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnUpdateRcvmtRtrc--${pageName}" title="수납 취소">
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" name="btnUpdateRcvmtRtrc" title="수납 취소">
|
|
|
|
수납 취소
|
|
|
|
수납 취소
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnRemoveRcvmt--${pageName}" title="수납 삭제">
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" name="btnRemoveRcvmt" title="수납 삭제">
|
|
|
|
수납 삭제
|
|
|
|
수납 삭제
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</span> <!-- <span class="container-window-btn-right"> -->
|
|
|
|
</div> <!-- <div class="container-page-btn"> -->
|
|
|
|
</div> <!-- <div class="container-page-btn"> -->
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
|
<!-- DataTables(그리드) -->
|
|
|
|
<!-- DataTables(그리드) -->
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
<div id="table-responsive--${pageName}" class="table-responsive ox-scroll oy-scroll h-px-400">
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll h-px-400" name="tableRspnsRcvmt">
|
|
|
|
<table class="dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<thead>
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
<tr id="theadTr--${pageName}">
|
|
|
|
<tr name="theadTrRcvmt">
|
|
|
|
<th>수납취소</th>
|
|
|
|
<th class="cmn sorting" style="width: 100px" data-field="RCVMT_RTRCN_NM">수납취소</th>
|
|
|
|
<th>수납입력구분</th>
|
|
|
|
<th class="cmn sorting" style="width: 140px" data-field="RCVMT_INPT_SE_NM">수납입력구분</th>
|
|
|
|
<th>수납일련번호</th>
|
|
|
|
<th class="cmn sorting" style="width: 120px" data-field="RCVMT_SN">수납일련번호</th>
|
|
|
|
<th>수납구분</th>
|
|
|
|
<th class="cmn sorting" style="width: 120px" data-field="RCVMT_SE_NM">수납구분</th>
|
|
|
|
<th>부서코드</th>
|
|
|
|
<th class="cmn sorting" style="width: 100px" data-field="DEPT_CD">부서코드</th>
|
|
|
|
<th>특별회계사업코드</th>
|
|
|
|
<th class="cmn sorting" style="width: 140px" data-field="SPCL_BIZ_CD">특별회계사업코드</th>
|
|
|
|
<th>회계연도</th>
|
|
|
|
<th class="cmn sorting" style="width: 100px" data-field="FYR">회계연도</th>
|
|
|
|
<th>회계구분</th>
|
|
|
|
<th class="cmn sorting" style="width: 100px" data-field="ACNTG_SE_CD">회계구분</th>
|
|
|
|
<th>세목코드</th>
|
|
|
|
<th class="cmn sorting" style="width: 120px" data-field="TXITM_CD">세목코드</th>
|
|
|
|
<th>부과번호</th>
|
|
|
|
<th class="cmn sorting" style="width: 120px" data-field="LEVY_NO">부과번호</th>
|
|
|
|
<th>수납일자</th>
|
|
|
|
<th class="cmn sorting" style="width: 120px" data-field="RCVMT_YMD">수납일자</th>
|
|
|
|
<th>회계일자</th>
|
|
|
|
<th class="cmn sorting" style="width: 120px" data-field="ACNTG_YMD">회계일자</th>
|
|
|
|
<th>이체일자</th>
|
|
|
|
<th class="cmn sorting" style="width: 120px" data-field="TSF_YMD">이체일자</th>
|
|
|
|
<th>수납금액</th>
|
|
|
|
<th class="cmn sorting" style="width: 120px" data-field="RCVMT_AMT">수납금액</th>
|
|
|
|
<th>수납본세</th>
|
|
|
|
<th class="cmn sorting" style="width: 120px" data-field="RCVMT_PCPTAX">수납본세</th>
|
|
|
|
<th>수납가산금</th>
|
|
|
|
<th class="cmn sorting" style="width: 120px" data-field="RCVMT_ADAMT">수납가산금</th>
|
|
|
|
<th>수납이자</th>
|
|
|
|
<th class="cmn sorting" style="width: 120px" data-field="RCVMT_INT">수납이자</th>
|
|
|
|
<th>수납은행명</th>
|
|
|
|
<th class="cmn sorting" style="width: 200px" data-field="RCVMT_BANK_NM">수납은행명</th>
|
|
|
|
<th>납부방법구분</th>
|
|
|
|
<th class="cmn sorting" style="width: 160px" data-field="PAY_MTHD_SE_NM">납부방법구분</th>
|
|
|
|
<th>전자납부번호</th>
|
|
|
|
<th class="cmn sorting" style="width: 200px" data-field="EPAYNO">전자납부번호</th>
|
|
|
|
<th>가상계좌번호</th>
|
|
|
|
<th class="cmn sorting" style="width: 200px" data-field="VR_ACTNO">가상계좌번호</th>
|
|
|
|
<th>수납취소일시</th>
|
|
|
|
<th class="cmn sorting" style="width: 140px" data-field="RCVMT_RTRCN_DT">수납취소일시</th>
|
|
|
|
<th>수납취소사유</th>
|
|
|
|
<th class="cmn sorting" style="width: 160px" data-field="RCVMT_RTRCN_RSN">수납취소사유</th>
|
|
|
|
<th>수납상태</th>
|
|
|
|
<th class="cmn sorting" style="width: 120px" data-field="RCVMT_STTS_NM">수납상태</th>
|
|
|
|
<th>등록일시</th>
|
|
|
|
<th class="cmn sorting" style="width: 180px" data-field="REG_DT">등록일시</th>
|
|
|
|
<th>등록사용자</th>
|
|
|
|
<th class="cmn sorting" style="width: 140px" data-field="RGTR_NM">등록사용자</th>
|
|
|
|
|
|
|
|
<th class="cmn dummy-th"></th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody id="tbody--${pageName}">
|
|
|
|
<tbody name="tbodyRcvmtList">
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template id="rcvmtRow--${pageName}">
|
|
|
|
<template is="curly-brackets" name="tableRowsRcvmt">
|
|
|
|
<tr data-key="{RCVMT_ID}">
|
|
|
|
<tr data-key="RCVMT_ID">
|
|
|
|
<td class="text-center text-red" onclick="{onclick}">{RCVMT_RTRCN_NM}</td>
|
|
|
|
<td class="text-center text-red" onclick">{RCVMT_RTRCN_NM}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{RCVMT_INPT_SE_NM}</td>
|
|
|
|
<td class="text-center" onclick>{RCVMT_INPT_SE_NM}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{RCVMT_SN}</td>
|
|
|
|
<td class="text-center" onclick>{RCVMT_SN}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{RCVMT_SE_NM}</td>
|
|
|
|
<td class="text-center" onclick>{RCVMT_SE_NM}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{DEPT_CD}</td>
|
|
|
|
<td class="text-center" onclick>{DEPT_CD}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{SPCL_BIZ_CD}</td>
|
|
|
|
<td class="text-center" onclick>{SPCL_BIZ_CD}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{FYR}</td>
|
|
|
|
<td class="text-center" onclick>{FYR}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{ACNTG_SE_CD}</td>
|
|
|
|
<td class="text-center" onclick>{ACNTG_SE_CD}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{TXITM_CD}</td>
|
|
|
|
<td class="text-center" onclick>{TXITM_CD}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{LEVY_NO}</td>
|
|
|
|
<td class="text-center" onclick>{LEVY_NO}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{RCVMT_YMD}</td>
|
|
|
|
<td class="text-center" onclick>{RCVMT_YMD}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{ACNTG_YMD}</td>
|
|
|
|
<td class="text-center" onclick>{ACNTG_YMD}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{TSF_YMD}</td>
|
|
|
|
<td class="text-center" onclick>{TSF_YMD}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}">{RCVMT_AMT}</td>
|
|
|
|
<td class="text-end" onclick>{RCVMT_AMT}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}">{RCVMT_PCPTAX}</td>
|
|
|
|
<td class="text-end" onclick>{RCVMT_PCPTAX}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}">{RCVMT_ADAMT}</td>
|
|
|
|
<td class="text-end" onclick>{RCVMT_ADAMT}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}">{RCVMT_INT}</td>
|
|
|
|
<td class="text-end" onclick>{RCVMT_INT}</td>
|
|
|
|
<td class="text-start" onclick="{onclick}">{RCVMT_BANK_NM}</td>
|
|
|
|
<td class="text-start" onclick>{RCVMT_BANK_NM}</td>
|
|
|
|
<td class="text-start" onclick="{onclick}">{PAY_MTHD_SE_NM}</td>
|
|
|
|
<td class="text-start" onclick>{PAY_MTHD_SE_NM}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{EPAYNO}</td>
|
|
|
|
<td class="text-center" onclick>{EPAYNO}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{VRACTNO}</td>
|
|
|
|
<td class="text-center" onclick>{VR_ACTNO}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{RCVMT_RTRCN_DT}</td>
|
|
|
|
<td class="text-center" onclick>{RCVMT_RTRCN_DT}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{RCVMT_RTRCN_RSN}</td>
|
|
|
|
<td class="text-center" onclick>{RCVMT_RTRCN_RSN}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{RCVMT_STTS_NM}</td>
|
|
|
|
<td class="text-center" onclick>{RCVMT_STTS_NM}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{REG_DT}</td>
|
|
|
|
<td class="text-center" onclick>{REG_DT}</td>
|
|
|
|
<td class="text-center" onclick="{onclick}">{RGTR_NM}</td>
|
|
|
|
<td class="text-center" onclick>{RGTR_NM}</td>
|
|
|
|
|
|
|
|
<td class="cmn dummy-td"></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="rcvmtNotFound--${pageName}">
|
|
|
|
<template name="notFoundRcvmt">
|
|
|
|
<tr class="odd">
|
|
|
|
<tr class="odd">
|
|
|
|
<td valign="top" colspan="26" class="dataTables_empty text-center">수납정보 이력 정보를 찾지 못했습니다.</td>
|
|
|
|
<td valign="top" colspan="27" class="dataTables_empty text-center">수납정보 이력 정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
@ -106,112 +108,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card">
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
<form id="frmEdit--${pageName}" name="frmEdit">
|
|
|
|
<form name="frmEditRcvmt">
|
|
|
|
<!-- hidden -->
|
|
|
|
<!-- hidden -->
|
|
|
|
<input type="hidden" id="rcvmtId--${pageName}" name="rcvmtId" data-map="RCVMT_ID" />
|
|
|
|
<input type="hidden" name="rcvmtId" data-map="RCVMT_ID" />
|
|
|
|
<input type="hidden" id="levyId--${pageName}" name="levyId" data-map="LEVY_ID" />
|
|
|
|
<input type="hidden" name="levyId" data-map="LEVY_ID" />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
|
<!-- 회계 연도 -->
|
|
|
|
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
|
|
|
<label for="fyr--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">회계연도</label>
|
|
|
|
|
|
|
|
<input type="text" class="form-control w-15" id="fyr--${pageName}" name="fyr" data-map="FYR" readonly />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 회계 구분 -->
|
|
|
|
<!-- 회계 구분 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label for="acntgSeCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">회계구분</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="acntgSeCd">회계구분</label>
|
|
|
|
<input type="text" class="form-control w-15" id="acntgSeCd--${pageName}" name="acntgSeCd" data-map="ACNTG_SE_CD" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-15" name="acntgSeCd" data-map="ACNTG_SE_CD" readonly />
|
|
|
|
<input type="text" class="form-control w-50" id="acntgSeNm--${pageName}" name="acntgSeNm" data-map="ACNTG_SE_NM" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-50" name="acntgSeNm" data-map="ACNTG_SE_NM" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 세목 코드 -->
|
|
|
|
<!-- 세목 코드 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label for="txitmCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">세목코드</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="txitmCd">세목코드</label>
|
|
|
|
<input type="text" class="form-control w-20" id="txitmCd--${pageName}" name="txitmCd" data-map="TXITM_CD" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-20" name="txitmCd" data-map="TXITM_CD" readonly />
|
|
|
|
<input type="text" class="form-control w-45" id="txitmNm--${pageName}" name="txitmNm" data-map="TXITM_NM" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-45" name="txitmNm" data-map="TXITM_NM" readonly />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 회계 연도 -->
|
|
|
|
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
|
|
|
<label class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="fyr">회계연도</label>
|
|
|
|
|
|
|
|
<input is="id-input" type="text" class="form-control w-15" name="fyr" data-map="FYR" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 부과 번호 -->
|
|
|
|
<!-- 부과 번호 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label for="levyNo--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">부과번호</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="levyNo">부과번호</label>
|
|
|
|
<input type="text" class="form-control w-20" id="levyNo--${pageName}" name="levyNo" data-map="LEVY_NO" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-20" name="levyNo" data-map="LEVY_NO" readonly />
|
|
|
|
<input type="text" class="form-control w-10" id="ispySn--${pageName}" name="ispySn" data-map="ISPY_SN" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-15" name="ispySn" data-map="ISPY_SN" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 수납 순번 -->
|
|
|
|
<!-- 수납 순번 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label for="rcvmtSn--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">수납순번</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rcvmtSn">수납순번</label>
|
|
|
|
<input type="text" class="form-control w-15" id="rcvmtSn--${pageName}" name="rcvmtSn" data-map="RCVMT_SN" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-15" name="rcvmtSn" data-map="RCVMT_SN" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 수납 일자 -->
|
|
|
|
<!-- 수납 일자 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label for="rcvmtYmd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">수납일자</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rcvmtYmd">수납일자</label>
|
|
|
|
<input type="text" class="form-control w-30" id="rcvmtYmd--${pageName}" name="rcvmtYmd" data-map="RCVMT_YMD" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-30" name="rcvmtYmd" data-map="RCVMT_YMD" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 소인 일자 -->
|
|
|
|
<!-- 소인 일자 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label for="pstmrkYmd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">소인일자</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="pstmrkYmd">소인일자</label>
|
|
|
|
<input type="text" class="form-control w-30" id="pstmrkYmd--${pageName}" name="pstmrkYmd" data-map="PSTMRK_YMD" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-30" name="pstmrkYmd" data-map="PSTMRK_YMD" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 회계 일자 -->
|
|
|
|
<!-- 회계 일자 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label for="acntgYmd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">회계일자</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="acntgYmd">회계일자</label>
|
|
|
|
<input type="text" class="form-control w-30" id="acntgYmd--${pageName}" name="acntgYmd" data-map="ACNTG_YMD" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-30" name="acntgYmd" data-map="ACNTG_YMD" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 수납 금액 -->
|
|
|
|
<!-- 수납 금액 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label for="rcvmtAmt--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">수납금액</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rcvmtAmt">수납금액</label>
|
|
|
|
<input type="text" class="form-control w-30 text-end" id="rcvmtAmt--${pageName}" name="rcvmtAmt" data-map="RCVMT_AMT" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-30 text-end" name="rcvmtAmt" data-map="RCVMT_AMT" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 수납 본세 -->
|
|
|
|
<!-- 수납 본세 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label for="rcvmtPcptax--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">수납본세</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rcvmtPcptax">수납본세</label>
|
|
|
|
<input type="text" class="form-control w-30 text-end" id="rcvmtPcptax--${pageName}" name="rcvmtPcptax" data-map="RCVMT_PCPTAX" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-30 text-end" name="rcvmtPcptax" data-map="RCVMT_PCPTAX" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 수납 가산금 -->
|
|
|
|
<!-- 수납 가산금 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label for="rcvmtAdamt--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">수납가산금</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rcvmtAdamt">수납가산금</label>
|
|
|
|
<input type="text" class="form-control w-30 text-end" id="rcvmtAdamt--${pageName}" name="rcvmtAdamt" data-map="RCVMT_ADAMT" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-30 text-end" name="rcvmtAdamt" data-map="RCVMT_ADAMT" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 수납 이자 -->
|
|
|
|
<!-- 수납 이자 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label for="rcvmtInt--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">수납이자</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rcvmtInt">수납이자</label>
|
|
|
|
<input type="text" class="form-control w-30 text-end" id="rcvmtInt--${pageName}" name="rcvmtInt" data-map="RCVMT_INT" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-30 text-end" name="rcvmtInt" data-map="RCVMT_INT" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 수납 구분 -->
|
|
|
|
<!-- 수납 구분 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label for="rcvmtSeNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">수납구분</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rcvmtSeNm">수납구분</label>
|
|
|
|
<input type="text" class="form-control w-30" id="rcvmtSeNm--${pageName}" name="rcvmtSeNm" data-map="RCVMT_SE_NM" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-30" name="rcvmtSeNm" data-map="RCVMT_SE_NM" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 수납 은행 -->
|
|
|
|
<!-- 수납 은행 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label for="rcvmtBankNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">수납은행</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rcvmtBankNm">수납은행</label>
|
|
|
|
<input type="text" class="form-control w-50" id="rcvmtBankNm--${pageName}" name="rcvmtBankNm" data-map="RCVMT_BANK_NM" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-50" name="rcvmtBankNm" data-map="RCVMT_BANK_NM" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 납부 방식 -->
|
|
|
|
<!-- 납부 방식 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label for="payMthdSeNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">납부방식</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="payMthdSeNm">납부방식</label>
|
|
|
|
<input type="text" class="form-control w-50" id="payMthdSeNm--${pageName}" name="payMthdSeNm" data-map="PAY_MTHD_SE_NM" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-50" name="payMthdSeNm" data-map="PAY_MTHD_SE_NM" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- -->
|
|
|
|
<!-- 수납 취소 일자 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end text-red" for="rcvmtRtrcnDt">수납취소일자</label>
|
|
|
|
|
|
|
|
<input is="id-input" type="text" class="form-control w-30 text-red" name="rcvmtRtrcnDt" data-map="RCVMT_RTRCN_DT" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 등록 일시 -->
|
|
|
|
<!-- 등록 일시 / 등록자 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label for="regDt--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">등록일시</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="regDt">등록일시</label>
|
|
|
|
<input type="text" class="form-control w-45" id="regDt--${pageName}" name="regDt" data-map="REG_DT" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-25" name="regDt" data-map="REG_DT" readonly />
|
|
|
|
|
|
|
|
<input is="id-input" type="text" class="form-control w-20" name="rgtrNm" data-map="RGTR_NM" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 등록자 -->
|
|
|
|
<!-- 수정 일시 / 수정자 -->
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label for="rgtrNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">등록자</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="mdfcnDt">수정일시</label>
|
|
|
|
<input type="text" class="form-control w-40" id="rgtrNm--${pageName}" name="rgtrNm" data-map="RGTR_NM" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-25" name="mdfcnDt" data-map="MDFCN_DT" readonly />
|
|
|
|
</div>
|
|
|
|
<input is="id-input" type="text" class="form-control w-20" name="mdfrNm" data-map="MDFR_NM" readonly />
|
|
|
|
<!-- 수정 일시 -->
|
|
|
|
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
|
|
|
<label for="mdfcnDt--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">수정일시</label>
|
|
|
|
|
|
|
|
<input type="text" class="form-control w-45" id="mdfcnDt--${pageName}" name="mdfcnDt" data-map="MDFCN_DT" readonly />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 수정자 -->
|
|
|
|
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
|
|
|
<label for="mdfrNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">수정자</label>
|
|
|
|
|
|
|
|
<input type="text" class="form-control w-40" id="mdfrNm--${pageName}" name="mdfrNm" data-map="MDFR_NM" readonly />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div> <!-- <div class="row g-1"> -->
|
|
|
|
</div> <!-- <div class="row g-1"> -->
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
@ -226,7 +222,7 @@
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Global Variable
|
|
|
|
* Global Variable
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
pageObject["${pageName}"] = newDoctxFinder("${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* script 진입
|
|
|
|
* script 진입
|
|
|
@ -236,12 +232,12 @@
|
|
|
|
let $P = pageObject["${pageName}"];
|
|
|
|
let $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
|
|
// FormFields
|
|
|
|
// FormFields
|
|
|
|
$P.formFields = new FimsFormFields("#frmEdit--${pageName}");
|
|
|
|
$P.formFields = new FimsFormFields($P.selector("frmEditRcvmt"));
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl
|
|
|
|
* DatasetControl
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$P.control = new DatasetControl({
|
|
|
|
$P.ctrlRcvmt = new DatasetControl({
|
|
|
|
prefix: "rcvmt"
|
|
|
|
prefix: "rcvmt"
|
|
|
|
, prefixName: "수납"
|
|
|
|
, prefixName: "수납"
|
|
|
|
, keymapper: info => info ? info.RCVMT_ID : ""
|
|
|
|
, keymapper: info => info ? info.RCVMT_ID : ""
|
|
|
@ -265,34 +261,43 @@
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
$P.control.onDatasetChange = (obj, option) => {
|
|
|
|
$P.ctrlRcvmt.onDatasetChange = (obj, option) => {
|
|
|
|
$P.renderList();
|
|
|
|
$P.renderList();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
$P.control.onCurrentChange = (item) => {
|
|
|
|
$P.ctrlRcvmt.onCurrentChange = (item) => {
|
|
|
|
if (!item) return;
|
|
|
|
if (!item) return;
|
|
|
|
|
|
|
|
|
|
|
|
$P.formFields.set($P.control, item); // 화면에 자료 셋팅
|
|
|
|
$P.formFields.set($P.ctrlRcvmt, item); // 화면에 자료 셋팅
|
|
|
|
|
|
|
|
|
|
|
|
let key = item.data.RCVMT_ID;
|
|
|
|
let key = item.data.RCVMT_ID;
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key); // datatable에 자료 셋팅
|
|
|
|
$P.$find("tbodyRcvmtList").setCurrentRow(key); // datatable에 자료 셋팅
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 수기 수납 등록
|
|
|
|
// 수납 등록 Dialog
|
|
|
|
$P.control.getInfo = (params) => {
|
|
|
|
$P.ctrlRcvmt.getInfo = (params) => {
|
|
|
|
if (!params) return;
|
|
|
|
if (!params) return;
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url: wctx.url("/" + params.taskSeCd + "/rcvm/rcvm01/020/info.do") + "?openerPageName=${pageName}"
|
|
|
|
url: wctx.url("/" + params.taskSeCd + "/rcvm/rcvm01/020/info.do")
|
|
|
|
, data: params || {}
|
|
|
|
, data: params || {}
|
|
|
|
, success: resp => {
|
|
|
|
, success: (resp) => {
|
|
|
|
|
|
|
|
let dialogName = $P.ctrlRcvmt.prefixed("Dialog");
|
|
|
|
|
|
|
|
let dialogId = dialogName + "-" + uuid();
|
|
|
|
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
dialog.open({
|
|
|
|
id: $P.control.prefixed("Dialog--${pageName}")
|
|
|
|
id: dialogId
|
|
|
|
, title: params.title
|
|
|
|
, title: params.btnTitle
|
|
|
|
, content: resp
|
|
|
|
|
|
|
|
, size: "lg"
|
|
|
|
, size: "lg"
|
|
|
|
|
|
|
|
, content: resp
|
|
|
|
|
|
|
|
, init: () => {
|
|
|
|
|
|
|
|
setDialogZindex();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#" + dialogId).attr("name", dialogName);
|
|
|
|
|
|
|
|
$("#" + dialogId).attr("data-ref-doctx", "${pageName}");
|
|
|
|
|
|
|
|
}
|
|
|
|
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재조회
|
|
|
|
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재조회
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -300,54 +305,59 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 수기 수납 취소 callback
|
|
|
|
// 수기 수납 취소 callback
|
|
|
|
$P.control.onSave = (resp) => {
|
|
|
|
$P.ctrlRcvmt.onSave = (params, resp) => {
|
|
|
|
let dialogTitle = $("#" + $P.control.prefix + "Dialog--${pageName}").find("h5.modal-title").html();
|
|
|
|
let dialogTitle = $("#" + $P.ctrlRcvmt.prefix + "Dialog--${pageName}").find("h5.modal-title").html();
|
|
|
|
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, dialogTitle);
|
|
|
|
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, dialogTitle);
|
|
|
|
|
|
|
|
|
|
|
|
// 메시지 출력
|
|
|
|
// 메시지 출력
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: showMessage
|
|
|
|
content: showMessage
|
|
|
|
|
|
|
|
, init: () => { setDialogZindex(); }
|
|
|
|
, onOK: () => { }
|
|
|
|
, onOK: () => { }
|
|
|
|
});
|
|
|
|
, onClose: () => {
|
|
|
|
|
|
|
|
|
|
|
|
// 자료 재조회
|
|
|
|
|
|
|
|
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재조회
|
|
|
|
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재조회
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 수기 수납 취소
|
|
|
|
// 수기 수납 취소
|
|
|
|
$P.control.save = (params) => {
|
|
|
|
$P.ctrlRcvmt.save = (params) => {
|
|
|
|
if (!params) return;
|
|
|
|
if (!params) return;
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
ajax.post({
|
|
|
|
url: wctx.url("/" + params.taskSeCd + "/rcvm/rcvm01/010/updateRcvmtRtrcn.do")
|
|
|
|
url: wctx.url("/" + params.taskSeCd + "/rcvm/rcvm01/010/updateRcvmtRtrcn.do")
|
|
|
|
, data: params || {}
|
|
|
|
, data: params || {}
|
|
|
|
, success: resp => $P.control.onSave(resp)
|
|
|
|
, success: (resp) => {
|
|
|
|
|
|
|
|
$P.ctrlRcvmt.onSave(params, resp);
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 수기 수납 삭제 callback
|
|
|
|
// 수기 수납 삭제 callback
|
|
|
|
$P.control.onRemove = (resp) => {
|
|
|
|
$P.ctrlRcvmt.onRemove = (params, resp) => {
|
|
|
|
let btnTitle = $("#btnRemoveRcvmt--${pageName}").attr("title");
|
|
|
|
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, params.btnTitle);
|
|
|
|
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, btnTitle);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 메시지 출력
|
|
|
|
// 메시지 출력
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: showMessage
|
|
|
|
content: showMessage
|
|
|
|
|
|
|
|
, init: () => { setDialogZindex(); }
|
|
|
|
, onOK: () => { }
|
|
|
|
, onOK: () => { }
|
|
|
|
});
|
|
|
|
, onClose: () => {
|
|
|
|
|
|
|
|
|
|
|
|
// 자료 재조회
|
|
|
|
|
|
|
|
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재조회
|
|
|
|
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재조회
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 수기 수납 삭제
|
|
|
|
// 수기 수납 삭제
|
|
|
|
$P.control.remove = (params) => {
|
|
|
|
$P.ctrlRcvmt.remove = (params) => {
|
|
|
|
if (!params) return;
|
|
|
|
if (!params) return;
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
ajax.post({
|
|
|
|
url: wctx.url("/" + params.taskSeCd + "/rcvm/rcvm01/010/remove.do")
|
|
|
|
url: wctx.url("/" + params.taskSeCd + "/rcvm/rcvm01/010/remove.do")
|
|
|
|
, data: params || {}
|
|
|
|
, data: params || {}
|
|
|
|
, success: resp => $P.control.onRemove(resp)
|
|
|
|
, success: (resp) => {
|
|
|
|
|
|
|
|
$P.ctrlRcvmt.onRemove(params, resp);
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -355,19 +365,17 @@
|
|
|
|
* DataTables 이벤트
|
|
|
|
* DataTables 이벤트
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
$P.renderList = () => {
|
|
|
|
$P.renderList = (totalSize, option) => {
|
|
|
|
let rcvmtList = $P.control.dataset;
|
|
|
|
let rcvmtList = $P.ctrlRcvmt.dataset;
|
|
|
|
let empty = rcvmtList.empty;
|
|
|
|
let empty = rcvmtList.empty;
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ?
|
|
|
|
let trs = empty ? [$P.find("notFoundRcvmt").innerHTML] :
|
|
|
|
[document.getElementById("rcvmtNotFound--${pageName}").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
|
|
|
rcvmtList.inStrings($P.find("tableRowsRcvmt").innerHTML
|
|
|
|
rcvmtList.inStrings(
|
|
|
|
, (str, dataItem) => str
|
|
|
|
document.getElementById("rcvmtRow--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrl.setCurrent('" + dataItem.getValue("RCVMT_ID") + "');")
|
|
|
|
(str, dataItem) => str
|
|
|
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("RCVMT_ID") + "');")
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}").html(trs.join());
|
|
|
|
$P.$find("tbodyRcvmtList").html(trs.join());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
@ -375,16 +383,16 @@
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 자료 재조회
|
|
|
|
// 자료 재조회
|
|
|
|
$P.fnRefreshDataInfo = () => {
|
|
|
|
$P.fnRefreshDataInfo = () => {
|
|
|
|
// 단속 ID
|
|
|
|
let crdnId = pageObject["${mainPageName}"].mainCtrl.getValue("CRDN_ID"); // 단속 ID
|
|
|
|
let crdnId = $("#crdnId--${pageNameMain}").val();
|
|
|
|
|
|
|
|
// 단속 ID 가 없다면.. return
|
|
|
|
// 단속 ID 가 없다면.. return
|
|
|
|
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
|
|
|
|
if (!crdnId) return;
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
let params = {
|
|
|
|
callPurpose: "refresh"
|
|
|
|
callPurpose: "refresh"
|
|
|
|
, sggCd: $("#sggCd--${pageNameMain}").val()
|
|
|
|
, sggCd: pageObject["${mainPageName}"].mainCtrl.getValue("SGG_CD")
|
|
|
|
, taskSeCd: $("#taskSeCd--${pageNameMain}").val()
|
|
|
|
, taskSeCd: pageObject["${mainPageName}"].mainCtrl.getValue("TASK_SE_CD")
|
|
|
|
, crdnId: crdnId
|
|
|
|
, crdnId: pageObject["${mainPageName}"].mainCtrl.getValue("CRDN_ID")
|
|
|
|
, delYn: "N"
|
|
|
|
, delYn: "N"
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -392,16 +400,16 @@
|
|
|
|
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/070/info.do")
|
|
|
|
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/070/info.do")
|
|
|
|
, headers: { Accept: "application/json; charset=utf-8" } // json
|
|
|
|
, headers: { Accept: "application/json; charset=utf-8" } // json
|
|
|
|
, data: params || {}
|
|
|
|
, data: params || {}
|
|
|
|
, success: resp => {
|
|
|
|
, success: (resp) => {
|
|
|
|
// 초기화
|
|
|
|
// 초기화
|
|
|
|
$("#frmEdit--${pageName}")[0].reset(); // 화면 초기화
|
|
|
|
$P.find("frmEditRcvmt").reset(); // 화면 초기화
|
|
|
|
$P.control.dataset.clear(); // 수납 Dataset 초기화
|
|
|
|
$P.ctrlRcvmt.dataset.clear(); // 수납 Dataset 초기화
|
|
|
|
|
|
|
|
|
|
|
|
// sprt02010-main 단속 정보
|
|
|
|
// sprt02010-main 단속 정보
|
|
|
|
pageObject["${pageNameMain}"].mainControl.setData([resp.totalInfo]);
|
|
|
|
pageObject["${pageNameMain}"].mainControl.setData([resp.totalInfo]);
|
|
|
|
|
|
|
|
|
|
|
|
// Dataset 셋팅
|
|
|
|
// Dataset 셋팅
|
|
|
|
$P.control.setData(resp.rcvmts); // 수납 정보
|
|
|
|
$P.ctrlRcvmt.setData(resp.rcvmts); // 수납 정보
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -411,96 +419,103 @@
|
|
|
|
// 서버에 전송할 data(파라미터) 생성
|
|
|
|
// 서버에 전송할 data(파라미터) 생성
|
|
|
|
let params = {
|
|
|
|
let params = {
|
|
|
|
callPurpose: "update"
|
|
|
|
callPurpose: "update"
|
|
|
|
, sggCd: $P.control.dataset.getValue("SGG_CD") // 시군구 코드
|
|
|
|
, sggCd: $P.ctrlRcvmt.getValue("SGG_CD") // 시군구 코드
|
|
|
|
, taskSeCd: $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
|
|
|
|
, taskSeCd: $P.ctrlRcvmt.getValue("TASK_SE_CD") // 업무 구분 코드
|
|
|
|
, rcvmtId: $P.control.dataset.getValue("RCVMT_ID") // 수납 ID
|
|
|
|
, rcvmtId: $P.ctrlRcvmt.getValue("RCVMT_ID") // 수납 ID
|
|
|
|
, rcvmtRtrcnYn: "Y" // 수납 취소 여부
|
|
|
|
, rcvmtRtrcnYn: "Y" // 수납 취소 여부
|
|
|
|
|
|
|
|
, btnTitle: obj.btnTitle // 버튼 title
|
|
|
|
, rcvmtRtrcnRsn: obj.reason // 수납 취소 사유
|
|
|
|
, rcvmtRtrcnRsn: obj.reason // 수납 취소 사유
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.save(params);
|
|
|
|
$P.ctrlRcvmt.save(params);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 사유 callback
|
|
|
|
// 사유 callback
|
|
|
|
$P.callbackRsn = (obj) => {
|
|
|
|
$P.callbackRsn = (obj) => {
|
|
|
|
// 서버에 전송할 data(파라미터) 생성
|
|
|
|
// 서버에 전송할 data(파라미터) 생성
|
|
|
|
let params = {
|
|
|
|
let params = {
|
|
|
|
callPurpose: obj.callPurpose
|
|
|
|
callPurpose: "remove"
|
|
|
|
, sggCd: $P.control.dataset.getValue("SGG_CD") // 시군구 코드
|
|
|
|
, sggCd: $P.ctrlRcvmt.dataset.getValue("SGG_CD") // 시군구 코드
|
|
|
|
, taskSeCd: $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
|
|
|
|
, taskSeCd: $P.ctrlRcvmt.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
|
|
|
|
, rcvmtId: $P.control.dataset.getValue("RCVMT_ID") // 수납 ID
|
|
|
|
, rcvmtId: $P.ctrlRcvmt.dataset.getValue("RCVMT_ID") // 수납 ID
|
|
|
|
|
|
|
|
, btnTitle: obj.btnTitle // 버튼 title
|
|
|
|
, delRsn: obj.reason // 삭제 사유
|
|
|
|
, delRsn: obj.reason // 삭제 사유
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.remove(params);
|
|
|
|
$P.ctrlRcvmt.remove(params);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 버튼 clickEvent
|
|
|
|
* 버튼 clickEvent
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 수기 수납 등록
|
|
|
|
// 수기 수납 등록
|
|
|
|
$P.fnCreateRcvmt = (title) => {
|
|
|
|
$P.fnCreateRcvmt = (btnTitle) => {
|
|
|
|
// 단속 ID
|
|
|
|
let crdnId = pageObject["${mainPageName}"].mainCtrl.getValue("CRDN_ID"); // 단속 ID
|
|
|
|
let crdnId = $("#crdnId--${pageNameMain}").val();
|
|
|
|
|
|
|
|
// 단속 ID 가 없다면.. return
|
|
|
|
// 단속 ID 가 없다면.. return
|
|
|
|
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
|
|
|
|
if (!crdnId) return;
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
let params = {
|
|
|
|
callPurpose: "create"
|
|
|
|
callPurpose: "create"
|
|
|
|
, title: title
|
|
|
|
, btnTitle: btnTitle
|
|
|
|
, sggCd: $("#sggCd--${pageNameMain}").val()
|
|
|
|
, sggCd: pageObject["${mainPageName}"].mainCtrl.getValue("SGG_CD") // 시군구 코드
|
|
|
|
, taskSeCd: $("#taskSeCd--${pageNameMain}").val()
|
|
|
|
, taskSeCd: pageObject["${mainPageName}"].mainCtrl.getValue("TASK_SE_CD") // 업무 구분 코드
|
|
|
|
, crdnId: crdnId
|
|
|
|
, crdnId: pageObject["${mainPageName}"].mainCtrl.getValue("CRDN_ID") // 단속 ID
|
|
|
|
, delYn: "N"
|
|
|
|
, delYn: "N"
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.getInfo(params);
|
|
|
|
$P.ctrlRcvmt.getInfo(params);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 수기 수납 취소
|
|
|
|
// 수기 수납 취소
|
|
|
|
$P.fnUpdateRcvmtRtrcn = (title) => {
|
|
|
|
$P.fnUpdateRcvmtRtrcn = (btnTitle) => {
|
|
|
|
// 수납 ID
|
|
|
|
let rcvmtId = $P.ctrlRcvmt.getValue("RCVMT_ID"); // 수납 ID
|
|
|
|
let rcvmtId = $P.control.dataset.getValue("RCVMT_ID");
|
|
|
|
|
|
|
|
// 수납 ID 가 없다면.. return
|
|
|
|
// 수납 ID 가 없다면.. return
|
|
|
|
if (typeof rcvmtId == "undefined" || rcvmtId == null || rcvmtId == "") return;
|
|
|
|
if (!rcvmtId) return;
|
|
|
|
|
|
|
|
|
|
|
|
// 수납 취소 메세지 확인
|
|
|
|
// 수납 취소 메세지 확인
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: title + " 작업 진행시 과오납이 발생합니다."
|
|
|
|
content: btnTitle + " 작업 진행시 과오납이 발생합니다."
|
|
|
|
+ "<br>" + "계속 진행하시겠습니까?"
|
|
|
|
+ "<br>" + "계속 진행하시겠습니까?"
|
|
|
|
, onOK: async() => {
|
|
|
|
, onOK: async() => {
|
|
|
|
// 사유 입력
|
|
|
|
// 삭제 사유 입력
|
|
|
|
let resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html"));
|
|
|
|
fetch(wctx.url("/resources/html/inputRsnDialog.html"))
|
|
|
|
let template = await resp.text();
|
|
|
|
.then(function(resp) { return resp.text(); })
|
|
|
|
|
|
|
|
.then(function(template) {
|
|
|
|
dialog.open({
|
|
|
|
dialog.open({
|
|
|
|
id: "inputDelRsnDialog"
|
|
|
|
id: "inputDelRsnDialog"
|
|
|
|
, title: title
|
|
|
|
, title: btnTitle
|
|
|
|
, size: "lg"
|
|
|
|
, size: "lg"
|
|
|
|
, content: template
|
|
|
|
, content: template
|
|
|
|
|
|
|
|
, init: () => { setDialogZindex(); }
|
|
|
|
, onOK: () => {
|
|
|
|
, onOK: () => {
|
|
|
|
$P.callbackRsn({ reason: $("#reason").val() });
|
|
|
|
$P.callbackRsn({
|
|
|
|
|
|
|
|
btnTitle: btnTitle // 버튼 title
|
|
|
|
|
|
|
|
, reason: $("#reason").val() // 삭제 사유
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 수기 수납 삭제
|
|
|
|
// 수기 수납 삭제
|
|
|
|
$P.fnRemoveRcvmt = (title) => {
|
|
|
|
$P.fnRemoveRcvmt = (btnTitle) => {
|
|
|
|
// 수납 ID
|
|
|
|
let rcvmtId = $P.ctrlRcvmt.getValue("RCVMT_ID"); // 수납 ID
|
|
|
|
let rcvmtId = $P.control.dataset.getValue("RCVMT_ID");
|
|
|
|
|
|
|
|
// 수납 ID 가 없다면.. return
|
|
|
|
// 수납 ID 가 없다면.. return
|
|
|
|
if (typeof rcvmtId == "undefined" || rcvmtId == null || rcvmtId == "") return;
|
|
|
|
if (!rcvmtId) return;
|
|
|
|
|
|
|
|
|
|
|
|
// 수납 입력 구분이 03(수기) 일때만 삭제 가능
|
|
|
|
// 수납 입력 구분이 03(수기) 일때만 삭제 가능
|
|
|
|
let rcvmtInptSeCd = $P.control.dataset.getValue("RCVMT_INPT_SE_CD");
|
|
|
|
let rcvmtInptSeCd = $P.ctrlRcvmt.getValue("RCVMT_INPT_SE_CD");
|
|
|
|
let rcvmtInptSeNm = $P.control.dataset.getValue("RCVMT_INPT_SE_NM");
|
|
|
|
let rcvmtInptSeNm = $P.ctrlRcvmt.getValue("RCVMT_INPT_SE_NM");
|
|
|
|
if (rcvmtInptSeCd != "03") {
|
|
|
|
if (rcvmtInptSeCd != "03") {
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: "[" + title + "]" + " 작업은 rcvmtInptSeNm 구분이 '수기' 자료만 처리 가능합니다."
|
|
|
|
content: "[" + btnTitle + "]" + " 작업은 rcvmtInptSeNm 구분이 '수기' 자료만 처리 가능합니다."
|
|
|
|
+ "<br>" + "수납입력구분 : " + crdnSttsNm
|
|
|
|
+ "<br>" + "수납입력구분 : " + crdnSttsNm
|
|
|
|
+ "<br><br>" + "[" + title + "]" + " 실행이 취소되었습니다."
|
|
|
|
+ "<br><br>" + "[" + btnTitle + "]" + " 실행이 취소되었습니다."
|
|
|
|
, onOK: () => { }
|
|
|
|
, onOK: () => { }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -508,20 +523,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
// 삭제 메세지 확인
|
|
|
|
// 삭제 메세지 확인
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: "선택하신 " + selected.length + "건의 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?"
|
|
|
|
content: "선택하신 " + $P.ctrlRcvmt.prefixName + " 정보를 삭제하시겠습니까?"
|
|
|
|
, onOK: () => {
|
|
|
|
, onOK: async() => {
|
|
|
|
// 삭제 사유 입력
|
|
|
|
// 삭제 사유 입력
|
|
|
|
fetch(wctx.url("/resources/html/inputRsnDialog.html"))
|
|
|
|
fetch(wctx.url("/resources/html/inputRsnDialog.html"))
|
|
|
|
.then(function(resp) { return resp.text(); })
|
|
|
|
.then(function(resp) { return resp.text(); })
|
|
|
|
.then(function(template) {
|
|
|
|
.then(function(template) {
|
|
|
|
dialog.open({
|
|
|
|
dialog.open({
|
|
|
|
id: "inputDelRsnDialog"
|
|
|
|
id: "inputDelRsnDialog"
|
|
|
|
, title: title
|
|
|
|
, title: btnTitle
|
|
|
|
, size: "lg"
|
|
|
|
, size: "lg"
|
|
|
|
, content: template
|
|
|
|
, content: template
|
|
|
|
, init: () => { setDialogZindex(); }
|
|
|
|
, init: () => { setDialogZindex(); }
|
|
|
|
, onOK: () => {
|
|
|
|
, onOK: () => {
|
|
|
|
$P.callbackRsn({ reason: $("#reason").val() });
|
|
|
|
$P.callbackRsn({
|
|
|
|
|
|
|
|
btnTitle: btnTitle // 버튼 title
|
|
|
|
|
|
|
|
, reason: $("#reason").val() // 삭제 사유
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -535,41 +553,47 @@
|
|
|
|
// 이벤트 설정
|
|
|
|
// 이벤트 설정
|
|
|
|
$P.setEvent = () => {
|
|
|
|
$P.setEvent = () => {
|
|
|
|
// 업무 버튼 이벤트
|
|
|
|
// 업무 버튼 이벤트
|
|
|
|
$("#btnCreateRcvmt--${pageName}").on("click", function() {
|
|
|
|
$P.$find("btnCreateRcvmt").on("click", function() {
|
|
|
|
$P.fnCreateRcvmt($(this).attr("title")); // 수납 등록
|
|
|
|
$P.fnCreateRcvmt($P.$find("btnCreateRcvmt").attr("title")); // 수납 등록
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$("#btnUpdateRcvmtRtrc--${pageName}").on("click", function() {
|
|
|
|
$P.$find("btnUpdateRcvmtRtrc").on("click", function() {
|
|
|
|
$P.fnUpdateRcvmtRtrcn($(this).attr("title")); // 수납 취소
|
|
|
|
$P.fnUpdateRcvmtRtrcn($P.$find("btnUpdateRcvmtRtrc").attr("title")); // 수납 취소
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$("#btnRemoveRcvmt--${pageName}").on("click", function() {
|
|
|
|
$P.$find("btnRemoveRcvmt").on("click", function() {
|
|
|
|
$P.fnRemoveRcvmt($(this).attr("title")); // 수납 삭제
|
|
|
|
$P.fnRemoveRcvmt($P.$find("btnRemoveRcvmt").attr("title")); // 수납 삭제
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables width 변경 조정
|
|
|
|
|
|
|
|
fnMakeResizableTable($P.find("tableRspnsRcvmt"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 초기 화면 설정
|
|
|
|
// 초기 화면 설정
|
|
|
|
$P.initForm = () => {
|
|
|
|
$P.initForm = () => {
|
|
|
|
// button 요소들을 disabled = true
|
|
|
|
// 초기화
|
|
|
|
$("#btnCreateRcvmt--${pageName}").prop("disabled", true);
|
|
|
|
$P.find("frmEditRcvmt").reset(); // 화면 초기화
|
|
|
|
$("#btnUpdateRcvmtRtrc--${pageName}").prop("disabled", true);
|
|
|
|
$P.ctrlRcvmt.dataset.clear(); // 수납 Dataset 초기화
|
|
|
|
$("#btnRemoveRcvmt--${pageName}").prop("disabled", true);
|
|
|
|
|
|
|
|
|
|
|
|
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
|
|
|
|
// 화면 호출(callPurpose)이 view가 아니라면 버튼 비활성화 disabled = false
|
|
|
|
if (pageObject['${mainPageName}'].callPurpose == "view") {
|
|
|
|
if (pageObject['${pageNameMain}'].callPurpose != "view") {
|
|
|
|
$P.$find("btnCreateRcvmt").prop("disabled", true);
|
|
|
|
$("#btnCreateRcvmt--${pageName}").prop("disabled", false);
|
|
|
|
$P.$find("btnUpdateRcvmtRtrc").prop("disabled", true);
|
|
|
|
$("#btnUpdateRcvmtRtrc--${pageName}").prop("disabled", false);
|
|
|
|
$P.$find("btnRemoveRcvmt").prop("disabled", true);
|
|
|
|
$("#btnRemoveRcvmt--${pageName}").prop("disabled", false);
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$P.$find("btnCreateRcvmt").prop("disabled", false);
|
|
|
|
|
|
|
|
$P.$find("btnUpdateRcvmtRtrc").prop("disabled", false);
|
|
|
|
|
|
|
|
$P.$find("btnRemoveRcvmt").prop("disabled", false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 주정차위반, 전용차로위반과태료 외에는 수납 등록, 취소, 삭제 기능이 없어야 한다.
|
|
|
|
// 주정차위반, 전용차로위반과태료 외에는 수납 등록, 취소, 삭제 기능이 없어야 한다.
|
|
|
|
let taskSeCd = $("#taskSeCd--${pageNameMain}").val();
|
|
|
|
let taskSeCd = pageObject["${mainPageName}"].mainCtrl.getValue("TASK_SE_CD");
|
|
|
|
if (taskSeCd == "BPV" || taskSeCd == "PVS") {
|
|
|
|
if ("BPV,PVS".indexOf("taskSeCd") != -1) {
|
|
|
|
$("#btnCreateRcvmt--${pageName}").show();
|
|
|
|
$P.$find("btnCreateRcvmt").show();
|
|
|
|
$("#btnUpdateRcvmtRtrc--${pageName}").show();
|
|
|
|
$P.$find("btnUpdateRcvmtRtrc").show();
|
|
|
|
$("#btnRemoveRcvmt--${pageName}").show();
|
|
|
|
$P.$find("btnRemoveRcvmt").show();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$("#btnCreateRcvmt--${pageName}").hide();
|
|
|
|
$P.$find("btnCreateRcvmt").hide();
|
|
|
|
$("#btnUpdateRcvmtRtrc--${pageName}").hide();
|
|
|
|
$P.$find("btnUpdateRcvmtRtrc").hide();
|
|
|
|
$("#btnRemoveRcvmt--${pageName}").hide();
|
|
|
|
$P.$find("btnRemoveRcvmt").hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -583,8 +607,7 @@
|
|
|
|
$P.initForm();
|
|
|
|
$P.initForm();
|
|
|
|
|
|
|
|
|
|
|
|
// 3. Dataset 설정
|
|
|
|
// 3. Dataset 설정
|
|
|
|
let rcvmts = ${rcvmts}; // 수납 정보 Data 셋팅
|
|
|
|
$P.ctrlRcvmt.setData(${rcvmts});
|
|
|
|
if (rcvmts) { $P.control.setData(${rcvmts}); }
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|