|
|
@ -1,5 +1,8 @@
|
|
|
|
package cokr.xit.adds.nims.web;
|
|
|
|
package cokr.xit.adds.nims.web;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
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.DsuseMgtReceiptQuery;
|
|
|
|
import cokr.xit.adds.nims.service.DsuseMgtDocService;
|
|
|
|
import cokr.xit.adds.nims.service.DsuseMgtDocService;
|
|
|
|
import cokr.xit.adds.nims.service.DsuseMgtReceiptService;
|
|
|
|
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
|
|
|
|
@Controller
|
|
|
|
@RequestMapping(
|
|
|
|
@RequestMapping(
|
|
|
|
name = "마약류 폐기 보고",
|
|
|
|
name = "마약류 폐기 보고",
|
|
|
|
value = {"/adds/nims"}
|
|
|
|
value = {"/adds/nims"}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
public class AddsNimsController extends AbstractController {
|
|
|
|
public class AddsNimsController extends ApplicationController {
|
|
|
|
@Value("${app.api.host:}")
|
|
|
|
@Value("${app.api.host:}")
|
|
|
|
private String apiHost;
|
|
|
|
private String apiHost;
|
|
|
|
|
|
|
|
|
|
|
|
@Resource(name="dsuseMgtReceiptService")
|
|
|
|
@Resource(name="dsuseMgtReceiptService")
|
|
|
|
private DsuseMgtReceiptService dsuseMgtReceiptService;
|
|
|
|
private DsuseMgtReceiptService dsuseMgtReceiptService;
|
|
|
|
|
|
|
|
|
|
|
|
@Resource(name="dsuseMgtDocService")
|
|
|
|
@Resource(name="dsuseMgtDocService")
|
|
|
|
private DsuseMgtDocService dsuseMgtDocService;
|
|
|
|
private DsuseMgtDocService dsuseMgtDocService;
|
|
|
|
|
|
|
|
|
|
|
@ -121,6 +125,10 @@ public class AddsNimsController extends AbstractController {
|
|
|
|
public ModelAndView dsuseMgtReceiptMain() {
|
|
|
|
public ModelAndView dsuseMgtReceiptMain() {
|
|
|
|
ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtReceipt-main");
|
|
|
|
ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtReceipt-main");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, List<CommonCode>> commonCodes = getCodesOf("ADDS11");
|
|
|
|
|
|
|
|
mav.addObject("ADDS11List", commonCodes.get("ADDS11"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return mav
|
|
|
|
return mav
|
|
|
|
.addObject("pageName", "dsuseMgtReceipt") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
|
|
|
|
.addObject("pageName", "dsuseMgtReceipt") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
|
|
|
|
// .addObject("infoPrefix", "dsuseMgtReceipt") // prefix
|
|
|
|
// .addObject("infoPrefix", "dsuseMgtReceipt") // prefix
|
|
|
@ -157,6 +165,7 @@ public class AddsNimsController extends AbstractController {
|
|
|
|
public ModelAndView dsuseMgtDoc() {
|
|
|
|
public ModelAndView dsuseMgtDoc() {
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
mav.setViewName("adds/nims/dsuseDoc-main");
|
|
|
|
mav.setViewName("adds/nims/dsuseDoc-main");
|
|
|
|
|
|
|
|
mav.addObject("pageName", "dsuseMgtDoc");
|
|
|
|
return mav;
|
|
|
|
return mav;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//-------------------------------------------------------------------------------------------------
|
|
|
|
//-------------------------------------------------------------------------------------------------
|
|
|
|