From 3ed5e64734c9f542c9de1afd8943514427387142 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 27 Mar 2024 11:25:58 +0900 Subject: [PATCH] no message --- .../xit/fims/cmmn/web/StngController.java | 22 +++++++- .../cokr/xit/fims/task/web/CmnController.java | 6 ++ .../WEB-INF/jsp/fims/stng01030-main.jsp | 5 ++ src/main/webapp/WEB-INF/jsp/include/top.jsp | 56 +++++++++++++++---- 4 files changed, 77 insertions(+), 12 deletions(-) create mode 100644 src/main/webapp/WEB-INF/jsp/fims/stng01030-main.jsp diff --git a/src/main/java/cokr/xit/fims/cmmn/web/StngController.java b/src/main/java/cokr/xit/fims/cmmn/web/StngController.java index ee360e4e..e3483482 100644 --- a/src/main/java/cokr/xit/fims/cmmn/web/StngController.java +++ b/src/main/java/cokr/xit/fims/cmmn/web/StngController.java @@ -45,7 +45,8 @@ public class StngController extends ApplicationController { saveOtptStngInfo = "/010/save.do", extrStngMain = "/020/main.do", getExtrStngInfo = "/020/info.do", - saveExtrStngInfo = "/020/save.do" + saveExtrStngInfo = "/020/save.do", + outsourcingStngMain = "/030/main.do" ; } @@ -255,4 +256,23 @@ public class StngController extends ApplicationController { mav.addObject("saved", saved); return mav; } + + /** 외주요청파일 서식 설정 메인 화면을 연다. + * @return 외주요청파일 서식 설정 메인 화면 + */ + public ModelAndView outsourcingStngMain() { + ModelAndView mav = new ModelAndView("fims/stng01030-main"); + mav.addObject("pageName", "stng01030"); + + Map> commonCodes = getCodesOf("FIM054","FIM047","FIM078","FIM080"); + + mav.addObject("FIM047List", commonCodes.get("FIM047")); + mav.addObject("FIM054List", commonCodes.get("FIM054")); + mav.addObject("TaskListForSgg", stngBean.filterTaskSectionCodeForSgg(commonCodes.get("FIM054"))); + mav.addObject("FIM078List", commonCodes.get("FIM078")); + mav.addObject("FIM080List", commonCodes.get("FIM080")); + addCodes(commonCodes, mav, "FIM047", "FIM054", "FIM078","FIM080"); + + return mav; + } } diff --git a/src/main/java/cokr/xit/fims/task/web/CmnController.java b/src/main/java/cokr/xit/fims/task/web/CmnController.java index 269fda27..a941d39e 100644 --- a/src/main/java/cokr/xit/fims/task/web/CmnController.java +++ b/src/main/java/cokr/xit/fims/task/web/CmnController.java @@ -820,5 +820,11 @@ public class CmnController { public ModelAndView saveExtrStngInfo(ExtrForm extrForm) { return super.saveExtrStngInfo(extrForm); } + + @Override + @RequestMapping(name="외주요청파일 서식 설정 메인 화면", value=METHOD_URL.outsourcingStngMain) + public ModelAndView outsourcingStngMain() { + return super.outsourcingStngMain(); + } } } diff --git a/src/main/webapp/WEB-INF/jsp/fims/stng01030-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/stng01030-main.jsp new file mode 100644 index 00000000..451ded1b --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/fims/stng01030-main.jsp @@ -0,0 +1,5 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> +<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> + +외주요청파일 서식 설정 + diff --git a/src/main/webapp/WEB-INF/jsp/include/top.jsp b/src/main/webapp/WEB-INF/jsp/include/top.jsp index 9b5f1979..e1dba0df 100644 --- a/src/main/webapp/WEB-INF/jsp/include/top.jsp +++ b/src/main/webapp/WEB-INF/jsp/include/top.jsp @@ -171,6 +171,7 @@ + @@ -205,6 +206,36 @@ function fnOpenSelectStngDialog(){ }); } +/*--------------------- 장비단속레이아웃 설정 메인 화면 표시 ---------------------*/ +function fnOpenEqmCrdnLayoutStngDialog(){ + dialog.close("selectStngDialog"); + + var url = wctx.url("/crdn/crdn01/010/main.do"); + var dialogId = "eqmCrdnLayoutStngDialog"; + + ajax.post({ + url : url, + data : {}, + success : (resp) => { + + dialog.open({ + id : dialogId, + title : "장비단속 레이아웃 설정", + size : "xxl", + content : resp, + init : () => { + + $("#"+dialogId).find("input[name='dialogId']").val(dialogId); + + $("#"+dialogId).find("form[name='frmSearch']").find("[name='sggCd']").val(MY_INFO.info.sggCd); + + }, + onClose : () => { } + }); + } + }); +} + /*--------------------- 출력물 설정 메인 화면 표시 ---------------------*/ function fnOpenOtptStngDialog(){ @@ -237,12 +268,13 @@ function fnOpenOtptStngDialog(){ } -/*--------------------- PDF자료 추출 설정 메인 화면 표시 ---------------------*/ -function fnOpenExtrStngDialog(){ +/*--------------------- 고지서 외주요청파일 서식 설정 ---------------------*/ +function fnOpenOutsourcingStngDialog(){ + dialog.close("selectStngDialog"); - var url = wctx.url("/stng/stng01/020/main.do"); - var dialogId = "extrStngDialog"; + var url = wctx.url("/stng/stng01/030/main.do"); + var dialogId = "outsourcingStngDialog"; ajax.post({ url : url, @@ -251,7 +283,7 @@ function fnOpenExtrStngDialog(){ dialog.open({ id : dialogId, - title : "PDF자료 추출 설정", + title : "외주요청파일 서식 설정", size : "xxl", content : resp, init : () => { @@ -265,15 +297,17 @@ function fnOpenExtrStngDialog(){ }); } }); + } -/*--------------------- 장비단속레이아웃 설정 메인 화면 표시 ---------------------*/ -function fnOpenEqmCrdnLayoutStngDialog(){ + +/*--------------------- PDF자료 추출 설정 메인 화면 표시 ---------------------*/ +function fnOpenExtrStngDialog(){ dialog.close("selectStngDialog"); - var url = wctx.url("/crdn/crdn01/010/main.do"); - var dialogId = "eqmCrdnLayoutStngDialog"; - + var url = wctx.url("/stng/stng01/020/main.do"); + var dialogId = "extrStngDialog"; + ajax.post({ url : url, data : {}, @@ -281,7 +315,7 @@ function fnOpenEqmCrdnLayoutStngDialog(){ dialog.open({ id : dialogId, - title : "장비단속 레이아웃 설정", + title : "PDF자료 추출 설정", size : "xxl", content : resp, init : () => {