저장 전 확인 창 메시지 수정

main
이범준 1 year ago
parent 2274568f2a
commit 2c069f4548

@ -139,7 +139,7 @@ public class Crdn05Controller extends ApplicationController {
} }
/** . /** .
* @param Crdn * @param hReq , crdn , newFileList
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
* "saved": true, false * "saved": true, false

@ -232,14 +232,14 @@ public class Cvlc01Controller extends ApplicationController {
} }
/** . /** .
* @param crdnId * @param hReq , crdnCvlcpt , crdn , newFileList, modifyFileList
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
* "affected": * "affected":
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="민원 정보 수정", value="/020/save.do") @RequestMapping(name="민원 정보 수정", value="/020/update.do")
public ModelAndView saveCivilComplaintProcessSe(HttpServletRequest hReq, CrdnCvlcpt crdnCvlcpt, Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) { public ModelAndView saveCivilComplaintProcessSe(HttpServletRequest hReq, CrdnCvlcpt crdnCvlcpt, Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) {
boolean saved = false; boolean saved = false;
@ -292,6 +292,25 @@ public class Cvlc01Controller extends ApplicationController {
.addObject("saved", saved); .addObject("saved", saved);
} }
/** .
* @param crdnId
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
@RequestMapping(name="민원 자료 복사", value="/020/create.do")
public ModelAndView copyCivilComplaintInfo(String crdnId) {
boolean saved = false;
//TODO:민원정보,단속정보 복사
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** . /** .
* @return hwp * @return hwp
*/ */

@ -392,12 +392,9 @@ $(document).ready(function(){
} }
dialog.alert({ if(confirm("현재 단속 정보를 저장하시겠습니까?")){
content:"현재 단속 정보를 저장하시겠습니까?",
onOK:() => {
$P.crdnControl.save($P.formFields.get()); $P.crdnControl.save($P.formFields.get());
} }
});
}; };

@ -278,7 +278,7 @@ $(document).ready(function(){
}; };
dialog.alert({ dialog.alert({
content:"현 자료를 장애차량 확인된 자료로 변경하겠습니까?", content:"현 자료를 장애차량 확인된 자료로 변경하겠습니까?",
onOK:() => { onOK:() => {
$P.crdnControl.save({ 'crdnId' : $P.crdnControl.getCurrent()["CRDN_ID"] }); $P.crdnControl.save({ 'crdnId' : $P.crdnControl.getCurrent()["CRDN_ID"] });
} }

@ -25,8 +25,8 @@
<div> <div>
<span class="container-page-btn"> <span class="container-page-btn">
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button class="btn btn-primary" id="btnRestore--${pageName}" title="원금 복원">원금 복원</button>
<button class="btn btn-primary" id="btnSave--${pageName}" title="금액 수정">금액 수정</button> <button class="btn btn-primary" id="btnSave--${pageName}" title="금액 수정">금액 수정</button>
<button class="btn btn-primary" id="btnRestore--${pageName}" title="원금 복원">원금 복원</button>
</span> </span>
</span> </span>
</div> </div>
@ -103,12 +103,9 @@ $(document).ready(function(){
alertMessage = "감액 처리하시겠습니까?"; alertMessage = "감액 처리하시겠습니까?";
} }
dialog.alert({ if(confirm(alertMessage)){
content: alertMessage,
onOK:() => {
$P.crdnControl.save($P.formFields.get()); $P.crdnControl.save($P.formFields.get());
} }
});
} }
$P.fnRestore = () => { $P.fnRestore = () => {
@ -118,15 +115,11 @@ $(document).ready(function(){
return; return;
} }
dialog.alert({ if(confirm("원금 복원하시겠습니까?")){
content: "원금 복원하시겠습니까?",
onOK:() => {
var info = $P.formFields.get(); var info = $P.formFields.get();
info.chgAmtSe = "0"; info.chgAmtSe = "0";
$P.crdnControl.save(info); $P.crdnControl.save(info);
} }
});
} }
/************************************************************************** /**************************************************************************

@ -334,8 +334,8 @@ $(document).ready(function(){
urls : { urls : {
load : "", load : "",
getInfo : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/info.do"), getInfo : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/info.do"),
update : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/save.do"), update : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/update.do"),
create : "" create : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/create.do")
}, },
keymapper:info => info ? info.CRDN_ID : "", keymapper:info => info ? info.CRDN_ID : "",
dataGetter:obj => obj.crdnInfo, dataGetter:obj => obj.crdnInfo,
@ -536,12 +536,9 @@ $(document).ready(function(){
return; return;
} }
dialog.alert({ if(confirm("현재 단속 정보를 저장하시겠습니까?")){
content:"현재 단속 정보를 저장하시겠습니까?",
onOK:() => {
$P.crdnControl.save($P.formFields.get(), true); $P.crdnControl.save($P.formFields.get(), true);
} }
});
}; };
@ -691,12 +688,17 @@ $(document).ready(function(){
$P.fnCopy = () => { $P.fnCopy = () => {
var crdnId = $("#crdnId--${pageName}").val(); var crdnId = $("#crdnId--${pageName}").val();
dialog.alert({ if(confirm("현 자료의 복사본을 생성하시겠습니까?")){
content : "현 자료의 복사본을 생성하겠습니까?",
onOK : () => { ajax.get({
//$P.crdnControl.copy($P.formFields.get()); url : $P.crdnControl.urls.create,
} data : { crdnId : crdnId },
success : resp => { }
}); });
}
} }
$P.fnOpenCvlcptOrgnl = () => { $P.fnOpenCvlcptOrgnl = () => {

Loading…
Cancel
Save