|
|
@ -1,23 +1,23 @@
|
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
|
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
|
|
|
|
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
|
|
|
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
|
|
|
|
|
|
|
|
|
|
|
<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,18 +25,17 @@
|
|
|
|
<!-- 상단 버튼 -->
|
|
|
|
<!-- 상단 버튼 -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 검색 조건 영역 -->
|
|
|
|
<!-- 검색 조건 영역 -->
|
|
|
|
<form id="frmSearch--${pageName}" name="frmSearch">
|
|
|
|
<form name="frmSearch">
|
|
|
|
<!-- hidden -->
|
|
|
|
<!-- hidden -->
|
|
|
|
<input type="hidden" id="sggCd--${pageName}" name="sggCd" />
|
|
|
|
<input type="hidden" name="sggCd" />
|
|
|
|
<input type="hidden" id="deptCd--${pageName}" name="deptCd" />
|
|
|
|
<input type="hidden" name="deptCd" />
|
|
|
|
<input type="hidden" id="conOrg--${pageName}" name="conOrg" />
|
|
|
|
<input type="hidden" name="conOrg" />
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 메인 조건 -->
|
|
|
|
<!-- 메인 조건 -->
|
|
|
|
<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,65 +46,62 @@
|
|
|
|
</c:forEach>
|
|
|
|
</c:forEach>
|
|
|
|
</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="schExtriRegymdFrom--${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="schExtriRegymdFrom--${pageName}" name="schExtriRegymdFrom"
|
|
|
|
<input type="text" class="form-control form-date" name="schExtriRegymdFrom"
|
|
|
|
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="schExtriRegymdTo--${pageName}" name="schExtriRegymdTo"
|
|
|
|
<input type="text" class="form-control form-date" name="schExtriRegymdTo"
|
|
|
|
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">
|
|
|
|
<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-6">
|
|
|
|
<div class="col-6">
|
|
|
|
<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-6">
|
|
|
|
<div class="col-6">
|
|
|
|
<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> <!-- 상세 조건 -->
|
|
|
@ -114,28 +110,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<span class="container-page-btn">
|
|
|
|
<span class="container-page-btn" name="gridButtonArea">
|
|
|
|
<!-- 건수, 페이지 표시 -->
|
|
|
|
<!-- 건수, 페이지 표시 -->
|
|
|
|
<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>
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 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-400" 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}">
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 72px;">No.</th>
|
|
|
|
<th class="cmn" style="width: 72px;">No.</th>
|
|
|
|
<th class="cmn" style="width: 240px;" onclick="FimsSupport.searchFromGridTitle('RELETCDATA', this.innerText, 'match', 'part');">발송자료키</th>
|
|
|
|
<th class="cmn" style="width: 240px;" onclick="FimsSupport.searchFromGridTitle('RELETCDATA', this.innerText, 'match', 'part');">발송자료키</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="FimsSupport.searchFromGridTitle('JOB_CD', this.innerText, 'match', 'part');">우편물코드</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="FimsSupport.searchFromGridTitle('JOB_CD', this.innerText, 'match', 'part');">우편물코드</th>
|
|
|
@ -152,27 +144,27 @@
|
|
|
|
<th class="cmn dummy-th"></th>
|
|
|
|
<th class="cmn dummy-th"></th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody id="tbody--${pageName}">
|
|
|
|
<tbody name="tbodyList">
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
<template is="curly-brackets" name="tmpltRows">
|
|
|
|
<tr data-key="{RCPT_RSLT_ID}">
|
|
|
|
<tr data-index="{data-index}">
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}">{ROW_NUM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RELETCDATA}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}">{RELETCDATA}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{JOB_CD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}">{JOB_CD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{JOB_CD3_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}">{JOB_CD3_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{EXTRI_REGYMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}">{EXTRI_REGYMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RCEPT_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}">{RCEPT_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DIV_KB_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}">{DIV_KB_NM}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{RCEPT_CNT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}">{RCEPT_CNT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{RCEPT_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}">{RCEPT_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{USEFEE_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}">{USEFEE_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{TOTPOST_PRC}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}">{TOTPOST_PRC}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{REG_DT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}">{REG_DT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RGTR_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}">{RGTR_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="odd">
|
|
|
|
<tr class="odd">
|
|
|
|
<td valign="top" colspan="14" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
<td valign="top" colspan="14" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
@ -183,36 +175,36 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- DataTables(그리드) -->
|
|
|
|
<!-- DataTables(그리드) -->
|
|
|
|
|
|
|
|
|
|
|
|
<p> </p>
|
|
|
|
<p></p>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 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_1_wrapper--${pageName}">
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll h-px-150" id="table-responsive-1--${pageName}">
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll h-px-150" name="tableRspnsSumAmt">
|
|
|
|
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_1--${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="theadTrSumAmt--${pageName}">
|
|
|
|
<tr name="theadTrSumAmt" data-search-target="[data-doctx='${pageName}']">
|
|
|
|
<th class="cmn" style="width: 160px;">취급구분</th>
|
|
|
|
<th class="cmn" style="width: 160px;">취급구분</th>
|
|
|
|
<th class="cmn" style="width: 160px;">발송건수</th>
|
|
|
|
<th class="cmn" style="width: 200px;">발송건수</th>
|
|
|
|
<th class="cmn" style="width: 200px;">결제금액</th>
|
|
|
|
<th class="cmn" style="width: 240px;">결제금액</th>
|
|
|
|
<th class="cmn" style="width: 200px;">제작수수료</th>
|
|
|
|
<th class="cmn" style="width: 240px;">제작수수료</th>
|
|
|
|
<th class="cmn" style="width: 200px;">우편요금</th>
|
|
|
|
<th class="cmn" style="width: 240px;">우편요금</th>
|
|
|
|
<th class="cmn dummy-th"></th>
|
|
|
|
<th class="cmn dummy-th"></th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody id="tbodySumAmt--${pageName}">
|
|
|
|
<tbody name="tbodySumAmtList">
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template id="${infoPrefix}SumAmtRow--${pageName}">
|
|
|
|
<template is="curly-brackets" name="tmpltSumAmtRows">
|
|
|
|
<tr data-key="{DIV_KB}">
|
|
|
|
<tr data-key="{data-index}">
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DIV_KB_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}">{DIV_KB_NM}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{RCEPT_CNT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}">{RCEPT_CNT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{RCEPT_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}">{RCEPT_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{USEFEE_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}">{USEFEE_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{TOTPOST_PRC}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}">{TOTPOST_PRC}</td>
|
|
|
|
<td class="cmn dummy-td"></td>
|
|
|
|
<td class="cmn dummy-td"></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="${infoPrefix}SumAmtNotFound--${pageName}">
|
|
|
|
<template name="tmpltNotFoundSumAmt">
|
|
|
|
<tr class="odd">
|
|
|
|
<tr class="odd">
|
|
|
|
<td valign="top" colspan="6" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
<td valign="top" colspan="6" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
@ -231,11 +223,12 @@
|
|
|
|
<!-- / inner page html <div class="content-wrapper"> -->
|
|
|
|
<!-- / inner page html <div class="content-wrapper"> -->
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
LoadScript("epst02050Script", wctx.url("/webjars/js/fims/epst/epst02050.js?ver=${ver}"));
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Global Variable
|
|
|
|
* Global Variable
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
pageObject["${pageName}"] = newDoctxFinder("${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* script 진입
|
|
|
|
* script 진입
|
|
|
@ -244,161 +237,46 @@
|
|
|
|
// pageObject
|
|
|
|
// pageObject
|
|
|
|
let $P = pageObject["${pageName}"];
|
|
|
|
let $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
|
|
// FormFields
|
|
|
|
// URL
|
|
|
|
$P.formFields = new FimsFormFields("#frmSearch--${pageName}");
|
|
|
|
$P.prefixUrl = "${prefixUrl}"
|
|
|
|
|
|
|
|
// datasetControl
|
|
|
|
/**************************************************************************
|
|
|
|
$P.ctrl = newEpst02050Script("${pageName}", "[data-doctx=${pageName}]");
|
|
|
|
* DatasetControl
|
|
|
|
// paging
|
|
|
|
**************************************************************************/
|
|
|
|
$P.pagingSupport = new FimsPagingSupport({
|
|
|
|
$P.control = new DatasetControl({
|
|
|
|
ctrl: $P.ctrl // DatasetControl
|
|
|
|
prefix: "epostRcptRslt"
|
|
|
|
, ignoreCtrlPrefix: true // ctrl.prefix 가 있더라도 무시
|
|
|
|
, prefixName: "전자우편 접수 결과"
|
|
|
|
, linkContainer: "[name='dataPaging']" // <ul class="pagination pagination-primary" name="dataPaging">
|
|
|
|
, keymapper: info => info ? info.RCPT_RSLT_ID : ""
|
|
|
|
|
|
|
|
, dataGetter: obj => obj.${infoPrefix}List
|
|
|
|
|
|
|
|
, appendData: true
|
|
|
|
|
|
|
|
, infoSize: "lg"
|
|
|
|
|
|
|
|
, formats : {
|
|
|
|
|
|
|
|
EXTRI_REGYMD: dateFormat
|
|
|
|
|
|
|
|
, RCEPT_YMD: dateFormat
|
|
|
|
|
|
|
|
, RCEPT_CNT: numberFormat
|
|
|
|
|
|
|
|
, RCEPT_AMT: numberFormat
|
|
|
|
|
|
|
|
, USEFEE_AMT: numberFormat
|
|
|
|
|
|
|
|
, TOTPOST_PRC: numberFormat
|
|
|
|
|
|
|
|
, REG_DT: datetimeFormat
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
// $P.control 설정
|
|
|
|
|
|
|
|
$P.control.defaultFetchSize = FETCH_XS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30
|
|
|
|
|
|
|
|
$P.control.query = { pageNum : 1, fetchSize : $P.control.defaultFetchSize };
|
|
|
|
|
|
|
|
$P.control.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 합계 금액 정보 Dataset
|
|
|
|
|
|
|
|
$P.sumAmtDataset = new Dataset({
|
|
|
|
|
|
|
|
prefix: "sumAmt"
|
|
|
|
|
|
|
|
, prefixName: "합계 금액"
|
|
|
|
|
|
|
|
, keymapper: info => info ? info.DIV_KB : ""
|
|
|
|
|
|
|
|
, dataGetter: obj => obj.sumAmtList
|
|
|
|
|
|
|
|
, formats: {
|
|
|
|
|
|
|
|
RCEPT_CNT: numberFormat
|
|
|
|
|
|
|
|
, RCEPT_AMT: numberFormat
|
|
|
|
|
|
|
|
, USEFEE_AMT: numberFormat
|
|
|
|
|
|
|
|
, TOTPOST_PRC: numberFormat
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
, onDatasetChange: obj => {
|
|
|
|
|
|
|
|
$P.renderSumAmtList();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
, onCurrentChange: item => {
|
|
|
|
|
|
|
|
if (!item) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let key = item.data.DIV_KB;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbodySumAmt--${pageName}").setCurrentRow(key);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
|
|
|
|
$P.control.onDatasetChange = (obj, option) => {
|
|
|
|
|
|
|
|
$P.renderList(obj.${infoPrefix}Total, option);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#paging--${pageName}").setPagingInfo({
|
|
|
|
|
|
|
|
list: $P.control.dataset
|
|
|
|
|
|
|
|
, prefix: "paging--${pageName}"
|
|
|
|
|
|
|
|
, start: obj.${infoPrefix}Start
|
|
|
|
|
|
|
|
, totalSize: obj.${infoPrefix}Total
|
|
|
|
|
|
|
|
, fetchSize: obj.${infoPrefix}Fetch
|
|
|
|
|
|
|
|
, func: "pageObject['${pageName}'].control.load({index})"
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
|
|
|
|
$P.control.onCurrentChange = item => {
|
|
|
|
|
|
|
|
if (!item) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let key = item.data.RCPT_RSLT_ID;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DataTables 이벤트
|
|
|
|
* DataTables 이벤트
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
// dataTable 클릭 이벤트
|
|
|
|
$P.renderList = (totalSize, option) => {
|
|
|
|
$P.dataTableClick = (dataIndex) => {
|
|
|
|
let ${infoPrefix}List = $P.control.dataset;
|
|
|
|
if (!dataIndex) return;
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ?
|
|
|
|
|
|
|
|
[document.getElementById("${infoPrefix}NotFound--${pageName}").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
|
|
|
|
|
|
|
${infoPrefix}List.inStrings(
|
|
|
|
|
|
|
|
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
|
|
|
|
|
|
|
(str, dataItem) => str
|
|
|
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("RCPT_RSLT_ID") + "');")
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let noMore = (${infoPrefix}List.length >= totalSize);
|
|
|
|
|
|
|
|
let initScroll = ($P.control.query.pageNum < 2);
|
|
|
|
|
|
|
|
if(option != null && option.reloaded){
|
|
|
|
|
|
|
|
initScroll = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore);
|
|
|
|
$P.$findn("tbodyList").setCurrentRow(dataIndex);
|
|
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
Apply.toDataset.current($P.ctrl.dataset, dataIndex);
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables에 스크롤이 맨 밑으로 이동했을 때 이벤트
|
|
|
|
// DataTables에 스크롤이 맨 밑으로 이동했을 때 이벤트
|
|
|
|
$P.scrollDataList = () => {
|
|
|
|
$P.scrollDataList = () => {
|
|
|
|
|
|
|
|
$P.ctrl.load($P.ctrl.query.pageNum + 1);
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.load($P.control.query.pageNum + 1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
|
|
|
|
$P.renderSumAmtList = () => {
|
|
|
|
|
|
|
|
let ${infoPrefix}SumAmtList = $P.sumAmtDataset;
|
|
|
|
|
|
|
|
let empty = ${infoPrefix}SumAmtList.empty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ?
|
|
|
|
|
|
|
|
[document.getElementById("${infoPrefix}SumAmtNotFound--${pageName}").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
|
|
|
|
|
|
|
${infoPrefix}SumAmtList.inStrings(
|
|
|
|
|
|
|
|
document.getElementById("${infoPrefix}SumAmtRow--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
|
|
|
|
|
|
|
(str, dataItem) => str
|
|
|
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].sumAmtDataset.setCurrent('" + dataItem.getValue("DIV_KB") + "');")
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbodySumAmt--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 사용자 함수(function)
|
|
|
|
* 사용자 함수(function)
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 검색 자료 재조회
|
|
|
|
// 업무구분에 따른 URL 설정
|
|
|
|
$P.fnRefreshList = () => {
|
|
|
|
$P.fnSetURL = (taskSeCd) => {
|
|
|
|
$P.control.reload({all : true});
|
|
|
|
$P.ctrl.urls.load = wctx.url("/" + taskSeCd + $P.prefixUrl + "/050/list.do"); // 검색
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 사용자검색 callback
|
|
|
|
// 사용자검색 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); // 사용자 명
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 합계 금액 조회
|
|
|
|
|
|
|
|
$P.getSumAmtInfo = (query) => {
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url: wctx.url("/" + query.taskSeCd + "${infoPrefixUrl}" + "/050/sumAmt.do")
|
|
|
|
|
|
|
|
, data: query || {}
|
|
|
|
|
|
|
|
, success: resp => {
|
|
|
|
|
|
|
|
$P.sumAmtDataset.setData(resp.sumAmt);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
@ -407,37 +285,47 @@
|
|
|
|
// 업무 구분 변경 이벤트
|
|
|
|
// 업무 구분 변경 이벤트
|
|
|
|
$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);
|
|
|
|
// 업무 구분에 따른 URL 설정
|
|
|
|
|
|
|
|
$P.fnSetURL(taskSeCd);
|
|
|
|
|
|
|
|
|
|
|
|
// dataset 초기화
|
|
|
|
// 최고 관리자인지 권한을 확인하여 업무구분을 선택할 수 있도록 하자 -> 수정 필요
|
|
|
|
$P.control.dataset.clear();
|
|
|
|
$P.$findn("frmSearch").find("input[name='taskSeCd']").each(function(i) {
|
|
|
|
$P.sumAmtDataset.clear();
|
|
|
|
$(this).prop("disabled", "true");
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 사용자검색 버튼 클릭 이벤트
|
|
|
|
// 사용자검색 버튼 클릭 이벤트
|
|
|
|
$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();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
, onClose: () => { }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -445,36 +333,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
// 검색 버튼 이벤트
|
|
|
|
// 검색 버튼 이벤트
|
|
|
|
$P.fnSearchList = () => {
|
|
|
|
$P.fnSearchList = () => {
|
|
|
|
// 검색조건
|
|
|
|
// validate 확인
|
|
|
|
$P.control.query = $P.formFields.get();
|
|
|
|
if (!AppSupport.customValidate($P.$findn("frmSearch").find("input,select,textarea"))) return;
|
|
|
|
$P.control.query.fetchSize = $P.control.defaultFetchSize; // 한번에 조회되는 자료 건수
|
|
|
|
|
|
|
|
$P.control.query.relorsectCd = $("#deptCd--${pageName}").val(); // 결제부서코드(부서코드)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.load(1);
|
|
|
|
// 검색조건
|
|
|
|
|
|
|
|
$P.ctrl.query = new FimsFormFields($P.selectorn("frmSearch")).get(); // 검색 조건
|
|
|
|
|
|
|
|
$P.ctrl.query.fetchSize = DEFAULT_FETCH_SIZE; // 한번에 조회되는 자료 건수
|
|
|
|
|
|
|
|
$P.ctrl.query.relorsectCd = $P.$findn("deptCd").val(); // 결제부서코드(부서코드)
|
|
|
|
|
|
|
|
$P.ctrl.query.delYn = "N"; // 삭제 여부
|
|
|
|
|
|
|
|
$P.ctrl.query.pageNum = 1; // page
|
|
|
|
|
|
|
|
|
|
|
|
// 합계금액 검색 - 검색시 log에 등록할때 MAX+1 오류 발생으로 인한 타이머 동작
|
|
|
|
ajax.get({
|
|
|
|
setTimeout(() => $P.getSumAmtInfo($P.control.query), 500);
|
|
|
|
url: $P.ctrl.urls.load
|
|
|
|
//$P.getSumAmtInfo($P.control.query);
|
|
|
|
, data: $P.ctrl.query
|
|
|
|
|
|
|
|
, success: (resp) => {
|
|
|
|
|
|
|
|
if ($P.ctrl.query.pageNum == 1)
|
|
|
|
|
|
|
|
$P.ctrl.setData(resp);
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
$P.ctrl.addData(resp);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$P.ctrl.dsSumAmt.setData(resp.sumAmt);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 엑셀 버튼 이벤트
|
|
|
|
// 엑셀 버튼 이벤트
|
|
|
|
$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();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
@ -483,71 +383,48 @@
|
|
|
|
// 이벤트
|
|
|
|
// 이벤트
|
|
|
|
$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 참고
|
|
|
|
|
|
|
|
Componentization.fnMakeResizableTable($("#table-responsive--${pageName}")[0]);
|
|
|
|
|
|
|
|
Componentization.fnMakeResizableTable($("#table-responsive-1--${pageName}")[0]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables width 변경 조정
|
|
|
|
|
|
|
|
Componentization.fnMakeResizableTable($P.findn("tableRspns"));
|
|
|
|
|
|
|
|
Componentization.fnMakeResizableTable($P.findn("tableRspnsSumAmt"));
|
|
|
|
// DataTables 스크롤 이벤트 생성
|
|
|
|
// DataTables 스크롤 이벤트 생성
|
|
|
|
Componentization.fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList);
|
|
|
|
Componentization.fnMakeScrollableTable($P.findn("tableRspns"), $P.scrollDataList);
|
|
|
|
|
|
|
|
Componentization.fnMakeScrollableTable($P.findn("tableRspnsSumAmt"), $P.scrollDataList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 화면 초기 설정
|
|
|
|
// 화면 초기 설정
|
|
|
|
$P.initForm = (taskSeCd) => {
|
|
|
|
$P.fnReset = (taskSeCd) => {
|
|
|
|
// 화면 초기화
|
|
|
|
// 초기화
|
|
|
|
$("#frmSearch--${pageName}")[0].reset();
|
|
|
|
$P.findn("frmSearch").reset(); // 화면 초기화
|
|
|
|
|
|
|
|
$P.ctrl.dataset.clear(); // dataset 초기화
|
|
|
|
|
|
|
|
$P.ctrl.dsSumAmt.clear(); // dataset 초기화
|
|
|
|
|
|
|
|
AppSupport.initDatepicker($P.findn("frmSearch")); // 달력 초기화
|
|
|
|
|
|
|
|
AppSupport.initDetailSearchButton($P.findn("frmSearch")); // 상세검색 버튼 화살표
|
|
|
|
|
|
|
|
|
|
|
|
// input, select 초기화
|
|
|
|
// input, select 초기화
|
|
|
|
let searchForm = $("#frmSearch--${pageName}");
|
|
|
|
let searchForm = $P.$findn("frmSearch");
|
|
|
|
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
|
|
|
|
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
|
|
|
|
searchForm.find("input[type='checkbox']").prop("checked", false);
|
|
|
|
searchForm.find("input[type='checkbox']").prop("checked", false);
|
|
|
|
searchForm.find("input[type='text']").val("");
|
|
|
|
searchForm.find("input[type='text']").val("");
|
|
|
|
searchForm.find("input[type='hidden']").val("");
|
|
|
|
searchForm.find("input[type='hidden']").val("");
|
|
|
|
searchForm.find("select").each(function() { $(this).find("option:eq(0)").prop("selected", true); });
|
|
|
|
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}"); // 시군구 코드
|
|
|
|
$P.$findn("sggCd").val("${sggCd}"); // 시군구 코드
|
|
|
|
$("#deptCd--${pageName}").val("${deptCd}"); // 부서 코드
|
|
|
|
$P.$findn("deptCd").val("${deptCd}"); // 부서 코드
|
|
|
|
$("#conOrg--${pageName}").val("${conOrg}"); // E그린 외부기관구분코드
|
|
|
|
$P.$findn("conOrg").val("${conOrg}"); // E그린 외부기관구분코드
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true); // 업무 구분 코드
|
|
|
|
$P.$findn("frmSearch").find("input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true); // 업무 구분 코드
|
|
|
|
AppSupport.initDatepicker("frmSearch--${pageName}"); // 달력 초기화
|
|
|
|
$P.$findn("schExtriRegymdFrom").datepicker("setDate", DateSupport.getAddDay(-7)); // 발송 일자 시작
|
|
|
|
$("#schExtriRegymdFrom--${pageName}").datepicker("setDate", DateSupport.getAddDay(-7));
|
|
|
|
$P.$findn("schExtriRegymdTo").datepicker("setDate", TODAY()); // 발송 일자 종료
|
|
|
|
$("#schExtriRegymdTo--${pageName}").datepicker("setDate", new Date());
|
|
|
|
$P.$findn("byOutput").val("동적 검색"); // 동적 검색
|
|
|
|
$("#byOutput--${pageName}").val("동적 검색"); // 동적 검색
|
|
|
|
$P.$findn("schRgtrNm").prop("readonly", true); // 사용자 이름
|
|
|
|
$("#schRgtrNm--${pageName}").prop("readonly", true); // 사용자 이름
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 업무 구분별 설정
|
|
|
|
|
|
|
|
$P.setTask = (taskSeCd) => {
|
|
|
|
|
|
|
|
// 업무구분에 따른 URL 설정
|
|
|
|
|
|
|
|
$P.control.urls.load = wctx.url("/" + taskSeCd + "${infoPrefixUrl}" + "/050/list.do"); // 검색
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|