클래스명 수정

main
이범준 1 year ago
parent b83d2bf024
commit 445fa10751

@ -16,7 +16,7 @@ import org.apache.commons.io.FilenameUtils;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
public class XitParser implements LayoutParser{ public class AttachedTxtParser implements LayoutParser{
private DataObject before = new DataObject(); private DataObject before = new DataObject();
private int tempGroupSeq = 1; private int tempGroupSeq = 1;

@ -15,7 +15,7 @@ import org.apache.commons.io.FilenameUtils;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
public class InoParser implements LayoutParser { public class OnlyImageParser implements LayoutParser {
private DataObject before = new DataObject(); private DataObject before = new DataObject();
private int tempGroupSeq = 1; private int tempGroupSeq = 1;

@ -18,7 +18,7 @@ import cokr.xit.base.file.FileInfo;
import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.fims.cmmn.CmmnUtil;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
public class HiteComParser implements LayoutParser { public class SingleFileParser implements LayoutParser {
private int tempGroupSeq = 1; private int tempGroupSeq = 1;

@ -19,7 +19,7 @@ import cokr.xit.base.file.service.bean.FileBean;
import cokr.xit.base.file.web.FileInfoFactory; import cokr.xit.base.file.web.FileInfoFactory;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.dao.GlobalStngMapper; import cokr.xit.fims.crdn.dao.GlobalStngMapper;
import cokr.xit.fims.crdn.parsing.HiteComParser; import cokr.xit.fims.crdn.parsing.SingleFileParser;
import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.crdn.service.ImportService; import cokr.xit.fims.crdn.service.ImportService;
import cokr.xit.foundation.component.AbstractServiceBean; import cokr.xit.foundation.component.AbstractServiceBean;
@ -222,16 +222,16 @@ public class ImportServiceBean extends AbstractServiceBean implements ImportServ
//linkFileInfo.string("PLATE_HEIGHT"); //linkFileInfo.string("PLATE_HEIGHT");
try { try {
FileInfo FileInfo1 = HiteComParser.base64ToFileInfo(linkFileInfo.string("CAR_IMAGE_NM"), linkFileInfo.string("CAR_IMAGE"), 1); FileInfo FileInfo1 = SingleFileParser.base64ToFileInfo(linkFileInfo.string("CAR_IMAGE_NM"), linkFileInfo.string("CAR_IMAGE"), 1);
fileInfoList.add(FileInfo1); fileInfoList.add(FileInfo1);
FileInfo FileInfo2 = HiteComParser.base64ToFileInfo(linkFileInfo.string("PLATE_IMAGE_NM"), linkFileInfo.string("PLATE_IMAGE"), 2); FileInfo FileInfo2 = SingleFileParser.base64ToFileInfo(linkFileInfo.string("PLATE_IMAGE_NM"), linkFileInfo.string("PLATE_IMAGE"), 2);
fileInfoList.add(FileInfo2); fileInfoList.add(FileInfo2);
int otherPhotoCnt = linkFileInfo.number("PHOTO_CNT").intValue() - 2; int otherPhotoCnt = linkFileInfo.number("PHOTO_CNT").intValue() - 2;
for(int i=1; i <= otherPhotoCnt; i++){ for(int i=1; i <= otherPhotoCnt; i++){
String fileName = linkFileInfo.string("MOVING_IMAGE"+i+"_NM"); String fileName = linkFileInfo.string("MOVING_IMAGE"+i+"_NM");
String b64str = linkFileInfo.string("MOVING_IMAGE"+i); String b64str = linkFileInfo.string("MOVING_IMAGE"+i);
FileInfo FileInfo = HiteComParser.base64ToFileInfo(fileName, b64str, i + 2); FileInfo FileInfo = SingleFileParser.base64ToFileInfo(fileName, b64str, i + 2);
fileInfoList.add(FileInfo); fileInfoList.add(FileInfo);
} }

@ -28,10 +28,10 @@ import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.CrdnInstMapper; import cokr.xit.fims.crdn.dao.CrdnInstMapper;
import cokr.xit.fims.crdn.dao.GlobalStngMapper; import cokr.xit.fims.crdn.dao.GlobalStngMapper;
import cokr.xit.fims.crdn.parsing.LayoutParser; import cokr.xit.fims.crdn.parsing.LayoutParser;
import cokr.xit.fims.crdn.parsing.HiteComParser; import cokr.xit.fims.crdn.parsing.SingleFileParser;
import cokr.xit.fims.crdn.parsing.InoParser; import cokr.xit.fims.crdn.parsing.OnlyImageParser;
import cokr.xit.fims.crdn.parsing.ParsingUtil; import cokr.xit.fims.crdn.parsing.ParsingUtil;
import cokr.xit.fims.crdn.parsing.XitParser; import cokr.xit.fims.crdn.parsing.AttachedTxtParser;
import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.crdn.service.CrdnStngService; import cokr.xit.fims.crdn.service.CrdnStngService;
import cokr.xit.fims.crdn.service.ImportService; import cokr.xit.fims.crdn.service.ImportService;
@ -131,10 +131,10 @@ public class Crdn05Controller extends ApplicationController {
String entType = hReq.getParameter("entType"); String entType = hReq.getParameter("entType");
LayoutParser enterprise = null; LayoutParser enterprise = null;
switch(entType){ switch(entType){
case "ino": enterprise = new InoParser(); break; case "ino": enterprise = new OnlyImageParser(); break;
//case "knl": break; //case "knl": break;
case "hitecom": enterprise = new HiteComParser(); break; case "hitecom": enterprise = new SingleFileParser(); break;
case "xit": enterprise = new XitParser(); break; case "xit": enterprise = new AttachedTxtParser(); break;
//case "": enterprise = new (); break; //case "": enterprise = new (); break;
} }
@ -187,10 +187,10 @@ public class Crdn05Controller extends ApplicationController {
String entType = hReq.getParameter("entType"); String entType = hReq.getParameter("entType");
LayoutParser enterprise = null; LayoutParser enterprise = null;
switch(entType){ switch(entType){
case "ino": enterprise = new InoParser(); break; case "ino": enterprise = new OnlyImageParser(); break;
//case "knl": break; //case "knl": break;
case "hitecom": enterprise = new HiteComParser(); break; case "hitecom": enterprise = new SingleFileParser(); break;
case "xit": enterprise = new XitParser(); break; case "xit": enterprise = new AttachedTxtParser(); break;
//case "": enterprise = new (); break; //case "": enterprise = new (); break;
} }
@ -226,10 +226,10 @@ public class Crdn05Controller extends ApplicationController {
String entType = hReq.getParameter("entType"); String entType = hReq.getParameter("entType");
LayoutParser enterprise = null; LayoutParser enterprise = null;
switch(entType){ switch(entType){
case "ino": enterprise = new InoParser(); break; case "ino": enterprise = new OnlyImageParser(); break;
//case "knl": break; //case "knl": break;
case "hitecom": enterprise = new HiteComParser(); break; case "hitecom": enterprise = new SingleFileParser(); break;
case "xit": enterprise = new XitParser(); break; case "xit": enterprise = new AttachedTxtParser(); break;
//case "": enterprise = new (); break; //case "": enterprise = new (); break;
} }

Loading…
Cancel
Save