신청서 접수 화면 수정

dev
이범준 5 months ago
parent 091b5d9703
commit 10302888cb

@ -6,12 +6,12 @@ import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import net.minidev.json.parser.ParseException;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import cokr.xit.adds.nims.service.DsuseMgtDetailService;
import cokr.xit.adds.nims.DsuseMgtDetailQuery; import cokr.xit.adds.nims.DsuseMgtDetailQuery;
import cokr.xit.adds.nims.service.DsuseMgtDetailService;
import cokr.xit.foundation.web.AbstractController; import cokr.xit.foundation.web.AbstractController;
import net.minidev.json.parser.ParseException;
@ -32,31 +32,30 @@ public class DsuseMgtDetailController extends AbstractController {
// , createLevyExclusion = "/020/create.do" // 부과 제외 대장 등록 // , createLevyExclusion = "/020/create.do" // 부과 제외 대장 등록
; ;
} }
@Resource(name="dsuseMgtDetailService") @Resource(name="dsuseMgtDetailService")
private DsuseMgtDetailService dsuseMgtDetailService; private DsuseMgtDetailService dsuseMgtDetailService;
@RequestMapping(name="마약류폐기 신청서 접수 메인", value=METHOD_URL.dsuseMgtDetailMain) @RequestMapping(name="마약류폐기 신청서 접수 메인", value=METHOD_URL.dsuseMgtDetailMain)
public ModelAndView dsuseMgtMain(String usrRptIdNo) { public ModelAndView dsuseMgtMain(String usrRptIdNo) {
ModelAndView mav = new ModelAndView("adds/nims/dsuseMgt-info"); ModelAndView mav = new ModelAndView("adds/nims/dsuseMgt-info");
// 사용자 정보 // 사용자 정보
//ManagedUser managedUser = (ManagedUser)currentUser().getUser(); //ManagedUser managedUser = (ManagedUser)currentUser().getUser();
return mav return mav
.addObject("pageName", "dsuseMgtInfo") // View(jsp)에서 사용할 id 뒤에 붙일 suffix .addObject("pageName", "dsuseMgtInfo") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("infoPrefix", "dsuseMgt") // prefix .addObject("infoPrefix", "dsuseMgt") // prefix
.addObject("infoPrefixUrl", "/adds/nims") // prefixUrl .addObject("infoPrefixUrl", "/adds/nims") // prefixUrl
.addObject("usrRptIdNo", usrRptIdNo) .addObject("usrRptIdNo", usrRptIdNo)
; ;
} }
@RequestMapping(name="마약류폐기 신청서 접수 조회", value=METHOD_URL.getDsuseMgtDetailList) @RequestMapping(name="마약류폐기 신청서 접수 조회", value=METHOD_URL.getDsuseMgtDetailList)
public ModelAndView getDsuseMgtList(DsuseMgtDetailQuery query) throws JsonProcessingException, ParseException { public ModelAndView getDsuseMgtList(DsuseMgtDetailQuery query) throws JsonProcessingException, ParseException {
setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), dsuseMgtDetailService.getDsuseMgtDetailList(query),"","dsuseMgtDetail"); return setCollectionInfo(new ModelAndView("jsonView"), dsuseMgtDetailService.getDsuseMgtDetailList(query),"","dsuseMgtDetail");
} }
} }

@ -14,7 +14,7 @@
<div class="row g-1"> <div class="row g-1">
<div class="col-5"> <div class="col-5">
<label class="form-label fw-bold form-search-title text-end" for="schSggCd--${pageName}">관할관청</label> <label class="form-label fw-bold form-search-title text-end" for="schSggCd--${pageName}">관할관청</label>
<select class="form-select" id="schSttsCd--${pageName}" name="schSttsCd"> <select class="form-select" id="schSggCd--${pageName}" name="schSggCd">
<option value="">전체</option> <option value="">전체</option>
<option value="01">수지구</option> <option value="01">수지구</option>
<option value="03">기흥구</option> <option value="03">기흥구</option>
@ -98,7 +98,7 @@
<tbody id="tbody--${pageName}"> <tbody id="tbody--${pageName}">
</tbody> </tbody>
<template id="${infoPrefix}Row--${pageName}"> <template id="${infoPrefix}Row--${pageName}">
<tr data-key="USR_RPT_ID_NO"> <tr data-key="{USR_RPT_ID_NO}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{HDR_DE}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{HDR_DE}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSCDMNG_ID}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSCDMNG_ID}</td>
@ -263,10 +263,11 @@
if (!item) return; if (!item) return;
let key = item.data.USR_RPT_ID_NO; let key = item.data.USR_RPT_ID_NO;
$("#tbody--${pageName}").setCurrentRow(key); $("#tbody--${pageName}").setCurrentRow(key);
var dscdmngId = item.data.DSCDMNG_ID;
$P.detailControl.query = { "schDscdmngId" : dscdmngId};
$P.detailControl.load(1); $P.detailControl.load(1);
}; };
// 현재 선택 자료 변경 이벤트 // 현재 선택 자료 변경 이벤트

Loading…
Cancel
Save