|
|
@ -13,6 +13,8 @@ import java.util.Map;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
|
@ -41,6 +43,7 @@ import cokr.xit.fims.crdn.service.CrdnStngService;
|
|
|
|
import cokr.xit.fims.crdn.service.ImportService;
|
|
|
|
import cokr.xit.fims.crdn.service.ImportService;
|
|
|
|
import cokr.xit.fims.crdn.service.bean.CrdnStngBean;
|
|
|
|
import cokr.xit.fims.crdn.service.bean.CrdnStngBean;
|
|
|
|
import cokr.xit.fims.mngt.service.bean.FactionBean;
|
|
|
|
import cokr.xit.fims.mngt.service.bean.FactionBean;
|
|
|
|
|
|
|
|
import cokr.xit.fims.task.Task;
|
|
|
|
import cokr.xit.foundation.UserInfo;
|
|
|
|
import cokr.xit.foundation.UserInfo;
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
|
|
|
|
|
|
|
@ -48,6 +51,8 @@ import cokr.xit.foundation.data.DataObject;
|
|
|
|
* {웹 컨텍스트}/crdn/crdn05 로 접근할 수 있다.
|
|
|
|
* {웹 컨텍스트}/crdn/crdn05 로 접근할 수 있다.
|
|
|
|
* @author leebj
|
|
|
|
* @author leebj
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Controller
|
|
|
|
|
|
|
|
@RequestMapping(name="단속 자료 등록", value=Crdn05Controller.CLASS_URL)
|
|
|
|
public class Crdn05Controller extends ApplicationController {
|
|
|
|
public class Crdn05Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
public static final String CLASS_URL = "/crdn/crdn05";
|
|
|
|
public static final String CLASS_URL = "/crdn/crdn05";
|
|
|
@ -99,6 +104,7 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
/** 단속 자료 등록 메인화면을 연다.
|
|
|
|
/** 단속 자료 등록 메인화면을 연다.
|
|
|
|
* @return fims/crdn/crdn05010-main
|
|
|
|
* @return fims/crdn/crdn05010-main
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@RequestMapping(name="단속 자료 등록 메인", value=METHOD_URL.crackdownDataRegistrationMain)
|
|
|
|
public ModelAndView crackdownDataRegistrationMain() {
|
|
|
|
public ModelAndView crackdownDataRegistrationMain() {
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
mav.setViewName("fims/crdn/crdn05010-main");
|
|
|
|
mav.setViewName("fims/crdn/crdn05010-main");
|
|
|
@ -116,6 +122,8 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
* @param query 단속자료 목록 조회 조건
|
|
|
|
* @param query 단속자료 목록 조회 조건
|
|
|
|
* @return jsonView
|
|
|
|
* @return jsonView
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Task
|
|
|
|
|
|
|
|
@RequestMapping(name="당일 입력 단속자료 목록 조회", value=METHOD_URL.getTodayCrdnDataList)
|
|
|
|
public ModelAndView getTodayCrdnDataList(CrdnQuery query) {
|
|
|
|
public ModelAndView getTodayCrdnDataList(CrdnQuery query) {
|
|
|
|
setFetchSize(query);
|
|
|
|
setFetchSize(query);
|
|
|
|
query.setGridType("todayInsert");
|
|
|
|
query.setGridType("todayInsert");
|
|
|
@ -132,6 +140,8 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
* @param
|
|
|
|
* @param
|
|
|
|
* @return fims/crdn/crdn05020-info
|
|
|
|
* @return fims/crdn/crdn05020-info
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Task
|
|
|
|
|
|
|
|
@RequestMapping(name="단속자료 파일 등록 화면", value=METHOD_URL.getFileRegistrationScreen)
|
|
|
|
public ModelAndView getFileRegistrationScreen(HttpServletRequest hReq) {
|
|
|
|
public ModelAndView getFileRegistrationScreen(HttpServletRequest hReq) {
|
|
|
|
ModelAndView mav = new ModelAndView("fims/crdn/crdn05020-info");
|
|
|
|
ModelAndView mav = new ModelAndView("fims/crdn/crdn05020-info");
|
|
|
|
mav.addObject("pageName", "crdn05020");
|
|
|
|
mav.addObject("pageName", "crdn05020");
|
|
|
@ -150,6 +160,8 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
* @param
|
|
|
|
* @param
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Task
|
|
|
|
|
|
|
|
@RequestMapping(name="단속연계파일 가져오기(FTP)", value=METHOD_URL.importFileFromServer)
|
|
|
|
public ModelAndView importFileFromServer(HttpServletRequest hReq) {
|
|
|
|
public ModelAndView importFileFromServer(HttpServletRequest hReq) {
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
boolean saved = false;
|
|
|
|
boolean saved = false;
|
|
|
@ -207,6 +219,8 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
* @param
|
|
|
|
* @param
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Task
|
|
|
|
|
|
|
|
@RequestMapping(name="단속연계파일 가져오기(파일업로드)", value=METHOD_URL.importFileFromClient)
|
|
|
|
public ModelAndView importFileFromClient(HttpServletRequest hReq, MultipartFile[] uploadFiles) {
|
|
|
|
public ModelAndView importFileFromClient(HttpServletRequest hReq, MultipartFile[] uploadFiles) {
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
boolean saved = false;
|
|
|
|
boolean saved = false;
|
|
|
@ -254,6 +268,8 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
* @param
|
|
|
|
* @param
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Task
|
|
|
|
|
|
|
|
@RequestMapping(name="장비업체 단속파일 목록 조회", value=METHOD_URL.getEquipmentFileInfoList)
|
|
|
|
public ModelAndView getEquipmentFileInfoList(HttpServletRequest hReq) {
|
|
|
|
public ModelAndView getEquipmentFileInfoList(HttpServletRequest hReq) {
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
List<DataObject> allParsedDataList = new ArrayList<DataObject>();
|
|
|
|
List<DataObject> allParsedDataList = new ArrayList<DataObject>();
|
|
|
@ -317,6 +333,8 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
* "saved": 등록되었으면 true, 그렇지 않으면 false
|
|
|
|
* "saved": 등록되었으면 true, 그렇지 않으면 false
|
|
|
|
* }</code></pre>
|
|
|
|
* }</code></pre>
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Task
|
|
|
|
|
|
|
|
@RequestMapping(name="장비업체 단속파일 삭제", value=METHOD_URL.removeLinkFile)
|
|
|
|
public ModelAndView removeLinkFile(HttpServletRequest hReq) {
|
|
|
|
public ModelAndView removeLinkFile(HttpServletRequest hReq) {
|
|
|
|
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
@ -344,6 +362,8 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
* "saved": 등록되었으면 true, 그렇지 않으면 false
|
|
|
|
* "saved": 등록되었으면 true, 그렇지 않으면 false
|
|
|
|
* }</code></pre>
|
|
|
|
* }</code></pre>
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Task
|
|
|
|
|
|
|
|
@RequestMapping(name="장비업체 단속파일로 단속자료 생성", value=METHOD_URL.createCrdnByLinkFile)
|
|
|
|
public ModelAndView createCrdnByLinkFile(String taskSeCd, String fileLayoutId, String fileGroupType, String[] linkFileInfos) {
|
|
|
|
public ModelAndView createCrdnByLinkFile(String taskSeCd, String fileLayoutId, String fileGroupType, String[] linkFileInfos) {
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
String institute = currentUser().getInstitute();
|
|
|
|
String institute = currentUser().getInstitute();
|
|
|
@ -390,6 +410,8 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
* @param
|
|
|
|
* @param
|
|
|
|
* @return fims/crdn/crdn05030-info
|
|
|
|
* @return fims/crdn/crdn05030-info
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Task
|
|
|
|
|
|
|
|
@RequestMapping(name="단속자료 수기 등록 화면", value=METHOD_URL.getManualRegistrationScreen)
|
|
|
|
public ModelAndView getManualRegistrationScreen(HttpServletRequest hReq) {
|
|
|
|
public ModelAndView getManualRegistrationScreen(HttpServletRequest hReq) {
|
|
|
|
|
|
|
|
|
|
|
|
ModelAndView mav = new ModelAndView("fims/crdn/crdn05030-info");
|
|
|
|
ModelAndView mav = new ModelAndView("fims/crdn/crdn05030-info");
|
|
|
@ -454,6 +476,8 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
* "saved": 등록되었으면 true, 그렇지 않으면 false
|
|
|
|
* "saved": 등록되었으면 true, 그렇지 않으면 false
|
|
|
|
* }</code></pre>
|
|
|
|
* }</code></pre>
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Task
|
|
|
|
|
|
|
|
@RequestMapping(name="단속자료 수기 등록", value=METHOD_URL.createCrdnDataByManual)
|
|
|
|
public ModelAndView createCrdnDataByManual(HttpServletRequest hReq, Crdn crdn, MultipartFile[] newFileList) {
|
|
|
|
public ModelAndView createCrdnDataByManual(HttpServletRequest hReq, Crdn crdn, MultipartFile[] newFileList) {
|
|
|
|
boolean saved = false;
|
|
|
|
boolean saved = false;
|
|
|
|
|
|
|
|
|
|
|
|