|
|
@ -12,13 +12,13 @@
|
|
|
|
<label class="col-form-label bg-label-danger pe-2 w-px-120 text-sm-center">민원상담 이력</label>
|
|
|
|
<label class="col-form-label bg-label-danger pe-2 w-px-120 text-sm-center">민원상담 이력</label>
|
|
|
|
<!-- 버튼 우측 정렬 -->
|
|
|
|
<!-- 버튼 우측 정렬 -->
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" name="btnCreateCvlcptDscsn" title="민원상담 등록">
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" name="btnCreateCvlcptDscsn" title="민원상담 등록" disabled>
|
|
|
|
민원상담 등록
|
|
|
|
민원상담 등록
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" name="btnUpdateCvlcptDscsn" title="민원상담 수정">
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" name="btnUpdateCvlcptDscsn" title="민원상담 수정" disabled>
|
|
|
|
민원상담 수정
|
|
|
|
민원상담 수정
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" name="btnRemoveCvlcptDscsn" title="민원상담 삭제">
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" name="btnRemoveCvlcptDscsn" title="민원상담 삭제" disabled>
|
|
|
|
민원상담 삭제
|
|
|
|
민원상담 삭제
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</span> <!-- <span class="container-window-btn-right"> -->
|
|
|
|
</span> <!-- <span class="container-window-btn-right"> -->
|
|
|
@ -36,7 +36,7 @@
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll h-px-400" name="tableRspnsCvlcptDscsn">
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll h-px-400" name="tableRspnsCvlcptDscsn">
|
|
|
|
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
<tr name="theadTrCvlcptDscsn">
|
|
|
|
<tr name="theadTrCvlcptDscsn" data-search-target="[data-doctx='${pageName}']">
|
|
|
|
<th class="cmn sorting" style="width: 180px" data-field="MDFCN_DT">수정일시</th>
|
|
|
|
<th class="cmn sorting" style="width: 180px" data-field="MDFCN_DT">수정일시</th>
|
|
|
|
<th class="cmn sorting" style="width: 100px" data-field="WEEK_NM">요일</th>
|
|
|
|
<th class="cmn sorting" style="width: 100px" data-field="WEEK_NM">요일</th>
|
|
|
|
<th class="cmn sorting" style="width: 140px" data-field="MDFR_NM">수정사용자</th>
|
|
|
|
<th class="cmn sorting" style="width: 140px" data-field="MDFR_NM">수정사용자</th>
|
|
|
@ -52,7 +52,7 @@
|
|
|
|
<tbody name="tbodyCvlcptDscsnList">
|
|
|
|
<tbody name="tbodyCvlcptDscsnList">
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template is="curly-brackets" name="tmpltCvlcptDscsnRows">
|
|
|
|
<template is="curly-brackets" name="tmpltCvlcptDscsnRows">
|
|
|
|
<tr data-key="CVLCPT_DSCSN_ID">
|
|
|
|
<tr data-key="{data-index}">
|
|
|
|
<td class="text-center" onclick>{REG_DT}</td>
|
|
|
|
<td class="text-center" onclick>{REG_DT}</td>
|
|
|
|
<td class="text-center" onclick>{WEEK_NM}</td>
|
|
|
|
<td class="text-center" onclick>{WEEK_NM}</td>
|
|
|
|
<td class="text-center" onclick>{RGTR_NM}</td>
|
|
|
|
<td class="text-center" onclick>{RGTR_NM}</td>
|
|
|
@ -89,6 +89,8 @@
|
|
|
|
</div> <!-- <div class="content-pop"> -->
|
|
|
|
</div> <!-- <div class="content-pop"> -->
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
LoadScript("sprt02080Script", wctx.url("/webjars/js/fims/sprt/sprt02080.js?ver=${ver}"));
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Global Variable
|
|
|
|
* Global Variable
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -101,133 +103,42 @@
|
|
|
|
// pageObject
|
|
|
|
// pageObject
|
|
|
|
let $P = pageObject["${pageName}"];
|
|
|
|
let $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
|
|
// FormFields
|
|
|
|
// datasetControl
|
|
|
|
$P.formFields = new FimsFormFields($P.selectorn("frmEditCvlcptDscsn"));
|
|
|
|
$P.ctrlCvlcptDscsn = newSprt02080Control("${pageName}", "[data-doctx=${pageName}]", "${pageNameMain}");
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
|
|
|
* DatasetControl
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
$P.ctrlCvlcptDscsn = new DatasetControl({
|
|
|
|
|
|
|
|
prefix: "cvlcptDscsn"
|
|
|
|
|
|
|
|
, prefixName: "민원상담"
|
|
|
|
|
|
|
|
, keymapper: info => info ? info.CVLCPT_DSCSN_ID : ""
|
|
|
|
|
|
|
|
, dataGetter: obj => obj.cvlcptDscsns
|
|
|
|
|
|
|
|
, appendData: true
|
|
|
|
|
|
|
|
, infoSize: "lg"
|
|
|
|
|
|
|
|
, formats: {
|
|
|
|
|
|
|
|
REG_DT: datetimeFormat
|
|
|
|
|
|
|
|
, MDFCN_DT: datetimeFormat
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
* 사용자 함수(function)
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
// 사유 callback
|
|
|
|
$P.ctrlCvlcptDscsn.onDatasetChange = (obj, option) => {
|
|
|
|
$P.callbackRsn = (obj) => {
|
|
|
|
$P.renderList();
|
|
|
|
// 서버에 전송할 data(파라미터) 생성
|
|
|
|
};
|
|
|
|
let params = {
|
|
|
|
|
|
|
|
callPurpose: "remove"
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
, sggCd: $P.ctrlCvlcptDscsn.getValue("SGG_CD") // 시군구 코드
|
|
|
|
$P.ctrlCvlcptDscsn.onCurrentChange = (item) => {
|
|
|
|
, taskSeCd: $P.ctrlCvlcptDscsn.getValue("TASK_SE_CD") // 업무 구분 코드
|
|
|
|
if (!item) return;
|
|
|
|
, cvlcptDscsnId: $P.ctrlCvlcptDscsn.getValue("CVLCPT_DSCSN_ID") // 민원상담 ID
|
|
|
|
|
|
|
|
, btnTitle: obj.btnTitle // 버튼 title
|
|
|
|
$P.formFields.set($P.ctrlCvlcptDscsn, item); // 화면에 자료 셋팅
|
|
|
|
, delRsn: obj.reason // 삭제 사유
|
|
|
|
|
|
|
|
|
|
|
|
let key = item.data.CVLCPT_DSCSN_ID;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.$findn("tbodyCvlcptDscsnList").setCurrentRow(key); // datatable에 자료 셋팅
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 민원 상담 내용 Dialog
|
|
|
|
$P.ctrlCvlcptDscsn.remove(params);
|
|
|
|
$P.ctrlCvlcptDscsn.getInfo = (params) => {
|
|
|
|
|
|
|
|
if (!params) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url: wctx.url("/" + params.taskSeCd +"/sprt/sprt04/020/info.do")
|
|
|
|
|
|
|
|
, data: params || {}
|
|
|
|
|
|
|
|
, success: (resp) => {
|
|
|
|
|
|
|
|
let dialogName = $P.ctrlCvlcptDscsn.prefixed("Dialog");
|
|
|
|
|
|
|
|
let dialogId = dialogName + "-" + uuid();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
id: dialogId
|
|
|
|
|
|
|
|
, title: params.btnTitle
|
|
|
|
|
|
|
|
, size: "lg"
|
|
|
|
|
|
|
|
, content: resp
|
|
|
|
|
|
|
|
, init: () => {
|
|
|
|
|
|
|
|
$("#" + dialogId).attr("name", dialogName);
|
|
|
|
|
|
|
|
$("#" + dialogId).attr("data-ref-doctx", "${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AppSupport.setDialogZindex();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재조회
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 민원 상담 삭제 callback
|
|
|
|
|
|
|
|
$P.ctrlCvlcptDscsn.onRemove = (params, resp) => {
|
|
|
|
|
|
|
|
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, params.btnTitle);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
|
|
|
content: showMessage
|
|
|
|
|
|
|
|
, init: () => { AppSupport.setDialogZindex(); }
|
|
|
|
|
|
|
|
, onOK: () => { }
|
|
|
|
|
|
|
|
, onClose: () => {
|
|
|
|
|
|
|
|
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재조회
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 민원 상담 삭제
|
|
|
|
|
|
|
|
$P.ctrlCvlcptDscsn.remove = (params) => {
|
|
|
|
|
|
|
|
if (!params) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
|
|
|
|
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt04/010/remove.do")
|
|
|
|
|
|
|
|
, data: params || {}
|
|
|
|
|
|
|
|
, success: (resp) => {
|
|
|
|
|
|
|
|
$P.ctrlCvlcptDscsn.onRemove(params, resp);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
|
|
|
* DataTables 이벤트
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
|
|
|
|
$P.renderList = (totalSize, option) => {
|
|
|
|
|
|
|
|
let cvlcptDscsnList = $P.ctrlCvlcptDscsn.dataset;
|
|
|
|
|
|
|
|
let empty = cvlcptDscsnList.empty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ? [$P.findn("tmpltNotFoundCvlcptDscsn").innerHTML] :
|
|
|
|
|
|
|
|
cvlcptDscsnList.inStrings($P.findn("tmpltCvlcptDscsnRows").innerHTML
|
|
|
|
|
|
|
|
, (str, dataItem) => str
|
|
|
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlCvlcptDscsn.setCurrent('" + dataItem.getValue("CVLCPT_DSCSN_ID") + "');")
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.$findn("tbodyCvlcptDscsnList").html(trs.join());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
// 정보 새로고침
|
|
|
|
* 사용자 함수(function)
|
|
|
|
$P.fnRefresh = () => {
|
|
|
|
**************************************************************************/
|
|
|
|
let ctrlMain = pageObject["${pageNameMain}"].ctrlMain;
|
|
|
|
// 자료 재조회
|
|
|
|
|
|
|
|
$P.fnRefreshDataInfo = () => {
|
|
|
|
|
|
|
|
let crdnId = pageObject["${mainPageName}"].mainCtrl.getValue("CRDN_ID"); // 단속 ID
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 단속 ID 가 없다면.. return
|
|
|
|
// 단속 ID 가 없다면.. return
|
|
|
|
|
|
|
|
let crdnId = ctrlMain.getValue("CRDN_ID"); // 단속 ID
|
|
|
|
if (!crdnId) return;
|
|
|
|
if (!crdnId) return;
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
let params = {
|
|
|
|
callPurpose: "refresh"
|
|
|
|
callPurpose: "refresh"
|
|
|
|
, inquiryCondition: "crdnId_vhrno"
|
|
|
|
, inquiryCondition: "crdnId_vhrno"
|
|
|
|
, sggCd: pageObject["${mainPageName}"].mainCtrl.getValue("SGG_CD")
|
|
|
|
, sggCd: ctrlMain.getValue("SGG_CD")
|
|
|
|
, taskSeCd: pageObject["${mainPageName}"].mainCtrl.getValue("TASK_SE_CD")
|
|
|
|
, taskSeCd: ctrlMain.getValue("TASK_SE_CD")
|
|
|
|
, crdnId: pageObject["${mainPageName}"].mainCtrl.getValue("CRDN_ID")
|
|
|
|
, crdnId: ctrlMain.getValue("CRDN_ID")
|
|
|
|
, vhrno: pageObject["${mainPageName}"].mainCtrl.getValue("VHRNO")
|
|
|
|
, vhrno: ctrlMain.getValue("VHRNO")
|
|
|
|
, delYn: "N"
|
|
|
|
, delYn: "N"
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -237,46 +148,34 @@
|
|
|
|
, data: params || {}
|
|
|
|
, data: params || {}
|
|
|
|
, success: (resp) => {
|
|
|
|
, success: (resp) => {
|
|
|
|
// 초기화
|
|
|
|
// 초기화
|
|
|
|
$P.findn("frmEditCvlcptDscsn").reset(); // 화면 초기화
|
|
|
|
$P.findn("frmEditCvlcptDscsn").reset(); // 민원상담 화면
|
|
|
|
$P.ctrlCvlcptDscsn.dataset.clear(); // 수납 Dataset 초기화
|
|
|
|
$P.ctrlCvlcptDscsn.dataset.clear(); // 민원상담 Dataset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// sprt02010-main 단속 정보
|
|
|
|
|
|
|
|
ctrlMain.setData([resp.totalInfo]);
|
|
|
|
|
|
|
|
|
|
|
|
// Dataset 셋팅
|
|
|
|
// 민원상담 정보
|
|
|
|
$P.ctrlCvlcptDscsn.setData(resp.cvlcptDscsns); // 민원상담 정보
|
|
|
|
$P.ctrlCvlcptDscsn.setData(resp.cvlcptDscsns);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 사유 callback
|
|
|
|
|
|
|
|
$P.callbackRsn = (obj) => {
|
|
|
|
|
|
|
|
// 서버에 전송할 data(파라미터) 생성
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
|
|
|
callPurpose: "remove"
|
|
|
|
|
|
|
|
, sggCd: $P.ctrlCvlcptDscsn.getValue("SGG_CD") // 시군구 코드
|
|
|
|
|
|
|
|
, taskSeCd: $P.ctrlCvlcptDscsn.getValue("TASK_SE_CD") // 업무 구분 코드
|
|
|
|
|
|
|
|
, cvlcptDscsnId: $P.ctrlCvlcptDscsn.getValue("CVLCPT_DSCSN_ID") // 민원상담 ID
|
|
|
|
|
|
|
|
, btnTitle: obj.btnTitle // 버튼 title
|
|
|
|
|
|
|
|
, delRsn: obj.reason // 삭제 사유
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.ctrlCvlcptDscsn.remove(params);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 버튼 clickEvent
|
|
|
|
* 버튼 clickEvent
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 민원 상담 내용 등록
|
|
|
|
// 민원 상담 내용 등록
|
|
|
|
$P.fnCreateCvlcptDscsn = (btnTitle) => {
|
|
|
|
$P.fnCreateCvlcptDscsn = (btnTitle) => {
|
|
|
|
let crdnId = pageObject["${mainPageName}"].mainCtrl.getValue("CRDN_ID"); // 단속 ID
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 단속 ID 가 없다면.. return
|
|
|
|
// 단속 ID 가 없다면.. return
|
|
|
|
|
|
|
|
let ctrlMain = pageObject["${pageNameMain}"].ctrlMain; // sprt02010 control
|
|
|
|
|
|
|
|
let crdnId = ctrlMain.getValue("CRDN_ID"); // 단속 ID
|
|
|
|
if (!crdnId) return;
|
|
|
|
if (!crdnId) return;
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
let params = {
|
|
|
|
callPurpose: "create"
|
|
|
|
callPurpose: "create"
|
|
|
|
, btnTitle: btnTitle
|
|
|
|
, btnTitle: btnTitle
|
|
|
|
, sggCd: pageObject["${mainPageName}"].mainCtrl.getValue("SGG_CD") // 시군구 코드
|
|
|
|
, sggCd: ctrlMain.getValue("SGG_CD") // 시군구 코드
|
|
|
|
, taskSeCd: pageObject["${mainPageName}"].mainCtrl.getValue("TASK_SE_CD") // 업무 구분 코드
|
|
|
|
, taskSeCd: ctrlMain.getValue("TASK_SE_CD") // 업무 구분 코드
|
|
|
|
, crdnId: pageObject["${mainPageName}"].mainCtrl.getValue("CRDN_ID") // 단속 ID
|
|
|
|
, crdnId: ctrlMain.getValue("CRDN_ID") // 단속 ID
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.ctrlCvlcptDscsn.getInfo(params);
|
|
|
|
$P.ctrlCvlcptDscsn.getInfo(params);
|
|
|
@ -284,9 +183,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
// 민원 상담 내용 수정
|
|
|
|
// 민원 상담 내용 수정
|
|
|
|
$P.fnUpdateCvlcptDscsn = (btnTitle) => {
|
|
|
|
$P.fnUpdateCvlcptDscsn = (btnTitle) => {
|
|
|
|
let cvlcptDscsnId = $P.ctrlCvlcptDscsn.getValue("CVLCPT_DSCSN_ID"); // 민원 상담 ID
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 민원 상담 ID 가 없다면.. return
|
|
|
|
// 민원 상담 ID 가 없다면.. return
|
|
|
|
|
|
|
|
let cvlcptDscsnId = $P.ctrlCvlcptDscsn.getValue("CVLCPT_DSCSN_ID"); // 민원 상담 ID
|
|
|
|
if (!cvlcptDscsnId) return;
|
|
|
|
if (!cvlcptDscsnId) return;
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
let params = {
|
|
|
@ -303,9 +201,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
// 민원상담 내용 삭제
|
|
|
|
// 민원상담 내용 삭제
|
|
|
|
$P.fnRemoveCvlcptDscsn = (btnTitle) => {
|
|
|
|
$P.fnRemoveCvlcptDscsn = (btnTitle) => {
|
|
|
|
let cvlcptDscsnId = $P.ctrlCvlcptDscsn.getValue("CVLCPT_DSCSN_ID"); // 민원 상담 ID
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 민원 상담 ID 가 없다면.. return
|
|
|
|
// 민원 상담 ID 가 없다면.. return
|
|
|
|
|
|
|
|
let cvlcptDscsnId = $P.ctrlCvlcptDscsn.getValue("CVLCPT_DSCSN_ID"); // 민원 상담 ID
|
|
|
|
if (!cvlcptDscsnId) return;
|
|
|
|
if (!cvlcptDscsnId) return;
|
|
|
|
|
|
|
|
|
|
|
|
// 삭제 메세지 확인
|
|
|
|
// 삭제 메세지 확인
|
|
|
@ -344,7 +241,7 @@
|
|
|
|
$P.fnCreateCvlcptDscsn($P.$findn("btnCreateCvlcptDscsn").attr("title")); // 민원상담 등록
|
|
|
|
$P.fnCreateCvlcptDscsn($P.$findn("btnCreateCvlcptDscsn").attr("title")); // 민원상담 등록
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$P.$findn("btnUpdateCvlcptDscsn").on("click", function() {
|
|
|
|
$P.$findn("btnUpdateCvlcptDscsn").on("click", function() {
|
|
|
|
$P.fnCreateCvlcptDscsn($P.$findn("btnUpdateCvlcptDscsn").attr("title")); // 민원상담 수정
|
|
|
|
$P.fnUpdateCvlcptDscsn($P.$findn("btnUpdateCvlcptDscsn").attr("title")); // 민원상담 수정
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$P.$findn("btnRemoveCvlcptDscsn").on("click", function() {
|
|
|
|
$P.$findn("btnRemoveCvlcptDscsn").on("click", function() {
|
|
|
|
$P.fnRemoveCvlcptDscsn($P.$findn("btnRemoveCvlcptDscsn").attr("title")); // 민원상담 삭제
|
|
|
|
$P.fnRemoveCvlcptDscsn($P.$findn("btnRemoveCvlcptDscsn").attr("title")); // 민원상담 삭제
|
|
|
@ -355,17 +252,14 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 초기 화면 설정
|
|
|
|
// 초기 화면 설정
|
|
|
|
$P.initForm = () => {
|
|
|
|
$P.fnReset = () => {
|
|
|
|
// 초기화
|
|
|
|
// 화면 초기화
|
|
|
|
$P.findn("frmEditCvlcptDscsn").reset(); // 화면 초기화
|
|
|
|
$P.findn("frmEditCvlcptDscsn").reset();
|
|
|
|
$P.ctrlCvlcptDscsn.dataset.clear(); // 수납 Dataset 초기화
|
|
|
|
// Dataset 초기화
|
|
|
|
|
|
|
|
$P.ctrlCvlcptDscsn.dataset.clear(); // 수납 Dataset
|
|
|
|
|
|
|
|
|
|
|
|
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
|
|
|
|
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
|
|
|
|
if (pageObject['${mainPageName}'].callPurpose == "view") {
|
|
|
|
if (pageObject['${pageNameMain}'].callPurpose != "view") {
|
|
|
|
$P.$findn("btnCreateCvlcptDscsn").prop("disabled", true);
|
|
|
|
|
|
|
|
$P.$findn("btnUpdateCvlcptDscsn").prop("disabled", true);
|
|
|
|
|
|
|
|
$P.$findn("btnRemoveCvlcptDscsn").prop("disabled", true);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$P.$findn("btnCreateCvlcptDscsn").prop("disabled", false);
|
|
|
|
$P.$findn("btnCreateCvlcptDscsn").prop("disabled", false);
|
|
|
|
$P.$findn("btnUpdateCvlcptDscsn").prop("disabled", false);
|
|
|
|
$P.$findn("btnUpdateCvlcptDscsn").prop("disabled", false);
|
|
|
|
$P.$findn("btnRemoveCvlcptDscsn").prop("disabled", false);
|
|
|
|
$P.$findn("btnRemoveCvlcptDscsn").prop("disabled", false);
|
|
|
@ -379,7 +273,7 @@
|
|
|
|
$P.setEvent();
|
|
|
|
$P.setEvent();
|
|
|
|
|
|
|
|
|
|
|
|
// 2. 초기 화면 설정
|
|
|
|
// 2. 초기 화면 설정
|
|
|
|
$P.initForm();
|
|
|
|
$P.fnReset();
|
|
|
|
|
|
|
|
|
|
|
|
// 3. Dataset 설정
|
|
|
|
// 3. Dataset 설정
|
|
|
|
$P.ctrlCvlcptDscsn.setData(${cvlcptDscsns}); // 민원 상담 정보
|
|
|
|
$P.ctrlCvlcptDscsn.setData(${cvlcptDscsns}); // 민원 상담 정보
|
|
|
|