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