diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceiptMain-detail.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceiptMain-detail.jsp index e297979..acf375c 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceiptMain-detail.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceiptMain-detail.jsp @@ -12,6 +12,7 @@
+
@@ -43,7 +44,6 @@
-
@@ -79,12 +79,19 @@ **************************************************************************/ $P.control = new DatasetControl({ prefix: "dsuseMgtReceiptBssh" - , prefixName: "마약류 취급업체 조회" + , prefixName: "폐기 신청서 접수 정보" , keymapper: info => info ? info.bsshCd : "" , dataGetter: obj => obj.${infoPrefix}Info , infoSize: "xl" }); + $P.control.onCurrentChange = item => { + if (!item) return; + + // Dataset 셋팅 + $P.bsshFormFields.set($P.control, item); + } + // 저장 callback $P.control.onSave = (resp) => { let dialogTitle = $("#" + $P.control.prefix + "Dialog--${openerPageName}").find("h5.modal-title").html(); @@ -109,14 +116,10 @@ userId: "${currentUser.account}" } - upload({ - url: '' - , data: { - dsuseMgtJsonStr: JSON.stringify(saveBsshData), - dsuseMgtDtlsJsonStr: JSON.stringify(datasetListPrd), - // 폐기상품이미지목록 - dsusePrdImgFiles: fileArr - } + ajax.post({ + url: '' + , data: JSON.stringify(saveBsshData) + , contentType: "application/json" , success: resp => { if(!resp.success){ dialog.alert({ @@ -126,7 +129,7 @@ } //$P.control.onSave(resp) - dialog.alert("저장됐습니다."); + dialog.alert("정상 처리 하였습니다."); dialog.close("dsuseMgtReceiptDialog"); //this._load(); }