계고장 상세 내역 추가.

main
jjh 1 year ago
parent d874b2081b
commit 857839617f

@ -45,6 +45,18 @@ public interface SndngMapper extends AbstractMapper {
return !InfoSndngTrgt.isEmpty() ? InfoSndngTrgt.get(0) : null; return !InfoSndngTrgt.isEmpty() ? InfoSndngTrgt.get(0) : null;
} }
/** .<br />
* @param req
* @return
*/
List<DataObject> selectSndngList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> selectSndngDtls(SndbQuery req);
@ -162,12 +174,6 @@ public interface SndngMapper extends AbstractMapper {
/** .<br />
* @param req
* @return
*/
List<DataObject> selectSndngList(SndbQuery req);
/** . /** .
* @param req * @param req
* @return * @return
@ -180,12 +186,6 @@ public interface SndngMapper extends AbstractMapper {
*/ */
List<DataObject> selectSndngDtlList(SndbQuery req); List<DataObject> selectSndngDtlList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> selectSndngDtls(SndbQuery req);
/** . /** .
* @param params * @param params
* <ul><li>"sndngDtl" - </li> * <ul><li>"sndngDtl" - </li>

@ -32,6 +32,22 @@ public interface SndngService {
*/ */
List<DataObject> getSndngTrgts(SndbQuery req); List<DataObject> getSndngTrgts(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getSndngList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getSndngDtls(SndbQuery req);
/** . /** .
@ -114,11 +130,6 @@ public interface SndngService {
List<DataObject> getNhtSndngs(SndbQuery req); List<DataObject> getNhtSndngs(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getSndngList(SndbQuery req);
/** . /** .
* @param req * @param req
@ -133,12 +144,6 @@ public interface SndngService {
*/ */
List<DataObject> getSndngDtlList(SndbQuery req); List<DataObject> getSndngDtlList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getSndngDtls(SndbQuery req);
/** . /** .
* @param sndngDtl * @param sndngDtl
* @return * @return

@ -69,6 +69,27 @@ public class SndngBean extends AbstractComponent {
return sndngMapper.selectSndngTrgts(req); return sndngMapper.selectSndngTrgts(req);
} }
/** .
* @param req
* @return
*/
public List<DataObject> getSndngList(SndbQuery req) {
if (req.getOrderBy() == null) {
req.setOrderBy("REG_DT");
}
return sndngMapper.selectSndngList(req);
}
/** .
* @param req
* @return
*/
public List<DataObject> getSndngDtls(SndbQuery req) {
return sndngMapper.selectSndngDtls(req);
}
@ -151,7 +172,7 @@ public class SndngBean extends AbstractComponent {
sndngDtl.setDudtYmd(sndng.getDudtYmd()); // 납기 일자 sndngDtl.setDudtYmd(sndng.getDudtYmd()); // 납기 일자
if (sndng.getSndngSeCd().equals("10")) { // 계고장 if (sndng.getSndngSeCd().equals("10")) { // 계고장
ffnlgAmt = infoCrdnSndngTrgt.number("FFNLG_CRDN_AMT").intValue(); // 과태료 금액 ffnlgAmt = infoCrdnSndngTrgt.number("FFNLG_AMT").intValue(); // 과태료 금액
levyPcptax = infoCrdnSndngTrgt.number("FFNLG_AMT").intValue(); // 부과 본세 levyPcptax = infoCrdnSndngTrgt.number("FFNLG_AMT").intValue(); // 부과 본세
levyAdamt = 0; // 부과 가산금 levyAdamt = 0; // 부과 가산금
levySumAmt = infoCrdnSndngTrgt.number("FFNLG_AMT").intValue(); // 부과 합계 금액 levySumAmt = infoCrdnSndngTrgt.number("FFNLG_AMT").intValue(); // 부과 합계 금액
@ -320,14 +341,6 @@ public class SndngBean extends AbstractComponent {
return sndngMapper.selectNhtSndngs(req); return sndngMapper.selectNhtSndngs(req);
} }
/** .
* @param req
* @return
*/
public List<DataObject> getSndngList(SndbQuery req) {
return sndngMapper.selectSndngList(req);
}
/** . /** .
* @param req * @param req
* @return * @return
@ -344,14 +357,6 @@ public class SndngBean extends AbstractComponent {
return sndngMapper.selectSndngDtlList(req); return sndngMapper.selectSndngDtlList(req);
} }
/** .
* @param req
* @return
*/
public List<DataObject> getSndngDtls(SndbQuery req) {
return sndngMapper.selectSndngDtls(req);
}
/** . /** .
* @param sndngDtl * @param sndngDtl
* @return * @return

@ -41,6 +41,16 @@ public class SndngServiceBean extends AbstractServiceBean implements SndngServic
return sndngBean.getSndngTrgts(req); return sndngBean.getSndngTrgts(req);
} }
@Override
public List<DataObject> getSndngList(SndbQuery req) {
return sndngBean.getSndngList(req);
}
@Override
public List<DataObject> getSndngDtls(SndbQuery req) {
return sndngBean.getSndngDtls(req);
}
@ -98,10 +108,6 @@ public class SndngServiceBean extends AbstractServiceBean implements SndngServic
} }
@Override
public List<DataObject> getSndngList(SndbQuery req) {
return sndngBean.getSndngList(req);
}
@Override @Override
public List<DataObject> getSndngs(SndbQuery req) { public List<DataObject> getSndngs(SndbQuery req) {
@ -113,11 +119,6 @@ public class SndngServiceBean extends AbstractServiceBean implements SndngServic
return sndngBean.getSndngDtlList(req); return sndngBean.getSndngDtlList(req);
} }
@Override
public List<DataObject> getSndngDtls(SndbQuery req) {
return sndngBean.getSndngDtls(req);
}
@Override @Override
public boolean createSndngDtl(SndngDtl sndngDtl) { public boolean createSndngDtl(SndngDtl sndngDtl) {
return sndngBean.createSndngDtl(sndngDtl); return sndngBean.createSndngDtl(sndngDtl);

@ -32,9 +32,10 @@ public class Sndb01Controller extends ApplicationController {
warningSendingTargetMain = "/010/main.do" // 계도장 발송 대상 메인 화면 warningSendingTargetMain = "/010/main.do" // 계도장 발송 대상 메인 화면
, getWrngSndngTrgtList = "/010/list.do" // 계도장 발송 대상 목록 조회 , getWrngSndngTrgtList = "/010/list.do" // 계도장 발송 대상 목록 조회
, getSndngTrgtInfo = "/020/info.do" // 발송 대상 조회 , getSndngTrgtInfo = "/020/info.do" // 발송 대상 조회
, createSndng = "/020/create.do" // 발송 대상 등록
, warningSendingMain = "/030/main.do" // 계도장 발송 현황 메인 화면 , warningSendingMain = "/030/main.do" // 계도장 발송 현황 메인 화면
, getWrngSndngList = "/030/list.do" // 계도장 발송 현황 목록 조 , getWrngSndngList = "/030/list.do" // 계도장 발송 현황 목록 조회
, getSndngDltInfo = "/040/info.do" // 발송 상세 대장 조회
, createSndng = "/020/create.do" // 발송 대상 등록
; ;
} }
@ -136,6 +137,29 @@ public class Sndb01Controller extends ApplicationController {
return setCollectionInfo(new ModelAndView("jsonView"), result, "sndng"); return setCollectionInfo(new ModelAndView("jsonView"), result, "sndng");
} }
/** - (sndb/sndb01/040-info) .
* @param sndngId ID
* @return fims/sndb/sndb01040-info jsonView
* <pre>{
* "sndngDtls": [ ]
* }</pre>
*/
public ModelAndView getSndngDltInfo(SndbQuery req) {
List<?> sndngDtls = sndngService.getSndngDtls(req);
boolean json = jsonResponse();
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/sndb/sndb01040-info");
return mav
.addObject("pageName", "sndb01040")
.addObject("sndngSeCd", req.getSndngSeCd()) // 발송 구분 코드
.addObject("sndngDtlInfo", json ? sndngDtls : toJson(sndngDtls)) // 계도장 발송 현황 세부내용
;
}

@ -510,17 +510,26 @@ public class DpvController {
return super.getSndngTrgtInfo(req); return super.getSndngTrgtInfo(req);
} }
@Override
@RequestMapping(name="장애인과태료업무 계고장 발송 현황 목록 조회", value=METHOD_URL.getWrngSndngList)
public ModelAndView getWrngSndngList(SndbQuery req) {
return super.getWrngSndngList(req);
}
@Override
@RequestMapping(name="장애인과태료업무 발송 상세 대장 조회", value=METHOD_URL.getSndngDltInfo)
public ModelAndView getSndngDltInfo(SndbQuery req) {
return super.getSndngDltInfo(req);
}
@Override @Override
@RequestMapping(name="장애인과태료업무 발송 등록", value=METHOD_URL.createSndng) @RequestMapping(name="장애인과태료업무 발송 등록", value=METHOD_URL.createSndng)
public ModelAndView createSndng(Sndng sndng) { public ModelAndView createSndng(Sndng sndng) {
return super.createSndng(sndng); return super.createSndng(sndng);
} }
@Override
@RequestMapping(name="장애인과태료업무 계고장 발송 현황 목록 조회", value=METHOD_URL.getWrngSndngList)
public ModelAndView getWrngSndngList(SndbQuery req) {
return super.getWrngSndngList(req);
}
} }

@ -208,7 +208,7 @@
<include refid="dynamicSearch.start" /> <include refid="dynamicSearch.start" />
<choose> <choose>
<when test="by == 'levyExclYmd'"> LE.LEVY_EXCL_YMD </when> <when test="by == 'levyExclYmd'"> LE.LEVY_EXCL_YMD </when>
<when test="by == 'levyExclRsnNm'"> LE.LEVY_EXCL_RSN_CD </when> <when test="by == 'levyExclRsnCd'"> LE.LEVY_EXCL_RSN_CD </when>
<when test="by == 'etcCn'"> LE.ETC_CN </when> <when test="by == 'etcCn'"> LE.ETC_CN </when>
<when test="by == 'crdnYmd'"> C.CRDN_YMD </when> <when test="by == 'crdnYmd'"> C.CRDN_YMD </when>
<when test="by == 'vhrno'"> C.VHRNO </when> <when test="by == 'vhrno'"> C.VHRNO </when>
@ -217,7 +217,7 @@
<when test="by == 'ffnlgCrdnAmt'"> C.FFNLG_CRDN_AMT </when> <when test="by == 'ffnlgCrdnAmt'"> C.FFNLG_CRDN_AMT </when>
<when test="by == 'ffnlgAmt'"> C.FFNLG_AMT </when> <when test="by == 'ffnlgAmt'"> C.FFNLG_AMT </when>
<when test="by == 'advntceAmt'"> C.ADVNTCE_AMT </when> <when test="by == 'advntceAmt'"> C.ADVNTCE_AMT </when>
<when test="by == 'crdnSttsNm'"> C.CRDN_STTS_CD </when> <when test="by == 'crdnSttsCd'"> C.CRDN_STTS_CD </when>
<when test="by == 'rtpyrNm'"> P.RTPYR_NM </when> <when test="by == 'rtpyrNm'"> P.RTPYR_NM </when>
<when test="by == 'rtpyrNo'"> P.RTPYR_NO </when> <when test="by == 'rtpyrNo'"> P.RTPYR_NO </when>
<when test="by == 'rtpyrBrdt'"> P.RTPYR_BRDT </when> <when test="by == 'rtpyrBrdt'"> P.RTPYR_BRDT </when>
@ -527,6 +527,26 @@
, SD.CRDN_ID <!-- 단속 ID --> , SD.CRDN_ID <!-- 단속 ID -->
, SD.LEVY_ID <!-- 부과 ID --> , SD.LEVY_ID <!-- 부과 ID -->
, SD.VLTN_CD <!-- 위반 코드 --> , SD.VLTN_CD <!-- 위반 코드 -->
<choose>
<when test="taskSeCd == 'PVS'">
, (SELECT FN_GET_CODE_NM('FIM004', SD.VLTN_CD) FROM DUAL) AS VLTN_NM <!-- 위반 코드 명 -->
</when>
<when test="taskSeCd == 'BPV'">
, (SELECT FN_GET_CODE_NM('FIM005', SD.VLTN_CD) FROM DUAL) AS VLTN_NM <!-- 위반 코드 명 -->
</when>
<when test="taskSeCd == 'DPV'">
, (SELECT FN_GET_CODE_NM('FIM006', SD.VLTN_CD) FROM DUAL) AS VLTN_NM <!-- 위반 코드 명 -->
</when>
<when test="taskSeCd == 'ECA'">
, (SELECT FN_GET_CODE_NM('FIM061', SD.VLTN_CD) FROM DUAL) AS VLTN_NM <!-- 위반 코드 명 -->
</when>
<when test="taskSeCd == 'TPV'">
, (SELECT FN_GET_CODE_NM('FIM064', SD.VLTN_CD) FROM DUAL) AS VLTN_NM <!-- 위반 코드 명 -->
</when>
<otherwise>
, '' AS VLTN_NM <!-- 위반 코드 명 -->
</otherwise>
</choose>
, SD.VHRNO <!-- 차량번호 --> , SD.VHRNO <!-- 차량번호 -->
, SD.CRDN_DT <!-- 단속 일시 --> , SD.CRDN_DT <!-- 단속 일시 -->
, SD.CRDN_PLC <!-- 단속 장소 --> , SD.CRDN_PLC <!-- 단속 장소 -->
@ -721,7 +741,7 @@
, #{sndngDtl.svbtcId} <!-- 공시송달 ID --> , #{sndngDtl.svbtcId} <!-- 공시송달 ID -->
, #{sndngDtl.crdnId} <!-- 단속 ID --> , #{sndngDtl.crdnId} <!-- 단속 ID -->
, #{sndngDtl.levyId} <!-- 부과 ID --> , #{sndngDtl.levyId} <!-- 부과 ID -->
, #{sndng.vltnCd} <!-- 위반 코드 --> , #{sndngDtl.vltnCd} <!-- 위반 코드 -->
, #{sndngDtl.vhrno} <!-- 차량번호 --> , #{sndngDtl.vhrno} <!-- 차량번호 -->
, #{sndngDtl.crdnDt} <!-- 단속 일시 --> , #{sndngDtl.crdnDt} <!-- 단속 일시 -->
, #{sndngDtl.crdnPlc} <!-- 단속 장소 --> , #{sndngDtl.crdnPlc} <!-- 단속 장소 -->

@ -178,14 +178,14 @@
<input type="checkbox" class="form-check-input" onchange="${pageName}Control.select(this.checked);"> <input type="checkbox" class="form-check-input" onchange="${pageName}Control.select(this.checked);">
</th> </th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('LEVY_EXCL_YMD', this.innerText, 'ymd', '');">계고일자</th> <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('LEVY_EXCL_YMD', this.innerText, 'ymd', '');">계고일자</th>
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('LEVY_EXCL_RSN_NM', this.innerText, 'codeValue', 'FIM022');">계고사유</th> <th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('LEVY_EXCL_RSN_CD', this.innerText, 'codeValue', 'FIM022');">계고사유</th>
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('ETC_CN', this.innerText, 'match', 'part');">기타내용</th> <th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('ETC_CN', this.innerText, 'match', 'part');">기타내용</th>
<th class="cmn" style="width: 180px;" onclick="searchFromGridTitle('CRDN_YMD', this.innerText, 'ymd', '');">단속일시</th> <th class="cmn" style="width: 180px;" onclick="searchFromGridTitle('CRDN_YMD', this.innerText, 'ymd', '');">단속일시</th>
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('VHRNO', this.innerText, 'match', 'part');">차량번호</th> <th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('VHRNO', this.innerText, 'match', 'part');">차량번호</th>
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CRDN_STDG_NM', this.innerText, 'match', 'part');">법정동</th> <th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CRDN_STDG_NM', this.innerText, 'match', 'part');">법정동</th>
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('CRDN_PLC', this.innerText, 'match', 'part');">단속장소</th> <th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('CRDN_PLC', this.innerText, 'match', 'part');">단속장소</th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('FFNLG_AMT', this.innerText, 'match', 'part');">과태료금액</th> <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('FFNLG_AMT', this.innerText, 'match', 'part');">과태료금액</th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('CRDN_STTS_NM', this.innerText, 'codeValue', 'FIM010');">처리상태</th> <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('CRDN_STTS_CD', this.innerText, 'codeValue', 'FIM010');">처리상태</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>

@ -7,6 +7,7 @@
<div class="container flex-grow-1 px-0"> <div class="container flex-grow-1 px-0">
<!-- Page Body --> <!-- Page Body -->
<div class="card"> <div class="card">
<div class="wrapper-pop">
<!-- 입력 영역 --> <!-- 입력 영역 -->
<form id="frmEdit--${pageName}" name="frmEdit"> <form id="frmEdit--${pageName}" name="frmEdit">
<input type="hidden" id="sggCd--${pageName}" name="sggCd" /> <input type="hidden" id="sggCd--${pageName}" name="sggCd" />
@ -146,6 +147,7 @@
</div> </div>
</div> </div>
<!-- / DataTables(그리드) --> <!-- / DataTables(그리드) -->
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> --> </div> <!-- <div class="card"> -->
</div> <!-- / Content <div class="container flex-grow-1 px-0"> --> </div> <!-- / Content <div class="container flex-grow-1 px-0"> -->
</div> </div>

@ -138,7 +138,6 @@
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('TASK_SE_CD', this.innerText, 'codeValue', 'FIM054');">업무구분</th> <th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('TASK_SE_CD', this.innerText, 'codeValue', 'FIM054');">업무구분</th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('SNDNG_REG_SE_CD', this.innerText, 'codeValue', 'FIM067');">등록구분</th> <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('SNDNG_REG_SE_CD', this.innerText, 'codeValue', 'FIM067');">등록구분</th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('SNDNG_YMD', this.innerText, 'ymd', '');">발송일자</th> <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('SNDNG_YMD', this.innerText, 'ymd', '');">발송일자</th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('SNDNG_STTS_CD', this.innerText, 'codeValue', 'FIM049');">발송상태</th>
<th class="cmn" style="width: 100px;" onclick="searchFromGridTitle('TNOCS', this.innerText, 'match', 'part');">총건수</th> <th class="cmn" style="width: 100px;" onclick="searchFromGridTitle('TNOCS', this.innerText, 'match', 'part');">총건수</th>
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('GRAMT', this.innerText, 'match', 'part');">총금액</th> <th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('GRAMT', this.innerText, 'match', 'part');">총금액</th>
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('TTL_NM', this.innerText, 'match', 'part');">제목</th> <th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('TTL_NM', this.innerText, 'match', 'part');">제목</th>
@ -159,7 +158,6 @@
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{TASK_SE_NM}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{TASK_SE_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_REG_SE_NM}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_REG_SE_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_YMD}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_YMD}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_STTS_NM}</td>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{TNOCS}</td> <td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{TNOCS}</td>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{GRAMT}</td> <td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{GRAMT}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{TTL_NM}</td> <td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{TTL_NM}</td>
@ -267,28 +265,26 @@
$("#btnWrngSndngTrgInfo--${pageName}").prop("disabled", keys.length < 1); $("#btnWrngSndngTrgInfo--${pageName}").prop("disabled", keys.length < 1);
}; };
// 개별총정보 dialog // 계고장 세부내용
${pageName}Control.getInfo = (crdnId) => { ${pageName}Control.getInfo = (sndngId) => {
if (crdnId == undefined || crdnId == null || crdnId == "") {
return;
}
let params = { let params = {
callControlName : "${pageName}Control" callPurpose : "view"
, crdnId : crdnId , sggCd : ${pageName}Control.dataset.getValue("SGG_CD") // 시군구 코드
} , taskSeCd : ${pageName}Control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
, sndngId : sndngId // 발송 ID
};
ajax.get({ ajax.get({
url : ${pageName}Control.urls.getInfo url : ${pageName}Control.urls.getInfo
, data : params || {} , data : params || {}
, success : resp => { , success : resp => {
dialog.open({ dialog.open({
id : "totalInfoMainDialog" id : ${pageName}Control.prefixed("Dialog")
, title : "개별총정보" , title : "계고장 세부 내용"
, content : resp , content : resp
, size : "xxl" , size : ${pageName}Control.infoSize
, init : () => { } , init : () => { }
, onClose : () => { } , onClose : () => { ${pageName}Control.load(${pageName}Control.query.pageNum); } // callback
}); });
} }
}); });
@ -323,7 +319,7 @@
initForm${pageName}(); initForm${pageName}();
${pageName}Control.urls.load = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/030/list.do"); // 조회 ${pageName}Control.urls.load = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/030/list.do"); // 조회
${pageName}Control.urls.getInfo = wctx.url("/" + taskSeCd + "/sprt/sprt02/010/main.do"); // 개별총정보 ${pageName}Control.urls.getInfo = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/040/info.do"); // 계고장 세부내용
} }
// 검색 조건 파라미터 가져오기 // 검색 조건 파라미터 가져오기

@ -0,0 +1,292 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<!-- inner page html -->
<div class="content-wrapper">
<!-- Content -->
<div class="container flex-grow-1 px-0">
<!-- Page Body -->
<div class="card">
<div class="wrapper-pop">
<!-- 입력 영역 -->
<form id="frmEdit--${pageName}" name="frmEdit">
<input type="hidden" id="sggCd--${pageName}" name="sggCd" />
<input type="hidden" id="taskSeCd--${pageName}" name="taskSeCd" />
</form> <!-- /입력 영역 -->
<!-- 업무 버튼 및 건수 표시 -->
<div>
<span class="container-page-btn">
<span class="container-window-btn-right">
<!-- 업무 버튼 -->
<button type="button" class="btn btn-primary w-px-80" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();">
엑셀
</button>
<button type="button" class="btn btn-primary w-px-80" id="btnPrint--${pageName}" title="계고장 출력" onclick="fnPrint${pageName}();">
발송 등록
</button>
</span>
</span>
</div>
<!-- / 업무 버튼 및 건수 표시 -->
<!-- DataTables(그리드) -->
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}">
<div class="table-responsive" id="table-responsive--${pageName}" style="overflow-x:scroll; height:400px; overflow-y:scroll;" >
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead">
<tr id="theadTr--${pageName}"
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
<th class="cmn hidden" style="width: 56px;">
<input type="checkbox" class="form-check-input" onchange="${pageName}Control.select(this.checked);">
</th>
<th class="cmn" style="width: 120px;">발송상태</th>
<th class="cmn" style="width: 200px;">등기번호</th>
<th class="cmn" style="width: 120px;">발송일자</th>
<th class="cmn" style="width: 120px;">납기일자</th>
<th class="cmn" style="width: 200px;">납부자명</th>
<th class="cmn" style="width: 160px;">납부자번호</th>
<th class="cmn" style="width: 100px;">우편번호</th>
<th class="cmn" style="width: 280px;">주소</th>
<th class="cmn" style="width: 320px;">상세주소</th>
<th class="cmn" style="width: 160px;">위반내용</th>
<th class="cmn" style="width: 180px;">단속일시</th>
<th class="cmn" style="width: 140px;">차량번호</th>
<th class="cmn" style="width: 280px;">단속장소</th>
<th class="cmn" style="width: 120px;">단속금액</th>
<th class="cmn" style="width: 180px;">등록일시</th>
<th class="cmn" style="width: 140px;">등록사용자</th>
<th class="cmn" style="width: 180px;">수정일시</th>
<th class="cmn" style="width: 140px;">수정사용자</th>
<th class="cmn dummy-th"></th>
</tr>
</thead>
<tbody id="tbody--${pageName}">
</tbody>
<template id="${infoPrefix}Row--${pageName}">
<tr data-key="{SNDNG_DTL_ID}">
<td class="cmn text-center hidden">
<input type="checkbox" class="form-check-input" value="{SNDNG_DTL_ID}" onchange="${pageName}Control.select('{SNDNG_DTL_ID}', this.checked);">
</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_DTL_STTS_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RG_NO}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_YMD}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DUDT_YMD}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_NO}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_ZIP}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_ADDR}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_DTL_ADDR}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{VLTN_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_DT}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VHRNO}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_PLC}</td>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_AMT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{REG_DT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RGTR_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFCN_DT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFR_NM}</td>
<td class="cmn dummy-td"></td>
</tr>
</template>
<template id="${infoPrefix}NotFound--${pageName}">
<tr class="odd">
<td valign="top" colspan="19" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr>
</template>
</table>
</div>
</div>
</div>
<!-- / DataTables(그리드) -->
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div> <!-- / Content <div class="container flex-grow-1 px-0"> -->
</div>
<!-- / inner page html <div class="content-wrapper"> -->
<script>
/**************************************************************************
* Global Variable
**************************************************************************/
// URL
var ${pageName}PrefixUrl = "/sndb/sndb01";
// FormFields
var ${pageName}Fields = new FormFields("#frmEdit--${pageName}");
/**************************************************************************
* DatasetControl
**************************************************************************/
var ${pageName}Control = new DatasetControl({
prefix : "sndngDtlInfo"
, prefixName : "발송 대상"
, keymapper : info => info ? info.SNDNG_DTL_ID : ""
, dataGetter : obj => obj.sndngDtlInfoList
, appendData : true
, tableRenderComplete : false // dataTables 에 자료 추가 완료 여부
, urls : {
getInfo : wctx.url("/sprt/sprt02/010/main.do") // 개별총정보
}
, formats : {
SNDNG_YMD : dateFormat
, DUDT_YMD : dateFormat
, FFNLG_AMT : numberFormat
, REG_DT : datetimeFormat
, MDFCN_DT : datetimeFormat
}
});
/**************************************************************************
* DatasetControl 이벤트
**************************************************************************/
// Dataset 변경 이벤트
${pageName}Control.onDatasetChange = obj => {
renderList${pageName}();
${pageName}Control.select(true); // 전체 선택 되도록..
if (obj.length > 0) {
}
${pageName}Control.tableRenderComplete = true; // dataTables 에 자료 추가 완료
};
// 현재 선택 자료 변경 이벤트
${pageName}Control.onCurrentChange = item => {
if (!item) return;
let key = item.data.SNDNG_DTL_ID;
$("#tbody--${pageName}").setCurrentRow(key);
};
// 선택(체크) 변경 이벤트
${pageName}Control.onSelectionChange = selected => {
let ${infoPrefix}List = ${pageName}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에 click, dbclick 이벤트
renderList${pageName} = () => {
let ${infoPrefix}List = ${pageName}Control.dataset;
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, "${pageName}Control.setCurrent('" + dataItem.getValue("SNDNG_DTL_ID") + "');")
.replace(/{ondblclick}/gi, "${pageName}Control.getInfo('" + dataItem.getValue("SNDNG_DTL_ID") + "');")
);
$("#tbody--${pageName}").html(trs.join());
$("th input[type='checkbox']").prop("checked", false);
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
}
/**************************************************************************
* 초기 셋팅
**************************************************************************/
// 화면 초기값 셋팅
initForm${pageName} = () => {
// 달력 초기화
initDatepicker("frmEdit--${pageName}");
$("#sndngYmd--${pageName}").datepicker("setDate", new Date());
$("#dudtYmd--${pageName}").datepicker("setDate", new Date());
let sndngSeCd = "${sndngSeCd}";
if (sndngSeCd == "10") {
$("#dudtYmd--${pageName}").val("");
$("#dudtYmd--${pageName}").prop("disabled", true);
$("#divDudtYmd--${pageName}").hide();
} else {
$("#dudtYmd--${pageName}").datepicker("setDate", new Date());
$("#dudtYmd--${pageName}").prop("disabled", false);
$("#divDudtYmd--${pageName}").show();
}
${pageName}Control.urls.getInfo = wctx.url("/" + ${pageName}Control.dataset.getValue("TASK_SE_CD") + "/sprt/sprt02/010/main.do"); // 개별총정보
}
// 이벤트
setEvent${pageName} = () => {
// 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);
}
});
});
// DataTables width 변경 조정
$("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} );
}
/**************************************************************************
* 버튼 clickEvent
**************************************************************************/
// 엑셀
fnExcel${pageName} = () => {
}
// 계고장 출력
fnPrint${pageName} = () => {
// 선택된 자료의 발송 상세 ID 추가
let selected = ${pageName}Control.dataset.getKeys("selected");
if (selected.length < 1) return;
info.sndngDtlIDs = selected.join(","); // 발송 상세 IDs
info.delYn = "N"; // 삭제 여부
// let createUrl = wctx.url(info.taskSeCd + ${pageName}PrefixUrl + "/020/create.do");
// ajax.post({
// url : createUrl
// , data : info
// , success : resp => ${pageName}Control.onSave(resp)
// });
}
/**************************************************************************
* script 진입
**************************************************************************/
$(document).ready(function() {
// 이벤트 설정
setEvent${pageName}();
// 화면 초기 설정
initForm${pageName}();
// 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
// Dataset 셋팅 - 화면이 열리면서 조회하는 경우 addData 하여 자료를 추가
${pageName}Control.addData(${sndngDtlInfo});
$("#sggCd--${pageName}").val(${pageName}Control.dataset.getValue("SGG_CD")); // 시군구 코드
$("#taskSeCd--${pageName}").val(${pageName}Control.dataset.getValue("TASK_SE_CD")); // 업무 구분 코드
});
</script>
Loading…
Cancel
Save