|
|
@ -6,6 +6,7 @@
|
|
|
|
<div class="card" title="민원답변내용미리보기">
|
|
|
|
<div class="card" title="민원답변내용미리보기">
|
|
|
|
<form id="frmEdit--${pageName}">
|
|
|
|
<form id="frmEdit--${pageName}">
|
|
|
|
<input id="crdnId--${pageName}" name="crdnId" type="hidden" data-map="CRDN_ID" />
|
|
|
|
<input id="crdnId--${pageName}" name="crdnId" type="hidden" data-map="CRDN_ID" />
|
|
|
|
|
|
|
|
<input id="cvlcptLinkId--${pageName}" name="cvlcptLinkId" type="hidden" data-map="CVLCPT_LINK_ID" />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="col-md-6">
|
|
|
@ -26,14 +27,14 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="cvlcptPrcsRsltCn--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-center">
|
|
|
|
<label for="cvlcptPrcsRsltCn--${pageName}" class="required w-px-150 bg-lighter pe-2 col-form-label text-sm-center">
|
|
|
|
답변 내용
|
|
|
|
답변 내용
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="px-2">
|
|
|
|
<div class="px-2">
|
|
|
|
<textarea rows="10" style="width:100%" id="cvlcptPrcsRsltCn--${pageName}" name="cvlcptPrcsRsltCn" data-map="CVLCPT_PRCS_RSLT_CN"
|
|
|
|
<textarea id="cvlcptPrcsRsltCn--${pageName}" name="cvlcptPrcsRsltCn" data-map="CVLCPT_PRCS_RSLT_CN"
|
|
|
|
></textarea>
|
|
|
|
required rows="10" style="width:100%"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -41,7 +42,7 @@
|
|
|
|
변경할내용이있으면 수정하시오.
|
|
|
|
변경할내용이있으면 수정하시오.
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6 text-end">
|
|
|
|
<div class="col-md-6 text-end">
|
|
|
|
<button type="button" class="btn btn-primary">변경 내용 저장</button>
|
|
|
|
<button type="button" id="btnSave--${pageName}" class="btn btn-primary">변경 내용 저장</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
@ -78,7 +79,11 @@ $(document).ready(function() {
|
|
|
|
$P.formFields = new FimsFormFields("#frmEdit--${pageName}");
|
|
|
|
$P.formFields = new FimsFormFields("#frmEdit--${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
$P.cvlcptControl = new DatasetControl({
|
|
|
|
$P.cvlcptControl = new DatasetControl({
|
|
|
|
urls : { load : "", getInfo : wctx.url("/"+$P.taskSeCd+"/cvlc/cvlc01/060/info.do") },
|
|
|
|
urls : {
|
|
|
|
|
|
|
|
load : "",
|
|
|
|
|
|
|
|
getInfo : wctx.url("/"+$P.taskSeCd+"/cvlc/cvlc01/060/info.do"),
|
|
|
|
|
|
|
|
update : wctx.url("/"+$P.taskSeCd+"/cvlc/cvlc01/060/update.do")
|
|
|
|
|
|
|
|
},
|
|
|
|
keymapper:info => info ? info.CRDN_ID : "",
|
|
|
|
keymapper:info => info ? info.CRDN_ID : "",
|
|
|
|
dataGetter:obj => obj.cvlcptInfo,
|
|
|
|
dataGetter:obj => obj.cvlcptInfo,
|
|
|
|
formats: {
|
|
|
|
formats: {
|
|
|
@ -87,6 +92,17 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.cvlcptControl.save = (info) => {
|
|
|
|
|
|
|
|
if (!info) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
|
|
|
|
url : $P.cvlcptControl.urls.update,
|
|
|
|
|
|
|
|
data : info,
|
|
|
|
|
|
|
|
success : resp => { $P.cvlcptControl.onSave(resp); }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl.on, Dataset.on
|
|
|
|
* DatasetControl.on, Dataset.on
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -94,6 +110,12 @@ $(document).ready(function() {
|
|
|
|
$P.formFields.set(item);
|
|
|
|
$P.formFields.set(item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.cvlcptControl.onSave = (resp) => {
|
|
|
|
|
|
|
|
if (resp.saved) {
|
|
|
|
|
|
|
|
dialog.alert("저장됐습니다.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* pageObject.function
|
|
|
|
* pageObject.function
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -130,13 +152,25 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnSave = () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!customValidate($("#frmEdit--${pageName} input"))) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(confirm("현재 답변 내용을 저장하시겠습니까?")){
|
|
|
|
|
|
|
|
$P.cvlcptControl.save($P.formFields.get());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* element.on
|
|
|
|
* element.on
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$("#btnPrev--${pageName}").on("click", () => $P.fnPrev() );
|
|
|
|
$("#btnPrev--${pageName}").on("click", () => $P.fnPrev() );
|
|
|
|
$("#btnNext--${pageName}").on("click", () => $P.fnNext() );
|
|
|
|
$("#btnNext--${pageName}").on("click", () => $P.fnNext() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnSave--${pageName}").on("click", () => $P.fnSave() );
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 초기화
|
|
|
|
* 초기화
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|