민원 컨트롤러 수정

main
이범준 1 year ago
parent 7b86934801
commit 1e19a6033e

@ -26,7 +26,7 @@ import cokr.xit.fims.cvlc.service.CrdnCvlcptService;
import cokr.xit.foundation.UserInfo; import cokr.xit.foundation.UserInfo;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
/**1 .<br /> /** .<br />
* { }/cvlc/cvlc01 . * { }/cvlc/cvlc01 .
* @author leebj * @author leebj
*/ */
@ -54,22 +54,6 @@ public class Cvlc01Controller extends ApplicationController {
return mav; return mav;
} }
/** .
* @return fims/cvlc/cvlc01030-main
*/
public ModelAndView civilComplaintAnswerTargetDataMain() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/cvlc/cvlc01030-main");
mav.addObject("pageName", "cvlc01030-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM017","FIM022", "FIM026", "FIM054");
mav.addObject("FIM017List", commonCodes.get("FIM017"));
mav.addObject("FIM054List", commonCodes.get("FIM054"));
addCodes(commonCodes, mav, "FIM022");
addCodes(commonCodes, mav, "FIM026");
return mav;
}
/** . /** .
* @return fims/cvlc/cvlc01050-info * @return fims/cvlc/cvlc01050-info
*/ */
@ -165,41 +149,6 @@ 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="/030/list.do")
public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery query) {
query.setGridType("answerTargetData");
setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCivilComplaintList(query), "");
}
/** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param query
* @return jsonView
* <pre><code> {
* "crdnList": [ ],
* "crdnStart": ,
* "crdnFetchTotal": ,
* "crdnTotal":
* }</code></pre>
*/
@RequestMapping(name="민원자료 목록", value="/040/list.do")
public ModelAndView getCivilComplaintList(CrdnQuery query) {
setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"),crdnCvlcptService.getCivilComplaintList(query),"");
}
/** . /** .
* @param crdnId * @param crdnId
* @return jsonView * @return jsonView
@ -309,61 +258,4 @@ public class Cvlc01Controller extends ApplicationController {
return mav; return mav;
} }
/** .
* @return
*/
@RequestMapping(name="민원답변내용 미리보기", value="/060/info.do")
public ModelAndView answerPreviewInfo(HttpServletRequest hReq, CrdnQuery query) {
boolean json = jsonResponse();
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/cvlc/cvlc01060-info");
mav.addObject("pageName", "cvlc01060-info");
String urlTaskSeCd = hReq.getServletPath().split("/")[1];
mav.addObject("taskSeCd", urlTaskSeCd);
query.setTaskSeCd(urlTaskSeCd);
DataObject cvlcptInfo = crdnCvlcptService.getAnswerPreview(query);
mav.addObject("cvlcptInfo", json ? cvlcptInfo : toJson(cvlcptInfo));
return mav;
}
/** .
* @param crdnCvlcpt
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
@RequestMapping(name="답변 내용 저장", value="/060/update.do")
public ModelAndView updateAnswerContent(CrdnCvlcpt crdnCvlcpt) {
boolean saved = false;
saved = crdnCvlcptService.updateAnswerContent(crdnCvlcpt);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param crdnCvlcpt
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
@RequestMapping(name="답변 내용 저장", value="/030/update.do")
public ModelAndView updateAnswerTargetProcessStatus(String processType, String... crdnIDs) {
boolean saved = false;
saved = crdnCvlcptService.updateAnswerTargetProcessStatus(processType, crdnIDs);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
} }

@ -1,12 +1,23 @@
package cokr.xit.fims.cvlc.web; package cokr.xit.fims.cvlc.web;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.cvlc.CrdnCvlcpt;
import cokr.xit.fims.cvlc.service.CrdnCvlcptService; import cokr.xit.fims.cvlc.service.CrdnCvlcptService;
import cokr.xit.foundation.data.DataObject;
/**2 .<br /> /** .<br />
* { }/cvlc/cvlc02 . * { }/cvlc/cvlc02 .
* @author leebj * @author leebj
*/ */
@ -18,6 +29,94 @@ public class Cvlc02Controller extends ApplicationController {
@Resource(name="crdnCvlcptService") @Resource(name="crdnCvlcptService")
private CrdnCvlcptService crdnCvlcptService; private CrdnCvlcptService crdnCvlcptService;
/** .
* @return fims/cvlc/cvlc02030-main
*/
public ModelAndView civilComplaintAnswerTargetDataMain() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/cvlc/cvlc02030-main");
mav.addObject("pageName", "cvlc02030-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM017","FIM022", "FIM026", "FIM054");
mav.addObject("FIM017List", commonCodes.get("FIM017"));
mav.addObject("FIM054List", commonCodes.get("FIM054"));
addCodes(commonCodes, mav, "FIM022");
addCodes(commonCodes, mav, "FIM026");
return mav;
}
/** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param query
* @return jsonView
* <pre><code> {
* "crdnList": [ ],
* "crdnStart": ,
* "crdnFetchTotal": ,
* "crdnTotal":
* }</code></pre>
*/
@RequestMapping(name="민원답변대상자료 목록", value="/030/list.do")
public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery query) {
query.setGridType("answerTargetData");
setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCivilComplaintList(query), "");
}
/** .
* @return
*/
@RequestMapping(name="민원답변내용 미리보기", value="/060/info.do")
public ModelAndView answerPreviewInfo(HttpServletRequest hReq, CrdnQuery query) {
boolean json = jsonResponse();
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/cvlc/cvlc01060-info");
mav.addObject("pageName", "cvlc01060-info");
String urlTaskSeCd = hReq.getServletPath().split("/")[1];
mav.addObject("taskSeCd", urlTaskSeCd);
query.setTaskSeCd(urlTaskSeCd);
DataObject cvlcptInfo = crdnCvlcptService.getAnswerPreview(query);
mav.addObject("cvlcptInfo", json ? cvlcptInfo : toJson(cvlcptInfo));
return mav;
}
/** .
* @param crdnCvlcpt
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
@RequestMapping(name="답변 내용 저장", value="/060/update.do")
public ModelAndView updateAnswerContent(CrdnCvlcpt crdnCvlcpt) {
boolean saved = false;
saved = crdnCvlcptService.updateAnswerContent(crdnCvlcpt);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param crdnCvlcpt
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
@RequestMapping(name="답변 내용 저장", value="/030/update.do")
public ModelAndView updateAnswerTargetProcessStatus(String processType, String... crdnIDs) {
boolean saved = false;
saved = crdnCvlcptService.updateAnswerTargetProcessStatus(processType, crdnIDs);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
} }

@ -5,10 +5,12 @@ import java.util.Map;
import javax.annotation.Resource; import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode; import cokr.xit.base.code.CommonCode;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.cvlc.service.CrdnCvlcptService; import cokr.xit.fims.cvlc.service.CrdnCvlcptService;
@ -37,4 +39,21 @@ public class Cvlc03Controller extends ApplicationController {
addCodes(commonCodes, mav, "FIM026"); addCodes(commonCodes, mav, "FIM026");
return mav; return mav;
} }
/** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param query
* @return jsonView
* <pre><code> {
* "crdnList": [ ],
* "crdnStart": ,
* "crdnFetchTotal": ,
* "crdnTotal":
* }</code></pre>
*/
@RequestMapping(name="민원자료 목록", value="/040/list.do")
public ModelAndView getCivilComplaintList(CrdnQuery query) {
setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"),crdnCvlcptService.getCivilComplaintList(query),"");
}
} }

@ -8,11 +8,11 @@ import org.springframework.web.bind.annotation.RequestMapping;
public class BpvController { public class BpvController {
@Controller @Controller
@RequestMapping(name="전용차로과태료업무 민원1업무", value="/BPV/cvlc/cvlc01") @RequestMapping(name="전용차로과태료업무 민원접수자료 업무", value="/BPV/cvlc/cvlc01")
class Cvlc01Controller extends cokr.xit.fims.cvlc.web.Cvlc01Controller {} class Cvlc01Controller extends cokr.xit.fims.cvlc.web.Cvlc01Controller {}
@Controller @Controller
@RequestMapping(name="전용차로과태료업무 민원2업무", value="/BPV/cvlc/cvlc02") @RequestMapping(name="전용차로과태료업무 민원답변대상자료 업무", value="/BPV/cvlc/cvlc02")
class Cvlc02Controller extends cokr.xit.fims.cvlc.web.Cvlc02Controller {} class Cvlc02Controller extends cokr.xit.fims.cvlc.web.Cvlc02Controller {}
@Controller @Controller

@ -9,7 +9,7 @@ import org.springframework.web.servlet.ModelAndView;
public class CmnController { public class CmnController {
@Controller @Controller
@RequestMapping(name="민원1", value="/cvlc/cvlc01") @RequestMapping(name="민원접수자료 관리 업무", value="/cvlc/cvlc01")
class Cvlc01Controller extends cokr.xit.fims.cvlc.web.Cvlc01Controller { class Cvlc01Controller extends cokr.xit.fims.cvlc.web.Cvlc01Controller {
/** . /** .
* @return fims/cvlc/cvlc01010-main * @return fims/cvlc/cvlc01010-main
@ -19,9 +19,14 @@ public class CmnController {
public ModelAndView civilComplaintReceiptDataMain() { public ModelAndView civilComplaintReceiptDataMain() {
return super.civilComplaintReceiptDataMain(); return super.civilComplaintReceiptDataMain();
} }
}
@Controller
@RequestMapping(name="민원답변대상자료 관리 업무", value="/cvlc/cvlc02")
class Cvlc02Controller extends cokr.xit.fims.cvlc.web.Cvlc02Controller {
/** . /** .
* @return fims/cvlc/cvlc01030-main * @return fims/cvlc/cvlc02030-main
*/ */
@Override @Override
@RequestMapping(name="민원 답변 대상 자료 메인", value="/030/main.do") @RequestMapping(name="민원 답변 대상 자료 메인", value="/030/main.do")
@ -31,12 +36,6 @@ public class CmnController {
} }
@Controller
@RequestMapping(name="민원2", value="/cvlc/cvlc02")
class Cvlc02Controller extends cokr.xit.fims.cvlc.web.Cvlc02Controller {
}
@Controller @Controller
@RequestMapping(name="민원관리", value="/cvlc/cvlc03") @RequestMapping(name="민원관리", value="/cvlc/cvlc03")
class Cvlc03Controller extends cokr.xit.fims.cvlc.web.Cvlc03Controller { class Cvlc03Controller extends cokr.xit.fims.cvlc.web.Cvlc03Controller {

@ -15,11 +15,11 @@ import cokr.xit.fims.crdn.service.CrdnService;
public class DpvController { public class DpvController {
@Controller @Controller
@RequestMapping(name="장애인과태료업무 민원1업무", value="/DPV/cvlc/cvlc01") @RequestMapping(name="장애인과태료업무 민원접수자료 업무", value="/DPV/cvlc/cvlc01")
class Cvlc01Controller extends cokr.xit.fims.cvlc.web.Cvlc01Controller {} class Cvlc01Controller extends cokr.xit.fims.cvlc.web.Cvlc01Controller {}
@Controller @Controller
@RequestMapping(name="장애인과태료업무 민원2업무", value="/DPV/cvlc/cvlc02") @RequestMapping(name="장애인과태료업무 민원답변대상자료 업무", value="/DPV/cvlc/cvlc02")
class Cvlc02Controller extends cokr.xit.fims.cvlc.web.Cvlc02Controller {} class Cvlc02Controller extends cokr.xit.fims.cvlc.web.Cvlc02Controller {}
@Controller @Controller

@ -8,11 +8,11 @@ import org.springframework.web.bind.annotation.RequestMapping;
public class EcaController { public class EcaController {
@Controller @Controller
@RequestMapping(name="전기차과태료업무 민원1업무", value="/ECA/cvlc/cvlc01") @RequestMapping(name="전기차과태료업무 민원접수자료 업무", value="/ECA/cvlc/cvlc01")
class Cvlc01Controller extends cokr.xit.fims.cvlc.web.Cvlc01Controller {} class Cvlc01Controller extends cokr.xit.fims.cvlc.web.Cvlc01Controller {}
@Controller @Controller
@RequestMapping(name="전기차과태료업무 민원2업무", value="/ECA/cvlc/cvlc02") @RequestMapping(name="전기차과태료업무 민원답변대상자료 업무", value="/ECA/cvlc/cvlc02")
class Cvlc02Controller extends cokr.xit.fims.cvlc.web.Cvlc02Controller {} class Cvlc02Controller extends cokr.xit.fims.cvlc.web.Cvlc02Controller {}
@Controller @Controller

@ -16,11 +16,11 @@ import cokr.xit.foundation.data.DataObject;
public class PvsController { public class PvsController {
@Controller @Controller
@RequestMapping(name="주정차과태료업무 민원1업무", value="/PVS/cvlc/cvlc01") @RequestMapping(name="주정차과태료업무 민원접수자료 업무", value="/PVS/cvlc/cvlc01")
class Cvlc01Controller extends cokr.xit.fims.cvlc.web.Cvlc01Controller {} class Cvlc01Controller extends cokr.xit.fims.cvlc.web.Cvlc01Controller {}
@Controller @Controller
@RequestMapping(name="주정차과태료업무 민원2업무", value="/PVS/cvlc/cvlc02") @RequestMapping(name="주정차과태료업무 민원답변대상자료 업무", value="/PVS/cvlc/cvlc02")
class Cvlc02Controller extends cokr.xit.fims.cvlc.web.Cvlc02Controller {} class Cvlc02Controller extends cokr.xit.fims.cvlc.web.Cvlc02Controller {}
@Controller @Controller

@ -296,9 +296,9 @@ $(document).ready(function(){
$P.fnResetAndChangeBiz = taskSeCd => { $P.fnResetAndChangeBiz = taskSeCd => {
$P.fnReset(); $P.fnReset();
$P.crdnControl.urls.load = wctx.url("/"+taskSeCd+"/cvlc/cvlc01/030/list.do"); $P.crdnControl.urls.load = wctx.url("/"+taskSeCd+"/cvlc/cvlc02/030/list.do");
$P.crdnControl.urls.getInfo = wctx.url("/"+taskSeCd+"/sprt/sprt01/020/info.do"); $P.crdnControl.urls.getInfo = wctx.url("/"+taskSeCd+"/sprt/sprt01/020/info.do");
$P.crdnControl.urls.update = wctx.url("/"+taskSeCd+"/cvlc/cvlc01/030/update.do"); $P.crdnControl.urls.update = wctx.url("/"+taskSeCd+"/cvlc/cvlc02/030/update.do");
} }
$P.refreshCrdnList = () => { $P.refreshCrdnList = () => {
@ -448,7 +448,7 @@ $(document).ready(function(){
var dialogId = "answerPreviewDialog--${pageName}"; var dialogId = "answerPreviewDialog--${pageName}";
ajax.get({ ajax.get({
url : wctx.url("/"+taskSeCd+"/cvlc/cvlc01/060/info.do"), url : wctx.url("/"+taskSeCd+"/cvlc/cvlc02/060/info.do"),
data : { crdnId : cur["CRDN_ID"] }, data : { crdnId : cur["CRDN_ID"] },
success : resp => { success : resp => {
dialog.open({ dialog.open({
Loading…
Cancel
Save