|
|
|
@ -19,6 +19,7 @@ import cokr.xit.base.file.FileInfo.Relation;
|
|
|
|
|
import cokr.xit.base.file.web.FileInfoFactory;
|
|
|
|
|
import cokr.xit.base.web.ApplicationController;
|
|
|
|
|
import cokr.xit.fims.crdn.Crdn;
|
|
|
|
|
import cokr.xit.fims.crdn.CrdnCvlcpt;
|
|
|
|
|
import cokr.xit.fims.crdn.CrdnQuery;
|
|
|
|
|
import cokr.xit.fims.crdn.service.CrdnCvlcptService;
|
|
|
|
|
import cokr.xit.fims.crdn.service.CrdnService;
|
|
|
|
@ -87,19 +88,19 @@ public class Crdn01Controller extends ApplicationController {
|
|
|
|
|
* @return fims/crdn/crdn01050-info
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(name="민원내역 원본 보기", value="/050/info.do")
|
|
|
|
|
public ModelAndView getCivilComplaintOriginalInfo(CrdnQuery req, HttpServletRequest request) {
|
|
|
|
|
public ModelAndView getCivilComplaintOriginalInfo(HttpServletRequest hReq, CrdnQuery query) {
|
|
|
|
|
|
|
|
|
|
boolean json = jsonResponse();
|
|
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/crdn01050-info");
|
|
|
|
|
mav.addObject("pageName", "crdn01050-info");
|
|
|
|
|
String urlTaskSeCd = request.getServletPath().split("/")[1];
|
|
|
|
|
String urlTaskSeCd = hReq.getServletPath().split("/")[1];
|
|
|
|
|
mav.addObject("taskSeCd", urlTaskSeCd);
|
|
|
|
|
|
|
|
|
|
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM039");
|
|
|
|
|
mav.addObject("FIM039List", commonCodes.get("FIM039"));
|
|
|
|
|
|
|
|
|
|
DataObject info = crdnCvlcptService.getCivilComplaintOriginalInfo(req);
|
|
|
|
|
DataObject info = crdnCvlcptService.getCivilComplaintOriginalInfo(query);
|
|
|
|
|
|
|
|
|
|
mav.addObject("cvlcptInfo", json ? info : toJson(info));
|
|
|
|
|
return mav;
|
|
|
|
@ -107,7 +108,7 @@ public class Crdn01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
/**민원접수자료 목록을 조회한다.<br />
|
|
|
|
|
* {@link CrdnService#getCrackdownList(CrdnQuery)} 참고
|
|
|
|
|
* @param req 민원접수자료 목록 조회 조건
|
|
|
|
|
* @param query 민원접수자료 목록 조회 조건
|
|
|
|
|
* @return jsonView
|
|
|
|
|
* <pre><code> {
|
|
|
|
|
* "crdnList": [조회결과 목록],
|
|
|
|
@ -117,31 +118,31 @@ public class Crdn01Controller extends ApplicationController {
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(name="민원접수자료 목록", value="/010/list.do")
|
|
|
|
|
public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery req) {
|
|
|
|
|
req.setGridType("receiptData");
|
|
|
|
|
setFetchSize(req);
|
|
|
|
|
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(req),"");
|
|
|
|
|
public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery query) {
|
|
|
|
|
query.setGridType("receiptData");
|
|
|
|
|
setFetchSize(query);
|
|
|
|
|
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(query),"");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**민원접수 초기자료 상세조회 팝업 화면을 연다.<br />
|
|
|
|
|
* @return fims/crdn/crdn01020-info
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(name="민원접수 초기자료 조회", value="/020/info.do")
|
|
|
|
|
public ModelAndView getCivilComplaintReceiptInitialDataInfo(CrdnQuery req, HttpServletRequest request) {
|
|
|
|
|
public ModelAndView getCivilComplaintReceiptInitialDataInfo(HttpServletRequest hReq, CrdnQuery query) {
|
|
|
|
|
boolean json = jsonResponse();
|
|
|
|
|
String pageName = "crdn01020-info";
|
|
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/"+pageName);
|
|
|
|
|
mav.addObject("pageName", pageName);
|
|
|
|
|
|
|
|
|
|
String urlTaskSeCd = request.getServletPath().split("/")[1];
|
|
|
|
|
String urlTaskSeCd = hReq.getServletPath().split("/")[1];
|
|
|
|
|
mav.addObject("taskSeCd", urlTaskSeCd);
|
|
|
|
|
|
|
|
|
|
DataObject info = crdnCvlcptService.getCivilComplaintReceiptInitialDataInfo(req);
|
|
|
|
|
DataObject info = crdnCvlcptService.getCivilComplaintReceiptInitialDataInfo(query);
|
|
|
|
|
|
|
|
|
|
mav.addObject("crdnInfo", json ? info : toJson(info));
|
|
|
|
|
|
|
|
|
|
mav.addObject("openerPageName", request.getParameter("openerPageName"));
|
|
|
|
|
mav.addObject("openerPageName", hReq.getParameter("openerPageName"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String vltnByTask = "";
|
|
|
|
@ -180,7 +181,7 @@ public class Crdn01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
/**민원답변대상자료 목록을 조회한다.<br />
|
|
|
|
|
* {@link CrdnService#getCrackdownList(CrdnQuery)} 참고
|
|
|
|
|
* @param req 민원답변대상자료 목록 조회 조건
|
|
|
|
|
* @param query 민원답변대상자료 목록 조회 조건
|
|
|
|
|
* @return jsonView
|
|
|
|
|
* <pre><code> {
|
|
|
|
|
* "crdnList": [조회결과 목록],
|
|
|
|
@ -190,15 +191,15 @@ public class Crdn01Controller extends ApplicationController {
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(name="민원답변대상자료 목록", value="/030/list.do")
|
|
|
|
|
public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery req) {
|
|
|
|
|
req.setGridType("answerTargetData");
|
|
|
|
|
setFetchSize(req);
|
|
|
|
|
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(req), "");
|
|
|
|
|
public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery query) {
|
|
|
|
|
query.setGridType("answerTargetData");
|
|
|
|
|
setFetchSize(query);
|
|
|
|
|
return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(query), "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**민원자료 목록을 조회한다.<br />
|
|
|
|
|
* {@link CrdnService#getCrackdownList(CrdnQuery)} 참고
|
|
|
|
|
* @param req 민원자료 목록 조회 조건
|
|
|
|
|
* @param query 민원자료 목록 조회 조건
|
|
|
|
|
* @return jsonView
|
|
|
|
|
* <pre><code> {
|
|
|
|
|
* "crdnList": [조회결과 목록],
|
|
|
|
@ -208,9 +209,9 @@ public class Crdn01Controller extends ApplicationController {
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(name="민원자료 목록", value="/040/list.do")
|
|
|
|
|
public ModelAndView getCivilComplaintList(CrdnQuery req) {
|
|
|
|
|
setFetchSize(req);
|
|
|
|
|
return setCollectionInfo(new ModelAndView("jsonView"),crdnCvlcptService.getCrackdownList(req),"");
|
|
|
|
|
public ModelAndView getCivilComplaintList(CrdnQuery query) {
|
|
|
|
|
setFetchSize(query);
|
|
|
|
|
return setCollectionInfo(new ModelAndView("jsonView"),crdnCvlcptService.getCrackdownList(query),"");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**지정한 민원자료를 제거한다.
|
|
|
|
@ -239,12 +240,12 @@ public class Crdn01Controller extends ApplicationController {
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(name="민원 정보 수정", value="/020/save.do")
|
|
|
|
|
public ModelAndView saveCivilComplaintProcess(HttpServletRequest req, Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) {
|
|
|
|
|
public ModelAndView saveCivilComplaintProcess(HttpServletRequest hReq, CrdnCvlcpt crdnCvlcpt, Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) {
|
|
|
|
|
|
|
|
|
|
boolean saved = false;
|
|
|
|
|
|
|
|
|
|
String[] deleteFileKeyList = req.getParameterValues("deleteFileKeyList");
|
|
|
|
|
String[] modifyFileKeyList = req.getParameterValues("modifyFileKeyList");
|
|
|
|
|
String[] deleteFileKeyList = hReq.getParameterValues("deleteFileKeyList");
|
|
|
|
|
String[] modifyFileKeyList = hReq.getParameterValues("modifyFileKeyList");
|
|
|
|
|
|
|
|
|
|
List<FileInfo> newFileInfoList = new ArrayList<FileInfo>();
|
|
|
|
|
if(newFileList != null || modifyFileList != null) {
|
|
|
|
@ -273,9 +274,9 @@ public class Crdn01Controller extends ApplicationController {
|
|
|
|
|
Map<String, Object> nonQueryRequest = new HashMap<String, Object>();
|
|
|
|
|
nonQueryRequest.put("deleteFileKeyList", deleteFileKeyList);
|
|
|
|
|
|
|
|
|
|
String acceptType = req.getParameter("acceptType");
|
|
|
|
|
String acceptType = hReq.getParameter("acceptType");
|
|
|
|
|
nonQueryRequest.put("acceptType", acceptType);
|
|
|
|
|
saved = crdnCvlcptService.updateCvlcptPrcs(nonQueryRequest, crdn, newFileInfoList);
|
|
|
|
|
saved = crdnCvlcptService.updateCvlcptPrcs(nonQueryRequest, crdnCvlcpt, crdn, newFileInfoList);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new ModelAndView("jsonView")
|
|
|
|
@ -286,9 +287,9 @@ public class Crdn01Controller extends ApplicationController {
|
|
|
|
|
* @return hwp파일
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(name="민원내역 원본 한글 파일 생성", value="/050/makeFileFromHwpFormat.do")
|
|
|
|
|
public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery, HttpServletRequest request) {
|
|
|
|
|
public ModelAndView makeFileFromHwpFormat(CrdnQuery query) {
|
|
|
|
|
|
|
|
|
|
Map<String,String> result = crdnCvlcptService.makeFileFromHwpFormat(crdnQuery);
|
|
|
|
|
Map<String,String> result = crdnCvlcptService.makeFileFromHwpFormat(query);
|
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
|
mav.addAllObjects(result);
|
|
|
|
|
return mav;
|
|
|
|
@ -298,16 +299,16 @@ public class Crdn01Controller extends ApplicationController {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(name="민원답변내용 미리보기", value="/060/info.do")
|
|
|
|
|
public ModelAndView answerPreviewInfo(CrdnQuery req, HttpServletRequest request) {
|
|
|
|
|
public ModelAndView answerPreviewInfo(HttpServletRequest hReq, CrdnQuery query) {
|
|
|
|
|
boolean json = jsonResponse();
|
|
|
|
|
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/crdn01060-info");
|
|
|
|
|
|
|
|
|
|
mav.addObject("pageName", "crdn01060-info");
|
|
|
|
|
String urlTaskSeCd = request.getServletPath().split("/")[1];
|
|
|
|
|
String urlTaskSeCd = hReq.getServletPath().split("/")[1];
|
|
|
|
|
mav.addObject("taskSeCd", urlTaskSeCd);
|
|
|
|
|
|
|
|
|
|
req.setTaskSeCd(urlTaskSeCd);
|
|
|
|
|
DataObject cvlcptInfo = crdnCvlcptService.getAnswerPreview(req);
|
|
|
|
|
query.setTaskSeCd(urlTaskSeCd);
|
|
|
|
|
DataObject cvlcptInfo = crdnCvlcptService.getAnswerPreview(query);
|
|
|
|
|
mav.addObject("cvlcptInfo", json ? cvlcptInfo : toJson(cvlcptInfo));
|
|
|
|
|
|
|
|
|
|
return mav;
|
|
|
|
|