|
|
@ -32,6 +32,7 @@ import cokr.xit.fims.crdn.parsing.Ino;
|
|
|
|
import cokr.xit.fims.crdn.parsing.Knl;
|
|
|
|
import cokr.xit.fims.crdn.parsing.Knl;
|
|
|
|
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.foundation.data.DataObject;
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
|
|
|
|
|
|
|
|
/**단속 자료 등록 서비스 웹 컨트롤러.<br />
|
|
|
|
/**단속 자료 등록 서비스 웹 컨트롤러.<br />
|
|
|
@ -50,12 +51,16 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
getFileRegistrationScreen = "/020/info.do",
|
|
|
|
getFileRegistrationScreen = "/020/info.do",
|
|
|
|
getCrdnFileListFromEquipmentEnterprise = "/020/list.do",
|
|
|
|
getCrdnFileListFromEquipmentEnterprise = "/020/list.do",
|
|
|
|
removeLinkFile = "/020/remove.do",
|
|
|
|
removeLinkFile = "/020/remove.do",
|
|
|
|
|
|
|
|
createCrdnByLinkFile = "/020/create.do",
|
|
|
|
|
|
|
|
|
|
|
|
getManualRegistrationScreen = "/030/info.do",
|
|
|
|
getManualRegistrationScreen = "/030/info.do",
|
|
|
|
createCrdnDataByManual = "/030/create.do"
|
|
|
|
createCrdnDataByManual = "/030/create.do"
|
|
|
|
;
|
|
|
|
;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource(name="importService")
|
|
|
|
|
|
|
|
private ImportService importService;
|
|
|
|
|
|
|
|
|
|
|
|
@Resource(name="crdnService")
|
|
|
|
@Resource(name="crdnService")
|
|
|
|
private CrdnService crdnService;
|
|
|
|
private CrdnService crdnService;
|
|
|
|
|
|
|
|
|
|
|
@ -224,6 +229,31 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
return mav;
|
|
|
|
return mav;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**단속 연계 파일로 단속자료를 생성한다.
|
|
|
|
|
|
|
|
* @param entType 장비업체 유형, linkFileInfos 연계파일정보
|
|
|
|
|
|
|
|
* @return jsonView
|
|
|
|
|
|
|
|
* <pre><code> {
|
|
|
|
|
|
|
|
* "saved": 등록되었으면 true, 그렇지 않으면 false
|
|
|
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public ModelAndView createCrdnByLinkFile(String entType, String[] linkFileInfos) {
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
|
|
|
|
boolean saved = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<DataObject> linkFileInfoList = new ArrayList<DataObject>();
|
|
|
|
|
|
|
|
for(String linkFileInfo : linkFileInfos) {
|
|
|
|
|
|
|
|
linkFileInfoList.add(fromJson(linkFileInfo, DataObject.class));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
saved = importService.createCrdnByEquipmentLinkFile(entType, linkFileInfoList);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mav.addObject("saved", saved);
|
|
|
|
|
|
|
|
return mav;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**단속자료 수기 등록 팝업화면을 반환한다.
|
|
|
|
/**단속자료 수기 등록 팝업화면을 반환한다.
|
|
|
|
* @param
|
|
|
|
* @param
|
|
|
|
* @return fims/crdn/crdn05030-info
|
|
|
|
* @return fims/crdn/crdn05030-info
|
|
|
|