From 56eb44f85c74d8646059ed2463735368cb0403d0 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Mon, 3 Jun 2024 10:07:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=8F=90=EA=B8=B0=EA=B4=80=EB=A6=AC=20?= =?UTF-8?q?=EC=83=98=ED=94=8C=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/adds/nims/web/AddsNimsController.java | 40 +++++++++++++++++++ .../xit/adds/nims/web/TestController.java | 18 ++++----- .../jsp/adds/nims/dsuseMgtReceipt-main.jsp | 3 +- .../jsp/adds/nims/dsuseMgtRslt-main.jsp | 2 +- 4 files changed, 52 insertions(+), 11 deletions(-) create mode 100644 src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java diff --git a/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java b/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java new file mode 100644 index 0000000..1141bf5 --- /dev/null +++ b/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java @@ -0,0 +1,40 @@ +package cokr.xit.adds.nims.web; + +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.servlet.ModelAndView; + +import cokr.xit.foundation.web.AbstractController; +import lombok.RequiredArgsConstructor; + +@RequiredArgsConstructor +@Controller +@RequestMapping( + name = "Nims 관리", + value = {"/adds/nims"} +) +public class AddsNimsController extends AbstractController { + @Value("${app.api.host:}") + private String apiHost; + + @RequestMapping( + name = "신청서접수", + value = {"/dsuseMgtReceipt.do"} + ) + public ModelAndView dsuseMgtReceiptForm() { + ModelAndView mav = new ModelAndView(); + mav.setViewName("adds/nims/dsuseMgtReceipt-main"); + return mav.addObject("apiHost", apiHost); + } + + @RequestMapping( + name = "결과[통보] 처리", + value = {"/dsuseMgtRslt.do"} + ) + public ModelAndView dsuseMgtRsltForm() { + ModelAndView mav = new ModelAndView(); + mav.setViewName("adds/nims/dsuseMgtRslt-main"); + return mav.addObject("apiHost", apiHost); + } +} diff --git a/src/main/java/cokr/xit/adds/nims/web/TestController.java b/src/main/java/cokr/xit/adds/nims/web/TestController.java index f69d5c8..2689690 100644 --- a/src/main/java/cokr/xit/adds/nims/web/TestController.java +++ b/src/main/java/cokr/xit/adds/nims/web/TestController.java @@ -43,13 +43,13 @@ public class TestController extends AbstractController { return mav.addObject("apiHost", apiHost); } - @RequestMapping( - name = "결과[통보] 처리", - value = {"/dsuseMgtRslt.do"} - ) - public ModelAndView dsuseMgtRsltForm() { - ModelAndView mav = new ModelAndView(); - mav.setViewName("adds/nims/dsuseMgtRslt-main"); - return mav.addObject("apiHost", apiHost); - } + // @RequestMapping( + // name = "결과[통보] 처리", + // value = {"/dsuseMgtRslt.do"} + // ) + // public ModelAndView dsuseMgtRsltForm() { + // ModelAndView mav = new ModelAndView(); + // mav.setViewName("adds/nims/dsuseMgtRslt-main"); + // return mav.addObject("apiHost", apiHost); + // } } diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-main.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-main.jsp index 97f06fb..626e5f4 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-main.jsp @@ -139,7 +139,8 @@ **************************************************************************/ $P.control = new DatasetControl({ urls : { - load : wctx.url("/adds/nims/dsuseMgtReceipt-list.do") + // load : wctx.url("/adds/nims/dsuseMgtReceipt-list.do") + load : '' } , prefix: "dsuseMgtReceipt" , prefixName: "신청서접수" diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-main.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-main.jsp index bca5c10..664126f 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-main.jsp @@ -22,7 +22,7 @@ let dsuseMgtRslt = { dscdmngId: "2024050001", - userId: "api-user", + userId: "suji", prgrsSttsCd: "06", hdrDe: "20240506", rptDe: "20240506",