|
|
@ -4,20 +4,20 @@
|
|
|
|
<c:set var="prefixName" scope="request">부과 관리</c:set>
|
|
|
|
<c:set var="prefixName" scope="request">부과 관리</c:set>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- inner page html -->
|
|
|
|
<!-- inner page html -->
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<div class="content-wrapper" data-doctx="${pageName}">
|
|
|
|
<!-- Content -->
|
|
|
|
<!-- Content -->
|
|
|
|
<div class="container-xxl flex-grow-1 px-0">
|
|
|
|
<div class="container-xxl flex-grow-1 px-0">
|
|
|
|
<div class="card wrapper-list">
|
|
|
|
<div class="card wrapper-list">
|
|
|
|
<!-- 상단 버튼 -->
|
|
|
|
<!-- 상단 버튼 -->
|
|
|
|
<div class="container-page-btn">
|
|
|
|
<div class="container-page-btn">
|
|
|
|
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
|
|
|
|
<button type="button" class="btn btn-outline-dark w-px-120" name="btnReset" title="초기화">
|
|
|
|
초기화
|
|
|
|
초기화
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<button type="button" class="btn btn-search w-px-120" id="btnSearch--${pageName}" title="검색">
|
|
|
|
<button type="button" class="btn btn-search w-px-120" name="btnSearch" title="검색">
|
|
|
|
검색
|
|
|
|
검색
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-excel w-px-120" id="btnExcel--${pageName}" title="엑셀">
|
|
|
|
<button type="button" class="btn btn-excel w-px-120" name="btnExcel" title="엑셀">
|
|
|
|
엑셀
|
|
|
|
엑셀
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
@ -25,16 +25,16 @@
|
|
|
|
<!-- 상단 버튼 -->
|
|
|
|
<!-- 상단 버튼 -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 검색 조건 영역 -->
|
|
|
|
<!-- 검색 조건 영역 -->
|
|
|
|
<form id="frmSearch--${pageName}" name="frmSearch">
|
|
|
|
<form name="frmSearch">
|
|
|
|
<!-- hidden -->
|
|
|
|
<!-- hidden -->
|
|
|
|
<input type="hidden" id="sggCd--${pageName}" name="sggCd" />
|
|
|
|
<input type="hidden" name="sggCd" />
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 메인 조건 -->
|
|
|
|
<!-- 메인 조건 -->
|
|
|
|
<div class="container-search">
|
|
|
|
<div class="container-search">
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
|
<!-- 업무 구분 -->
|
|
|
|
<!-- 업무 구분 -->
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="col-12">
|
|
|
|
<span class="form-label fw-bold form-search-title w-px-120 text-end">업무구분</span>
|
|
|
|
<span class="form-label form-search-title w-px-120 text-end fw-bold">업무구분</span>
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<c:forEach items="${taskListForSgg}" var="item">
|
|
|
|
<c:forEach items="${taskListForSgg}" var="item">
|
|
|
|
<label>
|
|
|
|
<label>
|
|
|
@ -47,20 +47,20 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 회계연도 -->
|
|
|
|
<!-- 회계연도 -->
|
|
|
|
<div class="col-6">
|
|
|
|
<div class="col-6">
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schFyr--${pageName}">회계연도</label>
|
|
|
|
<label is="name-label" class="form-label form-search-title w-px-120 text-end fw-bold" for="schFyr">회계연도</label>
|
|
|
|
<input type="text" class="form-control w-px-60" id="schFyr--${pageName}" name="schFyr" maxlength="4" autocomplete="off" />
|
|
|
|
<input is="id-input" type="text" class="form-control w-px-60" name="schFyr" maxlength="4" autocomplete="off" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 부과 번호 -->
|
|
|
|
<!-- 부과 번호 -->
|
|
|
|
<div class="col-6">
|
|
|
|
<div class="col-6">
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schLevyNoFrom--${pageName}">부과번호</label>
|
|
|
|
<label is="name-label" class="form-label form-search-title w-px-120 text-end fw-bold" for="schLevyNoFrom">부과번호</label>
|
|
|
|
<input type="text" class="form-control w-px-80" id="schLevyNoFrom--${pageName}" name="schLevyNoFrom" maxlength="6" autocomplete="off" />
|
|
|
|
<input is="id-input" type="text" class="form-control w-px-80" name="schLevyNoFrom" maxlength="6" autocomplete="off" />
|
|
|
|
~
|
|
|
|
~
|
|
|
|
<input type="text" class="form-control w-px-80" id="schLevyNoTo--${pageName}" name="schLevyNoTo" maxlength="6" autocomplete="off" />
|
|
|
|
<input is="id-input" type="text" class="form-control w-px-80" name="schLevyNoTo" maxlength="6" autocomplete="off" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 감경 구분 코드 -->
|
|
|
|
<!-- 감경 구분 코드 -->
|
|
|
|
<div class="col-6">
|
|
|
|
<div class="col-6">
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schRdctSeCd--${pageName}">감경구분</label>
|
|
|
|
<label is="name-label" class="form-label form-search-title w-px-120 text-end fw-bold" for="schRdctSeCd">감경구분</label>
|
|
|
|
<select class="form-select w-px-120" id="schRdctSeCd--${pageName}" name="schRdctSeCd">
|
|
|
|
<select is="id-select" class="form-select w-px-120" name="schRdctSeCd">
|
|
|
|
<option value="">전체</option>
|
|
|
|
<option value="">전체</option>
|
|
|
|
<c:forEach items="${FIM046List}" var="item">
|
|
|
|
<c:forEach items="${FIM046List}" var="item">
|
|
|
|
<option value="${item.code}">${item.value}</option>
|
|
|
|
<option value="${item.code}">${item.value}</option>
|
|
|
@ -69,21 +69,21 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 부과 일자 -->
|
|
|
|
<!-- 부과 일자 -->
|
|
|
|
<div class="col-6">
|
|
|
|
<div class="col-6">
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schLevyYmdFrom--${pageName}">부과일자</label>
|
|
|
|
<label class="form-label form-search-title w-px-120 text-end fw-bold">부과일자</label>
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<input type="text" class="form-control form-date" id="schLevyYmdFrom--${pageName}" name="schLevyYmdFrom"
|
|
|
|
<input type="text" class="form-control form-date" name="schLevyYmdFrom"
|
|
|
|
data-fmt-type="day" title="시작 날짜 선택" />
|
|
|
|
data-fmt-type="day" autocomplete="off" title="시작 날짜 선택" />
|
|
|
|
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
|
|
|
|
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
|
|
|
|
~
|
|
|
|
~
|
|
|
|
<input type="text" class="form-control form-date" id="schLevyYmdTo--${pageName}" name="schLevyYmdTo"
|
|
|
|
<input type="text" class="form-control form-date" name="schLevyYmdTo"
|
|
|
|
data-fmt-type="day" title="종료 날짜 선택" />
|
|
|
|
data-fmt-type="day" autocomplete="off" title="종료 날짜 선택" />
|
|
|
|
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
|
|
|
|
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 단속 상태 코드 -->
|
|
|
|
<!-- 단속 상태 코드 -->
|
|
|
|
<div class="col-6">
|
|
|
|
<div class="col-6">
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schCrdnSttsCd--${pageName}">단속상태</label>
|
|
|
|
<label is="name-label" class="form-label form-search-title w-px-120 text-end fw-bold" for="schCrdnSttsCd">단속상태</label>
|
|
|
|
<select class="form-select w-px-160" id="schCrdnSttsCd--${pageName}" name="schCrdnSttsCd">
|
|
|
|
<select is="id-select" class="form-select w-px-200" name="schCrdnSttsCd">
|
|
|
|
<option value="">전체</option>
|
|
|
|
<option value="">전체</option>
|
|
|
|
<c:forEach items="${FIM010List}" var="item">
|
|
|
|
<c:forEach items="${FIM010List}" var="item">
|
|
|
|
<option value="${item.code}">${item.value}</option>
|
|
|
|
<option value="${item.code}">${item.value}</option>
|
|
|
@ -92,78 +92,78 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 동적검색 -->
|
|
|
|
<!-- 동적검색 -->
|
|
|
|
<div class="col-6">
|
|
|
|
<div class="col-6">
|
|
|
|
<input type="hidden" id="by--${pageName}" name="by" />
|
|
|
|
<input type="hidden" name="by" />
|
|
|
|
<input type="text" class="form-control fw-bold w-px-120 text-end" id="byOutput--${pageName}" value="동적 검색" readonly />
|
|
|
|
<input type="text" class="form-control w-px-120 text-end fw-bold" name="byOutput" value="동적 검색" readonly />
|
|
|
|
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
|
|
|
|
<input type="hidden" name="mainOption" />
|
|
|
|
<input type="hidden" id="subOption--${pageName}" name="subOption" />
|
|
|
|
<input type="hidden" name="subOption" />
|
|
|
|
<input type="text" class="form-control w-px-400" id="term--${pageName}" name="term" autocomplete="off" />
|
|
|
|
<input type="text" class="form-control w-px-400" name="term" autocomplete="off" />
|
|
|
|
<!-- 상세 검색조건 버튼 -->
|
|
|
|
<!-- 상세 검색조건 버튼 -->
|
|
|
|
<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="[data-doctx='${pageName}'] [name='searchDetail']">
|
|
|
|
<i class="bx bx-chevron-down"></i>
|
|
|
|
<i class="bx bx-chevron-down"></i>
|
|
|
|
상세검색
|
|
|
|
상세검색
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div> <!-- 동적검색 -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div> <!-- 메인 조건 -->
|
|
|
|
</div> <!-- 메인 조건 -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 상세 조건 -->
|
|
|
|
<!-- 상세 조건 -->
|
|
|
|
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse">
|
|
|
|
<div name="searchDetail" class="container-search container-search-detail collapse">
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
|
<!-- 단속 일자 -->
|
|
|
|
<!-- 단속 일자 -->
|
|
|
|
<div class="col-4">
|
|
|
|
<div class="col-4">
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schCrdnYmdFrom--${pageName}">단속일자</label>
|
|
|
|
<label class="form-label form-search-title w-px-120 text-end fw-bold">단속일자</label>
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<input type="text" class="form-control form-date" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom"
|
|
|
|
<input type="text" class="form-control form-date" name="schCrdnYmdFrom"
|
|
|
|
data-fmt-type="day" autocomplete="off" title="시작 날짜 선택" />
|
|
|
|
data-fmt-type="day" autocomplete="off" title="시작 날짜 선택" />
|
|
|
|
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
|
|
|
|
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
|
|
|
|
~
|
|
|
|
~
|
|
|
|
<input type="text" class="form-control form-date" id="schCrdnYmdTo--${pageName}" name="schCrdnYmdTo"
|
|
|
|
<input type="text" class="form-control form-date" name="schCrdnYmdTo"
|
|
|
|
data-fmt-type="day" autocomplete="off" title="종료 날짜 선택" />
|
|
|
|
data-fmt-type="day" autocomplete="off" title="종료 날짜 선택" />
|
|
|
|
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
|
|
|
|
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 차량번호 -->
|
|
|
|
<!-- 차량번호 -->
|
|
|
|
<div class="col-4">
|
|
|
|
<div class="col-4">
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schVhrno--${pageName}">차량번호</label>
|
|
|
|
<label is="name-label" class="form-label form-search-title w-px-120 text-end fw-bold" for="schVhrno">차량번호</label>
|
|
|
|
<input type="text" class="form-control w-px-160" id="schVhrno--${pageName}" name="schVhrno" autocomplete="off" />
|
|
|
|
<input is="id-input" type="text" class="form-control w-px-160" name="schVhrno" autocomplete="off" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 납부자 번호 -->
|
|
|
|
<!-- 납부자 번호 -->
|
|
|
|
<div class="col-4">
|
|
|
|
<div class="col-4">
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schRtpyrNm--${pageName}">납부자번호</label>
|
|
|
|
<label is="name-label" class="form-label form-search-title w-px-120 text-end fw-bold" for="schRtpyrNm">납부자번호</label>
|
|
|
|
<input type="text" class="form-control w-px-160" id="schRtpyrNm--${pageName}" name="schRtpyrNm" autocomplete="off" />
|
|
|
|
<input is="id-input" type="text" class="form-control w-px-160" name="schRtpyrNm" autocomplete="off" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 납부자 명 -->
|
|
|
|
<!-- 납부자 명 -->
|
|
|
|
<div class="col-4">
|
|
|
|
<div class="col-4">
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schRtpyrNo--${pageName}">납부자명</label>
|
|
|
|
<label is="name-label" class="form-label form-search-title w-px-120 text-end fw-bold" for="schRtpyrNo">납부자명</label>
|
|
|
|
<input type="text" class="form-control w-px-160" id="schRtpyrNo--${pageName}" name="schRtpyrNo" autocomplete="off" />
|
|
|
|
<input is="id-input" type="text" class="form-control w-px-160" name="schRtpyrNo" autocomplete="off" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 등록일자, 수정일자 -->
|
|
|
|
<!-- 등록일자, 수정일자 -->
|
|
|
|
<div class="col-4">
|
|
|
|
<div class="col-4">
|
|
|
|
<select class="form-select w-px-120 text-center" id="schRegDateOpt--${pageName}" name="schRegDateOpt">
|
|
|
|
<select class="form-select w-px-120 text-center" name="schRegDateOpt">
|
|
|
|
<option value="regDt">등록일자</option>
|
|
|
|
<option value="regDt">등록일자</option>
|
|
|
|
<option value="mdfcnDt">수정일자</option>
|
|
|
|
<option value="mdfcnDt">수정일자</option>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<input type="text" class="form-control form-date" id="schRegDateFrom--${pageName}" name="schRegDateFrom"
|
|
|
|
<input type="text" class="form-control form-date" name="schRegDateFrom"
|
|
|
|
data-fmt-type="day" title="시작 날짜 선택" />
|
|
|
|
data-fmt-type="day" autocomplete="off" title="시작 날짜 선택" />
|
|
|
|
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
|
|
|
|
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
|
|
|
|
~
|
|
|
|
~
|
|
|
|
<input type="text" class="form-control form-date" id="schRegDateTo--${pageName}" name="schRegDateTo"
|
|
|
|
<input type="text" class="form-control form-date" name="schRegDateTo"
|
|
|
|
data-fmt-type="day" title="종료 날짜 선택">
|
|
|
|
data-fmt-type="day" autocomplete="off" title="종료 날짜 선택">
|
|
|
|
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
|
|
|
|
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 등록자명, 수정자명 -->
|
|
|
|
<!-- 등록자명, 수정자명 -->
|
|
|
|
<div class="col-4">
|
|
|
|
<div class="col-4">
|
|
|
|
<select class="form-select w-px-120 text-center" id="schRgtrOpt--${pageName}" name="schRgtrOpt">
|
|
|
|
<select class="form-select w-px-120 text-center" name="schRgtrOpt">
|
|
|
|
<option value="rgtr">등록자</option>
|
|
|
|
<option value="rgtr">등록자</option>
|
|
|
|
<option value="mdfr">수정자</option>
|
|
|
|
<option value="mdfr">수정자</option>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<input type="hidden" id="schRgtrCd--${pageName}" name="schRgtrCd" />
|
|
|
|
<input type="hidden" name="schRgtrCd" />
|
|
|
|
<input type="text" class="form-control w-px-160" id="schRgtrNm--${pageName}" name="schRgtrNm" />
|
|
|
|
<input type="text" class="form-control w-px-160" name="schRgtrNm" />
|
|
|
|
<button type="button" class="btn btn-sm btn-outline-dark" id="btnFindUser--${pageName}" title="사용자 검색">검색</button>
|
|
|
|
<button type="button" class="btn btn-sm btn-outline-dark" name="btnFindUser" title="사용자 검색">검색</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div> <!-- 상세 조건 -->
|
|
|
|
</div> <!-- 상세 조건 -->
|
|
|
@ -175,8 +175,8 @@
|
|
|
|
<span class="container-page-btn">
|
|
|
|
<span class="container-page-btn">
|
|
|
|
<!-- 건수, 페이지 표시 -->
|
|
|
|
<!-- 건수, 페이지 표시 -->
|
|
|
|
<div class="d-flex flex-row justify-content-between">
|
|
|
|
<div class="d-flex flex-row justify-content-between">
|
|
|
|
<span class="dataTables_info" id="paging--${pageName}PagingInfo" role="status" aria-live="polite"></span>
|
|
|
|
<span is="paging-info" class="dataTables_info" name="dataPagingInfo" role="status" aria-live="polite"></span>
|
|
|
|
<ul class="pagination pagination-primary" id="paging--${pageName}">
|
|
|
|
<ul class="pagination pagination-primary" name="dataPaging">
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
@ -188,20 +188,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
<!-- DataTables(그리드) -->
|
|
|
|
<!-- DataTables(그리드) -->
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}">
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll h-px-400" id="table-responsive--${pageName}">
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll h-px-500" name="tableRspns">
|
|
|
|
<table class="table-layout-fixed 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 class="sticky-thead">
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
<tr id="theadTr--${pageName}"
|
|
|
|
<tr name="theadTr" data-search-target="[data-doctx='${pageName}']">
|
|
|
|
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody id="tbody--${pageName}">
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template id="${infoPrefix}Col--${pageName}">
|
|
|
|
<template name="tmpltCols">
|
|
|
|
<th class="cmn" style="width: 72px;">No.</th>
|
|
|
|
<th class="cmn" style="width: 72px;">No.</th>
|
|
|
|
<th class="cmn" style="width: 56px;"><input type="checkbox" class="form-check-input" id="gridAllCheckbox--${pageName}" onchange="pageObject['${pageName}'].control.select(this.checked);" /></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: 160px;">업무구분</th>
|
|
|
|
<th class="cmn" style="width: 100px;" onclick="FimsSupport.searchFromGridTitle('FYR', this.innerText, 'match', 'part');">회계연도</th>
|
|
|
|
<th class="cmn" style="width: 100px;" onclick="FimsSupport.searchFromGridTitle('FYR', this.innerText, 'match', 'part');">회계연도</th>
|
|
|
|
<th class="cmn" style="width: 100px;" onclick="FimsSupport.searchFromGridTitle('ACNTG_SE_CD', this.innerText, 'codeValue', 'FIM074');">회계코드</th>
|
|
|
|
<th class="cmn" style="width: 100px;" onclick="FimsSupport.searchFromGridTitle('ACNTG_SE_CD', this.innerText, 'codeValue', 'FIM074');">회계코드</th>
|
|
|
@ -243,72 +240,75 @@
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('RTPYR_NO', this.innerText, 'ymd', '');">납부자번호</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('RTPYR_NO', this.innerText, 'ymd', '');">납부자번호</th>
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="FimsSupport.searchFromGridTitle('RTPYR_NM', this.innerText, 'match', 'part');">납부자명</th>
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="FimsSupport.searchFromGridTitle('RTPYR_NM', this.innerText, 'match', 'part');">납부자명</th>
|
|
|
|
<th class="cmn" style="width: 100px;" onclick="FimsSupport.searchFromGridTitle('ZIP', this.innerText, 'match', 'part');">우편번호</th>
|
|
|
|
<th class="cmn" style="width: 100px;" onclick="FimsSupport.searchFromGridTitle('ZIP', this.innerText, 'match', 'part');">우편번호</th>
|
|
|
|
<th class="cmn" style="width: 240px;" onclick="FimsSupport.searchFromGridTitle('ADDR', this.innerText, 'match', 'part');">주소</th>
|
|
|
|
<th class="cmn" style="width: 280px;" onclick="FimsSupport.searchFromGridTitle('ADDR', this.innerText, 'match', 'part');">주소</th>
|
|
|
|
<th class="cmn" style="width: 340px;" onclick="FimsSupport.searchFromGridTitle('DTL_ADDR', this.innerText, 'match', 'part');">상세주소</th>
|
|
|
|
<th class="cmn" style="width: 320px;" onclick="FimsSupport.searchFromGridTitle('DTL_ADDR', this.innerText, 'match', 'part');">상세주소</th>
|
|
|
|
<th class="cmn" style="width: 180px;">등록일시</th>
|
|
|
|
<th class="cmn" style="width: 180px;">등록일시</th>
|
|
|
|
<th class="cmn" style="width: 140px;">등록사용자</th>
|
|
|
|
<th class="cmn" style="width: 140px;">등록사용자</th>
|
|
|
|
<th class="cmn" style="width: 180px;">수정일시</th>
|
|
|
|
<th class="cmn" style="width: 180px;">수정일시</th>
|
|
|
|
<th class="cmn" style="width: 140px;">수정사용자</th>
|
|
|
|
<th class="cmn" style="width: 140px;">수정사용자</th>
|
|
|
|
<th class="cmn dummy-th"></th>
|
|
|
|
<th class="cmn dummy-th"></th>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
|
|
|
|
<tr data-key="{LEVY_ID}">
|
|
|
|
<tbody name="tbodyList">
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
|
|
|
|
</tbody>
|
|
|
|
<td class="cmn text-center"><input type="checkbox" class="form-check-input" name="gridCheckbox" value="{LEVY_ID}" onchange="pageObject['${pageName}'].control.select('{LEVY_ID}', this.checked);" /></td>
|
|
|
|
<template is="curly-brackets" name="tmpltRows">
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{TASK_SE_NM}</td>
|
|
|
|
<tr data-key="LEVY_ID">
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{FYR}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{ROW_NUM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ACNTG_SE_CD}</td>
|
|
|
|
<td class="cmn text-center"><input type="checkbox" class="form-check-input" name="gridCheckbox" value="LEVY_ID" onchange="pageObject['${pageName}'].dataTableCheckbox(this, this.checked);" /></td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{TXITM_CD}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{TASK_SE_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{TXITM_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{FYR}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_NO}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{ACNTG_SE_CD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ISPY_SN}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{TXITM_CD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_SE_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{TXITM_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RDCT_SE_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{LEVY_NO}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{ISPY_SN}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{FRST_DUDT_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{LEVY_SE_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DUDT_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{RDCT_SE_NM}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_AMT}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{LEVY_YMD}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_PCPTAX}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{FRST_DUDT_YMD}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_ADAMT}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{DUDT_YMD}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{RCVMT_PCPTAX}</td>
|
|
|
|
<td class="cmn text-end" onclick ondblclick>{FFNLG_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{RCVMT_ADAMT}</td>
|
|
|
|
<td class="cmn text-end" onclick ondblclick>{LEVY_PCPTAX}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{RDAMT_PCPTAX}</td>
|
|
|
|
<td class="cmn text-end" onclick ondblclick>{LEVY_ADAMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{RDAMT_ADAMT}</td>
|
|
|
|
<td class="cmn text-end" onclick ondblclick>{RCVMT_PCPTAX}</td>
|
|
|
|
<td class="cmn text-end fw-bold text-red" onclick="{onclick}" ondblclick="{ondblclick}">{SUM_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick ondblclick>{RCVMT_ADAMT}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{TXTN_THING}</td>
|
|
|
|
<td class="cmn text-end" onclick ondblclick>{RDAMT_PCPTAX}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{NPMNT_RSN_NM}</td>
|
|
|
|
<td class="cmn text-end" onclick ondblclick>{RDAMT_ADAMT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RCVMT_YMD}</td>
|
|
|
|
<td class="cmn text-end fw-bold text-red" onclick ondblclick>{SUM_AMT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SZR_YMD}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{TXTN_THING}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{SZR_THING}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{NPMNT_RSN_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RPM_SZR_VHRNO}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{RCVMT_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SZR_RMV_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{SZR_YMD}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{EPAYNO_MASK}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{SZR_THING}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{BANK_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{RPM_SZR_VHRNO}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{VR_ACTNO}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{SZR_RMV_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_YMD_TM}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{EPAYNO_MASK}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VHRNO}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{BANK_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STDG_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{VR_ACTNO}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_PLC}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{CRDN_YMD_TM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VLTN_ARTCL}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{VHRNO}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_CRDN_AMT}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{CRDN_STDG_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STTS_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{CRDN_PLC}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_SE_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{VLTN_ARTCL}</td>
|
|
|
|
<td class="cmn text-center privacy-cell" onclick="{onclick}" ondblclick="{ondblclick}">
|
|
|
|
<td class="cmn text-end" onclick ondblclick>{FFNLG_CRDN_AMT}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{CRDN_STTS_NM}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{RTPYR_SE_NM}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-center privacy-cell" onclick ondblclick>
|
|
|
|
<span>{RTPYR_NO}</span>
|
|
|
|
<span>{RTPYR_NO}</span>
|
|
|
|
<span>*************</span>
|
|
|
|
<span>*************</span>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{RTPYR_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ZIP}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{ZIP}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{ADDR}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{ADDR}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{DTL_ADDR}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{DTL_ADDR}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{REG_DT}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{REG_DT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RGTR_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{RGTR_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFCN_DT}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{MDFCN_DT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFR_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{MDFR_NM}</td>
|
|
|
|
<td class="cmn dummy-td"></td>
|
|
|
|
<td class="cmn dummy-td"></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<template name="tmpltNotFound">
|
|
|
|
<tr class="bpv">
|
|
|
|
<tr class="bpv">
|
|
|
|
<td valign="top" colspan="50" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
<td valign="top" colspan="50" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
@ -342,7 +342,7 @@
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Global Variable
|
|
|
|
* Global Variable
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
pageObject["${pageName}"] = newDoctxFinder("${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* script 진입
|
|
|
|
* script 진입
|
|
|
@ -352,16 +352,16 @@
|
|
|
|
let $P = pageObject["${pageName}"];
|
|
|
|
let $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
|
|
// FormFields
|
|
|
|
// FormFields
|
|
|
|
$P.formFields = new FimsFormFields("#frmSearch--${pageName}");
|
|
|
|
$P.formFields = new FimsFormFields($P.selectorn("frmSearch"));
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl
|
|
|
|
* DatasetControl
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$P.control = new DatasetControl({
|
|
|
|
$P.ctrl = new DatasetControl({
|
|
|
|
prefix: "levy"
|
|
|
|
prefix: "levy"
|
|
|
|
, prefixName: "부과"
|
|
|
|
, prefixName: "부과"
|
|
|
|
, keymapper: info => info ? info.LEVY_ID : ""
|
|
|
|
, keymapper: info => info ? info.LEVY_ID : ""
|
|
|
|
, dataGetter: obj => obj.${infoPrefix}List
|
|
|
|
, dataGetter: obj => obj["List"]
|
|
|
|
, appendData: true
|
|
|
|
, appendData: true
|
|
|
|
, infoSize: "xl"
|
|
|
|
, infoSize: "xl"
|
|
|
|
, formats: {
|
|
|
|
, formats: {
|
|
|
@ -386,60 +386,32 @@
|
|
|
|
, MDFCN_DT: datetimeFormat
|
|
|
|
, MDFCN_DT: datetimeFormat
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// $P.control 설정
|
|
|
|
// 검색 조건
|
|
|
|
$P.control.defaultFetchSize = FETCH_XS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30
|
|
|
|
$P.ctrl.query = { pageNum: 1, fetchSize: DEFAULT_FETCH_SIZE }; // 1 페이지당 자료 건수 index.jsp에서 확인
|
|
|
|
$P.control.query = { pageNum : 1, fetchSize : $P.control.defaultFetchSize };
|
|
|
|
|
|
|
|
$P.control.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
$P.control.onDatasetChange = (obj, option) => {
|
|
|
|
$P.ctrl.onDatasetChange = (obj, option) => {
|
|
|
|
$P.renderList(obj.${infoPrefix}Total, option);
|
|
|
|
$P.renderList(obj["Total"], option);
|
|
|
|
|
|
|
|
|
|
|
|
$("#paging--${pageName}").setPagingInfo({
|
|
|
|
// datasetPaging
|
|
|
|
list: $P.control.dataset
|
|
|
|
Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("dataPaging"), $P.findn("dataPagingInfo"));
|
|
|
|
, prefix: "paging--${pageName}"
|
|
|
|
}
|
|
|
|
, start: obj.${infoPrefix}Start
|
|
|
|
|
|
|
|
, totalSize: obj.${infoPrefix}Total
|
|
|
|
|
|
|
|
, fetchSize: obj.${infoPrefix}Fetch
|
|
|
|
|
|
|
|
, func: "$P.control.load({index})"
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
$P.control.onCurrentChange = (item) => {
|
|
|
|
$P.ctrl.onCurrentChange = (item) => {
|
|
|
|
if (!item) return;
|
|
|
|
if (!item) return;
|
|
|
|
|
|
|
|
|
|
|
|
let key = item.data.LEVY_ID;
|
|
|
|
let key = item.data.LEVY_ID;
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
$P.$findn("tbodyList").setCurrentRow(key);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 선택(체크) 변경 이벤트
|
|
|
|
|
|
|
|
$P.control.onSelectionChange = (selected) => {
|
|
|
|
|
|
|
|
let ${infoPrefix}List = $P.control.dataset;
|
|
|
|
|
|
|
|
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName} input[type='checkbox']").each(function() {
|
|
|
|
|
|
|
|
let checkbox = $(this);
|
|
|
|
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables(그리드) 전체 선택(checkbox)
|
|
|
|
|
|
|
|
if (keys.length < 1) {
|
|
|
|
|
|
|
|
$("#DataTables_Table_0--${pageName} th input[type='checkbox']").prop("checked", false); // 체크 해제
|
|
|
|
|
|
|
|
} else if (keys.length == ${infoPrefix}List.length) {
|
|
|
|
|
|
|
|
$("#DataTables_Table_0--${pageName} th input[type='checkbox']").prop("checked", true); // 체크 설정
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("#DataTables_Table_0--${pageName} th input[type='checkbox']").prop("checked", false); // 체크 해제
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 상세정보 dialog
|
|
|
|
// 선택(체크) 변경 이벤트
|
|
|
|
$P.control.getInfo = (params) => {
|
|
|
|
$P.ctrl.onSelectionChange = (selected) => {
|
|
|
|
if (!params) return;
|
|
|
|
Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.findn("tbodyList"), 1, selected);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
@ -447,12 +419,12 @@
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
$P.renderList = (totalSize, option) => {
|
|
|
|
$P.renderList = (totalSize, option) => {
|
|
|
|
let ${infoPrefix}List = $P.control.dataset;
|
|
|
|
let dataList = $P.ctrl.dataset;
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
let empty = dataList.empty;
|
|
|
|
let clsForTask = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val().toLowerCase(); // 소문자
|
|
|
|
let clsForTask = $P.$findn("frmSearch").find("[name='taskSeCd']:checked").val().toLowerCase();
|
|
|
|
|
|
|
|
|
|
|
|
// 업무별 DataTables(그리드) tr, td
|
|
|
|
// 업무별 DataTables(그리드) tr, td
|
|
|
|
let foundContent = document.getElementById("${infoPrefix}Row--${pageName}").content;
|
|
|
|
let foundContent = $P.findn("tmpltRows").content;
|
|
|
|
let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
|
|
|
|
let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
|
|
|
|
let foundTds = $(foundContent).find("." + clsForTask + ",.cmn");
|
|
|
|
let foundTds = $(foundContent).find("." + clsForTask + ",.cmn");
|
|
|
|
|
|
|
|
|
|
|
@ -460,228 +432,248 @@
|
|
|
|
foundTr.appendChild(this.cloneNode(true));
|
|
|
|
foundTr.appendChild(this.cloneNode(true));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
let replacer = (str, dataItem) => str
|
|
|
|
let replacer = (str, dataItem) => str
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("LEVY_ID") + "');")
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("LEVY_ID") + "');")
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].getTotalInfo('" + dataItem.getValue("CRDN_ID") + "');");
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("LEVY_ID") + "', '" + dataItem.getValue("CRDN_ID") + "');");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ?
|
|
|
|
|
|
|
|
[$P.findn("tmpltNotFound").content.querySelector("." + clsForTask + ",.cmn").outerHTML]
|
|
|
|
|
|
|
|
: dataList.inStrings(foundTr.outerHTML, replacer);
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.querySelector("." + clsForTask + ",.cmn").outerHTML]
|
|
|
|
let noMore = (dataList.length >= totalSize);
|
|
|
|
: ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer);
|
|
|
|
let initScroll = ($P.ctrl.query.pageNum < 2);
|
|
|
|
|
|
|
|
|
|
|
|
let noMore = (${infoPrefix}List.length >= totalSize);
|
|
|
|
|
|
|
|
let initScroll = ($P.control.query.pageNum < 2);
|
|
|
|
|
|
|
|
if (option != null && option.reloaded) {
|
|
|
|
if (option != null && option.reloaded) {
|
|
|
|
initScroll = false;
|
|
|
|
initScroll = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore);
|
|
|
|
$P.findn("tableRspns").changeContent(trs.join(), initScroll, noMore);
|
|
|
|
|
|
|
|
|
|
|
|
// checkbox 체크 해제
|
|
|
|
// checkbox 체크 해제
|
|
|
|
$("#DataTables_Table_0--${pageName} th input[type='checkbox']").prop("checked", false);
|
|
|
|
$P.$findn("gridAllCheckbox").prop("checked", false);
|
|
|
|
|
|
|
|
|
|
|
|
// 보안모드
|
|
|
|
// 보안모드
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables에 스크롤이 맨 밑으로 이동했을 때 이벤트
|
|
|
|
// dataTable 체크박스 클릭 이벤트
|
|
|
|
$P.scrollDataList = () => {
|
|
|
|
$P.dataTableCheckbox = (element, bool) => {
|
|
|
|
|
|
|
|
GRID.checkbox.sync(element, bool);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let atLeastOne = GRID.checkbox.countChecked(element) > 0;
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.load($P.control.query.pageNum + 1);
|
|
|
|
$P.$findn("btnRemove").prop("disabled", !atLeastOne);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Apply.toDataset.selection($P.ctrl.dataset, element, bool);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables에 더블 클릭시 개별총정보 dialog
|
|
|
|
// dataTable 클릭 이벤트
|
|
|
|
$P.getTotalInfo = (crdnId) => {
|
|
|
|
$P.dataTableClick = (dataKey) => {
|
|
|
|
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
|
|
|
|
if (!dataKey) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.$findn("tbodyList").setCurrentRow(dataKey);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Apply.toDataset.current($P.ctrl.dataset, dataKey);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// dataTable 더블 클릭 이벤트 - 개별총정보 dialog
|
|
|
|
|
|
|
|
$P.dataTableDblClick = (dataKey, crdnId) => {
|
|
|
|
|
|
|
|
if (!dataKey) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 단속 ID가 없다면 개별총정보 팝업을 실행하지 않는다.
|
|
|
|
|
|
|
|
if (!crdnId) return;
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
let params = {
|
|
|
|
callControlName: "pageObject['${pageName}'].control"
|
|
|
|
callControlName: "pageObject['${pageName}'].ctrl"
|
|
|
|
, sggCd: $P.control.dataset.getValue("SGG_CD")
|
|
|
|
, sggCd: $P.ctrl.getValue("SGG_CD")
|
|
|
|
, taskSeCd: $P.control.dataset.getValue("TASK_SE_CD")
|
|
|
|
, taskSeCd: $P.ctrl.getValue("TASK_SE_CD")
|
|
|
|
, crdnId: crdnId
|
|
|
|
, crdnId: crdnId
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url: wctx.url("/sprt/sprt02/010/main.do")
|
|
|
|
url: wctx.url("/sprt/sprt02/010/main.do")
|
|
|
|
, data: params
|
|
|
|
, data: params || {}
|
|
|
|
, success: resp => {
|
|
|
|
, success: (resp) => {
|
|
|
|
|
|
|
|
let dialogName = "totalInfoMainDialog";
|
|
|
|
|
|
|
|
let dialogId = dialogName + "-" + uuid();
|
|
|
|
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
dialog.open({
|
|
|
|
id: "totalInfoMainDialog"
|
|
|
|
id: dialogId
|
|
|
|
, title: "개별총정보"
|
|
|
|
, title: "개별총정보"
|
|
|
|
, content: resp
|
|
|
|
|
|
|
|
, size: "xxl"
|
|
|
|
, size: "xxl"
|
|
|
|
|
|
|
|
, content: resp
|
|
|
|
|
|
|
|
, init: () => {
|
|
|
|
|
|
|
|
$("#" + dialogId).attr("name", dialogName);
|
|
|
|
|
|
|
|
$("#" + dialogId).attr("data-ref-doctx", "${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AppSupport.setDialogZindex();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
, onClose: () => { }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables에 스크롤이 맨 밑으로 이동했을 때 이벤트
|
|
|
|
|
|
|
|
$P.scrollDataList = () => {
|
|
|
|
|
|
|
|
$P.ctrl.load($P.ctrl.query.pageNum + 1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 사용자 함수(function)
|
|
|
|
* 사용자 함수(function)
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 검색 자료 재조회
|
|
|
|
// 사용자검색 callback
|
|
|
|
$P.fnRefreshList = () => {
|
|
|
|
|
|
|
|
$P.control.reload({all : true});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// callback 사용자 검색
|
|
|
|
|
|
|
|
$P.callbackFindUser = (userId, userNm) => {
|
|
|
|
$P.callbackFindUser = (userId, userNm) => {
|
|
|
|
$("#schRgtrCd--${pageName}").val(userId); // 사용자 ID
|
|
|
|
$P.$findn("schRgtrCd").val(userId); // 사용자 ID
|
|
|
|
$("#schRgtrNm--${pageName}").val(userNm); // 사용자 명
|
|
|
|
$P.$findn("schRgtrNm").val(userNm); // 사용자 명
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 버튼 clickEvent
|
|
|
|
* 버튼 clickEvent
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
// 초기화 버튼 이벤트
|
|
|
|
|
|
|
|
$P.fnReset = (taskSeCd) => {
|
|
|
|
|
|
|
|
// 화면 초기화
|
|
|
|
|
|
|
|
$P.findn("frmSearch").reset();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// input, select 초기화
|
|
|
|
|
|
|
|
let searchForm = $P.$findn("frmSearch");
|
|
|
|
|
|
|
|
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
|
|
|
|
|
|
|
|
searchForm.find("input[type='checkbox']").prop("checked", false);
|
|
|
|
|
|
|
|
searchForm.find("input[type='text']").val("");
|
|
|
|
|
|
|
|
searchForm.find("input[type='hidden']").val("");
|
|
|
|
|
|
|
|
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 최고 관리자인지 권한을 확인하여 업무구분을 선택할 수 있도록 하자 -> 수정 필요
|
|
|
|
|
|
|
|
$P.$findn("frmSearch").find("input[name='taskSeCd']").each(function(i) {
|
|
|
|
|
|
|
|
$(this).prop("disabled", "true");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AppSupport.initDatepicker($P.findn("frmSearch")); // 달력 초기화
|
|
|
|
|
|
|
|
AppSupport.initDetailSearchButton($P.findn("frmSearch")); // 상세검색 버튼 화살표
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 기본 데이터 설정
|
|
|
|
|
|
|
|
$P.$findn("sggCd").val("${sggCd}"); // 시군구 코드
|
|
|
|
|
|
|
|
if (taskSeCd) { // 업무 구분 코드
|
|
|
|
|
|
|
|
$P.$findn("frmSearch").find("input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$P.$findn("schFyr").val(new Date().getFullYear()); // 회계 연도
|
|
|
|
|
|
|
|
$P.$findn("schLevyNoFrom").val("000001"); // 부과 번호 시작
|
|
|
|
|
|
|
|
$P.$findn("schLevyNoTo").val("999999"); // 부과 번호 종료
|
|
|
|
|
|
|
|
$P.$findn("byOutput").val("동적 검색"); // 동적 검색
|
|
|
|
|
|
|
|
$P.$findn("schRgtrNm").prop("readonly", true); // 사용자 이름
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// dataset 초기화
|
|
|
|
|
|
|
|
$P.ctrl.dataset.clear();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 업무 구분 변경
|
|
|
|
// 업무 구분 변경
|
|
|
|
$P.fnResetAndChangeBiz = (taskSeCd) => {
|
|
|
|
$P.fnResetAndChangeBiz = (taskSeCd) => {
|
|
|
|
// 업무 구분 코드
|
|
|
|
// 업무 구분 코드
|
|
|
|
if (typeof taskSeCd == "undefined" || taskSeCd == null || taskSeCd == "") {
|
|
|
|
if (!taskSeCd) {
|
|
|
|
taskSeCd = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
taskSeCd = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 초기 기본 설정
|
|
|
|
// 초기화
|
|
|
|
$P.initForm(taskSeCd);
|
|
|
|
$P.fnReset(taskSeCd);
|
|
|
|
// 업무 구분별 설정
|
|
|
|
|
|
|
|
$P.setTask(taskSeCd);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// dataset 초기화
|
|
|
|
// 업무구분에 따른 URL 설정
|
|
|
|
$P.control.dataset.clear();
|
|
|
|
$P.ctrl.urls.load = wctx.url("/" + taskSeCd + "${infoPrefixUrl}" + "/050/list.do"); // 검색
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 업무별 검색 조건
|
|
|
|
|
|
|
|
FimsSupport.renderForTask($P.findn("frmSearch"), taskSeCd.toLowerCase());
|
|
|
|
|
|
|
|
// 업무별 버튼
|
|
|
|
|
|
|
|
FimsSupport.renderForTask($P.findn("gridbuttonArea"), taskSeCd.toLowerCase());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 업무별 그리드 th
|
|
|
|
|
|
|
|
let colContent = $P.findn("tmpltCols").content;
|
|
|
|
|
|
|
|
let cols = $(colContent).find("." + taskSeCd.toLowerCase() + ",.cmn");
|
|
|
|
|
|
|
|
let colsOuterHTML = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cols.each(function() {
|
|
|
|
|
|
|
|
colsOuterHTML += this.outerHTML;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
$P.findn("tableRspns").changeColumn(colsOuterHTML);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 사용자검색 버튼 클릭 이벤트
|
|
|
|
// 사용자검색 버튼 클릭 이벤트
|
|
|
|
$P.fnGetFindUser = () => {
|
|
|
|
$P.fnGetFindUser = () => {
|
|
|
|
let params = {
|
|
|
|
let params = {
|
|
|
|
openerPageName: "${pageName}"
|
|
|
|
callbackFuncName: "pageObject['${pageName}']['callbackFindUser']"
|
|
|
|
, callbackFuncName: "pageObject['${pageName}']['callbackFindUser']"
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url: wctx.url("/user/user02/010/main.do") + "?openerPageName=${pageName}"
|
|
|
|
url: wctx.url("/user/user02/010/main.do")
|
|
|
|
, data: params || {}
|
|
|
|
, data: params || {}
|
|
|
|
, success: resp => {
|
|
|
|
, success: (resp) => {
|
|
|
|
|
|
|
|
let dialogName = "userDialog";
|
|
|
|
|
|
|
|
let dialogId = dialogName + "-" + uuid();
|
|
|
|
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
dialog.open({
|
|
|
|
id: "userDialog--${pageName}"
|
|
|
|
id: dialogId
|
|
|
|
, title: "사용자 검색"
|
|
|
|
, title: "사용자 검색"
|
|
|
|
, content: resp
|
|
|
|
|
|
|
|
, size: "lg"
|
|
|
|
, size: "lg"
|
|
|
|
, init: () => { AppSupport.setDialogZindex(); }
|
|
|
|
, content: resp
|
|
|
|
|
|
|
|
, init: () => {
|
|
|
|
|
|
|
|
$("#" + dialogId).attr("name", dialogName);
|
|
|
|
|
|
|
|
$("#" + dialogId).attr("data-ref-doctx", "${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AppSupport.setDialogZindex();
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 검색 버튼 이벤트
|
|
|
|
// 검색 버튼 클릭 이벤트
|
|
|
|
$P.fnSearchList = () => {
|
|
|
|
$P.fnSearchList = () => {
|
|
|
|
// 검색조건
|
|
|
|
// 검색조건
|
|
|
|
$P.control.query = $P.formFields.get(); // 검색 조건
|
|
|
|
$P.ctrl.query = $P.formFields.get(); // 검색 조건
|
|
|
|
$P.control.query.fetchSize = $P.control.defaultFetchSize; // 한번에 조회되는 자료 건수
|
|
|
|
$P.ctrl.query.fetchSize = DEFAULT_FETCH_SIZE; // 한번에 조회되는 자료 건수
|
|
|
|
$P.control.query.delYn = "N"; // 삭제 여부
|
|
|
|
$P.ctrl.query.delYn = "N"; // 삭제 여부
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.load(1);
|
|
|
|
$P.ctrl.load(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 엑셀 버튼 이벤트
|
|
|
|
// 엑셀 버튼 클릭 이벤트
|
|
|
|
$P.fnExcel = () => {
|
|
|
|
$P.fnExcel = () => {
|
|
|
|
if ($P.control.dataset.empty) {
|
|
|
|
if ($P.ctrl.dataset.empty) {
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: "검색된 자료가 없습니다."
|
|
|
|
content: "검색된 자료가 없습니다."
|
|
|
|
|
|
|
|
, init: () => { AppSupport.setDialogZindex(); }
|
|
|
|
, onOK: () => { }
|
|
|
|
, onOK: () => { }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables(그리드)
|
|
|
|
// DataTables(그리드)
|
|
|
|
let cellDefs = AppSupport.getCellDefs($("#theadTr--${pageName} th").not(".dummy-th").not(":eq(0)")
|
|
|
|
$P.ctrl.query.cellDefs =
|
|
|
|
, $($("#${infoPrefix}Row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)")
|
|
|
|
AppSupport.getCellDefs($P.$findn("theadTr").find("th").not(".dummy-th").not(":eq(0)")
|
|
|
|
|
|
|
|
, $($P.findn("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)")
|
|
|
|
, FimsSupport.getCellDefsForPrivacyCell);
|
|
|
|
, FimsSupport.getCellDefsForPrivacyCell);
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.query.cellDefs = cellDefs;
|
|
|
|
$P.ctrl.download();
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.download();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 초기 설정
|
|
|
|
* 초기 설정
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 이벤트
|
|
|
|
// 이벤트 설정
|
|
|
|
$P.setEvent = () => {
|
|
|
|
$P.setEvent = () => {
|
|
|
|
// 기본 버튼 이벤트
|
|
|
|
// 기본 버튼 이벤트
|
|
|
|
$("#btnReset--${pageName}").on("click", () => $P.fnResetAndChangeBiz()); // 초기화
|
|
|
|
$P.$findn("btnReset").on("click", () => { $P.fnResetAndChangeBiz() }); // 초기화
|
|
|
|
$("#btnSearch--${pageName}").on("click", () => $P.fnSearchList()); // 검색
|
|
|
|
$P.$findn("btnSearch").on("click", () => { $P.fnSearchList() }); // 검색
|
|
|
|
$("#btnExcel--${pageName}").on("click", () => $P.fnExcel()); // 엑셀
|
|
|
|
$P.$findn("btnExcel").on("click", () => { $P.fnExcel() }); // 엑셀
|
|
|
|
$("#btnFindUser--${pageName}").on("click", () => $P.fnGetFindUser()); // 사용자 검색
|
|
|
|
$P.$findn("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
|
|
|
|
|
|
|
|
|
|
|
|
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
|
|
|
|
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
|
|
|
|
$("#term--${pageName}").onEnterPress(function() {
|
|
|
|
$P.$findn("term").onEnterPress($P.fnSearchList);
|
|
|
|
$P.fnSearchList();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
|
|
|
|
|
|
|
|
$("#frmSearch--${pageName}").find(".form-date").each(function() {
|
|
|
|
|
|
|
|
$(this).on("input", function() {
|
|
|
|
|
|
|
|
let value = this.value.replaceAll("-", "");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (value.length > 7) {
|
|
|
|
|
|
|
|
this.value = value.substring(0, 4) + "-" + value.substring(4, 6) + "-" + value.substring(6);
|
|
|
|
|
|
|
|
} else if(value.length > 5) {
|
|
|
|
|
|
|
|
this.value = value.substring(0, 4) + "-" + value.substring(4);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고
|
|
|
|
// DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고
|
|
|
|
Componentization.fnMakeResizableTable($("#table-responsive--${pageName}")[0]);
|
|
|
|
Componentization.fnMakeResizableTable($P.findn("tableRspns"));
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables 스크롤 이벤트 생성
|
|
|
|
// DataTables 스크롤 이벤트 생성
|
|
|
|
Componentization.fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList);
|
|
|
|
Componentization.fnMakeScrollableTable($P.findn("tableRspns"), $P.scrollDataList);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 초기 화면 설정
|
|
|
|
|
|
|
|
$P.initForm = (taskSeCd) => {
|
|
|
|
|
|
|
|
// 화면 초기화
|
|
|
|
|
|
|
|
$("#frmSearch--${pageName}")[0].reset();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// input, select 초기화
|
|
|
|
|
|
|
|
let searchForm = $("#frmSearch--${pageName}");
|
|
|
|
|
|
|
|
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
|
|
|
|
|
|
|
|
searchForm.find("input[type='checkbox']").prop("checked", false);
|
|
|
|
|
|
|
|
searchForm.find("input[type='text']").val("");
|
|
|
|
|
|
|
|
searchForm.find("input[type='hidden']").val("");
|
|
|
|
|
|
|
|
searchForm.find("select").each(function() { $(this).find("option:eq(0)").prop("selected", true); });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 최고 관리자 경우 업무구분을 선택할 수 있도록 하자.
|
|
|
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
|
|
|
|
|
|
|
|
$(this).prop("disabled", "true");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 기본 데이터 설정
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#sggCd--${pageName}").val("${sggCd}"); // 시군구 코드
|
|
|
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true); // 업무 구분 코드
|
|
|
|
|
|
|
|
AppSupport.initDatepicker("frmSearch--${pageName}"); // 달력 초기화
|
|
|
|
|
|
|
|
$("#schFyr--${pageName}").val(new Date().getFullYear()); // 회계 연도
|
|
|
|
|
|
|
|
$("#schLevyNoFrom--${pageName}").val("000000"); // 부과 번호 시작
|
|
|
|
|
|
|
|
$("#schLevyNoTo--${pageName}").val("999999"); // 부과 번호 종료
|
|
|
|
|
|
|
|
$("#byOutput--${pageName}").val("동적 검색"); // 동적 검색
|
|
|
|
|
|
|
|
$("#schRgtrNm--${pageName}").prop("readonly", true); // 사용자 이름
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 업무 구분별 설정
|
|
|
|
|
|
|
|
$P.setTask = (taskSeCd) => {
|
|
|
|
|
|
|
|
// 업무구분에 따른 URL 설정
|
|
|
|
|
|
|
|
$P.control.urls.load = wctx.url("/" + taskSeCd + "${infoPrefixUrl}" + "/050/list.do"); // 검색
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 업무별 조회조건
|
|
|
|
|
|
|
|
FimsSupport.renderForTask("frmSearch--${pageName}", taskSeCd.toLowerCase());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 업무별 그리드 th
|
|
|
|
|
|
|
|
let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content;
|
|
|
|
|
|
|
|
let cols = $(colContent).find("." + taskSeCd.toLowerCase() + ",.cmn");
|
|
|
|
|
|
|
|
let colsOuterHTML = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cols.each(function() {
|
|
|
|
|
|
|
|
colsOuterHTML += this.outerHTML;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|