|
|
|
@ -415,14 +415,12 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
|
* @return 단속내역서 hwp파일
|
|
|
|
|
*/
|
|
|
|
|
public ModelAndView makeCrdnListFileFromHwpFormat(String privateInfoYn, String[] crdnIds) {
|
|
|
|
|
Map<String,String> result = null;
|
|
|
|
|
|
|
|
|
|
PrintOption printOption = new PrintOption();
|
|
|
|
|
printOption.setPrivateInfoYn(privateInfoYn);
|
|
|
|
|
|
|
|
|
|
result = integrationSearchService.makeFileFromHwpFormat("list", "crdnList", printOption ,crdnIds);
|
|
|
|
|
Map<String,Object> result = integrationSearchService.makeFileFromHwpFormat("list", "crdnList", printOption ,crdnIds);
|
|
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
|
mav.addAllObjects(result);
|
|
|
|
|
return mav;
|
|
|
|
|
}
|
|
|
|
@ -431,13 +429,12 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
|
* @return 단속확인서 hwp파일
|
|
|
|
|
*/
|
|
|
|
|
public ModelAndView makeCrdnConfirmFileFromHwpFormat(String[] crdnIds) {
|
|
|
|
|
Map<String,String> result = null;
|
|
|
|
|
|
|
|
|
|
PrintOption printOption = new PrintOption();
|
|
|
|
|
|
|
|
|
|
result = integrationSearchService.makeFileFromHwpFormat("info", "crdnConfirm", printOption, crdnIds);
|
|
|
|
|
Map<String,Object> result = integrationSearchService.makeFileFromHwpFormat("info", "crdnConfirm", printOption, crdnIds);
|
|
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
|
mav.addAllObjects(result);
|
|
|
|
|
return mav;
|
|
|
|
|
}
|
|
|
|
@ -457,10 +454,24 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
|
/** 교부청구서를 한글 파일로 작성한다.
|
|
|
|
|
* @return hwp파일
|
|
|
|
|
*/
|
|
|
|
|
public ModelAndView makeRequestForDeliveryFileFromHwpFormat(PrintOption printOption, String[] crdnIds) {
|
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
|
public ModelAndView makeRequestForDeliveryFileFromHwpFormat(PrintOption printOption, String globalVariableInfo, String[] crdnIds) {
|
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
|
|
|
|
|
|
Map<String, String> globalVariable = new HashMap<String,String>();
|
|
|
|
|
|
|
|
|
|
DataObject dataObject = fromJson(globalVariableInfo, DataObject.class);
|
|
|
|
|
|
|
|
|
|
globalVariable.put("docNo", dataObject.string("docNo"));
|
|
|
|
|
globalVariable.put("caseNo", dataObject.string("caseNo"));
|
|
|
|
|
globalVariable.put("receiver", dataObject.string("receiver"));
|
|
|
|
|
globalVariable.put("rtpyrNm", dataObject.string("rtpyrNm"));
|
|
|
|
|
globalVariable.put("rtpyrNo", dataObject.string("rtpyrNo"));
|
|
|
|
|
globalVariable.put("vhrno", dataObject.string("vhrno"));
|
|
|
|
|
globalVariable.put("rtpyrFullAddr", dataObject.string("rtpyrFullAddr"));
|
|
|
|
|
|
|
|
|
|
printOption.setGlobalVariable(globalVariable);
|
|
|
|
|
|
|
|
|
|
Map<String,String> result = integrationSearchService.makeFileFromHwpFormat("list", "requestForDelivery", printOption, crdnIds);
|
|
|
|
|
Map<String,Object> result = integrationSearchService.makeFileFromHwpFormat("list", "requestForDelivery", printOption, crdnIds);
|
|
|
|
|
mav.addAllObjects(result);
|
|
|
|
|
return mav;
|
|
|
|
|
}
|
|
|
|
@ -468,10 +479,23 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
|
/** 채권신고서를 한글 파일로 작성한다.
|
|
|
|
|
* @return 채권신고서 hwp파일
|
|
|
|
|
*/
|
|
|
|
|
public ModelAndView makeReportOnClaimsFileFromHwpFormat(PrintOption printOption, String[] crdnIds) {
|
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
|
public ModelAndView makeReportOnClaimsFileFromHwpFormat(PrintOption printOption, String globalVariableInfo, String[] crdnIds) {
|
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
|
|
|
|
|
|
Map<String, String> globalVariable = new HashMap<String,String>();
|
|
|
|
|
System.out.println("json확인");
|
|
|
|
|
System.out.println(globalVariableInfo);
|
|
|
|
|
DataObject dataObject = fromJson(globalVariableInfo, DataObject.class);
|
|
|
|
|
|
|
|
|
|
globalVariable.put("caseNo", dataObject.string("caseNo"));
|
|
|
|
|
globalVariable.put("rtpyrNm", dataObject.string("rtpyrNm"));
|
|
|
|
|
globalVariable.put("rtpyrNo", dataObject.string("rtpyrNo"));
|
|
|
|
|
globalVariable.put("rtpyrFullAddr", dataObject.string("rtpyrFullAddr"));
|
|
|
|
|
|
|
|
|
|
printOption.setGlobalVariable(globalVariable);
|
|
|
|
|
|
|
|
|
|
Map<String,String> result = integrationSearchService.makeFileFromHwpFormat("list", "reportOnClaims", printOption, crdnIds);
|
|
|
|
|
|
|
|
|
|
Map<String,Object> result = integrationSearchService.makeFileFromHwpFormat("list", "reportOnClaims", printOption, crdnIds);
|
|
|
|
|
mav.addAllObjects(result);
|
|
|
|
|
|
|
|
|
|
return mav;
|
|
|
|
@ -481,11 +505,11 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
|
* @return 납부확인서 hwp파일
|
|
|
|
|
*/
|
|
|
|
|
public ModelAndView makeRcvmtConfirmFileFromHwpFormat(String[] crdnIds) {
|
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
|
|
|
|
|
|
PrintOption printOption = new PrintOption();
|
|
|
|
|
|
|
|
|
|
Map<String,String> result = integrationSearchService.makeFileFromHwpFormat("info", "rcvmtConfirm", printOption, crdnIds);
|
|
|
|
|
printOption.setGlobalVariable(new HashMap<String,String>());
|
|
|
|
|
Map<String,Object> result = integrationSearchService.makeFileFromHwpFormat("info", "rcvmtConfirm", printOption, crdnIds);
|
|
|
|
|
mav.addAllObjects(result);
|
|
|
|
|
|
|
|
|
|
return mav;
|
|
|
|
|