fit : 사고발생일 추가.

dev
Leeyh1121 4 months ago
parent 22f54d1246
commit 55e89cfcec

@ -75,6 +75,7 @@ public class DsuseRsltInfo {
private String hdrDe; private String hdrDe;
private String dsuseDe; private String dsuseDe;
private String dsuseAcdtDe;
private String dsuseSeCd; private String dsuseSeCd;
private String dsuseMthCd; private String dsuseMthCd;
private String dsuseLoc; private String dsuseLoc;

@ -23,6 +23,7 @@
, GET_CODE_NM("ADDS05", A.DSUSE_MTH_CD) DSUSE_MTH_NM /* 폐기 방법 */ , GET_CODE_NM("ADDS05", A.DSUSE_MTH_CD) DSUSE_MTH_NM /* 폐기 방법 */
, A.DSUSE_LOC /* 폐기 장소 */ , A.DSUSE_LOC /* 폐기 장소 */
, A.DSUSE_DE /* 폐기 일자 */ , A.DSUSE_DE /* 폐기 일자 */
, A.DSUSE_ACDT_DE /* 사고발생일 */
, A.DSUSE_RMK /* 폐기 비고 */ , A.DSUSE_RMK /* 폐기 비고 */
, A.STTS /* 처리상태 */ , A.STTS /* 처리상태 */
, A.USR_RPT_ID_NO /* 사용자 보고 식별 번호 */ , A.USR_RPT_ID_NO /* 사용자 보고 식별 번호 */

@ -36,7 +36,7 @@
<label for="bizrNo--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">사업자등록번호</label> <label for="bizrNo--${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="bizrno--${pageName}" name="bizrno" data-map="bizrno" readonly> <input type="text" class="form-control w-60" id="bizrno--${pageName}" name="bizrno" data-map="bizrno" readonly>
</div> </div>
<div class="col-md-8"> <div class="col-md-4">
<label for="dsusePrvCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">폐기사유</label> <label for="dsusePrvCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">폐기사유</label>
<select class="form-select" id="dsusePrvCd--${pageName}" name="dsusePrvCd"> <select class="form-select" id="dsusePrvCd--${pageName}" name="dsusePrvCd">
<c:forEach items="${ADDS04}" var="item"> <c:forEach items="${ADDS04}" var="item">
@ -44,6 +44,11 @@
</c:forEach> </c:forEach>
</select> </select>
</div> </div>
<div id="divDsuseAcdtDe" class="col-md-4">
<label for="dsusePrvCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">사고발생일</label>
<input type="text" class="form-control form-date" id="dsuseAcdtDe--${pageName}" name="dsuseAcdtDe" data-fmt-type="day" autocomplete="off" title="사고 발생일" />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</div>
</div> </div>
<div class="row my-1 mx-1 g-1 border-card rounded"></div> <div class="row my-1 mx-1 g-1 border-card rounded"></div>
</form> </form>
@ -508,6 +513,18 @@
} }
}); });
} }
$P.fnChangeDsusePrvCd = () => {
// validate 확인
let checkData = $("#dsusePrvCd--${pageName} option:selected").val();
if (checkData =="01" || checkData =="02") {
$("#dsuseAcdtDe--${pageName}").prop('disabled', false);
}else{
$("#dsuseAcdtDe--${pageName}").prop('disabled', true);
$("#dsuseAcdtDe--${pageName}").val("");
}
}
/************************************************************************** /**************************************************************************
* 초기 셋팅 * 초기 셋팅
@ -530,6 +547,8 @@
$("#btnDel--${pageName}").on("click", () => $P.fnDel()); // 추가 $("#btnDel--${pageName}").on("click", () => $P.fnDel()); // 추가
$("#dsusePrvCd--${pageName}").on("change", () => $P.fnChangeDsusePrvCd()); // 추가
} }
// 초기 화면 설정 // 초기 화면 설정
@ -537,6 +556,8 @@
if(${currentUser.hasAuthorities("ROLE_MANAGER")} || ${currentUser.hasAuthorities("ROLE_ADMIN")}) { if(${currentUser.hasAuthorities("ROLE_MANAGER")} || ${currentUser.hasAuthorities("ROLE_ADMIN")}) {
$("#btnSave--${pageName}").prop("disabled", true); $("#btnSave--${pageName}").prop("disabled", true);
} }
initDatepicker("bssh--${pageName}");
$("#dsuseAcdtDe--${pageName}").datepicker("setDate", new Date());
} }

@ -94,6 +94,7 @@
<th class="cmn" style="width: 300.469px;">업체명</th> <th class="cmn" style="width: 300.469px;">업체명</th>
<th class="cmn" style="width: 90px;">폐기건수</th> <th class="cmn" style="width: 90px;">폐기건수</th>
<th class="cmn" style="width: 180.469px;">폐기사유</th> <th class="cmn" style="width: 180.469px;">폐기사유</th>
<th class="cmn" style="width: 120.141px;">사고발생일</th>
<th class="cmn" style="width: 120.141px;">취급일자</th> <th class="cmn" style="width: 120.141px;">취급일자</th>
<th class="cmn" style="width: 120.469px;">폐기일자</th> <th class="cmn" style="width: 120.469px;">폐기일자</th>
<th class="cmn" style="width: 150px;">폐기구분</th> <th class="cmn" style="width: 150px;">폐기구분</th>
@ -111,6 +112,7 @@
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{BSSH_NM}</td> <td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{BSSH_NM}</td>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{RND_DTL_RPT_CNT}</td> <td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{RND_DTL_RPT_CNT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSUSE_PRV_NM}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSUSE_PRV_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSUSE_ACDT_DE}</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}">{DSUSE_DE}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSUSE_DE}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSUSE_SE_NM}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSUSE_SE_NM}</td>
@ -217,6 +219,7 @@
, formats: { , formats: {
HDR_DE: dateFormat HDR_DE: dateFormat
, DSUSE_DE: dateFormat , DSUSE_DE: dateFormat
, DSUSE_ACDT_DE: dateFormat
} }
}); });
// $P.control 설정 // $P.control 설정
@ -236,7 +239,7 @@
, keymapper : info => info ? info.DSCDMNG_SN : "" , keymapper : info => info ? info.DSCDMNG_SN : ""
, dataGetter : obj => obj.dsuseMgtDetailList , dataGetter : obj => obj.dsuseMgtDetailList
, formats : { , formats : {
PRD_VALID_DE: dateFormat PRD_VALID_DE: dateFormat
} }
}); });
@ -301,7 +304,8 @@
rprsntvNm: row.RPRSNTV_NM, rprsntvNm: row.RPRSNTV_NM,
prmisnNo: row.PRMISN_NO, prmisnNo: row.PRMISN_NO,
bizrno: row.BIZR_NO, bizrno: row.BIZR_NO,
dsusePrvCd: row.DSUSE_PRV_CD dsusePrvCd: row.DSUSE_PRV_CD,
dsuseAcdtDe: row.DSUSE_ACDT_DE
}; };
let productDS = $P.detailControl.dataset.getDataset(); let productDS = $P.detailControl.dataset.getDataset();
if(productDS.length > 0){ if(productDS.length > 0){

Loading…
Cancel
Save