우편통합 발송 추가.

main
jjh 1 year ago
parent f41ae0713c
commit 2857d048c1

@ -174,20 +174,6 @@ public interface SndngMapper extends AbstractMapper {
*/
List<DataObject> selectWrngSndngList(SndbQuery req);
/** .<br />
* @param req
* @return
*/
List<DataObject> selectAdvntceSndngList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> selectAdvntceSndngs(SndbQuery req);
/** .<br />
* @param req
* @return

@ -91,6 +91,14 @@ public interface SndngService {
*/
boolean removeSndng(Sndng sndng);
/**(EPost) .
* @param sndng
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
String createEPost(Sndng sndng);
@ -105,21 +113,6 @@ public interface SndngService {
/** .
* @param req
* @return
*/
List<DataObject> getAdvntceSndngList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getAdvntceSndngs(SndbQuery req);
/** .
* @param req
* @return

@ -350,11 +350,26 @@ public class SndngBean extends AbstractComponent {
return sndngMapper.deleteSndng(sndng);
}
/** .
* @param sndng
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
public String createEPost(Sndng sndng) {
// 변수 선언
boolean retSuccess = false; // DB 처리 결과
String retMessage = "[F] "; // 처리 결과 메시지
retMessage = "[S] 작업이 정상 처리 되었습니다.";
return retMessage;
}
@ -364,21 +379,7 @@ public class SndngBean extends AbstractComponent {
/** .
* @param req
* @return
*/
public List<DataObject> getAdvntceSndngList(SndbQuery req) {
return sndngMapper.selectAdvntceSndngList(req);
}
/** .
* @param req
* @return
*/
public List<DataObject> getAdvntceSndngs(SndbQuery req) {
return sndngMapper.selectAdvntceSndngs(req);
}
/** .
* @param req

@ -51,8 +51,6 @@ public class SndngServiceBean extends AbstractServiceBean implements SndngServic
return sndngBean.getAdvntceSndngTrgts(req);
}
@Override
public List<DataObject> getSndngList(SndbQuery req) {
return sndngBean.getSndngList(req);
@ -83,6 +81,11 @@ public class SndngServiceBean extends AbstractServiceBean implements SndngServic
return sndngBean.removeSndng(sndng);
}
@Override
public String createEPost(Sndng sndng) {
return sndngBean.createEPost(sndng);
}
@ -91,15 +94,7 @@ public class SndngServiceBean extends AbstractServiceBean implements SndngServic
@Override
public List<DataObject> getAdvntceSndngList(SndbQuery req) {
return sndngBean.getAdvntceSndngList(req);
}
@Override
public List<DataObject> getAdvntceSndngs(SndbQuery req) {
return sndngBean.getAdvntceSndngs(req);
}
@Override
public List<DataObject> getNhtSndngList(SndbQuery req) {

@ -42,7 +42,8 @@ public class Sndb01Controller extends ApplicationController {
, advanceNoticeSendingMain = "/070/main.do" // 사전통지 발송 현황 메인 화면
, getAdvntceSndngList = "/070/list.do" // 사전통지 발송 대상 목록 조회
, getAdvntceSndngDltInfo = "/080/info.do" // 사전통지 발송 상세 대장 조회
, createSndng = "/020/create.do" // 발송 대상 등록
, createSndng = "/020/createSndng.do" // 발송 대상 등록
, createEPost = "/080/createEPost.do" // 우편 통합 발송 등록
;
}
@ -280,12 +281,6 @@ public class Sndb01Controller extends ApplicationController {
;
}
/** .
* @param sndng
* @return jsonView
@ -308,4 +303,28 @@ public class Sndb01Controller extends ApplicationController {
.addObject("retMessage", retMessage);
}
/** .
* @param sndng
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
public ModelAndView createEPost(Sndng sndng) {
boolean saved = false;
String retMessage = sndngService.createEPost(sndng);
if (retMessage.contains("[S]")) {
saved = true;
} else {
saved = false;
}
return new ModelAndView("jsonView")
.addObject("saved", saved)
.addObject("retMessage", retMessage);
}
}

@ -182,23 +182,6 @@ public class Sndb04Controller extends ApplicationController {
;
}
/** .<br />
* {@link SndngService#getSndngList(SndngQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "sndngList": [ ]
* "sndngStart":
* "sndngFetch":
* "sndngTotal":
* }</code></pre>
*/
public ModelAndView getAdvntceSndngList(SndbQuery req) {
List<?> result = sndngService.getAdvntceSndngList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "sndng");
}
/** (sndb/sndb01/060-main) .
* {@link #getSndngList(SndbQuery) } .
* @return /sndb/sndb01/060-main

@ -552,6 +552,12 @@ public class DpvController {
return super.createSndng(sndng);
}
@Override
@RequestMapping(name="장애인과태료업무 우편통합 발송 등록", value=METHOD_URL.createEPost)
public ModelAndView createEPost(Sndng sndng) {
return super.createEPost(sndng);
}
}
@Controller

@ -20,7 +20,7 @@
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색" onclick="fnSearchList${pageName}();">
검색
</button>
<button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();">
<button type="button" class="btn btn-excel" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();">
엑셀
</button>
</span>

@ -20,7 +20,7 @@
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색" onclick="fnSearchList${pageName}();">
검색
</button>
<button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();">
<button type="button" class="btn btn-excel" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();">
엑셀
</button>
</span>

@ -20,7 +20,7 @@
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색" onclick="fnSearchList${pageName}();">
검색
</button>
<button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();">
<button type="button" class="btn btn-excel" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();">
엑셀
</button>
</span>

@ -250,7 +250,7 @@
info.resndYn = "N"; // 재발송 여부
info.delYn = "N"; // 삭제 여부
let createUrl = wctx.url(info.taskSeCd + ${pageName}PrefixUrl + "/020/create.do");
let createUrl = wctx.url(info.taskSeCd + ${pageName}PrefixUrl + "/020/createSndng.do");
ajax.post({
url : createUrl

@ -243,7 +243,7 @@
info.resndYn = "N"; // 재발송 여부
info.delYn = "N"; // 삭제 여부
let createUrl = wctx.url(info.taskSeCd + ${pageName}PrefixUrl + "/020/create.do");
let createUrl = wctx.url(info.taskSeCd + ${pageName}PrefixUrl + "/020/createSndng.do");
ajax.post({
url : createUrl

@ -216,6 +216,57 @@
fn_securityModeToggle($("#securityMode--top").is(":checked"));
}
// 세외수입 등록
createNxrp${pageName} = (params) => {
// 선택된 자료의 발송 상세 ID 추가
let selected = ${pageName}Control.dataset.getKeys("selected");
if (selected.length < 1) return;
params.sndngDtlIDs = selected.join(","); // 발송 상세 IDs
params.delYn = "N"; // 삭제 여부
ajax.post({
url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/createNxrp.do")
, data : params || {}
, success : resp => { }
});
}
// 매칭정보 확인
updateNxrpMtchg${pageName} = (params) => {
// 선택된 자료의 발송 상세 ID 추가
let selected = ${pageName}Control.dataset.getKeys("selected");
if (selected.length < 1) return;
params.sndngDtlIDs = selected.join(","); // 발송 상세 IDs
params.delYn = "N"; // 삭제 여부
ajax.post({
url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/updateNxrpMtchg.do")
, data : params || {}
, success : resp => { }
});
}
// 우편통합 발송
createEPost${pageName} = (params) => {
// 선택된 자료의 발송 상세 ID 추가
let selected = ${pageName}Control.dataset.getKeys("selected");
if (selected.length < 1) return;
params.sndngDtlIDs = selected.join(","); // 발송 상세 IDs
params.delYn = "N"; // 삭제 여부
ajax.post({
url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/080/createEPost.do")
, data : params || {}
, success : resp => { }
});
}
// 종적결과 등록
createSndbk${pageName} = (params) => {
// 선택된 자료의 발송 상세 ID 추가
@ -226,13 +277,31 @@
params.sndngDtlIDs = selected.join(","); // 발송 상세 IDs
params.delYn = "N"; // 삭제 여부
// ajax.post({
// url : wctx.url(${pageName}PrefixUrl + "/createCrdnPayer.do")
// , data : params || {}
// , success : resp => ${pageName}Control.onSave(resp)
// });
ajax.post({
url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/createSndbk.do")
, data : params || {}
, success : resp => { }
});
}
// 미부과건 확인
levyIdnty${pageName} = (params) => {
// 선택된 자료의 발송 상세 ID 추가
let selected = ${pageName}Control.dataset.getKeys("selected");
if (selected.length < 1) return;
params.sndngDtlIDs = selected.join(","); // 발송 상세 IDs
params.delYn = "N"; // 삭제 여부
ajax.post({
url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/levyIdnty.do")
, data : params || {}
, success : resp => { }
});
}
/**************************************************************************
* 초기 셋팅
**************************************************************************/
@ -287,17 +356,36 @@
// 세외수입 등록
fnCreateNxrp${pageName} = () => {
// validate 확인
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
dialog.alert({
content : "세외수입 과태료 대장에 등록하시겠습니까?"
, onOK : () => {
createNxrp${pageName}(${pageName}Fields.get());
}
});
}
// 매치정보 등록
fnUpdateNxrpMtchg${pageName} = () => {
// validate 확인
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
updateNxrpMtchg${pageName}(${pageName}Fields.get());
}
// 우편통합 발송
fnCreateEPost${pageName} = () => {
// validate 확인
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
dialog.alert({
content : "우편 통합 발송하시겠습니까?"
, onOK : () => {
createEPost${pageName}(${pageName}Fields.get());
}
});
}
// 사전통지 출력
@ -307,10 +395,13 @@
// 등기번호 등록
fnCreateRgNo${pageName} = () => {
// validate 확인
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
createRgNo${pageName}(${pageName}Fields.get());
}
// 종적결과 확인
// 반송(종적결과) 확인
fnCreateSndbk${pageName} = () => {
// validate 확인
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
@ -325,7 +416,10 @@
// 미부과건 확인
fnLevyIdnty${pageName} = () => {
// validate 확인
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
levyIdnty${pageName}(${pageName}Fields.get());
}
/**************************************************************************

Loading…
Cancel
Save