|
|
@ -3,50 +3,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
<c:set var="prefixName" scope="request">사전통지 발송 대상 상세 정보</c:set>
|
|
|
|
<c:set var="prefixName" scope="request">사전통지 발송 대상 상세 정보</c:set>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- inner page html -->
|
|
|
|
<!-- Inner page html -->
|
|
|
|
<div class="wrapper-pop">
|
|
|
|
<div class="content-wrapper" data-doctx="${pageName}">
|
|
|
|
<!-- Content -->
|
|
|
|
<!-- Content -->
|
|
|
|
<div class="container flex-grow-1 px-0">
|
|
|
|
<div class="container flex-grow-1 px-0">
|
|
|
|
|
|
|
|
<div class="card wrapper-pop">
|
|
|
|
<!-- Page Body -->
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
<form id="frmEdit--${pageName}" name="frmEdit">
|
|
|
|
<form name="frmEdit">
|
|
|
|
|
|
|
|
<input type="hidden" name="sggCd" />
|
|
|
|
|
|
|
|
<input type="hidden" name="taskSeCd" />
|
|
|
|
|
|
|
|
<input type="hidden" name="vltnCd" />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
|
<!-- 총 건수 -->
|
|
|
|
|
|
|
|
<div class="col-md-12 text-end px-2">
|
|
|
|
<div class="col-md-12 text-end px-2">
|
|
|
|
<label class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">총건수 / 총금액</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end">총건수 / 총금액</label>
|
|
|
|
<input type="text" class="form-control w-px-80 text-end" id="tnocs--${pageName}" name="tnocs" data-fmt-type="number" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-px-80 text-end" name="tnocs" data-fmt-type="number" readonly />
|
|
|
|
<input type="text" class="form-control w-px-140 text-end" id="gramt--${pageName}" name="gramt" data-fmt-type="number" readonly />
|
|
|
|
<input is="id-input" type="text" class="form-control w-px-140 text-end" name="gramt" data-fmt-type="number" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 문서 번호 -->
|
|
|
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="docNo--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">문서번호</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="docNo">문서번호</label>
|
|
|
|
<input type="text" class="form-control w-55" id="docNo--${pageName}" name="docNo" autocomplete="off" />
|
|
|
|
<input is="id-input" type="text" class="form-control w-55" name="docNo" autocomplete="off" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 발송 일자 -->
|
|
|
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="sndngYmd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">발송일자</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="sndngYmd">발송일자</label>
|
|
|
|
<input type="text" class="form-control form-date" id="sndngYmd--${pageName}" name="sndngYmd"
|
|
|
|
<input type="text" class="form-control form-date" name="sndngYmd"
|
|
|
|
data-fmt-type="day" title="날짜 선택" maxlength="10" required />
|
|
|
|
data-fmt-type="day" autocomplete="off" title="날짜 선택" required />
|
|
|
|
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
|
|
|
|
<button type="button" class="bx bx-lg bx-calendar bg-white" name="btnSndngYmd"></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 발송 종료 일자 -->
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4" id="divSndngEndYmd--${pageName}">
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="sndngEndYmd">납기일자</label>
|
|
|
|
<label for="sndngEndYmd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">납기일자</label>
|
|
|
|
<input type="text" class="form-control form-date" name="sndngEndYmd"
|
|
|
|
<input type="text" class="form-control form-date" id="sndngEndYmd--${pageName}" name="sndngEndYmd"
|
|
|
|
data-fmt-type="day" autocomplete="off" title="날짜 선택" required />
|
|
|
|
data-fmt-type="day" title="날짜 선택" maxlength="10" />
|
|
|
|
<button type="button" class="bx bx-lg bx-calendar bg-white" name="btnSndngEndYmd"></button>
|
|
|
|
<button type="button" id="btnSndngEndYmd--${pageName}" class="bx bx-lg bx-calendar bg-white"></button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 제목 명 -->
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="ttlNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">제목</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="ttlNm">제목</label>
|
|
|
|
<input type="text" class="form-control w-87" id="ttlNm--${pageName}" name="ttlNm" autocomplete="off" />
|
|
|
|
<input is="id-input" type="text" class="form-control w-87" name="ttlNm" autocomplete="off" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 기타 내용 -->
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="etcCn--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">기타내용</label>
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end align-top" for="etcCn">기타내용</label>
|
|
|
|
<textarea type="text" class="form-control w-87" id="etcCn--${pageName}" name="etcCn" rows="2" data-maxlengthb="1000" autocomplete="off"></textarea>
|
|
|
|
<textarea is="id-textarea" class="form-control w-87" name="etcCn" rows="2" data-maxlengthb="1000" autocomplete="off"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div> <!-- <div class="row g-1"> -->
|
|
|
|
</div> <!-- <div class="row g-1"> -->
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
@ -54,10 +50,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<span class="container-page-btn">
|
|
|
|
<span class="container-page-btn" name="gridButtonArea">
|
|
|
|
|
|
|
|
<!-- 건수, 페이지 표시 -->
|
|
|
|
|
|
|
|
<div class="d-flex flex-row justify-content-between">
|
|
|
|
|
|
|
|
<span is="paging-info" class="dataTables_info" name="dataPagingInfo" role="status" aria-live="polite"></span>
|
|
|
|
|
|
|
|
<ul class="pagination pagination-primary" name="dataPaging">
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnSave--${pageName}" title="저장">
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" name="btnSave" title="저장">
|
|
|
|
저장
|
|
|
|
저장
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
@ -66,12 +68,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 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-300" id="table-responsive--${pageName}">
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll h-px-300" 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: 180px;">민원신청번호</th>
|
|
|
|
<th class="cmn" style="width: 180px;">민원신청번호</th>
|
|
|
|
<th class="cmn" style="width: 180px;">민원접수번호</th>
|
|
|
|
<th class="cmn" style="width: 180px;">민원접수번호</th>
|
|
|
@ -97,36 +98,36 @@
|
|
|
|
<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="{CRDN_ID}">
|
|
|
|
<tr data-index="{data-index}">
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{ROW_NUM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_APLY_NO}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{CVLCPT_APLY_NO}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_RCPT_NO}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{CVLCPT_RCPT_NO}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_RCPT_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{CVLCPT_RCPT_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_PRCS_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{CVLCPT_PRCS_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_YMD_TM}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{CRDN_YMD_TM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VHRNO}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{VHRNO}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{VLTN_ARTCL}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{VLTN_ARTCL}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STDG_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{CRDN_STDG_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_PLC}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{CRDN_PLC}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick ondblclick>{FFNLG_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{ADVNTCE_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick ondblclick>{ADVNTCE_AMT}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STTS_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick ondblclick>{CRDN_STTS_NM}</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}">{RTPYR_BRDT_MASK}</td>
|
|
|
|
<td class="cmn text-center" onclick ondblclick>{RTPYR_BRDT_MASK}</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="odd">
|
|
|
|
<tr class="odd">
|
|
|
|
<td valign="top" colspan="23" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
<td valign="top" colspan="23" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
@ -137,17 +138,18 @@
|
|
|
|
</div> <!-- DataTables(그리드) -->
|
|
|
|
</div> <!-- DataTables(그리드) -->
|
|
|
|
</div> <!-- <div class="card"> -->
|
|
|
|
</div> <!-- <div class="card"> -->
|
|
|
|
<!-- Page Body -->
|
|
|
|
<!-- Page Body -->
|
|
|
|
|
|
|
|
|
|
|
|
</div> <!-- <div class="container flex-grow-1 px-0"> -->
|
|
|
|
</div> <!-- <div class="container flex-grow-1 px-0"> -->
|
|
|
|
<!-- Content -->
|
|
|
|
<!-- / Content -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- / inner page html <div class="wrapper-pop"> -->
|
|
|
|
<!-- / Inner page html -->
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
LoadScript("sndb01060Script", wctx.url("/webjars/js/fims/sndb/sndb01060.js?ver=${ver}"));
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Global Variable
|
|
|
|
* Global Variable
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
pageObject["${pageName}"] = newDoctxFinder("${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* script 진입
|
|
|
|
* script 진입
|
|
|
@ -156,168 +158,88 @@
|
|
|
|
// pageObject
|
|
|
|
// pageObject
|
|
|
|
let $P = pageObject["${pageName}"];
|
|
|
|
let $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// URL
|
|
|
|
|
|
|
|
$P.prefixUrl = "${prefixUrl}";
|
|
|
|
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
|
|
|
|
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
|
|
|
|
$P.callPurpose = "${callPurpose}";
|
|
|
|
$P.callPurpose = "${callPurpose}";
|
|
|
|
// FormFields
|
|
|
|
|
|
|
|
$P.formFields = new FimsFormFields("#frmEdit--${pageName}");
|
|
|
|
|
|
|
|
// main 의 검색 조건을 그대로 유지
|
|
|
|
|
|
|
|
$P.mainQuery = ${mainQuery};
|
|
|
|
|
|
|
|
// 사전통지 일자
|
|
|
|
// 사전통지 일자
|
|
|
|
$P.advntceYmdInfo = ${advntceYmdInfo};
|
|
|
|
$P.advntceYmdInfo = ${advntceYmdInfo};
|
|
|
|
|
|
|
|
// datasetControl
|
|
|
|
/**************************************************************************
|
|
|
|
$P.ctrl = newSndb01060Control("${pageName}", "[data-doctx=${pageName}]");
|
|
|
|
* DatasetControl
|
|
|
|
// main 의 검색 조건을 그대로 유지
|
|
|
|
**************************************************************************/
|
|
|
|
$P.ctrl.query = ${mainQuery};
|
|
|
|
$P.control = new DatasetControl({
|
|
|
|
|
|
|
|
prefix: "advntceTrgt"
|
|
|
|
|
|
|
|
, prefixName: "사전통지 발송 대상"
|
|
|
|
|
|
|
|
, keymapper: info => info ? info.CRDN_ID : ""
|
|
|
|
|
|
|
|
, dataGetter: obj => obj.${infoPrefix}List
|
|
|
|
|
|
|
|
, appendData: true
|
|
|
|
|
|
|
|
, formats: {
|
|
|
|
|
|
|
|
TNOCS: numberFormat
|
|
|
|
|
|
|
|
, GRAMT: numberFormat
|
|
|
|
|
|
|
|
, CVLCPT_RCPT_YMD: dateFormat
|
|
|
|
|
|
|
|
, CRDN_YMD_TM: datetimeFormat
|
|
|
|
|
|
|
|
, FFNLG_AMT: numberFormat
|
|
|
|
|
|
|
|
, ADVNTCE_AMT: numberFormat
|
|
|
|
|
|
|
|
, REG_DT: datetimeFormat
|
|
|
|
|
|
|
|
, MDFCN_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;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
|
|
|
* 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.CRDN_ID;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 저장 callback
|
|
|
|
|
|
|
|
$P.control.onSave = (resp) => {
|
|
|
|
|
|
|
|
let dialogTitle = $("#" + $P.control.prefix + "Dialog--${openerPageName}").find("h5.modal-title").html();
|
|
|
|
|
|
|
|
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, dialogTitle);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 메시지 출력
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
|
|
|
content: showMessage
|
|
|
|
|
|
|
|
, init: () => { AppSupport.setDialogZindex(); }
|
|
|
|
|
|
|
|
, onOK: () => { }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (resp.saved) {
|
|
|
|
|
|
|
|
dialog.close($P.control.prefix + "Dialog--${openerPageName}");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 저장
|
|
|
|
|
|
|
|
$P.control.save = (info) => {
|
|
|
|
|
|
|
|
if (!info) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let create = ($P.callPurpose == "create");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
|
|
|
|
url: !create ? $P.control.urls.update : $P.control.urls.create
|
|
|
|
|
|
|
|
, data: info
|
|
|
|
|
|
|
|
, success: resp => $P.control.onSave(resp)
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 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("CRDN_ID") + "');")
|
|
|
|
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].getTotalInfo('" + dataItem.getValue("CRDN_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에 스크롤이 맨 밑으로 이동했을 때 이벤트
|
|
|
|
// dataTable 더블 클릭 이벤트 - 개별총정보 dialog
|
|
|
|
$P.scrollDataList = () => {
|
|
|
|
$P.dataTableDblClick = (dataIndex) => {
|
|
|
|
|
|
|
|
if (!dataIndex) return;
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.load($P.control.query.pageNum + 1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables에 더블 클릭시 개별총정보 dialog
|
|
|
|
// 단속 ID
|
|
|
|
$P.getTotalInfo = (crdnId) => {
|
|
|
|
let crdnId = $P.ctrl.getValue("CRDN_ID");
|
|
|
|
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
|
|
|
|
if (!crdnId) return;
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
let params = {
|
|
|
|
callControlName: "pageObject['${pageName}'].control"
|
|
|
|
callPageName: "${pageName}"
|
|
|
|
, callPurpose: "view"
|
|
|
|
, callPurpose: "view"
|
|
|
|
, 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: $P.ctrl.getValue("CRDN_ID")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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.query.pageNum += 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url: $P.ctrl.urls.load
|
|
|
|
|
|
|
|
, headers: { Accept: "application/json; charset=utf-8" } // json
|
|
|
|
|
|
|
|
, data: $P.ctrl.query
|
|
|
|
|
|
|
|
, success: (resp) => {
|
|
|
|
|
|
|
|
$P.ctrl.addData(resp);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 사용자 함수(function)
|
|
|
|
* 사용자 함수(function)
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 업무구분에 따른 URL 설정
|
|
|
|
|
|
|
|
$P.fnSetURL = (taskSeCd) => {
|
|
|
|
|
|
|
|
$P.control.urls.create = wctx.url("/" + taskSeCd + "${infoPrefixUrl}" + "/060/createList.do"); // 등록
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 버튼 clickEvent
|
|
|
|
* 버튼 clickEvent
|
|
|
@ -325,19 +247,21 @@
|
|
|
|
// 저장
|
|
|
|
// 저장
|
|
|
|
$P.fnSave = () => {
|
|
|
|
$P.fnSave = () => {
|
|
|
|
// validate 확인
|
|
|
|
// validate 확인
|
|
|
|
if (!AppSupport.customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
|
|
|
|
if (!AppSupport.customValidate($P.$findn("frmEdit").find("input,select,textarea"))) return;
|
|
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: "현재 " + $P.control.prefixName + " 정보를 저장하시겠습니까?"
|
|
|
|
content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?"
|
|
|
|
, init: () => { AppSupport.setDialogZindex(); }
|
|
|
|
, init: () => { AppSupport.setDialogZindex(); }
|
|
|
|
, onOK: () => {
|
|
|
|
, onOK: () => {
|
|
|
|
|
|
|
|
let formFields = new FimsFormFields($P.selectorn("frmEdit")).get(); // formFields
|
|
|
|
|
|
|
|
|
|
|
|
// 검색조건과 저장 파라미터 객체를 합친다.
|
|
|
|
// 검색조건과 저장 파라미터 객체를 합친다.
|
|
|
|
let params = $.extend({}, $P.mainQuery, $P.formFields.get());
|
|
|
|
let params = $.extend({}, $P.ctrl.query, formFields);
|
|
|
|
params.sndngRegSeCd = "01"; // 발송 등록 구분 코드(SNDNG_REG_SE_CD) - 01: 일괄
|
|
|
|
params.sndngRegSeCd = "01"; // 발송 등록 구분 코드(SNDNG_REG_SE_CD) - 01: 일괄
|
|
|
|
params.rsndYn = "N"; // 재발송 여부
|
|
|
|
params.rsndYn = "N"; // 재발송 여부
|
|
|
|
params.delYn = "N"; // 삭제 여부
|
|
|
|
params.delYn = "N"; // 삭제 여부
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.save(params);
|
|
|
|
$P.ctrl.save(params);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -347,77 +271,56 @@
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 이벤트 설정
|
|
|
|
// 이벤트 설정
|
|
|
|
$P.setEvent = () => {
|
|
|
|
$P.setEvent = () => {
|
|
|
|
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
|
|
|
|
|
|
|
|
$("#frmEdit--${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);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 부과 일자 변경 이벤트
|
|
|
|
// 부과 일자 변경 이벤트
|
|
|
|
$("#sndngYmd--${pageName}").on("change", function() {
|
|
|
|
$P.$findn("sndngYmd").on("change", function() {
|
|
|
|
let sndngYmd = $("#sndngYmd--${pageName}").val();
|
|
|
|
let sndngYmd = $P.$findn("sndngYmd").val();
|
|
|
|
$("#sndngEndYmd--${pageName}").val(addDate(sndngYmd, $P.advntceYmdInfo.ADVNTCE_DAY_CNT));
|
|
|
|
sndngYmd = new Date(sndngYmd);
|
|
|
|
});
|
|
|
|
sndngYmd.setDate(sndngYmd.getDate() + $P.advntceYmdInfo.ADVNTCE_DAY_CNT);
|
|
|
|
|
|
|
|
|
|
|
|
// 업무 버튼 이벤트
|
|
|
|
|
|
|
|
$("#btnSave--${pageName}").on("click", () => $P.fnSave()); // 저장
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables width 변경 조정
|
|
|
|
$P.$findn("sndngEndYmd").datepicker("setDate", sndngYmd);
|
|
|
|
Componentization.fnMakeResizableTable($("#table-responsive--${pageName}")[0]);
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables 스크롤 이벤트 생성
|
|
|
|
// 버튼 이벤트
|
|
|
|
Componentization.fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList);
|
|
|
|
$P.$findn("btnSave").on("click", () => $P.fnSave()); // 저장
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables 스크롤을 위해서 다이얼로그 화면이 생성된 후 Dataset을 설정한다.
|
|
|
|
// DataTables 스크롤을 위해서 다이얼로그 화면이 생성된 후 Dataset을 설정한다.
|
|
|
|
$("#${infoPrefix}Dialog--${openerPageName}").on("shown.bs.modal", function (e) {
|
|
|
|
let modalId = $(document.querySelector("[data-doctx='${pageName}']")).parents(".modal")[0].id;
|
|
|
|
$P.control.setData({
|
|
|
|
$("#" + modalId).on("shown.bs.modal", function (e) {
|
|
|
|
${infoPrefix}List: ${advntceTrgtList}
|
|
|
|
$P.ctrl.setData( {List: ${List}, Paging: ${Paging}} );
|
|
|
|
, ${infoPrefix}Start: ${advntceTrgtStart}
|
|
|
|
|
|
|
|
, ${infoPrefix}Fetch: ${advntceTrgtFetch}
|
|
|
|
|
|
|
|
, ${infoPrefix}Total: ${advntceTrgtTotal}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 초기 데이터 설정
|
|
|
|
$P.$findn("tnocs").val($P.ctrl.getValue("TOT_CNT")); // 총건수
|
|
|
|
$P.initData();
|
|
|
|
$P.$findn("gramt").val($P.ctrl.getValue("GRAMT")); // 총금액
|
|
|
|
});
|
|
|
|
$P.$findn("sndngYmd").datepicker("setDate", TODAY()); // 발송 일자
|
|
|
|
|
|
|
|
// 제목
|
|
|
|
|
|
|
|
let ttlNm = $P.ctrl.getValue("TASK_SE_NM");
|
|
|
|
|
|
|
|
if ($P.ctrl.query.schVltnCd) { // 위반항목이 '전체'가 아니라면..
|
|
|
|
|
|
|
|
ttlNm = ttlNm + " " + $P.ctrl.getValue("VLTN_ARTCL");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$P.$findn("ttlNm").val(ttlNm + " " + "사전통지");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// 화면 초기 설정
|
|
|
|
// DataTables width 변경 조정
|
|
|
|
$P.initForm = () => {
|
|
|
|
Componentization.fnMakeResizableTable($P.findn("tableRspns"));
|
|
|
|
// 화면 초기화
|
|
|
|
// DataTables 스크롤 이벤트 생성
|
|
|
|
$("#frmEdit--${pageName}")[0].reset();
|
|
|
|
Componentization.fnMakeScrollableTable($P.findn("tableRspns"), $P.scrollDataList);
|
|
|
|
|
|
|
|
|
|
|
|
// 달력 초기화
|
|
|
|
|
|
|
|
AppSupport.initDatepicker("frmEdit--${pageName}");
|
|
|
|
|
|
|
|
$("#sndngYmd--${pageName}").datepicker("setDate", new Date());
|
|
|
|
|
|
|
|
$("#sndngEndYmd--${pageName}").datepicker("setDate", new Date());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 초기 데이터 설정
|
|
|
|
// 초기화 이벤트
|
|
|
|
$P.initData = () => {
|
|
|
|
$P.fnReset = () => {
|
|
|
|
// 총건수 / 총금액
|
|
|
|
// 초기화
|
|
|
|
$("#tnocs--${pageName}").val(${advntceTrgtTotal});
|
|
|
|
$P.findn("frmEdit").reset(); // 화면 초기화
|
|
|
|
$("#gramt--${pageName}").val($P.control.dataset.getValue("GRAMT"));
|
|
|
|
AppSupport.initDatepicker($P.findn("frmEdit")); // 달력 초기화
|
|
|
|
// 발송 일자 / 발송 종료 일자
|
|
|
|
|
|
|
|
$("#sndngYmd--${pageName}").val($P.advntceYmdInfo.LEVY_YMD_MASK);
|
|
|
|
|
|
|
|
$("#sndngEndYmd--${pageName}").val($P.advntceYmdInfo.DUDT_YMD_MASK);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 제목
|
|
|
|
// 기본 데이터 설정
|
|
|
|
let ttlNm = $P.control.dataset.getValue("TASK_SE_NM");
|
|
|
|
$P.$findn("sggCd").val("${sggCd}"); // 시군구 코드
|
|
|
|
if ($P.mainQuery.schVltnCd != null && $P.mainQuery.schVltnCd != "") { // 위반항목이 '전체'가 아니라면..
|
|
|
|
$P.$findn("taskSeCd").val("${taskSeCd}"); // 업무 구분 코드
|
|
|
|
ttlNm = ttlNm + " " + $P.control.dataset.getValue("VLTN_ARTCL");
|
|
|
|
$P.$findn("vltnCd").val("${vltnCd}"); // 위반 코드
|
|
|
|
}
|
|
|
|
$P.$findn("sndngYmd").datepicker("setDate", TODAY()); // 발송 일자
|
|
|
|
$("#ttlNm--${pageName}").val(ttlNm + " " + "사전통지");
|
|
|
|
$P.$findn("sndngEndYmd").datepicker("setDate", TODAY()); // 납기 일자
|
|
|
|
|
|
|
|
|
|
|
|
// 업무 구분에 따른 URL 설정
|
|
|
|
// 업무 구분에 따른 URL 설정
|
|
|
|
$P.fnSetURL($P.mainQuery.taskSeCd);
|
|
|
|
$P.ctrl.urls.load = wctx.url("/" + "${taskSeCd}" + $P.prefixUrl + "/060/info.do"); // 조회
|
|
|
|
|
|
|
|
$P.ctrl.urls.create = wctx.url("/" + "${taskSeCd}" + $P.prefixUrl + "/060/createList.do"); // 등록
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
@ -427,7 +330,7 @@
|
|
|
|
$P.setEvent();
|
|
|
|
$P.setEvent();
|
|
|
|
|
|
|
|
|
|
|
|
// 2. 초기 화면 설정
|
|
|
|
// 2. 초기 화면 설정
|
|
|
|
$P.initForm();
|
|
|
|
$P.fnReset();
|
|
|
|
|
|
|
|
|
|
|
|
// 3. 보안모드
|
|
|
|
// 3. 보안모드
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|