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",