|
|
@ -16,6 +16,7 @@ import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cokr.xit.applib.Print;
|
|
|
|
import cokr.xit.base.code.CommonCode;
|
|
|
|
import cokr.xit.base.code.CommonCode;
|
|
|
|
import cokr.xit.base.docs.xls.CellDef;
|
|
|
|
import cokr.xit.base.docs.xls.CellDef;
|
|
|
|
import cokr.xit.base.docs.xls.Format;
|
|
|
|
import cokr.xit.base.docs.xls.Format;
|
|
|
@ -27,11 +28,10 @@ import cokr.xit.base.user.ManagedUser;
|
|
|
|
import cokr.xit.base.user.dao.UserMapper;
|
|
|
|
import cokr.xit.base.user.dao.UserMapper;
|
|
|
|
import cokr.xit.base.web.ApplicationController;
|
|
|
|
import cokr.xit.base.web.ApplicationController;
|
|
|
|
import cokr.xit.fims.cmmn.CmmnUtil;
|
|
|
|
import cokr.xit.fims.cmmn.CmmnUtil;
|
|
|
|
|
|
|
|
import cokr.xit.fims.cmmn.FimsPrintOption;
|
|
|
|
import cokr.xit.fims.cmmn.OtptStngQuery;
|
|
|
|
import cokr.xit.fims.cmmn.OtptStngQuery;
|
|
|
|
import cokr.xit.fims.cmmn.OutsourcingFileMaker;
|
|
|
|
import cokr.xit.fims.cmmn.OutsourcingFileMaker;
|
|
|
|
import cokr.xit.fims.cmmn.OutsourcingStngQuery;
|
|
|
|
import cokr.xit.fims.cmmn.OutsourcingStngQuery;
|
|
|
|
import cokr.xit.fims.cmmn.Print;
|
|
|
|
|
|
|
|
import cokr.xit.fims.cmmn.PrintOption;
|
|
|
|
|
|
|
|
import cokr.xit.fims.cmmn.dao.OtptStngMapper;
|
|
|
|
import cokr.xit.fims.cmmn.dao.OtptStngMapper;
|
|
|
|
import cokr.xit.fims.cmmn.hwp.format.CrdnConfirm;
|
|
|
|
import cokr.xit.fims.cmmn.hwp.format.CrdnConfirm;
|
|
|
|
import cokr.xit.fims.cmmn.hwp.format.CrdnList;
|
|
|
|
import cokr.xit.fims.cmmn.hwp.format.CrdnList;
|
|
|
@ -454,7 +454,7 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
@RequestMapping(name="단속 내역서 한글 파일 생성", value=METHOD_URL.makeCrdnListFileFromHwpFormat)
|
|
|
|
@RequestMapping(name="단속 내역서 한글 파일 생성", value=METHOD_URL.makeCrdnListFileFromHwpFormat)
|
|
|
|
public ModelAndView makeCrdnListFileFromHwpFormat(String privateInfoYn, String... crdnIds) {
|
|
|
|
public ModelAndView makeCrdnListFileFromHwpFormat(String privateInfoYn, String... crdnIds) {
|
|
|
|
|
|
|
|
|
|
|
|
PrintOption printOption = new PrintOption();
|
|
|
|
FimsPrintOption printOption = new FimsPrintOption();
|
|
|
|
printOption.setPrivateInfoYn(privateInfoYn);
|
|
|
|
printOption.setPrivateInfoYn(privateInfoYn);
|
|
|
|
UserInfo userInfo = currentUser();
|
|
|
|
UserInfo userInfo = currentUser();
|
|
|
|
factionBean.initUserInfo(userInfo);
|
|
|
|
factionBean.initUserInfo(userInfo);
|
|
|
@ -467,7 +467,7 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CrdnList hwpFormat = new CrdnList(print, printOption, dataObjectList);
|
|
|
|
CrdnList hwpFormat = new CrdnList(print, printOption, dataObjectList);
|
|
|
|
HashMap<String, Object> result = hwpFormat.makeFile();
|
|
|
|
HashMap<String, Object> result = hwpFormat.makeFile().andDownload();
|
|
|
|
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
mav.addAllObjects(result);
|
|
|
|
mav.addAllObjects(result);
|
|
|
@ -480,7 +480,7 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
@RequestMapping(name="단속 확인서 한글 파일 생성", value=METHOD_URL.makeCrdnConfirmFileFromHwpFormat)
|
|
|
|
@RequestMapping(name="단속 확인서 한글 파일 생성", value=METHOD_URL.makeCrdnConfirmFileFromHwpFormat)
|
|
|
|
public ModelAndView makeCrdnConfirmFileFromHwpFormat(String... crdnIds) {
|
|
|
|
public ModelAndView makeCrdnConfirmFileFromHwpFormat(String... crdnIds) {
|
|
|
|
|
|
|
|
|
|
|
|
PrintOption printOption = new PrintOption();
|
|
|
|
FimsPrintOption printOption = new FimsPrintOption();
|
|
|
|
|
|
|
|
|
|
|
|
UserInfo userInfo = currentUser();
|
|
|
|
UserInfo userInfo = currentUser();
|
|
|
|
factionBean.initUserInfo(userInfo);
|
|
|
|
factionBean.initUserInfo(userInfo);
|
|
|
@ -512,8 +512,7 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CrdnConfirm hwpFormat = new CrdnConfirm(print, printOption, dataObjectList);
|
|
|
|
CrdnConfirm hwpFormat = new CrdnConfirm(print, printOption, dataObjectList);
|
|
|
|
HashMap<String, Object> result = hwpFormat.makeFile();
|
|
|
|
HashMap<String, Object> result = hwpFormat.makeFile().andDownload();
|
|
|
|
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
mav.addAllObjects(result);
|
|
|
|
mav.addAllObjects(result);
|
|
|
|
|
|
|
|
|
|
|
@ -537,7 +536,7 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
* @return hwp파일
|
|
|
|
* @return hwp파일
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name="교부청구서 한글 파일 생성", value=METHOD_URL.makeRequestForDeliveryFileFromHwpFormat)
|
|
|
|
@RequestMapping(name="교부청구서 한글 파일 생성", value=METHOD_URL.makeRequestForDeliveryFileFromHwpFormat)
|
|
|
|
public ModelAndView makeRequestForDeliveryFileFromHwpFormat(PrintOption printOption, String globalVariableInfo, String... crdnIds) {
|
|
|
|
public ModelAndView makeRequestForDeliveryFileFromHwpFormat(FimsPrintOption printOption, String globalVariableInfo, String... crdnIds) {
|
|
|
|
|
|
|
|
|
|
|
|
DataObject sggStngInfo = stngBean.getStng("sgg");
|
|
|
|
DataObject sggStngInfo = stngBean.getStng("sgg");
|
|
|
|
DataObject deptStngInfo = stngBean.getStng("dept");
|
|
|
|
DataObject deptStngInfo = stngBean.getStng("dept");
|
|
|
@ -569,7 +568,7 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RequestForDelivery hwpFormat = new RequestForDelivery(print, printOption, dataObjectList);
|
|
|
|
RequestForDelivery hwpFormat = new RequestForDelivery(print, printOption, dataObjectList);
|
|
|
|
HashMap<String, Object> result = hwpFormat.makeFile();
|
|
|
|
HashMap<String, Object> result = hwpFormat.makeFile().andDownload();
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
mav.addAllObjects(result);
|
|
|
|
mav.addAllObjects(result);
|
|
|
|
|
|
|
|
|
|
|
@ -580,7 +579,7 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
* @return 채권신고서 hwp파일
|
|
|
|
* @return 채권신고서 hwp파일
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name="채권신고서 한글 파일 생성", value=METHOD_URL.makeReportOnClaimsFileFromHwpFormat)
|
|
|
|
@RequestMapping(name="채권신고서 한글 파일 생성", value=METHOD_URL.makeReportOnClaimsFileFromHwpFormat)
|
|
|
|
public ModelAndView makeReportOnClaimsFileFromHwpFormat(PrintOption printOption, String globalVariableInfo, String... crdnIds) {
|
|
|
|
public ModelAndView makeReportOnClaimsFileFromHwpFormat(FimsPrintOption printOption, String globalVariableInfo, String... crdnIds) {
|
|
|
|
DataObject sggStngInfo = stngBean.getStng("sgg");
|
|
|
|
DataObject sggStngInfo = stngBean.getStng("sgg");
|
|
|
|
DataObject deptStngInfo = stngBean.getStng("dept");
|
|
|
|
DataObject deptStngInfo = stngBean.getStng("dept");
|
|
|
|
|
|
|
|
|
|
|
@ -612,7 +611,7 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ReportOnClaims hwpFormat = new ReportOnClaims(print, printOption, dataObjectList);
|
|
|
|
ReportOnClaims hwpFormat = new ReportOnClaims(print, printOption, dataObjectList);
|
|
|
|
HashMap<String, Object> result = hwpFormat.makeFile();
|
|
|
|
HashMap<String, Object> result = hwpFormat.makeFile().andDownload();
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
mav.addAllObjects(result);
|
|
|
|
mav.addAllObjects(result);
|
|
|
|
return mav;
|
|
|
|
return mav;
|
|
|
@ -629,7 +628,7 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
Print print = new Print();
|
|
|
|
Print print = new Print();
|
|
|
|
print.setPrintRequestUserInfo(userInfo);
|
|
|
|
print.setPrintRequestUserInfo(userInfo);
|
|
|
|
|
|
|
|
|
|
|
|
PrintOption printOption = new PrintOption();
|
|
|
|
FimsPrintOption printOption = new FimsPrintOption();
|
|
|
|
printOption.setGlobalVariable(new HashMap<String,String>());
|
|
|
|
printOption.setGlobalVariable(new HashMap<String,String>());
|
|
|
|
|
|
|
|
|
|
|
|
SprtQuery sprtQuery = new SprtQuery();
|
|
|
|
SprtQuery sprtQuery = new SprtQuery();
|
|
|
@ -637,7 +636,7 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
List<DataObject> dataObjectList = integrationSearchMapper.selectIntegrationDataList(sprtQuery);
|
|
|
|
List<DataObject> dataObjectList = integrationSearchMapper.selectIntegrationDataList(sprtQuery);
|
|
|
|
|
|
|
|
|
|
|
|
RcvmtConfirm hwpFormat = new RcvmtConfirm(print, printOption, dataObjectList);
|
|
|
|
RcvmtConfirm hwpFormat = new RcvmtConfirm(print, printOption, dataObjectList);
|
|
|
|
HashMap<String, Object> result = hwpFormat.makeFile();
|
|
|
|
HashMap<String, Object> result = hwpFormat.makeFile().andDownload();
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
mav.addAllObjects(result);
|
|
|
|
mav.addAllObjects(result);
|
|
|
|
|
|
|
|
|
|
|
@ -661,7 +660,12 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
* @return 사전통지서 PDF파일
|
|
|
|
* @return 사전통지서 PDF파일
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name="사전통지서 pdf 파일 생성", value=METHOD_URL.makeAdvntcePdf)
|
|
|
|
@RequestMapping(name="사전통지서 pdf 파일 생성", value=METHOD_URL.makeAdvntcePdf)
|
|
|
|
public ModelAndView makeAdvntcePdf(String[] crdnIds, Sndng sndng, PrintOption printOption) {
|
|
|
|
public ModelAndView makeAdvntcePdf(String[] crdnIds, Sndng sndng, FimsPrintOption printOption) {
|
|
|
|
|
|
|
|
UserInfo userInfo = currentUser();
|
|
|
|
|
|
|
|
factionBean.initUserInfo(userInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sndng.setSggCd((String)userInfo.getInfo().get("sggCd"));
|
|
|
|
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
SprtQuery sprtQuery = new SprtQuery();
|
|
|
|
SprtQuery sprtQuery = new SprtQuery();
|
|
|
|
sprtQuery.setCrdnIds(crdnIds);
|
|
|
|
sprtQuery.setCrdnIds(crdnIds);
|
|
|
@ -728,8 +732,6 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Print print = new Print();
|
|
|
|
Print print = new Print();
|
|
|
|
UserInfo userInfo = currentUser();
|
|
|
|
|
|
|
|
factionBean.initUserInfo(userInfo);
|
|
|
|
|
|
|
|
print.setPrintRequestUserInfo(userInfo);
|
|
|
|
print.setPrintRequestUserInfo(userInfo);
|
|
|
|
|
|
|
|
|
|
|
|
//출력물 기본 설정
|
|
|
|
//출력물 기본 설정
|
|
|
@ -778,7 +780,12 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
* @return 사전통지서 압축파일
|
|
|
|
* @return 사전통지서 압축파일
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name="사전통지서 외주 파일 생성", value=METHOD_URL.makeAdvntceOutsourcing)
|
|
|
|
@RequestMapping(name="사전통지서 외주 파일 생성", value=METHOD_URL.makeAdvntceOutsourcing)
|
|
|
|
public ModelAndView makeAdvntceOutsourcing(String[] crdnIds, Sndng sndng, PrintOption printOption) {
|
|
|
|
public ModelAndView makeAdvntceOutsourcing(String[] crdnIds, Sndng sndng, FimsPrintOption printOption) {
|
|
|
|
|
|
|
|
UserInfo userInfo = currentUser();
|
|
|
|
|
|
|
|
factionBean.initUserInfo(userInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sndng.setSggCd((String)userInfo.getInfo().get("sggCd"));
|
|
|
|
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
SprtQuery sprtQuery = new SprtQuery();
|
|
|
|
SprtQuery sprtQuery = new SprtQuery();
|
|
|
|
sprtQuery.setCrdnIds(crdnIds);
|
|
|
|
sprtQuery.setCrdnIds(crdnIds);
|
|
|
@ -890,7 +897,13 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
* @return 고지서 PDF파일
|
|
|
|
* @return 고지서 PDF파일
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name="고지서 pdf 파일 생성", value=METHOD_URL.makeNhtPdf)
|
|
|
|
@RequestMapping(name="고지서 pdf 파일 생성", value=METHOD_URL.makeNhtPdf)
|
|
|
|
public ModelAndView makeNhtPdf(String[] crdnIds, Sndng sndng, PrintOption printOption) {
|
|
|
|
public ModelAndView makeNhtPdf(String[] crdnIds, Sndng sndng, FimsPrintOption printOption) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UserInfo userInfo = currentUser();
|
|
|
|
|
|
|
|
factionBean.initUserInfo(userInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sndng.setSggCd((String)userInfo.getInfo().get("sggCd"));
|
|
|
|
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
SprtQuery sprtQuery = new SprtQuery();
|
|
|
|
SprtQuery sprtQuery = new SprtQuery();
|
|
|
|
sprtQuery.setCrdnIds(crdnIds);
|
|
|
|
sprtQuery.setCrdnIds(crdnIds);
|
|
|
@ -960,8 +973,6 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Print print = new Print();
|
|
|
|
Print print = new Print();
|
|
|
|
UserInfo userInfo = currentUser();
|
|
|
|
|
|
|
|
factionBean.initUserInfo(userInfo);
|
|
|
|
|
|
|
|
print.setPrintRequestUserInfo(userInfo);
|
|
|
|
print.setPrintRequestUserInfo(userInfo);
|
|
|
|
|
|
|
|
|
|
|
|
//출력물 기본 설정
|
|
|
|
//출력물 기본 설정
|
|
|
@ -1009,7 +1020,12 @@ public class Sprt01Controller extends ApplicationController {
|
|
|
|
* @return 고지서 압축파일
|
|
|
|
* @return 고지서 압축파일
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name="고지서 외주 파일 생성", value=METHOD_URL.makeNhtOutsourcing)
|
|
|
|
@RequestMapping(name="고지서 외주 파일 생성", value=METHOD_URL.makeNhtOutsourcing)
|
|
|
|
public ModelAndView makeNhtOutsourcing(String[] crdnIds, Sndng sndng, PrintOption printOption) {
|
|
|
|
public ModelAndView makeNhtOutsourcing(String[] crdnIds, Sndng sndng, FimsPrintOption printOption) {
|
|
|
|
|
|
|
|
UserInfo userInfo = currentUser();
|
|
|
|
|
|
|
|
factionBean.initUserInfo(userInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sndng.setSggCd((String)userInfo.getInfo().get("sggCd"));
|
|
|
|
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
ModelAndView mav = new ModelAndView("downloadView");
|
|
|
|
SprtQuery sprtQuery = new SprtQuery();
|
|
|
|
SprtQuery sprtQuery = new SprtQuery();
|
|
|
|
sprtQuery.setCrdnIds(crdnIds);
|
|
|
|
sprtQuery.setCrdnIds(crdnIds);
|
|
|
|