소스 정리

main
이범준 7 months ago
parent 5812c441a1
commit 581390d828

@ -2,13 +2,11 @@ package cokr.xit.fims.cmmn.hwp.format;
import java.util.List; import java.util.List;
import cokr.xit.base.docs.hwp.HWPWriter;
import cokr.xit.fims.cmmn.Print; import cokr.xit.fims.cmmn.Print;
import cokr.xit.fims.cmmn.PrintOption; import cokr.xit.fims.cmmn.PrintOption;
import cokr.xit.fims.mngt.FactionUtil; import cokr.xit.fims.mngt.FactionUtil;
import cokr.xit.foundation.data.DataFormat; import cokr.xit.foundation.data.DataFormat;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
import kr.dogfoot.hwplib.object.HWPFile;
/** /**
* *
@ -32,8 +30,7 @@ public class CrdnConfirm extends HWPFormat {
@Override @Override
public void runAsWriter() { public void runAsWriter() {
HWPFile hwpFile = HWPWriter.classpath(this.formatFilePath);
this.writer = new HWPWriter(hwpFile);
String printRequestYmd = print.getPrintRequestDt().substring(0, 8); String printRequestYmd = print.getPrintRequestDt().substring(0, 8);
String yyyy = printRequestYmd.substring(0, 4); String yyyy = printRequestYmd.substring(0, 4);

@ -4,13 +4,11 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.stream.IntStream; import java.util.stream.IntStream;
import cokr.xit.base.docs.hwp.HWPWriter;
import cokr.xit.fims.cmmn.Print; import cokr.xit.fims.cmmn.Print;
import cokr.xit.fims.cmmn.PrintOption; import cokr.xit.fims.cmmn.PrintOption;
import cokr.xit.fims.mngt.FactionUtil; import cokr.xit.fims.mngt.FactionUtil;
import cokr.xit.foundation.data.DataFormat; import cokr.xit.foundation.data.DataFormat;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
import kr.dogfoot.hwplib.object.HWPFile;
/** /**
* *
@ -49,8 +47,6 @@ public class CrdnList extends HWPFormat {
@Override @Override
public void runAsWriter() { public void runAsWriter() {
HWPFile hwpFile = HWPWriter.classpath(this.formatFilePath);
this.writer = new HWPWriter(hwpFile);
String globalRtpyrNm = data.get(0).string("RTPYR_NM"); String globalRtpyrNm = data.get(0).string("RTPYR_NM");
String globalRtpyrNo = data.get(0).string("RTPYR_NO"); String globalRtpyrNo = data.get(0).string("RTPYR_NO");

@ -53,6 +53,9 @@ public class CvlcptOrgn extends HWPFormat {
@Override @Override
public HashMap<String, Object> makeFile(){ public HashMap<String, Object> makeFile(){
HWPFile hwpFile = HWPWriter.classpath(this.formatFilePath);
this.writer = new HWPWriter(hwpFile);
runAsWriter(); runAsWriter();
String tempPath = this.print.pathForNewFile(); String tempPath = this.print.pathForNewFile();
writer.write(tempPath); writer.write(tempPath);
@ -65,7 +68,10 @@ public class CvlcptOrgn extends HWPFormat {
formatFilePath = "template/hwp/cvlcptOrgnl_photo.hwp"; formatFilePath = "template/hwp/cvlcptOrgnl_photo.hwp";
maxRunCount = data2.size()+1; maxRunCount = data2.size()+1;
while(currentRunCount != maxRunCount) { while(currentRunCount != maxRunCount) {
HWPFile hwpFile_i = HWPWriter.classpath(this.formatFilePath);
this.writer = new HWPWriter(hwpFile_i);
runAsWriter(); runAsWriter();
String tempPath_i = this.print.pathForNewFile(); String tempPath_i = this.print.pathForNewFile();
writer.write(tempPath_i); writer.write(tempPath_i);
@ -84,9 +90,6 @@ public class CvlcptOrgn extends HWPFormat {
@Override @Override
public void runAsWriter() { public void runAsWriter() {
HWPFile hwpFile = HWPWriter.classpath(this.formatFilePath);
this.writer = new HWPWriter(hwpFile);
if(this.formatFilePath.equals("template/hwp/cvlcptOrgnl_text.hwp")) { if(this.formatFilePath.equals("template/hwp/cvlcptOrgnl_text.hwp")) {

@ -3,11 +3,9 @@ package cokr.xit.fims.cmmn.hwp.format;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import cokr.xit.base.docs.hwp.HWPWriter;
import cokr.xit.fims.cmmn.Print; import cokr.xit.fims.cmmn.Print;
import cokr.xit.fims.cmmn.PrintOption; import cokr.xit.fims.cmmn.PrintOption;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
import kr.dogfoot.hwplib.object.HWPFile;
public class DlbrDecsnList extends HWPFormat { public class DlbrDecsnList extends HWPFormat {
@ -41,8 +39,6 @@ public class DlbrDecsnList extends HWPFormat {
@Override @Override
public void runAsWriter() { public void runAsWriter() {
HWPFile hwpFile = HWPWriter.classpath(this.formatFilePath);
this.writer = new HWPWriter(hwpFile);
DataObject one = data.get(currentRunCount); DataObject one = data.get(currentRunCount);

@ -37,7 +37,10 @@ public abstract class HWPFormat {
} }
public HashMap<String, Object> makeFile(){ public HashMap<String, Object> makeFile(){
while(currentRunCount != maxRunCount) { while(currentRunCount != maxRunCount) {
HWPFile hwpFile = HWPWriter.classpath(this.formatFilePath);
this.writer = new HWPWriter(hwpFile);
runAsWriter(); runAsWriter();
String tempPath = this.print.pathForNewFile(); String tempPath = this.print.pathForNewFile();
writer.write(tempPath); writer.write(tempPath);

@ -3,13 +3,11 @@ package cokr.xit.fims.cmmn.hwp.format;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import cokr.xit.base.docs.hwp.HWPWriter;
import cokr.xit.fims.cmmn.Print; import cokr.xit.fims.cmmn.Print;
import cokr.xit.fims.cmmn.PrintOption; import cokr.xit.fims.cmmn.PrintOption;
import cokr.xit.fims.mngt.FactionUtil; import cokr.xit.fims.mngt.FactionUtil;
import cokr.xit.foundation.data.DataFormat; import cokr.xit.foundation.data.DataFormat;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
import kr.dogfoot.hwplib.object.HWPFile;
/** /**
* *
@ -47,8 +45,6 @@ public class RcvmtConfirm extends HWPFormat {
@Override @Override
public void runAsWriter() { public void runAsWriter() {
HWPFile hwpFile = HWPWriter.classpath(this.formatFilePath);
this.writer = new HWPWriter(hwpFile);
String instNm = FactionUtil.getInstituteLeader((String) print.getPrintRequestUserInfo().getInfo().get("instNm"), false); String instNm = FactionUtil.getInstituteLeader((String) print.getPrintRequestUserInfo().getInfo().get("instNm"), false);

@ -9,7 +9,6 @@ import java.util.stream.IntStream;
import org.egovframe.rte.fdl.string.EgovStringUtil; import org.egovframe.rte.fdl.string.EgovStringUtil;
import cokr.xit.base.docs.hwp.HWPWriter;
import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.fims.cmmn.CmmnUtil;
import cokr.xit.fims.cmmn.Print; import cokr.xit.fims.cmmn.Print;
import cokr.xit.fims.cmmn.PrintOption; import cokr.xit.fims.cmmn.PrintOption;
@ -17,7 +16,6 @@ import cokr.xit.fims.cmmn.hwp.OffcsCellFinder;
import cokr.xit.fims.mngt.FactionUtil; import cokr.xit.fims.mngt.FactionUtil;
import cokr.xit.foundation.data.DataFormat; import cokr.xit.foundation.data.DataFormat;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
import kr.dogfoot.hwplib.object.HWPFile;
import kr.dogfoot.hwplib.object.bodytext.control.table.Cell; import kr.dogfoot.hwplib.object.bodytext.control.table.Cell;
import kr.dogfoot.hwplib.object.bodytext.paragraph.Paragraph; import kr.dogfoot.hwplib.object.bodytext.paragraph.Paragraph;
@ -50,8 +48,6 @@ public class ReportOnClaims extends HWPFormat {
@Override @Override
public void runAsWriter() { public void runAsWriter() {
HWPFile hwpFile = HWPWriter.classpath(this.formatFilePath);
this.writer = new HWPWriter(hwpFile);
Map<String,String> globalVariable = printOption.getGlobalVariable(); Map<String,String> globalVariable = printOption.getGlobalVariable();

@ -9,7 +9,6 @@ import java.util.stream.IntStream;
import org.egovframe.rte.fdl.string.EgovStringUtil; import org.egovframe.rte.fdl.string.EgovStringUtil;
import cokr.xit.base.docs.hwp.HWPWriter;
import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.fims.cmmn.CmmnUtil;
import cokr.xit.fims.cmmn.Print; import cokr.xit.fims.cmmn.Print;
import cokr.xit.fims.cmmn.PrintOption; import cokr.xit.fims.cmmn.PrintOption;
@ -17,7 +16,6 @@ import cokr.xit.fims.cmmn.hwp.OffcsCellFinder;
import cokr.xit.fims.mngt.FactionUtil; import cokr.xit.fims.mngt.FactionUtil;
import cokr.xit.foundation.data.DataFormat; import cokr.xit.foundation.data.DataFormat;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
import kr.dogfoot.hwplib.object.HWPFile;
import kr.dogfoot.hwplib.object.bodytext.control.table.Cell; import kr.dogfoot.hwplib.object.bodytext.control.table.Cell;
import kr.dogfoot.hwplib.object.bodytext.paragraph.Paragraph; import kr.dogfoot.hwplib.object.bodytext.paragraph.Paragraph;
@ -49,8 +47,6 @@ public class RequestForDelivery extends HWPFormat {
@Override @Override
public void runAsWriter() { public void runAsWriter() {
HWPFile hwpFile = HWPWriter.classpath(this.formatFilePath);
this.writer = new HWPWriter(hwpFile);
Map<String,String> globalVariable = printOption.getGlobalVariable(); Map<String,String> globalVariable = printOption.getGlobalVariable();

@ -8,12 +8,10 @@ import java.util.stream.IntStream;
import org.egovframe.rte.fdl.string.EgovStringUtil; import org.egovframe.rte.fdl.string.EgovStringUtil;
import cokr.xit.base.docs.hwp.HWPWriter;
import cokr.xit.fims.cmmn.Print; import cokr.xit.fims.cmmn.Print;
import cokr.xit.fims.cmmn.PrintOption; import cokr.xit.fims.cmmn.PrintOption;
import cokr.xit.fims.cmmn.hwp.OffcsCellFinder; import cokr.xit.fims.cmmn.hwp.OffcsCellFinder;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
import kr.dogfoot.hwplib.object.HWPFile;
import kr.dogfoot.hwplib.object.bodytext.control.table.Cell; import kr.dogfoot.hwplib.object.bodytext.control.table.Cell;
import kr.dogfoot.hwplib.object.bodytext.paragraph.Paragraph; import kr.dogfoot.hwplib.object.bodytext.paragraph.Paragraph;
@ -43,8 +41,6 @@ public class SvbtcList extends HWPFormat {
@Override @Override
public void runAsWriter() { public void runAsWriter() {
HWPFile hwpFile = HWPWriter.classpath(this.formatFilePath);
this.writer = new HWPWriter(hwpFile);
String offcsFilePath = EgovStringUtil.null2void(data.get(0).string("OFFCS_FILE_PATH")); String offcsFilePath = EgovStringUtil.null2void(data.get(0).string("OFFCS_FILE_PATH"));
if(!offcsFilePath.equals("")) { if(!offcsFilePath.equals("")) {

Loading…
Cancel
Save