|
|
|
@ -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<String, List<CommonCode>> 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;
|
|
|
|
|
}
|
|
|
|
|
//-------------------------------------------------------------------------------------------------
|
|
|
|
|