다이얼로그 관련 소스정리

main
이범준 3 months ago
parent 8f37ef29db
commit 981362504b

@ -1,28 +1,32 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<form id="frmEdit--${pageName}">
<span data-doctx="${pageName}">
<form name="frmEdit">
<div class="d-flex flex-row justify-content-evenly">
<div class="card" style="width:1000px;min-height:200px;">
<div class="row">
<div class="col-4">
<label class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">업무</label>
<select id="taskSeCd--${pageName}" name="taskSeCd" class="form-select">
<label is="name-label" for="taskSeCd"
class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">업무</label>
<select is="id-select" name="taskSeCd" class="form-select">
<c:forEach items="${taskSeCdList}" var="item">
<option value="${item.CODE}">${item.CODE_VAL}</option>
</c:forEach>
</select>
</div>
<div class="col-4">
<label class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">소스 시군구</label>
<select id="srcSgg--${pageName}" name="srcSgg" class="form-select">
<label is="name-label" for="srcSgg"
class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">소스 시군구</label>
<select is="id-select" name="srcSgg" class="form-select">
<c:forEach items="${sggList}" var="item">
<option value="${item.SGG_CD}">${item.SGG_NM}</option>
</c:forEach>
</select>
</div>
<div class="col-4">
<label class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">타겟 시군구</label>
<select id="trgtSgg--${pageName}" name="trgtSgg" class="form-select">
<label is="name-label" for="trgtSgg"
class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">타겟 시군구</label>
<select is="id-select" name="trgtSgg" class="form-select">
<c:forEach items="${sggList}" var="item">
<option value="${item.SGG_CD}">${item.SGG_NM}</option>
</c:forEach>
@ -30,19 +34,22 @@
</div>
<div class="col-12">
<span class="float-end p-4">
<button type="button" id="btnCopyStng--${pageName}" class="btn btn-primary">업무,위반 설정 복사</button>
<button type="button" name="btnCopyStng" class="btn btn-primary">업무,위반 설정 복사</button>
</span>
</div>
</div>
</div>
</div>
</form>
</form>
</span>
<script>
$("#btnCopyStng--${pageName}").on("click", function(){
pageObject['${pageName}'] = newDoctxFinder("${pageName}");
$(document).ready(function() {
let $P = pageObject['${pageName}'];
$P.$find("btnCopyStng").on("click", function(){
if($("#srcSgg--${pageName}").val() == $("#trgtSgg--${pageName}").val()){
if($P.$find("srcSgg").val() == $P.$find("trgtSgg").val()){
alert("동일한 시군구 선택 불가");
return;
}
@ -50,9 +57,9 @@ $("#btnCopyStng--${pageName}").on("click", function(){
ajax.get({
url : wctx.url("admin/copySggStng.do"),
data : {
taskSeCd : $("#taskSeCd--${pageName}").val(),
srcSgg : $("#srcSgg--${pageName}").val(),
trgtSgg : $("#trgtSgg--${pageName}").val()
taskSeCd : $P.$find("taskSeCd").val(),
srcSgg : $P.$find("srcSgg").val(),
trgtSgg : $P.$find("trgtSgg").val()
},
success : (resp) => {
if(resp.saved){
@ -60,5 +67,7 @@ $("#btnCopyStng--${pageName}").on("click", function(){
}
}
});
});
});
</script>

@ -1,7 +1,7 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<!-- inner page html -->
<div class="content-wrapper">
<div class="content-wrapper" data-doctx="${pageName}">
<div class="container-xxl flex-grow-1 px-0">
<c:set var="pageKorName" scope="request">최고관리자 메뉴</c:set>
<div class="card">
@ -71,6 +71,7 @@
</div>
<script>
pageObject['${pageName}'] = newDoctxFinder("${pageName}");
/**
* 수동 배치 실행
@ -264,12 +265,18 @@ $("#btnOpenSggAddDel").on("click", function(){
data: {},
success: (resp) => {
let dialogName = "sggAddDelDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id: "sggAddDelDialog",
id: dialogId,
title: "시군구 추가,삭제",
content: resp ,
size: "xxl",
init:() => {}
init:() => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
}
});
}
});
@ -281,12 +288,18 @@ $("#btnOpenCopySggStng").on("click", function(){
data: {},
success: (resp) => {
let dialogName = "copySggStngDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id: "copySggStngDialog",
id: dialogId,
title: "시군구 설정 복사",
content: resp ,
size: "xl",
init:() => {}
init:() => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
}
});
}
});

@ -1,16 +1,16 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<form id="frmEdit--${pageName}">
<span data-doctx="${pageName}">
<form name="frmEdit">
<div class="d-flex flex-row justify-content-evenly">
<div class="card" style="width:500px;">
<h3>시군구 백업</h3>
<div class="card-datatable text-nowrap">
<div id="backupSgg-DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="backupSgg-table-responsive--${pageName}" class="table-responsive"
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
<div class="table-responsive"
style="overflow-x: scroll;height:500px;overflow-y: scroll;">
<table id="backupSgg-DataTables_Table_0--${pageName}"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<table class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead">
<tr data-key="{SGG_CD}">
<th style="width: 50px;"></th>
@ -19,7 +19,7 @@
<th class="cmn dummy-th"></th>
</tr>
</thead>
<tbody id="backupSggTbody--${pageName}">
<tbody name="backupSggTbody">
</tbody>
</table>
</div>
@ -30,8 +30,8 @@
<div class="card" style="width:100px;">
<div style="display: flex;flex-direction: column;justify-content: space-evenly;height: 100%;">
<button type="button" id="btnAdd--${pageName}">추가 &gt;&gt;</button>
<button type="button" id="btnDel--${pageName}">&lt;&lt; 삭제</button>
<button type="button" name="btnAdd">추가 &gt;&gt;</button>
<button type="button" name="btnDel">&lt;&lt; 삭제</button>
</div>
</div>
@ -39,11 +39,10 @@
<h3>시군구</h3>
<div class="card-datatable text-nowrap">
<div id="originalSgg-DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="originalSgg-table-responsive--${pageName}" class="table-responsive"
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
<div class="table-responsive"
style="overflow-x: scroll;height:500px;overflow-y: scroll;">
<table id="originalSgg-DataTables_Table_0--${pageName}"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<table class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead">
<tr data-key="{SGG_CD}">
<th style="width: 50px;"></th>
@ -52,7 +51,7 @@
<th class="cmn dummy-th"></th>
</tr>
</thead>
<tbody id="originalSggTbody--${pageName}">
<tbody name="originalSggTbody">
</tbody>
</table>
@ -61,15 +60,11 @@
</div>
</div>
</div>
</form>
</form>
<template id="sggRow--${pageName}">
<template name="sggRow">
<tr data-key="{SGG_CD}">
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center cmn">
<input type="checkbox" value="{SGG_CD}" />
@ -78,28 +73,30 @@
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center cmn">{SGG_NM}</td>
<td class="dummy-td cmn"></td>
</tr>
</template>
<template id="sggNotFound--${pageName}">
</template>
<template name="sggNotFound">
<tr>
<td valign="top" colspan="14" class="dataTables_empty text-center">
정보를 찾지 못했습니다.
</td>
</tr>
</template>
</template>
</span>
<script>
pageObject['${pageName}'] = {};
pageObject['${pageName}'] = newDoctxFinder("${pageName}");
pageObject['${pageName}'].originalDataset = new Dataset({
$(document).ready(function(){
let $P = pageObject['${pageName}'];
$P.originalDataset = new Dataset({
keymapper : info => info ? info.SGG_CD : ""
});
pageObject['${pageName}'].backupDataset = new Dataset({
});
$P.backupDataset = new Dataset({
keymapper : info => info ? info.SGG_CD : ""
});
});
function fnRenderBackupAndOriginal(list,tbodyId,dataset){
$("#"+tbodyId).html("");
$P.fnRenderBackupAndOriginal = (list,tbodyName, dataset) => {
$P.$find(tbodyName).html("");
if(list != null && list.length > 0){
dataset.setData(list);
@ -108,14 +105,14 @@ function fnRenderBackupAndOriginal(list,tbodyId,dataset){
}
var empty = dataset.empty;
var notFound = [document.getElementById("sggNotFound--${pageName}").innerHTML];
var found = document.getElementById("sggRow--${pageName}").innerHTML;
var notFound = [$P.find("sggNotFound").innerHTML];
var found = $P.find("sggRow").innerHTML;
var replacer = (str, dataItem) => str.replace(/{onclick}/gi, "");
var trs = empty ? notFound : dataset.inStrings(found, replacer);
$("#"+tbodyId).html(trs.join());
}
$P.$find(tbodyName).html(trs.join());
};
function getBackupAndOriginalDataList(){
$P.getBackupAndOriginalDataList = () => {
ajax.get({
url : wctx.url("/admin/sggBackup/list.do"),
data : {
@ -125,15 +122,15 @@ function getBackupAndOriginalDataList(){
},
success : (resp) => {
fnRenderBackupAndOriginal(resp.originalDataList,"originalSggTbody--${pageName}", pageObject['${pageName}'].originalDataset);
fnRenderBackupAndOriginal(resp.backupDataList,"backupSggTbody--${pageName}", pageObject['${pageName}'].backupDataset);
$P.fnRenderBackupAndOriginal(resp.originalDataList,"originalSggTbody", $P.originalDataset);
$P.fnRenderBackupAndOriginal(resp.backupDataList,"backupSggTbody", $P.backupDataset);
}
});
}
};
$("#btnAdd--${pageName}").on("click", function(){
var checked = $("#backupSggTbody--${pageName}").find("input[type='checkbox']:checked");
$P.$find("btnAdd").on("click", function(){
var checked = $P.$find("backupSggTbody").find("input[type='checkbox']:checked");
if(checked.length < 1){
return;
}
@ -153,14 +150,14 @@ $("#btnAdd--${pageName}").on("click", function(){
},
success : (resp) => {
if(resp.saved){
getBackupAndOriginalDataList();
$P.getBackupAndOriginalDataList();
}
}
});
});
$("#btnDel--${pageName}").on("click", function(){
var checked = $("#originalSggTbody--${pageName}").find("input[type='checkbox']:checked");
});
$P.$find("btnDel").on("click", function(){
var checked = $P.$find("originalSggTbody").find("input[type='checkbox']:checked");
if(checked.length < 1){
return;
}
@ -179,14 +176,13 @@ $("#btnDel--${pageName}").on("click", function(){
},
success : (resp) => {
if(resp.saved){
getBackupAndOriginalDataList();
$P.getBackupAndOriginalDataList();
}
}
});
});
});
$(document).ready(function(){
getBackupAndOriginalDataList();
$P.getBackupAndOriginalDataList();
});
</script>

@ -264,12 +264,19 @@ $(document).ready(function(){
data : params,
success : (resp) => {
let dialogName = "layoutInfoDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id : "layoutInfoDialog",
id : dialogId,
title : "레이아웃 정보",
size : "xl",
content : resp,
init : () => {
setDialogZindex();
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
var parentRes = new Object();
var childReq = pageObject.childReq.pop();
@ -283,7 +290,6 @@ $(document).ready(function(){
pageObject.parentRes.push(parentRes);
setDialogZindex();
}
});

@ -307,7 +307,7 @@ $(document).ready(function(){
data : info,
success : (resp) => {
if(resp.saved){
dialog.close("layoutInfoDialog");
dialog.close($P.selfDlgId());
dialog.alert({
content:"저장되었습니다.",
init : () => {
@ -332,7 +332,7 @@ $(document).ready(function(){
},
success : (resp) => {
if(resp.saved){
dialog.close("layoutInfoDialog");
dialog.close($P.selfDlgId());
dialog.alert({
content:"삭제되었습니다.",
init : () => {

@ -822,10 +822,16 @@ $(document).ready(function(){
data : params,
success : (resp) => {
let dialogName = "totalInfoMainDialog";
let dialogId = "totalInfoMainDialog"; //dialogName+"-"+uuid();
dialog.open({
id : "totalInfoMainDialog",
id : dialogId,
title : "개별총정보", size : "xxl", content : resp,
init : () => {}
init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
}
});
}

@ -306,10 +306,16 @@ $(document).ready(function(){
data : params,
success : (resp) => {
let dialogName = "totalInfoMainDialog";
let dialogId = "totalInfoMainDialog"; //dialogName+"-"+uuid();
dialog.open({
id : "totalInfoMainDialog",
id : dialogId,
title : "개별총정보", size : "xxl", content : resp,
init : () => {}
init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
}
});
}

@ -248,25 +248,29 @@ $(document).ready(function(){
if(type == "file") url = $P.ctrl.urls.newInfoByFile;
if(type == "hand") url = $P.ctrl.urls.newInfoByHand;
var dialogId = "";
if(type == "file") dialogId = "fileDialog";
if(type == "hand") dialogId = "manualDialog";
let dialogName = "";
if(type == "file") dialogName = "fileDialog";
if(type == "hand") dialogName = "manualDialog";
var title = "";
if(type == "file") title = "단속파일 등록";
if(type == "hand") title = "단속자료 수기 등록";
ajax.get({
url : url,
data : {},
success : (resp) => {
let dialogId = dialogName+"-"+uuid();
dialog.open({
id: dialogId,
title: title,
content:resp,
size: "xxl",
init:() => {}
init:() => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
}
});
}
});

@ -498,7 +498,7 @@ $(document).ready(function(){
focusClose();
}
});
dialog.close("manualDialog");
dialog.close($P.selfDlgId());
}
}
@ -573,7 +573,6 @@ $(document).ready(function(){
$P.$find("vhrno").onEnterPress(function(){
var alertDialogId = "alertDialog";
var crdnYmd = $P.$find("crdnYmd").val().replaceAll("-", "");
var vhrnoEl = event.target;
var vhrno = vhrnoEl.value;

@ -499,11 +499,16 @@ $(document).ready(function(){
url : $P.ctrl.urls.getInfo,
data : params,
success : (resp) => {
let dialogName = "totalInfoMainDialog";
let dialogId = "totalInfoMainDialog"; //dialogName+"-"+uuid();
dialog.open({
id : "totalInfoMainDialog",
id : dialogId,
title : "개별총정보", size : "xxl", content : resp,
init : () => {}
init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
}
});
}

@ -289,12 +289,18 @@ $(document).ready(function(){
url : $P.ctrl.urls.getInfo,
data: param,
success:(resp) => {
let dialogName = "exmptnvhclDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id: "exmptnvhclDialog",
id: dialogId,
title: "면제차량 수정",
content:resp,
size: "lg",
init:() => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
var parentRes = new Object();
var childReq = pageObject.childReq.pop();
@ -318,12 +324,18 @@ $(document).ready(function(){
url : $P.ctrl.urls.newInfo,
data: {},
success:(resp) => {
let dialogName = "exmptnvhclDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id: "exmptnvhclDialog",
id: dialogId,
title: "면제차량 등록",
content:resp,
size: "lg",
init:() => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
var parentRes = new Object();
var childReq = pageObject.childReq.pop();
@ -391,8 +403,11 @@ $(document).ready(function(){
url : wctx.url("/BPV/crdn/crdn08/030/list.do"),
data: { "exmptnVhclId" : dataKey },
success:(resp) => {
let dialogName = "exmptnvhclHistoryDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id: "exmptnvhclHistoryDialog",
id: dialogId,
title: "면제차량 이력",
content : resp,
size: "xxl",

@ -149,7 +149,7 @@ $(document).ready(function(){
focusClose();
}
});
dialog.close("exmptnvhclDialog");
dialog.close($P.selfDlgId());
$P.provided.refreshList();
}
};

@ -722,11 +722,20 @@ $(document).ready(function(){
url : wctx.url("/"+params.taskSeCd + "/payer/info.do"),
data : params || {},
success : (resp) => {
let dialogName = "payerDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id : "payerDialog",
id : dialogId,
title : dialogTitle,
content : resp,
size : "lg",
init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
}
onClose : () => { $P.refreshPayer(); } // callback
});
}
@ -1098,11 +1107,11 @@ $(document).ready(function(){
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
$(document).find("div.modal").last().on('shown.bs.modal', function () {
$("#"+$P.refDlgId("crdnListDialog")).find("[name='schCrdnYmdFrom']").set("");
$("#"+$P.refDlgId("crdnListDialog")).find("[name='schCrdnYmdTo']").set("");
$("#"+$P.refDlgId("crdnListDialog")).find("[name='vhrno']").set($P.$find("vhrno").val());
$("#"+$P.refDlgId("crdnListDialog")).find(".btn-search").eq(0).click();
let refDlgId = $P.refDlgId("crdnListDialog");
$("#"+refDlgId).find("[name='schCrdnYmdFrom']").set("");
$("#"+refDlgId).find("[name='schCrdnYmdTo']").set("");
$("#"+refDlgId).find("[name='vhrno']").set($P.$find("vhrno").val());
$("#"+refDlgId).find(".btn-search").eq(0).click();
});
},
onClose : () => {}
@ -1136,11 +1145,11 @@ $(document).ready(function(){
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
$(document).find("div.modal").last().on('shown.bs.modal', function () {
$("#"+$P.refDlgId("cvlcptDscsnListDialog")).find("[name='schDscsnYmdFrom']").set("");
$("#"+$P.refDlgId("cvlcptDscsnListDialog")).find("[name='schDscsnYmdTo']").set("");
$("#"+$P.refDlgId("cvlcptDscsnListDialog")).find("[name='schVhrno']").set($P.$find("vhrno").val());
$("#"+$P.refDlgId("cvlcptDscsnListDialog")).find(".btn-search").eq(0).click();
let refDlgId = $P.refDlgId("crdnListDialog");
$("#"+refDlgId).find("[name='schDscsnYmdFrom']").set("");
$("#"+refDlgId).find("[name='schDscsnYmdTo']").set("");
$("#"+refDlgId).find("[name='schVhrno']").set($P.$find("vhrno").val());
$("#"+refDlgId).find(".btn-search").eq(0).click();
});
},
onClose : () => {}

@ -440,11 +440,16 @@ $(document).ready(function(){
url : $P.ctrl.urls.getInfo,
data : params,
success : (resp) => {
let dialogName = "totalInfoMainDialog";
let dialogId = "totalInfoMainDialog"; //dialogName+"-"+uuid();
dialog.open({
id : "totalInfoMainDialog",
id : dialogId,
title : "개별총정보", size : "xxl", content : resp,
init : () => {}
init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
}
});
}

@ -419,10 +419,16 @@ $(document).ready(function(){
data : params,
success : (resp) => {
let dialogName = "totalInfoMainDialog";
let dialogId = "totalInfoMainDialog"; //dialogName+"-"+uuid();
dialog.open({
id : "totalInfoMainDialog",
id : dialogId,
title : "개별총정보", size : "xxl", content : resp,
init : () => {}
init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
}
});
}

@ -407,10 +407,10 @@ $(document).ready(function(){
init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
initDatepicker(document.getElementById($P.refDlgId("seallDmndDialog")));
$("#"+$P.refDlgId("seallDmndDialog")).find("[name='rcptYmd']").datepicker('setDate', TODAY());
$("#"+$P.refDlgId("seallDmndDialog")).find("[name='btnCreate']").on("click", () => $P.fnCreateDmnd());
let refDlgId = $P.refDlgId("seallDmndDialog");
initDatepicker(document.getElementById(refDlgId));
$("#"+refDlgId).find("[name='rcptYmd']").datepicker('setDate', TODAY());
$("#"+refDlgId).find("[name='btnCreate']").on("click", () => $P.fnCreateDmnd());
},
onClose : () => {}
});

@ -660,10 +660,10 @@ $(document).ready(function(){
init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
let refDlgId = $P.refDlgId(dialogName);
$("#"+refDlgId).find("[name='preview']").val(result);
$("#"+$P.refDlgId("previewDialog")).find("[name='preview']").val(result);
$("#"+$P.refDlgId("previewDialog")).find("[name='btnClose']").on("click",
() => dialog.close($P.refDlgId("previewDialog"));
$("#"+refDlgId).find("[name='btnClose']").on("click", () => dialog.close(refDlgId));
},
onOk : () => {},
onClose : () => {}

@ -182,7 +182,8 @@
// 저장 callback
$P.control.onSave = (resp) => {
let dialogTitle = $("#" + $P.control.prefix + "Dialog--${openerPageName}").find("h5.modal-title").html();
let dialogTitle = $($("#frmEdit--${pageName}").parents(".modal")[0]).find("h5.modal-title").html();
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, dialogTitle);
// 메시지 출력
@ -192,7 +193,7 @@
});
if (resp.saved) {
dialog.close($P.control.prefix + "Dialog--${openerPageName}");
dialog.close($("#frmEdit--${pageName}").parents(".modal")[0].id);
}
}

@ -425,21 +425,26 @@ $(document).ready(function() {
var url = wctx.url("/sprt/sprt01/100/info.do");
var dialogId = "inputEtcCnDialog";
ajax.get({
url : url
, data : { crdnIds : crdnIds.join(",") }
, success : (resp) => {
let dialogName = "inputEtcCnDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id : dialogId
, title : "특기사항입력-일괄"
, size : "xl"
, content : resp
, init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
let refDlgId = $P.refDlgId(dialogName);
var found = $("#"+dialogId).find("table template")[0].innerHTML;
var found = $("#"+refDlgId).find("table template")[0].innerHTML;
var trs = cur.inStrings(found, null);
$("#"+dialogId).find("tbody").html(trs.join());
$("#"+refDlgId).find("tbody").html(trs.join());
}
, onClose : () => { }
});
@ -467,24 +472,27 @@ $(document).ready(function() {
var url = wctx.url("/sprt/sprt01/110/info.do");
var dialogId = "printCrdnDialog";
ajax.get({
url : url
, data : { crdnIds : crdnIds.join(",") }
, success : (resp) => {
let dialogName = "printCrdnDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id : dialogId
, title : "종합조회-단속내역"
, size : "xl"
, content : resp
, init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
let refDlgId = $P.refDlgId(dialogName);
var found = $("#"+dialogId).find("table template")[0].innerHTML;
var found = $("#"+refDlgId).find("table template")[0].innerHTML;
var trs1 = upDataset.inStrings(found, null);
var trs2 = downDataset.inStrings(found, null);
$("#"+dialogId).find("tbody").html(trs1.join()+trs2.join());
$("#"+refDlgId).find("tbody").html(trs1.join()+trs2.join());
}
, onClose : () => { }
});
@ -509,22 +517,26 @@ $(document).ready(function() {
var url = wctx.url("/sprt/sprt01/120/info.do");
var dialogId = "printBillDialog";
ajax.get({
url : url
, data : { crdnIds : crdnIds.join(",") }
, success : (resp) => {
let dialogName = "printBillDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id : dialogId
, title : "종합조회-교부청구서,채권신고서"
, size : "xl"
, content : resp
, init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
let refDlgId = $P.refDlgId(dialogName);
var found = $("#"+dialogId).find("table template")[0].innerHTML;
var found = $("#"+refDlgId).find("table template")[0].innerHTML;
var trs = upDataset.inStrings(found, null);
$("#"+dialogId).find("tbody").html(trs.join());
$("#"+refDlgId).find("tbody").html(trs.join());
var parentRes = new Object();
@ -585,23 +597,26 @@ $(document).ready(function() {
var url = wctx.url("/sprt/sprt01/140/info.do");
var dialogId = "printAdvntceDialog";
ajax.get({
url : url
, data : { crdnIds : crdnIds.join(",") }
, success : (resp) => {
let dialogName = "printAdvntceDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id : dialogId,
title : "종합조회-사전통지서",
size : "xl",
content : resp,
init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
let refDlgId = $P.refDlgId(dialogName);
var found = $("#"+dialogId).find("table template")[0].innerHTML;
var found = $("#"+refDlgId).find("table template")[0].innerHTML;
var trs = upDataset.inStrings(found, null);
$("#"+dialogId).find("tbody").html(trs.join());
$("#"+refDlgId).find("tbody").html(trs.join());
var parentRes = new Object();
@ -640,22 +655,26 @@ $(document).ready(function() {
var url = wctx.url("/sprt/sprt01/150/info.do");
var dialogId = "printNhtDialog";
ajax.get({
url : url
, data : { crdnIds : crdnIds.join(",") }
, success : (resp) => {
let dialogName = "printNhtDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id : dialogId,
title : "종합조회-고지서",
size : "xl",
content : resp,
init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
let refDlgId = $P.refDlgId(dialogName);
var found = $("#"+dialogId).find("table template")[0].innerHTML;
var found = $("#"+refDlgId).find("table template")[0].innerHTML;
var trs = upDataset.inStrings(found, null);
$("#"+dialogId).find("tbody").html(trs.join());
$("#"+refDlgId).find("tbody").html(trs.join());
var parentRes = new Object();
@ -712,12 +731,19 @@ $(document).ready(function() {
url : url
, data : params
, success : (resp) => {
let dialogName = "totalInfoMainDialog";
let dialogId = "totalInfoMainDialog"; //dialogName+"-"+uuid();
dialog.open({
id : "totalInfoMainDialog"
id : dialogId
, title : "개별총정보"
, size : "xxl"
, content : resp
, init : () => { }
, init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
}
, onClose : () => { }
});
}

@ -218,31 +218,36 @@ $(document).ready(function(){
}
var url = wctx.url("/stng/stng01/010/main.do");
var dialogId = "otptStngDialog";
ajax.post({
url : url,
data : {},
success : (resp) => {
let dialogName = "otptStngDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id : dialogId,
title : "출력설정",
size : "xxl",
content : resp,
init : () => {
setDialogZindex();
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
let refDlgId = $P.refDlgId(dialogName);
$("#"+dialogId).find("form[name='frmSearch']").find("[name='sggCd']").val(MY_INFO.info.sggCd);
$("#"+refDlgId).find("form[name='frmSearch']").find("[name='sggCd']").val(MY_INFO.info.sggCd);
if(fix != ""){
var taskSeSelectbox = $("#"+dialogId).find("form[name='frmSearch']").find("[name='taskSeCd']");
var taskSeSelectbox = $("#"+refDlgId).find("form[name='frmSearch']").find("[name='taskSeCd']");
taskSeSelectbox.val(fix);
taskSeSelectbox.attr("disabled","disabled");
}
$("#"+dialogId).find("form[name='frmSearch']").find("[name='sndngSeCd']").val("02");
setDialogZindex();
$("#"+refDlgId).find("form[name='frmSearch']").find("[name='sndngSeCd']").val("02");
},
onClose : () => { }
});

@ -213,12 +213,13 @@ $(document).ready(function(){
}
var url = wctx.url("/stng/stng01/010/main.do");
var dialogId = "otptStngDialog";
ajax.post({
url : url,
data : {},
success : (resp) => {
let dialogName = "otptStngDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id : dialogId
@ -226,19 +227,20 @@ $(document).ready(function(){
, size : "xxl"
, content : resp
, init : () => {
setDialogZindex();
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
let refDlgId = $P.refDlgId(dialogName);
$("#"+dialogId).find("form[name='frmSearch']").find("[name='sggCd']").val(MY_INFO.info.sggCd);
$("#"+refDlgId).find("form[name='frmSearch']").find("[name='sggCd']").val(MY_INFO.info.sggCd);
if(fix != ""){
var taskSeSelectbox = $("#"+dialogId).find("form[name='frmSearch']").find("[name='taskSeCd']");
var taskSeSelectbox = $("#"+refDlgId).find("form[name='frmSearch']").find("[name='taskSeCd']");
taskSeSelectbox.val(fix);
taskSeSelectbox.attr("disabled","disabled");
}
$("#"+dialogId).find("form[name='frmSearch']").find("[name='sndngSeCd']").val("03");
setDialogZindex();
$("#"+refDlgId).find("form[name='frmSearch']").find("[name='sndngSeCd']").val("03");
}
, onClose : () => { }
});

@ -2,8 +2,8 @@
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<c:set var="pageKorName" scope="request">출력설정</c:set>
<div class="d-flex flex-row justify-content-evenly">
<span data-doctx="${pageName}">
<div class="d-flex flex-row justify-content-evenly">
<div class="card p-3">
<div class="row mb-3 justify-content-start">
<div class="col-md-12">
@ -105,11 +105,11 @@
</div>
</div>
</div>
</div>
<span id="tempArea--${pageName}" hidden></span>
<span id="tempArea--${pageName}" hidden></span>
<template id="theadTr--${pageName}">
<template id="theadTr--${pageName}">
<tr>
<th style="width:150px">순서</th>
<th style="width:40px"></th>
@ -127,9 +127,9 @@
<th style="width:110px">글자스타일</th>
<th class="dummy-th"></th>
</tr>
</template>
</template>
<template id="found--${pageName}">
<template id="found--${pageName}">
<tr data-key="{OTPT_FORM_ID}">
<td data-col="otptArtclSeq" class="text-center">
<button type="button">▲</button>
@ -213,13 +213,13 @@
</td>
<td class="dummy-td"></td>
</tr>
</template>
</template>
<template id="dropdownTemplate--${pageName}">
<template id="dropdownTemplate--${pageName}">
<li><a class="dropdown-item" onclick="{onclick}">{DSCRP}</a></li>
</template>
</template>
<template id="foldLinePstnTemplate--${pageName}">
<template id="foldLinePstnTemplate--${pageName}">
<span class="px-2">
<label class="col-form-label bg-lighter px-2">접는선 위치</label>
<label>
@ -233,9 +233,9 @@
</label>
</c:forEach>
</span>
</template>
</template>
<template id="bcrnTemplate--${pageName}">
<template id="bcrnTemplate--${pageName}">
<span class="px-2">
<label class="col-form-label bg-lighter px-2">배경이미지</label>
<output id="fileStatus--${pageName}"></output>
@ -243,22 +243,22 @@
<input type="file" name="backgroundFile" accept="image/*" hidden onchange="pageObject['${pageName}'].fnBgUpload(this);" />
<button type="button" id="btnBgDown--${pageName}" onclick="pageObject['${pageName}'].fnBgDown();">다운로드</button>
</span>
</template>
</template>
<template id="photoCntTemplate--${pageName}">
<template id="photoCntTemplate--${pageName}">
<span class="px-2">
<label class="col-form-label bg-lighter px-2">사진 출력 영역</label>
<input type="number" name="otptPhotoCnt" class="form-control w-px-50" min="0" max="6" /> 장
</span>
</template>
</template>
</span>
<script>
var FIM054 = new CommonCodes(${FIM054});
var FIM047 = new CommonCodes(${FIM047});
var FIM078 = new CommonCodes(${FIM078});
var FIM080 = new CommonCodes(${FIM080});
pageObject["${pageName}"] = {};
pageObject["${pageName}"] = newDoctxFinder("${pageName}");
$(document).ready(function(){

@ -2,8 +2,8 @@
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<c:set var="pageKorName" scope="request">PDF 추출 설정</c:set>
<div class="d-flex flex-row justify-content-evenly">
<span data-doctx="${pageName}">
<div class="d-flex flex-row justify-content-evenly">
<div class="card p-3">
<div class="row mb-3 justify-content-start">
<div class="col-md-12">
@ -106,10 +106,10 @@
</div>
</div>
</div>
</div>
<template id="theadTr--${pageName}">
<template id="theadTr--${pageName}">
<tr>
<th style="width:150px">순서</th>
<th style="width:40px"></th>
@ -123,9 +123,9 @@
<th class="dummy-th"></th>
</tr>
</template>
</template>
<template id="found--${pageName}">
<template id="found--${pageName}">
<tr data-key="{EXTR_FORM_ID}">
<td data-col="extrArtclOrdr" class="text-center">
<button type="button">▲</button>
@ -159,20 +159,20 @@
<td class="dummy-td"></td>
</tr>
</template>
</template>
<template id="dropdownTemplate--${pageName}">
<template id="dropdownTemplate--${pageName}">
<li><a class="dropdown-item" onclick="{onclick}">{DSCRP}</a></li>
</template>
</template>
</span>
<script>
var FIM054 = new CommonCodes(${FIM054});
var FIM047 = new CommonCodes(${FIM047});
var FIM078 = new CommonCodes(${FIM078});
var FIM080 = new CommonCodes(${FIM080});
pageObject["${pageName}"] = {};
pageObject["${pageName}"] = newDoctxFinder("${pageName}");
$(document).ready(function(){

@ -2,8 +2,8 @@
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<c:set var="pageKorName" scope="request">외주요청파일 서식 설정</c:set>
<div class="d-flex flex-row justify-content-evenly">
<span data-doctx="${pageName}">
<div class="d-flex flex-row justify-content-evenly">
<div class="card p-3">
<div class="row mb-3 justify-content-start">
<div class="col-md-12">
@ -69,10 +69,10 @@
</div>
</div>
</div>
</div>
<template id="theadTr--${pageName}">
<template id="theadTr--${pageName}">
<tr>
<th style="width:150px">순서</th>
<th style="width:40px"></th>
@ -82,9 +82,9 @@
<th style="width:350px">포맷팅</th>
<th class="dummy-th"></th>
</tr>
</template>
</template>
<template id="found--${pageName}">
<template id="found--${pageName}">
<tr data-key="{OUTSOURCING_FORM_ID}">
<td data-col="artclOrdr" class="text-center">
<button type="button">▲</button>
@ -130,8 +130,8 @@
</td>
<td class="dummy-td"></td>
</tr>
</template>
</template>
</span>
<script>
var FIM054 = new CommonCodes(${FIM054});
@ -139,7 +139,7 @@ var FIM047 = new CommonCodes(${FIM047});
var FIM078 = new CommonCodes(${FIM078});
var FIM080 = new CommonCodes(${FIM080});
pageObject["${pageName}"] = {};
pageObject["${pageName}"] = newDoctxFinder("${pageName}");
$(document).ready(function(){

@ -201,12 +201,13 @@ function fnOpenEqmCrdnLayoutStngDialog(){
dialog.close("selectStngDialog");
var url = wctx.url("/crdn/crdn01/010/main.do");
var dialogId = "eqmCrdnLayoutStngDialog";
ajax.post({
url : url,
data : {},
success : (resp) => {
let dialogName = "eqmCrdnLayoutStngDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id : dialogId,
@ -214,10 +215,11 @@ function fnOpenEqmCrdnLayoutStngDialog(){
size : "xxl",
content : resp,
init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","top");
let refDlgId = pageObject["top"].refDlgId(dialogName);
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
$("#"+dialogId).find("form[name='frmSearch']").find("[name='sggCd']").val(MY_INFO.info.sggCd);
$("#"+refDlgId).find("form[name='frmSearch']").find("[name='sggCd']").val(MY_INFO.info.sggCd);
},
onClose : () => { }
@ -232,23 +234,26 @@ function fnOpenOtptStngDialog(){
dialog.close("selectStngDialog");
var url = wctx.url("/stng/stng01/010/main.do");
var dialogId = "otptStngDialog";
ajax.post({
url : url,
data : {},
success : (resp) => {
let dialogName = "otptStngDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id : dialogId,
title : "출력설정",
size : "xxl",
content : resp,
init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","top");
let refDlgId = pageObject["top"].refDlgId(dialogName);
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
$("#"+dialogId).find("form[name='frmSearch']").find("[name='sggCd']").val(MY_INFO.info.sggCd);
$("#"+refDlgId).find("form[name='frmSearch']").find("[name='sggCd']").val(MY_INFO.info.sggCd);
},
onClose : () => { }
@ -264,13 +269,16 @@ function fnOpenOutsourcingStngDialog(){
dialog.close("selectStngDialog");
var url = wctx.url("/stng/stng01/030/main.do");
var dialogId = "outsourcingStngDialog";
ajax.post({
url : url,
data : {},
success : (resp) => {
let dialogName = "outsourcingStngDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id : dialogId,
title : "외주요청파일 서식 설정",
@ -278,9 +286,11 @@ function fnOpenOutsourcingStngDialog(){
content : resp,
init : () => {
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","top");
let refDlgId = pageObject["top"].refDlgId(dialogName);
$("#"+dialogId).find("form[name='frmSearch']").find("[name='sggCd']").val(MY_INFO.info.sggCd);
$("#"+refDlgId).find("form[name='frmSearch']").find("[name='sggCd']").val(MY_INFO.info.sggCd);
},
onClose : () => { }
@ -296,23 +306,26 @@ function fnOpenExtrStngDialog(){
dialog.close("selectStngDialog");
var url = wctx.url("/stng/stng01/020/main.do");
var dialogId = "extrStngDialog";
ajax.post({
url : url,
data : {},
success : (resp) => {
let dialogName = "extrStngDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({
id : dialogId,
title : "PDF자료 추출 설정",
size : "xxl",
content : resp,
init : () => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","top");
let refDlgId = pageObject["top"].refDlgId(dialogName);
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
$("#"+dialogId).find("form[name='frmSearch']").find("[name='sggCd']").val(MY_INFO.info.sggCd);
$("#"+refDlgId).find("form[name='frmSearch']").find("[name='sggCd']").val(MY_INFO.info.sggCd);
},
onClose : () => { }

@ -169,6 +169,7 @@
var pageObject = {};
pageObject.childReq = [];
pageObject.parentRes = [];
pageObject.top = newDoctxFinder("top");
function LoadScript(scriptId, scriptPath){
if(document.getElementById(scriptId) == null){

Loading…
Cancel
Save