|
|
|
@ -333,8 +333,8 @@
|
|
|
|
|
|
|
|
|
|
$P.mappingControl.query = {
|
|
|
|
|
dscdmngId: $P.formFields.get().dscdmngId,
|
|
|
|
|
userId: "suji"
|
|
|
|
|
//userId: "${currentUser.account}"
|
|
|
|
|
//userId: "suji"
|
|
|
|
|
userId: "${currentUser.account}"
|
|
|
|
|
};
|
|
|
|
|
$P.mappingControl.load(1);
|
|
|
|
|
}
|
|
|
|
@ -374,7 +374,7 @@
|
|
|
|
|
$("#tbody--${pageName}MappingDtl").setCurrentRow(key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
// 저장 callback
|
|
|
|
|
$P.control.onSave = (resp) => {
|
|
|
|
@ -391,18 +391,36 @@
|
|
|
|
|
if (resp.saved) {
|
|
|
|
|
dialog.close($P.control.prefix + "Dialog--${openerPageName}");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} */
|
|
|
|
|
// 저장
|
|
|
|
|
$P.control.save = (info) => {
|
|
|
|
|
if (!info) return;
|
|
|
|
|
|
|
|
|
|
let create = (info.mngId == "");
|
|
|
|
|
|
|
|
|
|
$P.control.save = () => {
|
|
|
|
|
// debugger;
|
|
|
|
|
ajax.post({
|
|
|
|
|
url: !create ? $P.control.urls.update : $P.control.urls.create
|
|
|
|
|
, data: info || {}
|
|
|
|
|
, success: resp => $P.control.onSave(resp)
|
|
|
|
|
url: '<c:url value="${apiHost}/api/biz/nims/v1/modifyMappingDsuseMgt"/>'
|
|
|
|
|
, data: JSON.stringify({
|
|
|
|
|
dscdmngId: $P.formFields.get().dscdmngId,
|
|
|
|
|
prgrsSttsCd: "21",
|
|
|
|
|
usrRptIdNo: $P.mappingControl.dataset.getCurrent().usrRptIdNo,
|
|
|
|
|
orgUsrRptIdNo: $P.mappingControl.dataset.getCurrent().orgUsrRptIdNo,
|
|
|
|
|
rptTyCd: $P.mappingControl.dataset.getCurrent().rptTyCd,
|
|
|
|
|
stts: $P.mappingControl.dataset.getCurrent().status,
|
|
|
|
|
userId: "${currentUser.account}"
|
|
|
|
|
// rgtr: "${currentUser.account}",
|
|
|
|
|
})
|
|
|
|
|
, contentType : "application/json; charset=utf-8"
|
|
|
|
|
, success: resp => {
|
|
|
|
|
if(!resp.success){
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content: resp.message
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//$P.control.onSave(resp)
|
|
|
|
|
dialog.alert("저장됐습니다.");
|
|
|
|
|
dialog.close("dsuseMgtMappingDialog");
|
|
|
|
|
//this._load();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -469,13 +487,13 @@
|
|
|
|
|
// 저장
|
|
|
|
|
$P.fnSave = () => {
|
|
|
|
|
// validate 확인
|
|
|
|
|
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
|
|
|
|
|
//if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content: "현재 " + $P.control.prefixName + " 정보를 저장하시겠습니까?"
|
|
|
|
|
, init: () => { setDialogZindex(); }
|
|
|
|
|
, onOK: () => {
|
|
|
|
|
$P.control.save($P.bsshFormFields.get()); // formFields
|
|
|
|
|
$P.control.save(); // formFields
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|