From c4abe0945b4ac4dbf9aa2d2f40e77e1532ccf487 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Wed, 19 Jun 2024 18:08:57 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=8F=90=EA=B8=B0=EC=8B=A0=EC=B2=AD=20?= =?UTF-8?q?=EB=A7=88=EC=8A=A4=ED=84=B0=20=EC=A0=95=EB=B3=B4=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adds/nims/dsuseMgtReceiptMain-detail.jsp | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) 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(); }