|
|
@ -5,10 +5,10 @@
|
|
|
|
<form id="frmEdit--${pageName}" name="frmEdit">
|
|
|
|
<form id="frmEdit--${pageName}" name="frmEdit">
|
|
|
|
|
|
|
|
|
|
|
|
<input type="hidden" id="crdnId--${pageName}" name="crdnId" data-map="CRDN_ID" />
|
|
|
|
<input type="hidden" id="crdnId--${pageName}" name="crdnId" data-map="CRDN_ID" />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="levyExclRsnCd--${pageName}"
|
|
|
|
<label for="levyExclRsnCd--${pageName}"
|
|
|
|
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">금액 수정 구분</label>
|
|
|
|
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">금액 수정 구분</label>
|
|
|
|
<select class="form-select" id="chgAmtSe--${pageName}" name="chgAmtSe" required>
|
|
|
|
<select class="form-select" id="chgAmtSe--${pageName}" name="chgAmtSe" required>
|
|
|
|
<option value="1">가산</option>
|
|
|
|
<option value="1">가산</option>
|
|
|
@ -33,29 +33,29 @@
|
|
|
|
<!-- / 업무 버튼 표시 -->
|
|
|
|
<!-- / 업무 버튼 표시 -->
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Global Variable
|
|
|
|
* Global Variable
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl, Dataset, FormFields
|
|
|
|
* DatasetControl, Dataset, FormFields
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$P.formFields = new FimsFormFields("#frmEdit--${pageName}");
|
|
|
|
$P.formFields = new FimsFormFields("#frmEdit--${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
$P.crdnControl = new DatasetControl({
|
|
|
|
$P.crdnControl = new DatasetControl({
|
|
|
|
dataGetter : obj => obj.crdnInfo,
|
|
|
|
dataGetter : obj => obj.crdnInfo,
|
|
|
|
keymapper : info => info ? info.CRDN_ID : "",
|
|
|
|
keymapper : info => info ? info.CRDN_ID : "",
|
|
|
|
urls : {
|
|
|
|
urls : {
|
|
|
|
update : wctx.url("/PVS/crdn/crdn02/050/update.do")
|
|
|
|
update : wctx.url("/PVS/crdn/crdn02/050/update.do")
|
|
|
|
},
|
|
|
|
},
|
|
|
|
formats: {}
|
|
|
|
formats: {}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
@ -64,8 +64,8 @@ $(document).ready(function(){
|
|
|
|
$P.crdnControl.dataset.onCurrentChange = (dataItem) => {
|
|
|
|
$P.crdnControl.dataset.onCurrentChange = (dataItem) => {
|
|
|
|
$P.formFields.set($P.crdnControl,dataItem);
|
|
|
|
$P.formFields.set($P.crdnControl,dataItem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* pageObject.function
|
|
|
|
* pageObject.function
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -73,32 +73,32 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
var alertMessage = "";
|
|
|
|
var alertMessage = "";
|
|
|
|
if($("#chgAmtSe--${pageName}").val() == "1"){
|
|
|
|
if($("#chgAmtSe--${pageName}").val() == "1"){
|
|
|
|
if(crdnInfo.OVTIME_YN == "Y"){
|
|
|
|
if(crdnInfo.OVTM_YN == "Y"){
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content : "이미 가산 처리된 자료입니다.",
|
|
|
|
content : "이미 가산 처리된 자료입니다.",
|
|
|
|
init : function(){
|
|
|
|
init : function(){
|
|
|
|
setDialogZindex();
|
|
|
|
setDialogZindex();
|
|
|
|
focusClose();
|
|
|
|
focusClose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
alertMessage = "가산 처리하시겠습니까?";
|
|
|
|
alertMessage = "가산 처리하시겠습니까?";
|
|
|
|
|
|
|
|
|
|
|
|
} else if($("#chgAmtSe--${pageName}").val() == "2"){
|
|
|
|
} else if($("#chgAmtSe--${pageName}").val() == "2"){
|
|
|
|
if(crdnInfo.OVTIME_PRTTN_YN == "Y"){
|
|
|
|
if(crdnInfo.OVTM_PRTTN_YN == "Y"){
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content : "이미 감액 처리된 자료입니다.",
|
|
|
|
content : "이미 감액 처리된 자료입니다.",
|
|
|
|
init : function(){
|
|
|
|
init : function(){
|
|
|
|
setDialogZindex();
|
|
|
|
setDialogZindex();
|
|
|
|
focusClose();
|
|
|
|
focusClose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
alertMessage = "감액 처리하시겠습니까?";
|
|
|
|
alertMessage = "감액 처리하시겠습니까?";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(await confirm2(alertMessage)){
|
|
|
|
if(await confirm2(alertMessage)){
|
|
|
|
var info = $P.formFields.get();
|
|
|
|
var info = $P.formFields.get();
|
|
|
|
if (!info) {
|
|
|
|
if (!info) {
|
|
|
@ -108,22 +108,22 @@ $(document).ready(function(){
|
|
|
|
ajax.post({
|
|
|
|
ajax.post({
|
|
|
|
url : $P.crdnControl.urls.update,
|
|
|
|
url : $P.crdnControl.urls.update,
|
|
|
|
data : info,
|
|
|
|
data : info,
|
|
|
|
success : (resp) => {
|
|
|
|
success : (resp) => {
|
|
|
|
$P.saveCallback(resp);
|
|
|
|
$P.saveCallback(resp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnRestore = async() => {
|
|
|
|
$P.fnRestore = async() => {
|
|
|
|
|
|
|
|
|
|
|
|
if(crdnInfo.OVTIME_YN != "Y" && crdnInfo.OVTIME_PRTTN_YN != "Y"){
|
|
|
|
if(crdnInfo.OVTM_YN != "Y" && crdnInfo.OVTM_PRTTN_YN != "Y"){
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: "2시간 초과 처리되지 않은 자료입니다.",
|
|
|
|
content: "2시간 초과 처리되지 않은 자료입니다.",
|
|
|
|
init : function() {
|
|
|
|
init : function() {
|
|
|
|
setDialogZindex();
|
|
|
|
setDialogZindex();
|
|
|
|
focusClose();
|
|
|
|
focusClose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -136,24 +136,24 @@ $(document).ready(function(){
|
|
|
|
ajax.post({
|
|
|
|
ajax.post({
|
|
|
|
url : $P.crdnControl.urls.update,
|
|
|
|
url : $P.crdnControl.urls.update,
|
|
|
|
data : info,
|
|
|
|
data : info,
|
|
|
|
success : (resp) => {
|
|
|
|
success : (resp) => {
|
|
|
|
$P.saveCallback(resp);
|
|
|
|
$P.saveCallback(resp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.saveCallback = (resp) => {
|
|
|
|
$P.saveCallback = (resp) => {
|
|
|
|
if (resp.saved) {
|
|
|
|
if (resp.saved) {
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content : "저장됐습니다.",
|
|
|
|
content : "저장됐습니다.",
|
|
|
|
init : function(){
|
|
|
|
init : function(){
|
|
|
|
setDialogZindex();
|
|
|
|
setDialogZindex();
|
|
|
|
focusClose();
|
|
|
|
focusClose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
dialog.close("overTimeProcessDialog--${openerPageName}");
|
|
|
|
dialog.close("overTimeProcessDialog--${openerPageName}");
|
|
|
|
|
|
|
|
|
|
|
|
if ("${savedCallbackFuncName}" != "") {
|
|
|
|
if ("${savedCallbackFuncName}" != "") {
|
|
|
|
${savedCallbackFuncName}(resp.saved);
|
|
|
|
${savedCallbackFuncName}(resp.saved);
|
|
|
|
}
|
|
|
|
}
|
|
|
|