민원상담내용 수정.

main
jjh 1 year ago
parent ff923f1797
commit 384e6bd4c3

@ -3,7 +3,6 @@ package cokr.xit.fims.sprt.service;
import java.util.List;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.excl.ExclQuery;
import cokr.xit.fims.sprt.CvlcptDscsnCn;
import cokr.xit.fims.sprt.SprtQuery;
@ -44,7 +43,7 @@ public interface Sprt04Service {
* <li> false</li>
* </ul>
*/
boolean create(CvlcptDscsnCn cvlcptDscsnCn);
boolean createCvlcptDscsnCn(CvlcptDscsnCn cvlcptDscsnCn);
/** .
* @param cvlcptDscsnCn
@ -53,7 +52,7 @@ public interface Sprt04Service {
* <li> false</li>
* </ul>
*/
boolean update(CvlcptDscsnCn cvlcptDscsnCn);
boolean updateCvlcptDscsnCn(CvlcptDscsnCn cvlcptDscsnCn);
/** .
* @param cvlcptDscsnCn
@ -62,6 +61,6 @@ public interface Sprt04Service {
* <li> false</li>
* </ul>
*/
boolean remove(CvlcptDscsnCn cvlcptDscsnCn);
boolean removeCvlcptDscsnCn(CvlcptDscsnCn cvlcptDscsnCn);
}

@ -72,7 +72,7 @@ public class Sprt04Bean extends AbstractComponent {
* <li> false</li>
* </ul>
*/
public boolean create(CvlcptDscsnCn cvlcptDscsnCn) {
public boolean createCvlcptDscsnCn(CvlcptDscsnCn cvlcptDscsnCn) {
if (cvlcptDscsnCn.getCvlcptRcptSeCd().equals("01")) {
cvlcptDscsnCn.setVhrno(null);
cvlcptDscsnCn.setRtpyrNo(null);
@ -92,7 +92,7 @@ public class Sprt04Bean extends AbstractComponent {
* <li> false</li>
* </ul>
*/
public boolean update(CvlcptDscsnCn cvlcptDscsnCn) {
public boolean updateCvlcptDscsnCn(CvlcptDscsnCn cvlcptDscsnCn) {
return cvlcptDscsnCnMapper.update(cvlcptDscsnCn);
}
@ -103,7 +103,7 @@ public class Sprt04Bean extends AbstractComponent {
* <li> false</li>
* </ul>
*/
public boolean remove(CvlcptDscsnCn cvlcptDscsnCn) {
public boolean removeCvlcptDscsnCn(CvlcptDscsnCn cvlcptDscsnCn) {
return cvlcptDscsnCnMapper.delete(cvlcptDscsnCn);
}

@ -50,18 +50,18 @@ public class Sprt04ServiceBean extends AbstractServiceBean implements Sprt04Serv
}
@Override
public boolean create(CvlcptDscsnCn cvlcptDscsnCn) {
return sprt04Bean.create(cvlcptDscsnCn);
public boolean createCvlcptDscsnCn(CvlcptDscsnCn cvlcptDscsnCn) {
return sprt04Bean.createCvlcptDscsnCn(cvlcptDscsnCn);
}
@Override
public boolean update(CvlcptDscsnCn cvlcptDscsnCn) {
return sprt04Bean.update(cvlcptDscsnCn);
public boolean updateCvlcptDscsnCn(CvlcptDscsnCn cvlcptDscsnCn) {
return sprt04Bean.updateCvlcptDscsnCn(cvlcptDscsnCn);
}
@Override
public boolean remove(CvlcptDscsnCn cvlcptDscsnCn) {
return sprt04Bean.remove(cvlcptDscsnCn);
public boolean removeCvlcptDscsnCn(CvlcptDscsnCn cvlcptDscsnCn) {
return sprt04Bean.removeCvlcptDscsnCn(cvlcptDscsnCn);
}
}

@ -95,8 +95,8 @@ public class Sprt04Controller extends ApplicationController {
* }</code></pre>
*/
@PostMapping(name = "민원 상담 내용 등록", value = "/020/create.do")
public ModelAndView create(CvlcptDscsnCn cvlcptDscsnCn) {
boolean saved = sprt04Service.create(cvlcptDscsnCn);
public ModelAndView createCvlcptDscsnCn(CvlcptDscsnCn cvlcptDscsnCn) {
boolean saved = sprt04Service.createCvlcptDscsnCn(cvlcptDscsnCn);
return new ModelAndView("jsonView")
.addObject("saved", saved);
@ -110,8 +110,8 @@ public class Sprt04Controller extends ApplicationController {
* }</code></pre>
*/
@PostMapping(name = "민원 상담 내용 수정", value = "/020/update.do")
public ModelAndView update(CvlcptDscsnCn cvlcptDscsnCn) {
boolean saved = sprt04Service.update(cvlcptDscsnCn);
public ModelAndView updateCvlcptDscsnCn(CvlcptDscsnCn cvlcptDscsnCn) {
boolean saved = sprt04Service.updateCvlcptDscsnCn(cvlcptDscsnCn);
return new ModelAndView("jsonView")
.addObject("saved", saved);
@ -126,8 +126,8 @@ public class Sprt04Controller extends ApplicationController {
* }</code></pre>
*/
@PostMapping(name = "민원 상담 내용 제거", value = "/010/remove.do")
public ModelAndView remove(CvlcptDscsnCn cvlcptDscsnCn) {
boolean saved = sprt04Service.remove(cvlcptDscsnCn);
public ModelAndView removeCvlcptDscsnCn(CvlcptDscsnCn cvlcptDscsnCn) {
boolean saved = sprt04Service.removeCvlcptDscsnCn(cvlcptDscsnCn);
return new ModelAndView("jsonView")
.addObject("saved", saved);

@ -179,6 +179,7 @@
, C.TASK_SE_CD /* 업무 구분 코드 */
, C.VHRNO /* 차량번호 */
, P.RTPYR_ID /* 납부자 ID */
, P.RTPYR_NO /* 납부자 번호 */
FROM TB_CRDN C
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
WHERE C.CRDN_ID = #{crdnId} /* 단속 ID */

@ -32,8 +32,8 @@
<!-- 자료 이동 버튼 -->
<div class="col-md-2 text-end">
<input type="text" id="countStauts--${pageName}" class="form-control w-px-120 text-center fw-bold" readonly />
<button type="button" class="w-px-50" id="btnPrev--${pageName}">◀</button>
<button type="button" class="w-px-50" id="btnNext--${pageName}">▶</button>
<button type="button" id="btnPrev--${pageName}" class="w-px-50 btn-PageUp">◀</button>
<button type="button" id="btnNext--${pageName}" class="w-px-50 btn-PageDown">▶</button>
</div>
</div> <!-- <div class="row g-1"> -->
</form> <!-- /입력 영역 -->

@ -12,13 +12,13 @@
<label class="w-px-120 bg-label-danger pe-2 col-form-label text-sm-center">민원상담 정보</label>
<!-- 버튼 우측 정렬 -->
<span class="container-window-btn-right">
<button type="button" class="btn btn-primary" id="btnCvlcptDscsnCnCreate--${pageName}" title="민원 상담 등록" onclick="fnBtnCvlcptDscsnCnCreate${pageName}();">
<button type="button" class="btn btn-primary" id="btnCreateCvlcptDscsnCn--${pageName}" title="민원 상담 등록" onclick="fnCreateCvlcptDscsnCn${pageName}();">
민원 상담 등록
</button>
<button type="button" class="btn btn-primary" id="btnCvlcptDscsnCnUpdate--${pageName}" title="민원 상담 수정" onclick="fnBtnCvlcptDscsnCnUpdate${pageName}();">
<button type="button" class="btn btn-primary" id="btnUpdateCvlcptDscsnCn--${pageName}" title="민원 상담 수정" onclick="fnUpdateCvlcptDscsnCn${pageName}();">
민원 상담 수정
</button>
<button type="button" class="btn btn-primary" id="btnCvlcptDscsnCnRemove--${pageName}" title="민원 상담 삭제" onclick="fnBtnCvlcptDscsnCnRemove${pageName}();">
<button type="button" class="btn btn-primary" id="btnRemoveCvlcptDscsnCn--${pageName}" title="민원 상담 삭제" onclick="fnRemoveCvlcptDscsnCn${pageName}();">
민원 상담 삭제
</button>
</span> <!-- <span class="container-window-btn-right"> -->
@ -70,7 +70,7 @@
</div> <!-- / DataTables(그리드) -->
<!-- 상담 내용 -->
<div class="col-md-12">
<textarea class="form-control w-100" id="dscsnCn--${pageName}" name="dscsnCn" data-map="DSCSN_CN" rows="5" data-maxlengthb="4000" readonly>
<textarea class="form-control w-100" style="font-size:x-large;" id="dscsnCn--${pageName}" name="dscsnCn" data-map="DSCSN_CN" rows="5" data-maxlengthb="4000" readonly>
</textarea>
</div>
</div> <!-- <div class="row g-1"> -->
@ -94,7 +94,7 @@
**************************************************************************/
var ${pageName}Control = new DatasetControl({
prefix : "cvlcptDscsnCn"
, prefixName : "민원상담 정보"
, prefixName : "민원상담내용"
, infoSize : "lg"
, keymapper : info => info ? info.CVLCPT_DSCSN_ID : ""
, dataGetter : obj => obj.cvlcptDscsnCnList
@ -136,13 +136,29 @@
, content : resp
, size : "lg"
, init : () => { }
, onClose : () => { fnDataRefreshInfo(); } // callback 자료 조회
, onClose : () => { fnDataRefreshInfo(); } // callback 자료 조회
});
}
});
}
// 재조회
// 삭제 callback
${pageName}Control.onRemove = (resp) => {
if (resp.saved) {
fnDataRefreshInfo(); // 자료 재조회
}
}
// 삭제
${pageName}Control.remove = (params) => {
ajax.post({
url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/010/remove.do")
, data : params || {}
, success : resp => ${pageName}Control.onRemove(resp)
});
}
// 자료 재조회
fnDataRefreshInfo = () => {
let crdnId = $("#crdnId--${pageNameMain}").val();
let vhrno = $("#vhrno--${pageNameMain}").val();
@ -188,7 +204,6 @@
);
$("#tbody--${pageName}").html(trs.join());
$("th input[type='checkbox']").prop("checked", false);
}
/**************************************************************************
@ -208,7 +223,7 @@
* function
**************************************************************************/
// 민원 상담 내용 등록
fnBtnCvlcptDscsnCnCreate${pageName} = () => {
fnCreateCvlcptDscsnCn${pageName} = () => {
let crdnId = $("#crdnId--${pageNameMain}").val();
let sggCd = $("#sggCd--${pageNameMain}").val();
let taskSeCd = $("#taskSeCd--${pageNameMain}").val();
@ -229,7 +244,7 @@
}
// 민원 상담 내용 수정
fnBtnCvlcptDscsnCnUpdate${pageName} = () => {
fnUpdateCvlcptDscsnCn${pageName} = () => {
let crdnId = $("#crdnId--${pageNameMain}").val();
let sggCd = $("#sggCd--${pageNameMain}").val();
let taskSeCd = $("#taskSeCd--${pageNameMain}").val();
@ -252,8 +267,31 @@
}
// 민원 상담 내용 삭제
fnBtnCvlcptDscsnCnRemove${pageName} = () => {
alert("민원 상담 삭제");
fnRemoveCvlcptDscsnCn${pageName} = () => {
let crdnId = $("#crdnId--${pageNameMain}").val();
let sggCd = $("#sggCd--${pageNameMain}").val();
let taskSeCd = $("#taskSeCd--${pageNameMain}").val();
let cvlcptDscsnId = ${pageName}Control.dataset.getValue("CVLCPT_DSCSN_ID");
// 민원 상담 ID 가 없다면.. return
if (cvlcptDscsnId == undefined || cvlcptDscsnId == "") {
return;
}
let params = {
callPurpose : "remove"
, crdnId : crdnId
, sggCd : sggCd
, taskSeCd : taskSeCd
, cvlcptDscsnId : cvlcptDscsnId
};
dialog.alert({
content : "선택한 민원상담 내용을 삭제하시겠습니까?"
, onOK : () => {
${pageName}Control.remove(params);
}
});
}
/**************************************************************************

@ -11,7 +11,7 @@
<input type="hidden" id="taskSeCd--${pageName}" name="taskSeCd" data-map="TASK_SE_CD" />
<input type="hidden" id="cvlcptDscsnId--${pageName}" name="cvlcptDscsnId" data-map="CVLCPT_DSCSN_ID" />
<input type="hidden" id="vhrno--${pageName}" name="vhrno" data-map="VHRNO" />
<input type="hidden" id="rtpyrId--${pageName}" name="rtpyrId" data-map="RTPYR_ID" />
<input type="hidden" id="rtpyrNo--${pageName}" name="rtpyrNo" data-map="RTPYR_NO" />
<div class="row g-1">
<!-- 민원 접수 구분 코드 -->
@ -60,7 +60,7 @@
**************************************************************************/
var ${pageName}Control = new DatasetControl({
prefix : "cvlcptDscsnCn"
, prefixName : "민원상담"
, prefixName : "민원상담내용"
, keymapper : info => info ? info.CVLCPT_DSCSN_ID : ""
, dataGetter : obj => obj.cvlcptDscsnCn
, urls : {
@ -103,7 +103,13 @@
**************************************************************************/
// 검색조건 초기값 셋팅
function initForm${pageName}() {
let initDataset = ${cvlcptDscsnCn};
$("#cvlcptRcptSeCd--${pageName}").prop("disabled", true);
if (initDataset.CVLCPT_DSCSN_ID == undefined || initDataset.CVLCPT_DSCSN_ID == null) {
$("#cvlcptRcptSeCd--${pageName}").prop("disabled", false);
}
}
// 이벤트 설정

Loading…
Cancel
Save