공시송달 한글파일 출력 추가.
parent
119f68e65e
commit
e57ef14ad2
@ -0,0 +1,49 @@
|
||||
package cokr.xit.fims.cmmn.hwp.format;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cokr.xit.fims.cmmn.hwp.ClickHereEditor;
|
||||
import cokr.xit.fims.cmmn.hwp.HWPFormatWriter;
|
||||
import cokr.xit.fims.cmmn.hwp.HWPPrintUtil;
|
||||
import cokr.xit.fims.sprt.PrintOption;
|
||||
import cokr.xit.foundation.data.DataObject;
|
||||
import kr.dogfoot.hwplib.object.HWPFile;
|
||||
|
||||
public class SvbtcList implements HWPFormatWriter {
|
||||
|
||||
@Override
|
||||
public void setting(HWPPrintUtil hwpPrintUtil) {
|
||||
hwpPrintUtil.setFormatName("svbtc");
|
||||
hwpPrintUtil.setFormatKorName("공시송달");
|
||||
|
||||
hwpPrintUtil.setFormatType("list");
|
||||
hwpPrintUtil.setRecordPerPartFile(9);
|
||||
|
||||
hwpPrintUtil.setBaseFormatFilePath("template/hwp/svbtcList_root.hwp");
|
||||
hwpPrintUtil.setAttachFormatFilePath("template/hwp/svbtcList_inner.hwp");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeGlobalInfo(HWPFile baseFile, List<DataObject> dataObjectList, PrintOption printOption, HWPPrintUtil hwpPrintUtil) {
|
||||
//
|
||||
ClickHereEditor baseFileEditor = new ClickHereEditor(baseFile);
|
||||
|
||||
baseFileEditor.set("공시송달일자", dataObjectList.get(0).string("SVBTC_YMD"));
|
||||
baseFileEditor.set("공시송달종료일자", dataObjectList.get(0).string("SVBTC_END_YMD"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeSingleDataInfo(HWPFile baseFile, HWPFile attachFile, DataObject dataObject, HWPPrintUtil hwpPrintUtil) {
|
||||
//
|
||||
ClickHereEditor attachFileEditor = new ClickHereEditor(attachFile);
|
||||
|
||||
attachFileEditor.set("성명", dataObject.string("RCPN_NM_MASK"));
|
||||
attachFileEditor.set("주소", dataObject.string("RCPN_WHOL_ADDR_MASK"));
|
||||
attachFileEditor.set("차량번호", dataObject.string("VHRNO_MASK"));
|
||||
attachFileEditor.set("위반장소", dataObject.string("CRDN_PLC"));
|
||||
attachFileEditor.set("위반일자", dataObject.string("CRDN_DT"));
|
||||
attachFileEditor.set("반송일자", dataObject.string("DLVR_YMD"));
|
||||
attachFileEditor.set("반송사유", dataObject.string("UNDLVR_RSN_NM"));
|
||||
}
|
||||
|
||||
}
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue