조회조건에 사용될 부서 목록 가져오기 추가

dev
이범준 5 months ago
parent 8557d7d689
commit 1aa3d6219d

@ -15,8 +15,11 @@ 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.applib.ogdp.OgdpQuery;
import cokr.xit.applib.ogdp.service.bean.DefaultOgdpBean;
import cokr.xit.base.code.CommonCode;
import cokr.xit.base.web.ApplicationController;
import cokr.xit.foundation.data.DataObject;
@Controller
@RequestMapping(
@ -27,6 +30,9 @@ public class AddsNimsController extends ApplicationController {
@Value("${app.api.host:}")
private String apiHost;
@Resource(name="defaultOgdpBean")
DefaultOgdpBean defaultOgdpBean;
@Resource(name="dsuseMgtReceiptService")
private DsuseMgtReceiptService dsuseMgtReceiptService;
@ -123,9 +129,13 @@ public class AddsNimsController extends ApplicationController {
//-------------------------------------------------------------------------------------------------
@RequestMapping(value = "/dsuseMgtReceipt.do", name="신청서 접수 메인")
public ModelAndView dsuseMgtReceiptMain() {
ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtReceipt-main");
setCmmCodeAdds11(mav);
List<DataObject> deptList = defaultOgdpBean.getDeptList(new OgdpQuery());
mav.addObject("DEPTList", deptList);
return mav
.addObject("pageName", "dsuseMgtReceipt") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
// .addObject("infoPrefix", "dsuseMgtReceipt") // prefix

@ -16,9 +16,9 @@
<label class="form-label fw-bold form-search-title text-end" for="schSggCd--${pageName}">관할관청</label>
<select class="form-select" id="schSggCd--${pageName}" name="schSggCd">
<option value="">전체</option>
<option value="01">수지구</option>
<option value="03">기흥구</option>
<option value="05">처인구</option>
<c:forEach items="${DEPTList}" var="item">
<option value="${item.DEPT_CD}">${item.DEPT_NM}</option>
</c:forEach>
</select>
</div>

Loading…
Cancel
Save