한글 서식 파일 다운로드 로그 추가

main
이범준 9 months ago
parent ecf21a0239
commit d4eccdacda

@ -24,6 +24,11 @@ public class HWPWriter {
public void setFormat(HWPFormat format) { public void setFormat(HWPFormat format) {
this.format = format; this.format = format;
}; };
public HWPFormat getFormat() {
return this.format;
};
public void setPrint(Print print) { public void setPrint(Print print) {
this.print = print; this.print = print;
}; };

@ -16,6 +16,10 @@ import kr.dogfoot.hwplib.object.HWPFile;
*/ */
public class CrdnConfirm extends HWPFormat { public class CrdnConfirm extends HWPFormat {
@Override
public List<String> getDownloadDataNames() {
return List.of("과태료구분","차량번호","단속일시","위반내용","단속장소","단속동","단속조","소유자명","소유자주소");
}
@Override @Override
public void setting(Print print) { public void setting(Print print) {

@ -1,5 +1,6 @@
package cokr.xit.fims.cmmn.hwp.format; package cokr.xit.fims.cmmn.hwp.format;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.fims.cmmn.CmmnUtil;
@ -16,6 +17,25 @@ import kr.dogfoot.hwplib.object.HWPFile;
*/ */
public class CrdnList extends HWPFormat { public class CrdnList extends HWPFormat {
@Override
public List<String> getDownloadDataNames() {
List<String> list = new ArrayList<>();
list.add("과태료구분");
list.add("시군구명");
list.add("단속일시");
list.add("단속장소");
list.add("차량번호");
list.add("대체차량번호");
list.add("고지번호");
list.add("부과금액");
list.add("가상계좌번호");
list.add("전자납부번호");
list.add("처리상태");
list.add("처리일자");
list.add("납부기한");
list.add("수납일자");
return list;
}
@Override @Override
public void setting(Print print) { public void setting(Print print) {

@ -19,6 +19,11 @@ import kr.dogfoot.hwplib.reader.HWPReader;
public class CvlcptOrgn extends HWPFormat { public class CvlcptOrgn extends HWPFormat {
@Override
public List<String> getDownloadDataNames() {
return List.of("접수번호","신청자","접수일자","처리기한","민원목록번호","민원내용");
}
@Override @Override
public void setting(Print print) { public void setting(Print print) {
print.setFormatName("cvlcptOrgn"); print.setFormatName("cvlcptOrgn");
@ -89,4 +94,5 @@ public class CvlcptOrgn extends HWPFormat {
} }
} }
} }

@ -1,5 +1,6 @@
package cokr.xit.fims.cmmn.hwp.format; package cokr.xit.fims.cmmn.hwp.format;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import cokr.xit.fims.cmmn.Print; import cokr.xit.fims.cmmn.Print;
@ -10,6 +11,23 @@ import kr.dogfoot.hwplib.object.HWPFile;
public class DlbrDecsnList extends HWPFormat { public class DlbrDecsnList extends HWPFormat {
@Override
public List<String> getDownloadDataNames() {
List<String> list = new ArrayList<>();
list.add("접수번호");
list.add("접수일");
list.add("위반정보");
list.add("진술자명");
list.add("진술자생년월일");
list.add("소유주관계");
list.add("진술자주소");
list.add("진술자연락처");
list.add("차량번호");
list.add("단속일시");
list.add("단속장소");
list.add("의견체출내용");
return list;
}
@Override @Override
public void setting(Print print) { public void setting(Print print) {
@ -77,4 +95,6 @@ public class DlbrDecsnList extends HWPFormat {
baseFileEditor.set("담당자검토의견", dataObject.string("PIC_RVW_OPNN")); baseFileEditor.set("담당자검토의견", dataObject.string("PIC_RVW_OPNN"));
} }
} }

@ -152,4 +152,6 @@ public abstract class HWPFormat {
public abstract void writeSingleDataInfo(HWPFile baseFile, HWPFile attachFile, DataObject dataObject, public abstract void writeSingleDataInfo(HWPFile baseFile, HWPFile attachFile, DataObject dataObject,
Print print); Print print);
public abstract List<String> getDownloadDataNames();
} }

@ -1,5 +1,6 @@
package cokr.xit.fims.cmmn.hwp.format; package cokr.xit.fims.cmmn.hwp.format;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.fims.cmmn.CmmnUtil;
@ -16,6 +17,23 @@ import kr.dogfoot.hwplib.object.HWPFile;
*/ */
public class RcvmtConfirm extends HWPFormat { public class RcvmtConfirm extends HWPFormat {
@Override
public List<String> getDownloadDataNames() {
List<String> list = new ArrayList<>();
list.add("위반명");
list.add("위반차량");
list.add("대체차량");
list.add("위반금액");
list.add("단속일자");
list.add("단속장소");
list.add("소유자");
list.add("주민번호");
list.add("소유자주소");
list.add("고지번호");
list.add("수납일자");
list.add("수납금액");
return list;
}
@Override @Override
public void setting(Print print) { public void setting(Print print) {

@ -1,5 +1,6 @@
package cokr.xit.fims.cmmn.hwp.format; package cokr.xit.fims.cmmn.hwp.format;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -20,6 +21,17 @@ import kr.dogfoot.hwplib.object.HWPFile;
*/ */
public class ReportOnClaims extends HWPFormat { public class ReportOnClaims extends HWPFormat {
@Override
public List<String> getDownloadDataNames() {
List<String> list = new ArrayList<>();
list.add("과세번호");
list.add("법정기일");
list.add("세목");
list.add("세액");
list.add("가산금");
list.add("합계");
return list;
}
@Override @Override
public void setting(Print print) { public void setting(Print print) {

@ -1,5 +1,6 @@
package cokr.xit.fims.cmmn.hwp.format; package cokr.xit.fims.cmmn.hwp.format;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -20,6 +21,16 @@ import kr.dogfoot.hwplib.object.HWPFile;
*/ */
public class RequestForDelivery extends HWPFormat { public class RequestForDelivery extends HWPFormat {
@Override
public List<String> getDownloadDataNames() {
List<String> list = new ArrayList<>();
list.add("징수과목");
list.add("고지번호");
list.add("과태료계");
list.add("법정기일");
return list;
}
@Override @Override
public void setting(Print print) { public void setting(Print print) {
print.setFormatName("requestForDelivery"); print.setFormatName("requestForDelivery");

@ -1,5 +1,6 @@
package cokr.xit.fims.cmmn.hwp.format; package cokr.xit.fims.cmmn.hwp.format;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import cokr.xit.fims.cmmn.Print; import cokr.xit.fims.cmmn.Print;
@ -11,6 +12,18 @@ import kr.dogfoot.hwplib.object.HWPFile;
public class SvbtcList extends HWPFormat { public class SvbtcList extends HWPFormat {
@Override
public List<String> getDownloadDataNames() {
List<String> list = new ArrayList<>();
list.add("수령인명");
list.add("수령인주소");
list.add("차량번호");
list.add("위반일자");
list.add("위반장소");
list.add("반송일자");
list.add("반송사유");
return list;
}
@Override @Override
public void setting(Print print) { public void setting(Print print) {

@ -258,6 +258,8 @@ public class Cvlc01Controller extends ApplicationController {
Map<String, Object> result = hwpWriter.makeFileFromHwpFormat("info", printOption, dataObjectList); Map<String, Object> result = hwpWriter.makeFileFromHwpFormat("info", printOption, dataObjectList);
mav.addAllObjects(result); mav.addAllObjects(result);
mav.addObject("downloadData", dataObjectList);
mav.addObject("dataNames", hwpWriter.getFormat().getDownloadDataNames());
return mav; return mav;
} }

@ -365,7 +365,8 @@ public class Excl02Controller extends ApplicationController {
ModelAndView mav = new ModelAndView("downloadView"); ModelAndView mav = new ModelAndView("downloadView");
mav.addAllObjects(result); mav.addAllObjects(result);
mav.addObject("downloadData", dataObjectList);
mav.addObject("dataNames", hwpWriter.getFormat().getDownloadDataNames());
return mav; return mav;
} }

@ -1513,7 +1513,8 @@ public class Sndb01Controller extends ApplicationController {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
mav.addAllObjects(result); mav.addAllObjects(result);
mav.addObject("downloadData", dataObjectList);
mav.addObject("dataNames", hwpWriter.getFormat().getDownloadDataNames());
return mav; return mav;
} }

@ -442,7 +442,7 @@ public class Sprt01Controller extends ApplicationController {
CrdnQuery query = new CrdnQuery(); CrdnQuery query = new CrdnQuery();
query.setCrdnIds(crdnIds); query.setCrdnIds(crdnIds);
List<DataObject> DataObjectList = crdnListMapper.selectCrackdownList(query); List<DataObject> dataObjectList = crdnListMapper.selectCrackdownList(query);
HWPWriter hwpWriter = new HWPWriter(); HWPWriter hwpWriter = new HWPWriter();
UserInfo userInfo = currentUser(); UserInfo userInfo = currentUser();
factionBean.initUserInfo(userInfo); factionBean.initUserInfo(userInfo);
@ -454,10 +454,12 @@ public class Sprt01Controller extends ApplicationController {
DataObject deptStngInfo = stngBean.getStng("dept"); DataObject deptStngInfo = stngBean.getStng("dept");
hwpWriter.setFormat(new CrdnList()); hwpWriter.setFormat(new CrdnList());
Map<String,Object> result = hwpWriter.makeFileFromHwpFormat("list", printOption, DataObjectList); Map<String,Object> result = hwpWriter.makeFileFromHwpFormat("list", printOption, dataObjectList);
ModelAndView mav = new ModelAndView("downloadView"); ModelAndView mav = new ModelAndView("downloadView");
mav.addAllObjects(result); mav.addAllObjects(result);
mav.addObject("downloadData", dataObjectList);
mav.addObject("dataNames", hwpWriter.getFormat().getDownloadDataNames());
return mav; return mav;
} }
@ -507,6 +509,8 @@ public class Sprt01Controller extends ApplicationController {
ModelAndView mav = new ModelAndView("downloadView"); ModelAndView mav = new ModelAndView("downloadView");
mav.addAllObjects(result); mav.addAllObjects(result);
mav.addObject("downloadData", dataObjectList);
mav.addObject("dataNames", hwpWriter.getFormat().getDownloadDataNames());
return mav; return mav;
} }
@ -564,6 +568,8 @@ public class Sprt01Controller extends ApplicationController {
hwpWriter.setFormat(new RequestForDelivery()); hwpWriter.setFormat(new RequestForDelivery());
Map<String,Object> result = hwpWriter.makeFileFromHwpFormat("list", printOption, dataObjectList); Map<String,Object> result = hwpWriter.makeFileFromHwpFormat("list", printOption, dataObjectList);
mav.addAllObjects(result); mav.addAllObjects(result);
mav.addObject("downloadData", dataObjectList);
mav.addObject("dataNames", hwpWriter.getFormat().getDownloadDataNames());
return mav; return mav;
} }
@ -612,7 +618,8 @@ public class Sprt01Controller extends ApplicationController {
Map<String,Object> result = hwpWriter.makeFileFromHwpFormat("list", printOption, dataObjectList); Map<String,Object> result = hwpWriter.makeFileFromHwpFormat("list", printOption, dataObjectList);
mav.addAllObjects(result); mav.addAllObjects(result);
mav.addObject("downloadData", dataObjectList);
mav.addObject("dataNames", hwpWriter.getFormat().getDownloadDataNames());
return mav; return mav;
} }
@ -642,7 +649,8 @@ public class Sprt01Controller extends ApplicationController {
hwpWriter.setFormat(new RcvmtConfirm()); hwpWriter.setFormat(new RcvmtConfirm());
Map<String,Object> result = hwpWriter.makeFileFromHwpFormat("info", printOption, dataObjectList); Map<String,Object> result = hwpWriter.makeFileFromHwpFormat("info", printOption, dataObjectList);
mav.addAllObjects(result); mav.addAllObjects(result);
mav.addObject("downloadData", dataObjectList);
mav.addObject("dataNames", hwpWriter.getFormat().getDownloadDataNames());
return mav; return mav;
} }

Loading…
Cancel
Save