@@ -229,6 +230,11 @@
if (!item) return;
$P.bsshFormFields.set($P.control, item);
+
+ // 보고완료 데이타 변경 불가
+ if($("input[name='prgrsSttsCd']").val() == '99') {
+ $("#btnSave--${pageName}").prop("disabled", true);
+ }
let checkData = item.data.dsusePrvCd;
if (checkData =="01" || checkData =="02") {
@@ -561,7 +567,7 @@
// 초기 화면 설정
$P.initForm = () => {
- if(${currentUser.hasAuthorities("ROLE_MANAGER")} || ${currentUser.hasAuthorities("ROLE_ADMIN")}) {
+ if($("input[name='prgrsSttsCd']").val() == '99' || ${currentUser.hasAuthorities("ROLE_MANAGER")} || ${currentUser.hasAuthorities("ROLE_ADMIN")}) {
$("#btnSave--${pageName}").prop("disabled", true);
}
initDatepicker("bssh--${pageName}");
diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-main.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-main.jsp
index 2c001b9..e698fb3 100644
--- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-main.jsp
@@ -307,7 +307,8 @@
prmisnNo: row.PRMISN_NO,
bizrno: row.BIZR_NO,
dsusePrvCd: row.DSUSE_PRV_CD,
- dsuseAcdtDe: row.DSUSE_ACDT_DE
+ dsuseAcdtDe: row.DSUSE_ACDT_DE,
+ prgrsSttsCd: row.PRGRS_STTS_CD
};
let productDS = $P.detailControl.dataset.getDataset();
if(productDS.length > 0){
@@ -439,29 +440,28 @@
$P.control.load($P.control.query.pageNum + 1);
}
- // DataTables에 더블 클릭시 개별총정보 dialog
- $P.getTotalInfo = (usrRptIdNo) => {
- if (typeof usrRptIdNo == "undefined" || usrRptIdNo == null || usrRptIdNo == "") return;
-
- let params = {
- usrRptIdNo: usrRptIdNo
- }
-
- ajax.get({
- url : wctx.url("/adds/nims/dsuseMgt-info.do")
- , data: params
- , success: resp => {
- dialog.open({
- id: "dsuseMgtinfoDialog"
- , title: "폐기 신청 접수 상세"
- , content: resp
- , size: "xl"
- , init: () => { }
- , onClose: () => { }
- });
- }
- });
- }
+ // $P.getTotalInfo = (usrRptIdNo) => {
+ // if (typeof usrRptIdNo == "undefined" || usrRptIdNo == null || usrRptIdNo == "") return;
+ //
+ // let params = {
+ // usrRptIdNo: usrRptIdNo
+ // }
+ //
+ // ajax.get({
+ // url : wctx.url("/adds/nims/dsuseMgt-info.do")
+ // , data: params
+ // , success: resp => {
+ // dialog.open({
+ // id: "dsuseMgtinfoDialog"
+ // , title: "폐기 신청 접수 상세"
+ // , content: resp
+ // , size: "xl"
+ // , init: () => { }
+ // , onClose: () => { }
+ // });
+ // }
+ // });
+ // }
$P.control.getBsshInfo = (gdccId) => {
let dialogTitle = "마약류 취급업체 조회";
@@ -510,7 +510,7 @@
const row = $P.control.dataset.getCurrent();
if(row.PRGRS_STTS_CD == "99"){
dialog.alert({
- content: "종료된 자료는 삭제하실 수 없습니다.."
+ content: "보고완료된 자료는 삭제하실 수 없습니다.."
});
return false;
}
diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-info.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-info.jsp
index 57599eb..fe56ca3 100644
--- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-info.jsp
@@ -14,6 +14,7 @@