다이얼로그 창 수정

main
이범준 7 months ago
parent 9455c48e64
commit c471ff80df

@ -688,7 +688,7 @@ $(document).ready(function(){
} }
} }
$P.fnExcelDown = () => { $P.fnExcelDown = async() => {
if($P.currentDisplay == "photoInspection"){ if($P.currentDisplay == "photoInspection"){
if($P.photoInspectionControl.dataset.empty){ if($P.photoInspectionControl.dataset.empty){
alert("조회된 자료가 없습니다."); alert("조회된 자료가 없습니다.");
@ -708,14 +708,17 @@ $(document).ready(function(){
return; return;
} }
if(confirm("단속건수 엑셀저장은 확인버튼, 상세내역 엑셀저장시 취소버튼을 누르세요.")){ var excelTarget = await dialog2("저장할 자료를 선택하세요.","",
[{key:"main",value:"단속건수 엑셀저장"},{key:"sub",value:"상세내역 엑셀저장"},{key:"cancel",value:"취소"}]);
if(excelTarget == "main"){
var cellDefs = getCellDefs($("#sameVehicleInspectionMain_Table_0--${pageName} thead th").not(".dummy-th"), var cellDefs = getCellDefs($("#sameVehicleInspectionMain_Table_0--${pageName} thead th").not(".dummy-th"),
$($("#sameVehicleInspectionMainRow--${pageName}")[0].content).find("td").not(".dummy-td")); $($("#sameVehicleInspectionMainRow--${pageName}")[0].content).find("td").not(".dummy-td"));
$P.sameVehicleMainControl.query.cellDefs = cellDefs; $P.sameVehicleMainControl.query.cellDefs = cellDefs;
$P.sameVehicleMainControl.download(); $P.sameVehicleMainControl.download();
} else { } else if(excelTarget == "sub"){
var cellDefs = getCellDefs($("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th"), var cellDefs = getCellDefs($("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th"),
$($("#sameVehicleInspectionSubRow--${pageName}")[0].content).find("td").not(".dummy-td")); $($("#sameVehicleInspectionSubRow--${pageName}")[0].content).find("td").not(".dummy-td"));

@ -69,7 +69,7 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* pageObject.function * pageObject.function
**************************************************************************/ **************************************************************************/
$P.fnSave = () => { $P.fnSave = async() => {
var alertMessage = ""; var alertMessage = "";
if($("#chgAmtSe--${pageName}").val() == "1"){ if($("#chgAmtSe--${pageName}").val() == "1"){
@ -99,7 +99,7 @@ $(document).ready(function(){
alertMessage = "감액 처리하시겠습니까?"; alertMessage = "감액 처리하시겠습니까?";
} }
if(confirm(alertMessage)){ if(await confirm2(alertMessage)){
var info = $P.formFields.get(); var info = $P.formFields.get();
if (!info) { if (!info) {
return; return;
@ -116,7 +116,7 @@ $(document).ready(function(){
} }
} }
$P.fnRestore = () => { $P.fnRestore = async() => {
if(crdnInfo.OVTIME_YN != "Y" && crdnInfo.OVTIME_PRTTN_YN != "Y"){ if(crdnInfo.OVTIME_YN != "Y" && crdnInfo.OVTIME_PRTTN_YN != "Y"){
dialog.alert({ dialog.alert({
@ -129,7 +129,7 @@ $(document).ready(function(){
return; return;
} }
if(confirm("원금 복원하시겠습니까?")){ if(await confirm2("원금 복원하시겠습니까?")){
var info = $P.formFields.get(); var info = $P.formFields.get();
info.chgAmtSe = "0"; info.chgAmtSe = "0";

@ -434,7 +434,7 @@ $(document).ready(function(){
displayArea.innerHTML = tagsText; displayArea.innerHTML = tagsText;
}; };
$P.fnSave = () => { $P.fnSave = async() => {
if(!customValidate($("#frmEdit--${pageName} input"))) return; if(!customValidate($("#frmEdit--${pageName} input"))) return;
@ -454,7 +454,7 @@ $(document).ready(function(){
} }
} }
if(confirm("현재 단속 정보를 저장하시겠습니까?")){ if(await confirm2("현재 단속 정보를 저장하시겠습니까?")){
var info = $P.formFields.get(); var info = $P.formFields.get();
if (!info) { if (!info) {

@ -116,11 +116,11 @@ $(document).ready(function(){
$("#vhrno--${pageName}").prop("readonly", !create); $("#vhrno--${pageName}").prop("readonly", !create);
} }
$P.fnSave = () => { $P.fnSave = async() => {
if(!customValidate($("#frmEdit--${pageName} input"))) return; if(!customValidate($("#frmEdit--${pageName} input"))) return;
if(confirm("면제 차량 정보를 저장하시겠습니까?")){ if(await confirm2("면제 차량 정보를 저장하시겠습니까?")){
var info = $P.formFields.get(); var info = $P.formFields.get();
if (!info) { if (!info) {

@ -606,10 +606,10 @@ $(document).ready(function(){
}); });
} }
$P.fnCopy = () => { $P.fnCopy = async() => {
var crdnId = $("#crdnId--${pageName}").val(); var crdnId = $("#crdnId--${pageName}").val();
if(confirm("현 자료의 복사본을 생성하시겠습니까?")){ if(await confirm2("현 자료의 복사본을 생성하시겠습니까?")){
ajax.get({ ajax.get({
url : $P.crdnControl.urls.create, url : $P.crdnControl.urls.create,
@ -763,7 +763,7 @@ $(document).ready(function(){
$P.fnGo(crdnId); $P.fnGo(crdnId);
} }
$P.fnAccept = () => { $P.fnAccept = async() => {
if(!customValidate($("#frmEdit--${pageName} input"))) return; if(!customValidate($("#frmEdit--${pageName} input"))) return;
@ -794,15 +794,15 @@ $(document).ready(function(){
return; return;
} }
if(confirm("현재 단속 정보를 저장하시겠습니까?")){ if(await confirm2("현재 단속 정보를 저장하시겠습니까?")){
$P.save($P.formFields.get(), true); $P.save($P.formFields.get(), true);
} }
}; };
$P.fnSendBack = () => { $P.fnSendBack = async() => {
if(!confirm("반송 처리 하시겠습니까?")){ if(!await confirm2("반송 처리 하시겠습니까?")){
return; return;
} }

@ -144,11 +144,11 @@ $(document).ready(function() {
}); });
} }
$P.fnSave = () => { $P.fnSave = async() => {
if(!customValidate($("#frmEdit--${pageName} input"))) return; if(!customValidate($("#frmEdit--${pageName} input"))) return;
if(confirm("현재 답변 내용을 저장하시겠습니까?")){ if(await confirm2("현재 답변 내용을 저장하시겠습니까?")){
var info = $P.formFields.get(); var info = $P.formFields.get();
if (!info) { if (!info) {

Loading…
Cancel
Save