|
|
|
@ -36,13 +36,18 @@
|
|
|
|
|
<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>
|
|
|
|
|
</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>
|
|
|
|
|
<select class="form-select" id="dsusePrvCd--${pageName}" name="dsusePrvCd">
|
|
|
|
|
<c:forEach items="${ADDS04}" var="item">
|
|
|
|
|
<option value="${item.code}">${item.value}</option>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</select>
|
|
|
|
|
</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 class="row my-1 mx-1 g-1 border-card rounded"></div>
|
|
|
|
@ -509,6 +514,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()); // 추가
|
|
|
|
|
|
|
|
|
|
$("#dsusePrvCd--${pageName}").on("change", () => $P.fnChangeDsusePrvCd()); // 추가
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 초기 화면 설정
|
|
|
|
@ -537,6 +556,8 @@
|
|
|
|
|
if(${currentUser.hasAuthorities("ROLE_MANAGER")} || ${currentUser.hasAuthorities("ROLE_ADMIN")}) {
|
|
|
|
|
$("#btnSave--${pageName}").prop("disabled", true);
|
|
|
|
|
}
|
|
|
|
|
initDatepicker("bssh--${pageName}");
|
|
|
|
|
$("#dsuseAcdtDe--${pageName}").datepicker("setDate", new Date());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|