|
|
@ -292,8 +292,8 @@ public class IntegrationSearchServiceBean extends AbstractServiceBean implements
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Map<String, String> makePdfFile(String formatType, String formatName, PrintOption printOption, String[] crdnIds) {
|
|
|
|
public Map<String, Object> makePdfFile(String formatType, String formatName, PrintOption printOption, String[] crdnIds) {
|
|
|
|
Map<String, String> result = new HashMap<>();
|
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
|
|
|
|
|
|
|
|
|
PDFPrintFormat pdfFormat = null;
|
|
|
|
PDFPrintFormat pdfFormat = null;
|
|
|
|
if(formatName.equals("advntce")) {
|
|
|
|
if(formatName.equals("advntce")) {
|
|
|
@ -317,6 +317,12 @@ public class IntegrationSearchServiceBean extends AbstractServiceBean implements
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PDFPrintUtil pdfPrintUtil = new PDFPrintUtil();
|
|
|
|
PDFPrintUtil pdfPrintUtil = new PDFPrintUtil();
|
|
|
|
|
|
|
|
if(formatName.equals("advntce")) {
|
|
|
|
|
|
|
|
pdfPrintUtil.setFormatKorName("사전통지서");
|
|
|
|
|
|
|
|
} else if(formatName.equals("nht")) {
|
|
|
|
|
|
|
|
pdfPrintUtil.setFormatKorName("고지서");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
UserInfo userInfo = currentUser();
|
|
|
|
UserInfo userInfo = currentUser();
|
|
|
|
factionBean.initUserInfo(userInfo);
|
|
|
|
factionBean.initUserInfo(userInfo);
|
|
|
|
pdfPrintUtil.setPrintRequestUserInfo(userInfo);
|
|
|
|
pdfPrintUtil.setPrintRequestUserInfo(userInfo);
|
|
|
@ -598,8 +604,10 @@ public class IntegrationSearchServiceBean extends AbstractServiceBean implements
|
|
|
|
doc.save(resultFilePath);
|
|
|
|
doc.save(resultFilePath);
|
|
|
|
doc.close();
|
|
|
|
doc.close();
|
|
|
|
|
|
|
|
|
|
|
|
result.put("fileName", "사전통지서.pdf");
|
|
|
|
String downloadFileName = pdfPrintUtil.getFormatKorName()+"_"+pdfPrintUtil.getPrintRequestDt()+".pdf";
|
|
|
|
|
|
|
|
result.put("filename", downloadFileName);
|
|
|
|
result.put("filePath", resultFilePath);
|
|
|
|
result.put("filePath", resultFilePath);
|
|
|
|
|
|
|
|
result.put("file", new File(resultFilePath));
|
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
@ -610,8 +618,8 @@ public class IntegrationSearchServiceBean extends AbstractServiceBean implements
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Map<String, String> makeOutsourcingFile(String formatName, PrintOption printOption, String[] crdnIds) {
|
|
|
|
public Map<String, Object> makeOutsourcingFile(String formatName, PrintOption printOption, String[] crdnIds) {
|
|
|
|
Map<String,String> result = new HashMap<>();
|
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
|
|
|
|
|
|
|
|
|
Hangul hangul = new Hangul(2);
|
|
|
|
Hangul hangul = new Hangul(2);
|
|
|
|
|
|
|
|
|
|
|
@ -728,8 +736,9 @@ public class IntegrationSearchServiceBean extends AbstractServiceBean implements
|
|
|
|
zipFile.addFolder(new File(imagesFolderPath));
|
|
|
|
zipFile.addFolder(new File(imagesFolderPath));
|
|
|
|
zipFile.close();
|
|
|
|
zipFile.close();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.put("filename", zipFileName);
|
|
|
|
result.put("filePath", zipFilePath);
|
|
|
|
result.put("filePath", zipFilePath);
|
|
|
|
result.put("fileName", zipFileName);
|
|
|
|
result.put("file", new File(zipFilePath));
|
|
|
|
|
|
|
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
} catch (IOException e) {
|
|
|
|
throw new RuntimeException("외주파일생성 중 오류가 발생하였습니다.");
|
|
|
|
throw new RuntimeException("외주파일생성 중 오류가 발생하였습니다.");
|
|
|
|