fix: 화면 select box 코드 처리

dev
Jonguk. Lim 5 months ago
parent 4df015aae3
commit e4b4811c02

@ -62,15 +62,8 @@ public class AddsNimsController extends ApplicationController {
setCmmCode("ADDS04", mav);
if(!isEmpty(dsuseReceptInfo) && !isEmpty(dsuseReceptInfo.getDscdmngId())){
//mav.setViewName("adds/nims/dsuseMgtReceiptMain-detail");
mav.addObject("dsuseReceptInfo", toJson(dsuseReceptInfo));
// DsuseMgtReceiptQuery query = new DsuseMgtReceiptQuery();
// query.setDscdmngId(dscdmngId);
// mav.addObject("dsuseReceptDetails", toJson(dsuseMgtReceiptService.getDsuseMgtReceiptList(query)));
}
// else{
// mav.setViewName("adds/nims/dsuseMgtReceipt-info");
// }
return mav
.addObject("pageName", "dsuseMgtReceiptInfo") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
@ -94,6 +87,8 @@ public class AddsNimsController extends ApplicationController {
@RequestMapping(value = "dsuseMgtRslt-info.do", name="결과[통보] 상세")
public ModelAndView getDsuseMgtRsltInfo(DsuseRsltInfo dsuseRsltInfo) {
ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtRslt-info");
setCmmCode("ADDS03", mav);
setCmmCode("ADDS04", mav);
FileQuery fileQuery = new FileQuery().setInfoType("110").setInfoKeys(dsuseRsltInfo.getDscdmngId());
List<DataObject> fileInfos = fileService.getFileList(fileQuery);
@ -118,6 +113,8 @@ public class AddsNimsController extends ApplicationController {
@RequestMapping(value = "/dsuseMgtMapping-info.do", name = "페기 보고 확인 등록")
public ModelAndView getDsuseMgtMappingInfo(DsuseMappingInfo dsuseMappingInfo) {
ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtMapping-info");
setCmmCode("ADDS03", mav);
setCmmCode("ADDS04", mav);
return mav
.addObject("pageName", "dsuseMgtMappingInfo") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
@ -170,6 +167,8 @@ public class AddsNimsController extends ApplicationController {
public ModelAndView dsuseMgtRsltMain() {
ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtRslt-main");
setCmmCode("ADDS11", mav);
List<DataObject> deptList = defaultOgdpBean.getDeptList(new OgdpQuery());
mav.addObject("DEPTList", deptList);
return mav
.addObject("pageName", "dsuseMgtRslt") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
@ -182,6 +181,8 @@ public class AddsNimsController extends ApplicationController {
public ModelAndView dsuseMgtMapping() {
ModelAndView mav = new ModelAndView("adds/nims/dsuseMgtMapping-main");
setCmmCode("ADDS11", mav);
List<DataObject> deptList = defaultOgdpBean.getDeptList(new OgdpQuery());
mav.addObject("DEPTList", deptList);
return mav
.addObject("pageName", "dsuseMgtMapping") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
@ -195,6 +196,8 @@ public class AddsNimsController extends ApplicationController {
ModelAndView mav = new ModelAndView();
mav.setViewName("adds/nims/dsuseDoc-main");
setCmmCode("ADDS11", mav);
List<DataObject> deptList = defaultOgdpBean.getDeptList(new OgdpQuery());
mav.addObject("DEPTList", deptList);
mav.addObject("pageName", "dsuseMgtDoc");
return mav;

@ -14,11 +14,11 @@
<div class="row g-1">
<div class="col-5">
<label class="form-label fw-bold form-search-title text-end" for="schSggCd--${pageName}">관할관청</label>
<select class="form-select" id="schSggCd--${pageName}" name="schSggCd">
<select class="form-select" id="schSggCd--${pageName}" name="schSggCd" style="pointer-events: none;">
<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>
<div class="col-5">
@ -461,7 +461,11 @@
initDatepicker("frmSearch--${pageName}"); // 달력 초기화
$("#schDateFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-7).date); // 부과 제외 일자 시작
$("#schDateTo--${pageName}").datepicker("setDate", new Date()); // 부과 제외 일자 종료
$('#schSttsCd--${pageName}').val('06');
// FIXME: 로그인 사용자의 관할관청 코드를 설정한다.
<%--$('#schSggCd--${pageName}').val("${currentUser.deptCd}");--%>
$('#schSggCd--${pageName}').val("4050149");
}
/**************************************************************************

@ -14,7 +14,7 @@
<form id="frmEdit--${pageName}" name="frmEdit">
<!-- hidden -->
<input type="hidden" name="dscdmngId" data-map="dscdmngId" />
<label class="form-label fw-bold form-search-title" for="Rslt--${pageName}">신청 정보</label>
<label class="form-label fw-bold form-search-title" for="Rslt--${pageName}" style="margin-top: 10px; padding-left: 20px;">신청 정보</label>
<div class="row my-1 mx-4 g-1 border-card rounded-3">
<input type="hidden" id="usrRptIdNo--${pageName}" name="usrRptIdNo" data-map="usrRptIdNo">
<div class="col-md-6">
@ -25,15 +25,15 @@
<label for="bsshNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">업체명</label>
<input type="text" class="form-control w-60" id="bsshNm--${pageName}" name="bsshNm" data-map="bsshNm" readonly>
</div>
<div class="col-md-6">
<label for="indutyNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">업종명</label>
<input type="text" class="form-control w-60" id="indutyNm--${pageName}" name="indutyNm" data-map="indutyNm" readonly>
</div>
<%-- <div class="col-md-6">--%>
<%-- <label for="indutyNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">업종명</label>--%>
<%-- <input type="text" class="form-control w-60" id="indutyNm--${pageName}" name="indutyNm" data-map="indutyNm" readonly>--%>
<%-- </div>--%>
<div class="col-md-6">
<label for="rndDtlRptCnt--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">보고건수</label>
<input type="text" class="form-control w-60" id="rndDtlRptCnt--${pageName}" name="rndDtlRptCnt" data-map="rndDtlRptCnt" readonly>
</div>
<div class="col-md-12">
<div class="col-md-6">
<label for="dsusePrvNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">폐기사유</label>
<input type="text" class="form-control w-60" id="dsusePrvNm--${pageName}" name="dsusePrvNm" data-map="dsusePrvNm" readonly>
</div>
@ -44,45 +44,39 @@
<div class="col-md-6">
<label for="hdrDe--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">취급일자</label>
<input type="text" class="form-control w-45 form-date" id="hdrDe--${pageName}" name="hdrDe" data-fmt-type="day" data-map="hdrDe" autocomplete="off" title="종료 날짜 선택" readonly/>
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
<%-- <button type="button" class="bx bx-sm bx-calendar bg-white"></button>--%>
</div>
<div class="col-md-6">
<label for="dsuseDe--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">폐기일자</label>
<input type="text" class="form-control w-45 form-date" id="dsuseDe--${pageName}" name="dsuseDe" data-fmt-type="day" data-map="dsuseDe" autocomplete="off" title="종료 날짜 선택" readonly/>
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
<%-- <button type="button" class="bx bx-sm bx-calendar bg-white"></button>--%>
</div>
<div class="col-md-6">
<label for="dsuseSeCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">폐기구분</label>
<select class="form-select w-60" id="dsuseSeCd--${pageName}" name="dsuseSeCd" style="pointer-events: none;">
<option value="1">보건소폐기</option>
<option value="2">공무원임회</option>
<option value="4">도난/분실/재해 발생 사고마약류</option>
<c:forEach items="${ADDS03}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<div class="col-md-6">
<label for="dsuseMthCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">폐기방법</label>
<select class="form-select w-60" id="dsuseMthCd--${pageName}" name="dsuseMthCd" style="pointer-events: none;">
<option value="1">소각</option>
<option value="2">중화</option>
<option value="3">가수분해</option>
<option value="4">산화</option>
<option value="5">환원</option>
<option value="6">희석</option>
<option value="7">매몰</option>
<option value="8">기타(파쇄,혼합)</option>
<option value="9">사고(사고마약류중재해상실, 분실, 도난에의한경우)</option>
<c:forEach items="${ADDS04}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<div class="col-md-12">
<label for="dsuseLoc--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">폐기장소</label>
<input type="text" class="form-control w-80" id="dsuseLoc--${pageName}" name="dsuseLoc" data-map="dsuseLoc">
<input type="text" class="form-control w-80" id="dsuseLoc--${pageName}" name="dsuseLoc" data-map="dsuseLoc" readonly>
</div>
</div>
</form> <!-- /입력 영역 -->
</div>
<!-- / DataTables(그리드) -->
<div class="card">
<label class="form-label fw-bold form-search-title" for="ReceiptDetail--${pageName}">제품 정보</label>
<label class="form-label fw-bold form-search-title" for="ReceiptDetail--${pageName}" style="margin-top: 10px; padding-left: 20px;">제품 정보</label>
<div class="row g-1">
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}">
@ -91,26 +85,30 @@
id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead">
<tr>
<th class="cmn" style="width: 72px;">No.</th>
<th class="sorting sorting_asc" aria-sort="ascending" style="width: 223.719px;">제품명</th>
<th class="cmn" style="width: 72px;">순번</th>
<th class="sorting" style="width: 146.156px;">제품코드</th>
<th class="sorting" style="width: 160.141px;">폐기수량</th>
<th class="sorting" style="width: 230.469px;">유효기간</th>
<th class="sorting" style="width: 230.469px;">유통 단위 수량</th>
<th class="sorting" style="width: 230.469px;">낱개 단위 수량</th>
<th class="sorting" style="width: 90.141px;">폐기수량</th>
<th class="sorting" style="width: 120.469px;">유효기간</th>
<th class="sorting" style="width: 160.141px;">제조번호</th>
<th class="sorting" style="width: 160.141px;">일련번호</th>
<th class="sorting sorting_asc" aria-sort="ascending" style="width: 223.719px;">제품명</th>
<%-- <th class="sorting" style="width: 130.469px;">유통단위 수량</th>--%>
<%-- <th class="sorting" style="width: 130.469px;">낱개단위 수량</th>--%>
</tr>
</thead>
<tbody id="tbody--${pageName}Detail">
</tbody>
<template id="${infoPrefix}Row--${pageName}Detail">
<tr data-key="{DSCDMNG_SN}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}"></td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{PRDUCT_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSCDMNG_SN}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{PRDUCT_CD}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSUSE_QY} {PCE_UNIT}</td>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{PRD_VALID_DE}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MIN_DISTB_QY} {MIN_DISTB_UNIT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{PCE_QY} {PCE_UNIT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MNF_NO}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MNF_SEQ}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{PRDUCT_NM}</td>
<%-- <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MIN_DISTB_QY} {MIN_DISTB_UNIT}</td>--%>
<%-- <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{PCE_QY} {PCE_UNIT}</td> --%>
</tr>
</template>
<template id="${infoPrefix}NotFound--${pageName}Detail">

@ -14,11 +14,11 @@
<div class="row g-1">
<div class="col-5">
<label class="form-label fw-bold form-search-title text-end" for="schSggCd--${pageName}">관할관청</label>
<select class="form-select" id="schSggCd--${pageName}" name="schSggCd">
<select class="form-select w-200" id="schSggCd--${pageName}" name="schSggCd" style="pointer-events: none;">
<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>
<div class="col-5">
@ -536,6 +536,9 @@
$("#schDateTo--${pageName}").datepicker("setDate", new Date()); // 부과 제외 일자 종료
$('#schSttsCd--${pageName}').val('06');
// FIXME: 로그인 사용자의 관할관청 코드를 설정한다.
<%--$('#schSggCd--${pageName}').val("${currentUser.deptCd}");--%>
$('#schSggCd--${pageName}').val("4050149");
}
/**************************************************************************

@ -14,7 +14,7 @@
<div class="row g-1">
<div class="col-5">
<label class="form-label fw-bold form-search-title text-end" for="schSggCd--${pageName}">관할관청</label>
<select class="form-select" id="schSggCd--${pageName}" name="schSggCd">
<select class="form-select" id="schSggCd--${pageName}" name="schSggCd" style="pointer-events: none;">
<option value="">전체</option>
<c:forEach items="${DEPTList}" var="item">
<option value="${item.DEPT_CD}">${item.DEPT_NM}</option>
@ -565,7 +565,11 @@
// 기본 데이터 설정
initDatepicker("frmSearch--${pageName}"); // 달력 초기화
$("#schDateFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-7).date); // 부과 제외 일자 시작
$("#schDateTo--${pageName}").datepicker("setDate", new Date()); // 부과 제외 일자 종료
$("#schDateTo--${pageName}").datepicker("setDate", new Date());
// FIXME: 로그인 사용자의 관할관청 코드를 설정한다.
<%--$('#schSggCd--${pageName}').val("${currentUser.deptCd}");--%>
$('#schSggCd--${pageName}').val("4050149");// 부과 제외 일자 종료
}
/**************************************************************************

@ -55,23 +55,17 @@
<div class="col-md-6">
<label for="dsuseSeCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">폐기구분</label>
<select class="form-select" id="dsuseSeCd--${pageName}" name="dsuseSeCd">
<option value="1">보건소폐기</option>
<option value="2">공무원임회</option>
<option value="4">도난/분실/재해 발생 사고마약류</option>
<c:forEach items="${ADDS03}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<div class="col-md-6">
<label for="dsuseMthCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">폐기방법</label>
<select class="form-select" id="dsuseMthCd--${pageName}" name="dsuseMthCd">
<option value="1">소각</option>
<option value="2">중화</option>
<option value="3">가수분해</option>
<option value="4">산화</option>
<option value="5">환원</option>
<option value="6">희석</option>
<option value="7">매몰</option>
<option value="8">기타(파쇄,혼합)</option>
<option value="9">사고(사고마약류중재해상실, 분실, 도난에의한경우)</option>
<c:forEach items="${ADDS04}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<div class="col-md-10">

@ -14,11 +14,11 @@
<div class="row g-1">
<div class="col-5">
<label class="form-label fw-bold form-search-title text-end" for="schSggCd--${pageName}">관할관청</label>
<select class="form-select" id="schSggCd--${pageName}" name="schSggCd">
<select class="form-select" id="schSggCd--${pageName}" name="schSggCd" style="pointer-events: none;">
<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>
<div class="col-5">
@ -547,6 +547,9 @@
$("#schDateTo--${pageName}").datepicker("setDate", new Date()); // 부과 제외 일자 종료
$('#schSttsCd--${pageName}').val('01');
// FIXME: 로그인 사용자의 관할관청 코드를 설정한다.
<%--$('#schSggCd--${pageName}').val("${currentUser.deptCd}");--%>
$('#schSggCd--${pageName}').val("4050149");
}
/**************************************************************************

Loading…
Cancel
Save