no message

main
이범준 1 year ago
parent 3b48ad3812
commit fc6e14b16c

@ -44,6 +44,12 @@ public interface CrdnCvlcptService {
*/ */
Map<String, String> makeFileFromHwpFormat(CrdnQuery query); Map<String, String> makeFileFromHwpFormat(CrdnQuery query);
/** ().
* @param crdnID ID
* @return
*/
boolean sendBackCivilComplaintInfo(String crdnId);
/** . /** .
* @param nonQueryRequest , crdnCvlcpt , crdn , newFileInfoList * @param nonQueryRequest , crdnCvlcpt , crdn , newFileInfoList
* @return * @return

@ -284,6 +284,16 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
return dataObject; return dataObject;
} }
@Override
public boolean sendBackCivilComplaintInfo(String crdnId) {
boolean saved = false;
//TODO : 반송(회수) 처리 추가
return saved;
}
@Override @Override
public boolean updateCvlcptPrcsSe(Map<String, Object> nonQueryRequest, CrdnCvlcpt crdnCvlcpt, Crdn crdn, List<FileInfo> newFileInfoList) { public boolean updateCvlcptPrcsSe(Map<String, Object> nonQueryRequest, CrdnCvlcpt crdnCvlcpt, Crdn crdn, List<FileInfo> newFileInfoList) {
boolean saved = false; boolean saved = false;
@ -314,8 +324,6 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
String newCvlcptPrcsCd = ""; String newCvlcptPrcsCd = "";
String newCvlcptTrsmCd = ""; String newCvlcptTrsmCd = "";
// 민원 답변 문구(TB_CVLCPT_ANS_WORDS) 대장 조회
String ansRsnCd = ""; String ansRsnCd = "";
if(acceptType.equals("someAccept") || acceptType.equals("nonAccept")) { //일부수용,불수용 if(acceptType.equals("someAccept") || acceptType.equals("nonAccept")) { //일부수용,불수용
ansRsnCd = crdn.getLevyExclRsnCd(); ansRsnCd = crdn.getLevyExclRsnCd();
@ -330,6 +338,8 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
if(ifEmpty(crdnCvlcpt.getDstrbncYn(), () -> "").equals("Y")) { if(ifEmpty(crdnCvlcpt.getDstrbncYn(), () -> "").equals("Y")) {
crdnQuery.setDstrbncYn("Y"); crdnQuery.setDstrbncYn("Y");
} }
// 민원 답변 문구(TB_CVLCPT_ANS_WORDS) 대장 조회
DataObject infoCvlcptAnsWords = crdnCvlcptMapper.selectCvlcptAnswerWordsInfo(crdnQuery); DataObject infoCvlcptAnsWords = crdnCvlcptMapper.selectCvlcptAnswerWordsInfo(crdnQuery);
if(acceptType.equals("someAccept") || acceptType.equals("nonAccept")) { //일부수용,불수용 if(acceptType.equals("someAccept") || acceptType.equals("nonAccept")) { //일부수용,불수용

@ -54,6 +54,41 @@ public class Cvlc01Controller extends ApplicationController {
return mav; return mav;
} }
/** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param query
* @return jsonView
* <pre><code> {
* "crdnList": [ ],
* "crdnStart": ,
* "crdnFetchTotal": ,
* "crdnTotal":
* }</code></pre>
*/
@RequestMapping(name="민원접수자료 목록", value="/010/list.do")
public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery query) {
query.setGridType("receiptData");
setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCivilComplaintList(query),"");
}
/** .
* @param crdnId
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
@RequestMapping(name="민원자료 제거", value="/010/remove.do")
public ModelAndView removeCivilComplaint(String[] IDs) {
boolean saved = crdnService.remove(IDs);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** . /** .
* @return fims/cvlc/cvlc01050-info * @return fims/cvlc/cvlc01050-info
*/ */
@ -76,22 +111,16 @@ public class Cvlc01Controller extends ApplicationController {
return mav; return mav;
} }
/** .<br /> /** .
* {@link CrdnService#getCrackdownList(CrdnQuery)} * @return hwp
* @param query
* @return jsonView
* <pre><code> {
* "crdnList": [ ],
* "crdnStart": ,
* "crdnFetchTotal": ,
* "crdnTotal":
* }</code></pre>
*/ */
@RequestMapping(name="민원접수자료 목록", value="/010/list.do") @RequestMapping(name="민원내역 원본 한글 파일 생성", value="/050/makeFileFromHwpFormat.do")
public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery query) { public ModelAndView makeFileFromHwpFormat(CrdnQuery query) {
query.setGridType("receiptData");
setFetchSize(query); Map<String,String> result = crdnCvlcptService.makeFileFromHwpFormat(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCivilComplaintList(query),""); ModelAndView mav = new ModelAndView("jsonView");
mav.addAllObjects(result);
return mav;
} }
/** .<br /> /** .<br />
@ -149,23 +178,6 @@ public class Cvlc01Controller extends ApplicationController {
return mav; return mav;
} }
/** .
* @param crdnId
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
@RequestMapping(name="민원자료 제거", value="/010/remove.do")
public ModelAndView removeCivilComplaint(String[] IDs) {
boolean saved = crdnService.remove(IDs);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** . /** .
* @param hReq , crdnCvlcpt , crdn , newFileList, modifyFileList * @param hReq , crdnCvlcpt , crdn , newFileList, modifyFileList
* @return jsonView * @return jsonView
@ -231,7 +243,6 @@ public class Cvlc01Controller extends ApplicationController {
* @param crdnId * @param crdnId
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
* "affected":
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@ -246,16 +257,21 @@ public class Cvlc01Controller extends ApplicationController {
.addObject("saved", saved); .addObject("saved", saved);
} }
/** . /** () .
* @return hwp * @param crdnId ID
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/ */
@RequestMapping(name="민원내역 원본 한글 파일 생성", value="/050/makeFileFromHwpFormat.do") @RequestMapping(name="민원 자료 반송", value="/020/remove.do")
public ModelAndView makeFileFromHwpFormat(CrdnQuery query) { public ModelAndView sendBackCivilComplaintInfo(String crdnId) {
Map<String,String> result = crdnCvlcptService.makeFileFromHwpFormat(query); boolean saved = false;
ModelAndView mav = new ModelAndView("jsonView");
mav.addAllObjects(result); saved = crdnCvlcptService.sendBackCivilComplaintInfo(crdnId);
return mav;
}
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
} }

@ -311,7 +311,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, CVLCPT_TRSM_CD = #{cvlcptTrsmCd} /* 민원전송코드 */ , CVLCPT_TRSM_CD = #{cvlcptTrsmCd} /* 민원전송코드 */
, CVLCPT_PRCS_SUMRY = #{cvlcptPrcsSumry} /* 민원처리요약 */ , CVLCPT_PRCS_SUMRY = #{cvlcptPrcsSumry} /* 민원처리요약 */
, DSTRBNC_YN = NULLIF(#{dstrbncYn},'N') /* 방해 여부 */ , DSTRBNC_YN = NULLIF(#{dstrbncYn},'N') /* 방해 여부 */
, CVLCPT_PRCS_PIC = #{modifiedBy} /* 수정자 */ , CVLCPT_PRCS_PIC = #{modifiedBy} /* 민원 처리 담당자 */
, MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */ , MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */
, MDFR = #{modifiedBy} /* 수정자 */ , MDFR = #{modifiedBy} /* 수정자 */
WHERE CVLCPT_LINK_ID = #{cvlcptLinkId} /* 연계 ID */ WHERE CVLCPT_LINK_ID = #{cvlcptLinkId} /* 연계 ID */

@ -557,7 +557,14 @@ $(document).ready(function(){
}, },
"refreshList" : function(){ "refreshList" : function(){
$P.refreshCrdnList(); $P.refreshCrdnList();
} },
"hasData" : function(key){
if($P.crdnControl.dataset.getData(key) == null){
return false;
} else {
return true;
}
},
}; };

@ -253,6 +253,7 @@
<button type="button" id="btnInstLevyExcl1--${pageName}" class="btn btn-primary">저장(서손처리)</button> <button type="button" id="btnInstLevyExcl1--${pageName}" class="btn btn-primary">저장(서손처리)</button>
<button type="button" id="btnInstLevyExcl2--${pageName}" class="btn btn-primary">저장(계고처리)</button> <button type="button" id="btnInstLevyExcl2--${pageName}" class="btn btn-primary">저장(계고처리)</button>
<button type="button" id="btnAccept--${pageName}" class="btn btn-primary">저장(수용)</button> <button type="button" id="btnAccept--${pageName}" class="btn btn-primary">저장(수용)</button>
<button type="button" id="btnSendBack--${pageName}" class="btn btn-primary">반송</button>
<button type="button" id="btnDataCopy--${pageName}" class="btn btn-primary">자료복사</button> <button type="button" id="btnDataCopy--${pageName}" class="btn btn-primary">자료복사</button>
<button type="button" id="btnHold--${pageName}" class="btn btn-primary">처리보류</button> <button type="button" id="btnHold--${pageName}" class="btn btn-primary">처리보류</button>
<button type="button" id="btnOpenCvlcptOrgnl--${pageName}" class="btn btn-primary">원본보기</button> <button type="button" id="btnOpenCvlcptOrgnl--${pageName}" class="btn btn-primary">원본보기</button>
@ -310,7 +311,8 @@ pageObject.childReq.push({
getPrevKey : function(){ return ""; }, getPrevKey : function(){ return ""; },
selectRow : function(){}, selectRow : function(){},
holdRow : function(){}, holdRow : function(){},
refreshList : function(){} refreshList : function(){},
hasData : function(){ return true; }
}); });
$(document).ready(function(){ $(document).ready(function(){
@ -341,7 +343,8 @@ $(document).ready(function(){
load : "", load : "",
getInfo : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/info.do"), getInfo : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/info.do"),
update : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/update.do"), update : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/update.do"),
create : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/create.do") create : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/create.do"),
remove : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/remove.do")
}, },
keymapper:info => info ? info.CRDN_ID : "", keymapper:info => info ? info.CRDN_ID : "",
dataGetter:obj => obj.crdnInfo, dataGetter:obj => obj.crdnInfo,
@ -548,6 +551,45 @@ $(document).ready(function(){
}; };
$P.fnSendBack = () => {
if(!confirm("반송 처리 하시겠습니까?")){
return;
}
var crdnId = $("#crdnId--${pageName}").val();
ajax.post({
url : $P.crdnControl.urls.remove,
data : { crdnId : crdnId },
success : resp => {
if(resp.saved){
var message = "민원회수 요청이 등록되었습니다.\n"
+"해당 자료를 서손처리하시기 바랍니다.\n"
+"서손처리 후 30~60분 사이에 서버에서 민원시스템으로 전송이 진행되니 이후에 민원시스템에서 확인하시기 바랍니다.";
dialog.alert(message);
var crdnId = $("#crdnId--${pageName}").val();
var cursorKey = "";
var nextKey = $P.provided.getNextKey(crdnId);
if(nextKey != ""){
cursorKey = nextKey;
} else {
var prevKey = $P.provided.getPrevKey(crdnId);
if(prevKey != ""){
cursorKey = prevKey;
}
}
$("#refreshEnd--${pageName}").attr("data-cursor-key", cursorKey);
$P.provided.refreshList();
}
}
});
}
$P.videoCallback = (snapshots) => { $P.videoCallback = (snapshots) => {
snapshots.forEach(function(canvas, index, array){ snapshots.forEach(function(canvas, index, array){
canvas.toBlob(function(blob){ canvas.toBlob(function(blob){
@ -762,17 +804,21 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$("#btnReset--${pageName}").on("click", () => $P.fnReset() );
$("#btnPrev--${pageName}").on("click", () => $P.fnPrev() ); $("#btnPrev--${pageName}").on("click", () => $P.fnPrev() );
$("#btnNext--${pageName}").on("click", () => $P.fnNext() ); $("#btnNext--${pageName}").on("click", () => $P.fnNext() );
$("#btnReset--${pageName}").on("click", () => $P.fnReset() ); //업무처리 버튼
$("#btnSendBack--${pageName}").on('click', () => { $P.fnSendBack(); });
$("#btnInstLevyExcl1--${pageName}").on("click", () => $P.openLevyExclPop("1")); $("#btnInstLevyExcl1--${pageName}").on("click", () => $P.openLevyExclPop("1"));
$("#btnInstLevyExcl2--${pageName}").on("click", () => $P.openLevyExclPop("2")); $("#btnInstLevyExcl2--${pageName}").on("click", () => $P.openLevyExclPop("2"));
$("#btnDataCopy--${pageName}").on("click", () => $P.fnCopy()); $("#btnDataCopy--${pageName}").on("click", () => $P.fnCopy());
$("#btnAccept--${pageName}").on('click', () => $P.fnAccept());
$("#btnHold--${pageName}").on("click", () => $P.fnHold()); $("#btnHold--${pageName}").on("click", () => $P.fnHold());
$("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl()); $("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl());
$("#btnAccept--${pageName}").on('click', () => $P.fnAccept());
//파일처리 버튼
$("#btnAddFile--${pageName}").on('click', () => { $("#inputUploadSet--${pageName}").trigger("click"); }); $("#btnAddFile--${pageName}").on('click', () => { $("#inputUploadSet--${pageName}").trigger("click"); });
$("#btnOpenVideoCapture--${pageName}").on('click', () => { $("#btnOpenVideoCapture--${pageName}").on('click', () => {
@ -836,6 +882,7 @@ $(document).ready(function(){
$P.fnDisplay(false); $P.fnDisplay(false);
}); });
//차적조회
$("#vhrno--${pageName}").on("keyup",function(e){ $("#vhrno--${pageName}").on("keyup",function(e){
if(e.key == "Enter"){ if(e.key == "Enter"){
var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", ""); var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", "");
@ -944,11 +991,18 @@ $(document).ready(function(){
} }
$("#refreshEnd--${pageName}").on("refreshEnd", function(){ $("#refreshEnd--${pageName}").on("refreshEnd", function(){
if(this.dataset.cursorKey != null && this.dataset.cursorKey != ""){
$P.fnGo(this.dataset.cursorKey); if(this.dataset.cursorKey == null || this.dataset.cursorKey == ""){
} else { dialog.close("cvlcptInitialDataEditDialog--${openerPageName}");
dialog.close("cvlcptInitialDataEditDialog--${openerPageName}"); return;
} }
if(!$P.provided.hasData(this.dataset.cursorKey)){
dialog.close("cvlcptInitialDataEditDialog--${openerPageName}");
return;
}
$P.fnGo(this.dataset.cursorKey);
}); });
/************************************************************************** /**************************************************************************

Loading…
Cancel
Save