From 2ce776950a74ded76e52c9c6bb2ec48b02fd3830 Mon Sep 17 00:00:00 2001 From: leebj Date: Tue, 18 Jun 2024 17:33:57 +0900 Subject: [PATCH] =?UTF-8?q?=EC=85=80=EB=A0=89=ED=8A=B8=EB=B0=95=EC=8A=A4?= =?UTF-8?q?=EC=97=90=20=ED=91=9C=EC=8B=9C=ED=95=A0=20=EC=BD=94=EB=93=9C?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=20=EC=A1=B0=ED=9A=8C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/adds/nims/web/AddsNimsController.java | 15 ++++++++++++--- .../adds/nims/web/DsuseMgtDetailController.java | 4 ++-- .../cokr/xit/adds/nims/web/TestController.java | 4 ++-- .../jsp/adds/nims/dsuseMgtReceipt-main.jsp | 6 +++--- 4 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java b/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java index a6db705..79354cf 100644 --- a/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java +++ b/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java @@ -1,5 +1,8 @@ package cokr.xit.adds.nims.web; +import java.util.List; +import java.util.Map; + import javax.annotation.Resource; import org.springframework.beans.factory.annotation.Value; @@ -12,20 +15,21 @@ import cokr.xit.adds.nims.DsuseMgtDocQuery; import cokr.xit.adds.nims.DsuseMgtReceiptQuery; import cokr.xit.adds.nims.service.DsuseMgtDocService; import cokr.xit.adds.nims.service.DsuseMgtReceiptService; -import cokr.xit.foundation.web.AbstractController; +import cokr.xit.base.code.CommonCode; +import cokr.xit.base.web.ApplicationController; @Controller @RequestMapping( name = "마약류 폐기 보고", value = {"/adds/nims"} ) -public class AddsNimsController extends AbstractController { +public class AddsNimsController extends ApplicationController { @Value("${app.api.host:}") private String apiHost; @Resource(name="dsuseMgtReceiptService") private DsuseMgtReceiptService dsuseMgtReceiptService; - + @Resource(name="dsuseMgtDocService") private DsuseMgtDocService dsuseMgtDocService; @@ -121,6 +125,10 @@ public class AddsNimsController extends AbstractController { public ModelAndView dsuseMgtReceiptMain() { ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtReceipt-main"); + Map> commonCodes = getCodesOf("ADDS11"); + mav.addObject("ADDS11List", commonCodes.get("ADDS11")); + + return mav .addObject("pageName", "dsuseMgtReceipt") // View(jsp)에서 사용할 id 뒤에 붙일 suffix // .addObject("infoPrefix", "dsuseMgtReceipt") // prefix @@ -157,6 +165,7 @@ public class AddsNimsController extends AbstractController { public ModelAndView dsuseMgtDoc() { ModelAndView mav = new ModelAndView(); mav.setViewName("adds/nims/dsuseDoc-main"); + mav.addObject("pageName", "dsuseMgtDoc"); return mav; } //------------------------------------------------------------------------------------------------- diff --git a/src/main/java/cokr/xit/adds/nims/web/DsuseMgtDetailController.java b/src/main/java/cokr/xit/adds/nims/web/DsuseMgtDetailController.java index b4216aa..bf12632 100644 --- a/src/main/java/cokr/xit/adds/nims/web/DsuseMgtDetailController.java +++ b/src/main/java/cokr/xit/adds/nims/web/DsuseMgtDetailController.java @@ -10,7 +10,7 @@ import com.fasterxml.jackson.core.JsonProcessingException; import cokr.xit.adds.nims.DsuseMgtDetailQuery; import cokr.xit.adds.nims.service.DsuseMgtDetailService; -import cokr.xit.foundation.web.AbstractController; +import cokr.xit.base.web.ApplicationController; import net.minidev.json.parser.ParseException; @@ -20,7 +20,7 @@ import net.minidev.json.parser.ParseException; name = "마약류폐기 신청 상세", value = {"/adds/nims"} ) -public class DsuseMgtDetailController extends AbstractController { +public class DsuseMgtDetailController extends ApplicationController { public static final String CLASS_URL = "/adds/nims"; 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 d43d232..1bbabc1 100644 --- a/src/main/java/cokr/xit/adds/nims/web/TestController.java +++ b/src/main/java/cokr/xit/adds/nims/web/TestController.java @@ -5,7 +5,7 @@ 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 cokr.xit.base.web.ApplicationController; import lombok.RequiredArgsConstructor; @RequiredArgsConstructor @@ -14,7 +14,7 @@ import lombok.RequiredArgsConstructor; name = "Nims 관리", value = {"/adds/nims/"} ) -public class TestController extends AbstractController { +public class TestController extends ApplicationController { @Value("${app.api.host:}") private String 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 086080c..a5b9a24 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 @@ -47,9 +47,9 @@