임시 한컴한글파일 생성경로 설정 기능 추가

main
이범준 5 months ago
parent 45a8e0c7d3
commit 1a4db98920

@ -6,6 +6,8 @@ import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import org.egovframe.rte.fdl.string.EgovStringUtil;
import cokr.xit.foundation.UserInfo; import cokr.xit.foundation.UserInfo;
public class Print { public class Print {
@ -25,6 +27,11 @@ public class Print {
*/ */
protected UserInfo printRequestUserInfo; protected UserInfo printRequestUserInfo;
/**
*
*/
protected String tempPathConfig;
/** /**
* *
*/ */
@ -73,6 +80,14 @@ public class Print {
this.printRequestUserInfo = printRequestUserInfo; this.printRequestUserInfo = printRequestUserInfo;
} }
public String getTempPathConfig() {
return this.tempPathConfig;
}
public void setTempPathConfig(String tempPathConfig) {
this.tempPathConfig = tempPathConfig;
}
public String getPrintRequestDt() { public String getPrintRequestDt() {
return this.printRequestDt; return this.printRequestDt;
} }
@ -115,7 +130,14 @@ public class Print {
String year = currentTime.substring(0, 4); String year = currentTime.substring(0, 4);
String month = currentTime.substring(4, 6); String month = currentTime.substring(4, 6);
String day = currentTime.substring(6, 8); String day = currentTime.substring(6, 8);
String formatFileResultRootPath = "files" + File.separator + "temp" + File.separator + "print";
String DEFAULT = "files"+ File.separator;
String root = DEFAULT;
if(!EgovStringUtil.null2void(this.getTempPathConfig()).equals("")) {
root = this.getTempPathConfig();
}
String formatFileResultRootPath = root + "temp" + File.separator + "print";
String formatFileResultFolderPath = formatFileResultRootPath String formatFileResultFolderPath = formatFileResultRootPath
+ File.separator + year + File.separator + month + File.separator + day; + File.separator + year + File.separator + month + File.separator + day;
File formatFileResultFolder = new File(formatFileResultFolderPath); File formatFileResultFolder = new File(formatFileResultFolderPath);
@ -128,4 +150,6 @@ public class Print {
return resultPath; return resultPath;
} }
} }

Loading…
Cancel
Save