|
|
|
@ -25,6 +25,7 @@ import cokr.xit.base.web.ApplicationController;
|
|
|
|
|
import cokr.xit.fims.cmmn.CmmnUtil;
|
|
|
|
|
import cokr.xit.fims.cmmn.ftp.FTPUtil;
|
|
|
|
|
import cokr.xit.fims.cmmn.ftp.RemoteSystemInfo;
|
|
|
|
|
import cokr.xit.fims.cmmn.service.bean.FactionBean;
|
|
|
|
|
import cokr.xit.fims.crdn.Crdn;
|
|
|
|
|
import cokr.xit.fims.crdn.CrdnQuery;
|
|
|
|
|
import cokr.xit.fims.crdn.dao.CrdnInstMapper;
|
|
|
|
@ -39,6 +40,7 @@ import cokr.xit.fims.crdn.service.CrdnService;
|
|
|
|
|
import cokr.xit.fims.crdn.service.CrdnStngService;
|
|
|
|
|
import cokr.xit.fims.crdn.service.ImportService;
|
|
|
|
|
import cokr.xit.fims.crdn.service.bean.CrdnStngBean;
|
|
|
|
|
import cokr.xit.foundation.UserInfo;
|
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
|
|
|
|
|
|
/**단속 자료 등록 서비스 웹 컨트롤러.<br />
|
|
|
|
@ -87,6 +89,9 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
|
@Resource(name="userMapper")
|
|
|
|
|
protected UserMapper userMapper;
|
|
|
|
|
|
|
|
|
|
@Resource(name="factionBean")
|
|
|
|
|
protected FactionBean factionBean;
|
|
|
|
|
|
|
|
|
|
/** 단속 자료 등록 메인화면을 연다.
|
|
|
|
|
* @return fims/crdn/crdn05010-main
|
|
|
|
|
*/
|
|
|
|
@ -443,12 +448,19 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
|
*/
|
|
|
|
|
public ModelAndView createCrdnDataByManual(HttpServletRequest hReq, Crdn crdn, MultipartFile[] newFileList) {
|
|
|
|
|
boolean saved = false;
|
|
|
|
|
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
|
|
|
|
|
String deptCd = currentUser.getDeptCode();
|
|
|
|
|
crdn.setSggCd(globalStngMapper.selectSggCd(deptCd));
|
|
|
|
|
|
|
|
|
|
UserInfo userInfo = currentUser();
|
|
|
|
|
factionBean.initUserInfo(userInfo);
|
|
|
|
|
|
|
|
|
|
crdn.setSggCd((String)userInfo.getInfo().get("sggCd"));
|
|
|
|
|
crdn.setCrdnRegSeCd("01");
|
|
|
|
|
crdn.setCrdnInptSeCd("03");//TODO : 사용자 기관의 시청,구청 구분
|
|
|
|
|
if(((String)userInfo.getInfo().get("instNm")).endsWith("시")) {
|
|
|
|
|
crdn.setCrdnInptSeCd("03");//시청
|
|
|
|
|
} else {
|
|
|
|
|
crdn.setCrdnInptSeCd("02");//구청
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<FileInfo> fileInfoList = new ArrayList<FileInfo>();
|
|
|
|
|
if(newFileList != null && newFileList.length > 0) {
|
|
|
|
|