저장 전 확인 창 메시지 수정

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
* <pre><code> {
* "saved": true, false

@ -232,14 +232,14 @@ public class Cvlc01Controller extends ApplicationController {
}
/** .
* @param crdnId
* @param hReq , crdnCvlcpt , crdn , newFileList, modifyFileList
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</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) {
boolean saved = false;
@ -292,6 +292,25 @@ public class Cvlc01Controller extends ApplicationController {
.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
*/

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

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

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

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

Loading…
Cancel
Save