다이얼로그 관련 소스정리

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

@ -1,28 +1,32 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> <%@ 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="d-flex flex-row justify-content-evenly">
<div class="card" style="width:1000px;min-height:200px;"> <div class="card" style="width:1000px;min-height:200px;">
<div class="row"> <div class="row">
<div class="col-4"> <div class="col-4">
<label class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">업무</label> <label is="name-label" for="taskSeCd"
<select id="taskSeCd--${pageName}" name="taskSeCd" class="form-select"> 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"> <c:forEach items="${taskSeCdList}" var="item">
<option value="${item.CODE}">${item.CODE_VAL}</option> <option value="${item.CODE}">${item.CODE_VAL}</option>
</c:forEach> </c:forEach>
</select> </select>
</div> </div>
<div class="col-4"> <div class="col-4">
<label class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">소스 시군구</label> <label is="name-label" for="srcSgg"
<select id="srcSgg--${pageName}" name="srcSgg" class="form-select"> 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"> <c:forEach items="${sggList}" var="item">
<option value="${item.SGG_CD}">${item.SGG_NM}</option> <option value="${item.SGG_CD}">${item.SGG_NM}</option>
</c:forEach> </c:forEach>
</select> </select>
</div> </div>
<div class="col-4"> <div class="col-4">
<label class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">타겟 시군구</label> <label is="name-label" for="trgtSgg"
<select id="trgtSgg--${pageName}" name="trgtSgg" class="form-select"> 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"> <c:forEach items="${sggList}" var="item">
<option value="${item.SGG_CD}">${item.SGG_NM}</option> <option value="${item.SGG_CD}">${item.SGG_NM}</option>
</c:forEach> </c:forEach>
@ -30,7 +34,7 @@
</div> </div>
<div class="col-12"> <div class="col-12">
<span class="float-end p-4"> <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> </span>
</div> </div>
</div> </div>
@ -38,11 +42,14 @@
</div> </div>
</div> </div>
</form> </form>
</span>
<script> <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("동일한 시군구 선택 불가"); alert("동일한 시군구 선택 불가");
return; return;
} }
@ -50,9 +57,9 @@ $("#btnCopyStng--${pageName}").on("click", function(){
ajax.get({ ajax.get({
url : wctx.url("admin/copySggStng.do"), url : wctx.url("admin/copySggStng.do"),
data : { data : {
taskSeCd : $("#taskSeCd--${pageName}").val(), taskSeCd : $P.$find("taskSeCd").val(),
srcSgg : $("#srcSgg--${pageName}").val(), srcSgg : $P.$find("srcSgg").val(),
trgtSgg : $("#trgtSgg--${pageName}").val() trgtSgg : $P.$find("trgtSgg").val()
}, },
success : (resp) => { success : (resp) => {
if(resp.saved){ if(resp.saved){
@ -61,4 +68,6 @@ $("#btnCopyStng--${pageName}").on("click", function(){
} }
}); });
}); });
});
</script> </script>

@ -1,7 +1,7 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<!-- inner page html --> <!-- inner page html -->
<div class="content-wrapper"> <div class="content-wrapper" data-doctx="${pageName}">
<div class="container-xxl flex-grow-1 px-0"> <div class="container-xxl flex-grow-1 px-0">
<c:set var="pageKorName" scope="request">최고관리자 메뉴</c:set> <c:set var="pageKorName" scope="request">최고관리자 메뉴</c:set>
<div class="card"> <div class="card">
@ -71,6 +71,7 @@
</div> </div>
<script> <script>
pageObject['${pageName}'] = newDoctxFinder("${pageName}");
/** /**
* 수동 배치 실행 * 수동 배치 실행
@ -264,12 +265,18 @@ $("#btnOpenSggAddDel").on("click", function(){
data: {}, data: {},
success: (resp) => { success: (resp) => {
let dialogName = "sggAddDelDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({ dialog.open({
id: "sggAddDelDialog", id: dialogId,
title: "시군구 추가,삭제", title: "시군구 추가,삭제",
content: resp , content: resp ,
size: "xxl", size: "xxl",
init:() => {} init:() => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
}
}); });
} }
}); });
@ -281,12 +288,18 @@ $("#btnOpenCopySggStng").on("click", function(){
data: {}, data: {},
success: (resp) => { success: (resp) => {
let dialogName = "copySggStngDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({ dialog.open({
id: "copySggStngDialog", id: dialogId,
title: "시군구 설정 복사", title: "시군구 설정 복사",
content: resp , content: resp ,
size: "xl", 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"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> <%@ 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="d-flex flex-row justify-content-evenly">
<div class="card" style="width:500px;"> <div class="card" style="width:500px;">
<h3>시군구 백업</h3> <h3>시군구 백업</h3>
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="backupSgg-DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="backupSgg-table-responsive--${pageName}" class="table-responsive" <div class="table-responsive"
style="overflow-x: scroll;height:500px;overflow-y: scroll;"> style="overflow-x: scroll;height:500px;overflow-y: scroll;">
<table id="backupSgg-DataTables_Table_0--${pageName}" <table class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr data-key="{SGG_CD}"> <tr data-key="{SGG_CD}">
<th style="width: 50px;"></th> <th style="width: 50px;"></th>
@ -19,7 +19,7 @@
<th class="cmn dummy-th"></th> <th class="cmn dummy-th"></th>
</tr> </tr>
</thead> </thead>
<tbody id="backupSggTbody--${pageName}"> <tbody name="backupSggTbody">
</tbody> </tbody>
</table> </table>
</div> </div>
@ -30,8 +30,8 @@
<div class="card" style="width:100px;"> <div class="card" style="width:100px;">
<div style="display: flex;flex-direction: column;justify-content: space-evenly;height: 100%;"> <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" name="btnAdd">추가 &gt;&gt;</button>
<button type="button" id="btnDel--${pageName}">&lt;&lt; 삭제</button> <button type="button" name="btnDel">&lt;&lt; 삭제</button>
</div> </div>
</div> </div>
@ -39,11 +39,10 @@
<h3>시군구</h3> <h3>시군구</h3>
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="originalSgg-DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="originalSgg-table-responsive--${pageName}" class="table-responsive" <div class="table-responsive"
style="overflow-x: scroll;height:500px;overflow-y: scroll;"> style="overflow-x: scroll;height:500px;overflow-y: scroll;">
<table id="originalSgg-DataTables_Table_0--${pageName}" <table class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr data-key="{SGG_CD}"> <tr data-key="{SGG_CD}">
<th style="width: 50px;"></th> <th style="width: 50px;"></th>
@ -52,7 +51,7 @@
<th class="cmn dummy-th"></th> <th class="cmn dummy-th"></th>
</tr> </tr>
</thead> </thead>
<tbody id="originalSggTbody--${pageName}"> <tbody name="originalSggTbody">
</tbody> </tbody>
</table> </table>
@ -61,15 +60,11 @@
</div> </div>
</div> </div>
</div> </div>
</form> </form>
<template id="sggRow--${pageName}"> <template name="sggRow">
<tr data-key="{SGG_CD}"> <tr data-key="{SGG_CD}">
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center cmn"> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center cmn">
<input type="checkbox" value="{SGG_CD}" /> <input type="checkbox" value="{SGG_CD}" />
@ -79,27 +74,29 @@
<td class="dummy-td cmn"></td> <td class="dummy-td cmn"></td>
</tr> </tr>
</template> </template>
<template id="sggNotFound--${pageName}"> <template name="sggNotFound">
<tr> <tr>
<td valign="top" colspan="14" class="dataTables_empty text-center"> <td valign="top" colspan="14" class="dataTables_empty text-center">
정보를 찾지 못했습니다. 정보를 찾지 못했습니다.
</td> </td>
</tr> </tr>
</template> </template>
</span>
<script> <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 : "" keymapper : info => info ? info.SGG_CD : ""
}); });
pageObject['${pageName}'].backupDataset = new Dataset({ $P.backupDataset = new Dataset({
keymapper : info => info ? info.SGG_CD : "" keymapper : info => info ? info.SGG_CD : ""
}); });
$P.fnRenderBackupAndOriginal = (list,tbodyName, dataset) => {
function fnRenderBackupAndOriginal(list,tbodyId,dataset){ $P.$find(tbodyName).html("");
$("#"+tbodyId).html("");
if(list != null && list.length > 0){ if(list != null && list.length > 0){
dataset.setData(list); dataset.setData(list);
@ -108,14 +105,14 @@ function fnRenderBackupAndOriginal(list,tbodyId,dataset){
} }
var empty = dataset.empty; var empty = dataset.empty;
var notFound = [document.getElementById("sggNotFound--${pageName}").innerHTML]; var notFound = [$P.find("sggNotFound").innerHTML];
var found = document.getElementById("sggRow--${pageName}").innerHTML; var found = $P.find("sggRow").innerHTML;
var replacer = (str, dataItem) => str.replace(/{onclick}/gi, ""); var replacer = (str, dataItem) => str.replace(/{onclick}/gi, "");
var trs = empty ? notFound : dataset.inStrings(found, replacer); var trs = empty ? notFound : dataset.inStrings(found, replacer);
$("#"+tbodyId).html(trs.join()); $P.$find(tbodyName).html(trs.join());
} };
function getBackupAndOriginalDataList(){ $P.getBackupAndOriginalDataList = () => {
ajax.get({ ajax.get({
url : wctx.url("/admin/sggBackup/list.do"), url : wctx.url("/admin/sggBackup/list.do"),
data : { data : {
@ -125,15 +122,15 @@ function getBackupAndOriginalDataList(){
}, },
success : (resp) => { success : (resp) => {
fnRenderBackupAndOriginal(resp.originalDataList,"originalSggTbody--${pageName}", pageObject['${pageName}'].originalDataset); $P.fnRenderBackupAndOriginal(resp.originalDataList,"originalSggTbody", $P.originalDataset);
fnRenderBackupAndOriginal(resp.backupDataList,"backupSggTbody--${pageName}", pageObject['${pageName}'].backupDataset); $P.fnRenderBackupAndOriginal(resp.backupDataList,"backupSggTbody", $P.backupDataset);
} }
}); });
} };
$("#btnAdd--${pageName}").on("click", function(){ $P.$find("btnAdd").on("click", function(){
var checked = $("#backupSggTbody--${pageName}").find("input[type='checkbox']:checked"); var checked = $P.$find("backupSggTbody").find("input[type='checkbox']:checked");
if(checked.length < 1){ if(checked.length < 1){
return; return;
} }
@ -153,14 +150,14 @@ $("#btnAdd--${pageName}").on("click", function(){
}, },
success : (resp) => { success : (resp) => {
if(resp.saved){ if(resp.saved){
getBackupAndOriginalDataList(); $P.getBackupAndOriginalDataList();
} }
} }
}); });
}); });
$("#btnDel--${pageName}").on("click", function(){ $P.$find("btnDel").on("click", function(){
var checked = $("#originalSggTbody--${pageName}").find("input[type='checkbox']:checked"); var checked = $P.$find("originalSggTbody").find("input[type='checkbox']:checked");
if(checked.length < 1){ if(checked.length < 1){
return; return;
} }
@ -179,14 +176,13 @@ $("#btnDel--${pageName}").on("click", function(){
}, },
success : (resp) => { success : (resp) => {
if(resp.saved){ if(resp.saved){
getBackupAndOriginalDataList(); $P.getBackupAndOriginalDataList();
} }
} }
}); });
}); });
$(document).ready(function(){ $P.getBackupAndOriginalDataList();
getBackupAndOriginalDataList();
}); });
</script> </script>

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

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

@ -822,10 +822,16 @@ $(document).ready(function(){
data : params, data : params,
success : (resp) => { success : (resp) => {
let dialogName = "totalInfoMainDialog";
let dialogId = "totalInfoMainDialog"; //dialogName+"-"+uuid();
dialog.open({ dialog.open({
id : "totalInfoMainDialog", id : dialogId,
title : "개별총정보", size : "xxl", content : resp, 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, data : params,
success : (resp) => { success : (resp) => {
let dialogName = "totalInfoMainDialog";
let dialogId = "totalInfoMainDialog"; //dialogName+"-"+uuid();
dialog.open({ dialog.open({
id : "totalInfoMainDialog", id : dialogId,
title : "개별총정보", size : "xxl", content : resp, 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 == "file") url = $P.ctrl.urls.newInfoByFile;
if(type == "hand") url = $P.ctrl.urls.newInfoByHand; if(type == "hand") url = $P.ctrl.urls.newInfoByHand;
var dialogId = ""; let dialogName = "";
if(type == "file") dialogId = "fileDialog"; if(type == "file") dialogName = "fileDialog";
if(type == "hand") dialogId = "manualDialog"; if(type == "hand") dialogName = "manualDialog";
var title = ""; var title = "";
if(type == "file") title = "단속파일 등록"; if(type == "file") title = "단속파일 등록";
if(type == "hand") title = "단속자료 수기 등록"; if(type == "hand") title = "단속자료 수기 등록";
ajax.get({ ajax.get({
url : url, url : url,
data : {}, data : {},
success : (resp) => { success : (resp) => {
let dialogId = dialogName+"-"+uuid();
dialog.open({ dialog.open({
id: dialogId, id: dialogId,
title: title, title: title,
content:resp, content:resp,
size: "xxl", size: "xxl",
init:() => {} init:() => {
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
}
}); });
} }
}); });

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

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

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

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

@ -440,11 +440,16 @@ $(document).ready(function(){
url : $P.ctrl.urls.getInfo, url : $P.ctrl.urls.getInfo,
data : params, data : params,
success : (resp) => { success : (resp) => {
let dialogName = "totalInfoMainDialog";
let dialogId = "totalInfoMainDialog"; //dialogName+"-"+uuid();
dialog.open({ dialog.open({
id : "totalInfoMainDialog", id : dialogId,
title : "개별총정보", size : "xxl", content : resp, 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, data : params,
success : (resp) => { success : (resp) => {
let dialogName = "totalInfoMainDialog";
let dialogId = "totalInfoMainDialog"; //dialogName+"-"+uuid();
dialog.open({ dialog.open({
id : "totalInfoMainDialog", id : dialogId,
title : "개별총정보", size : "xxl", content : resp, 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 : () => { init : () => {
$("#"+dialogId).attr("name", dialogName); $("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}"); $("#"+dialogId).attr("data-ref-doctx","${pageName}");
let refDlgId = $P.refDlgId("seallDmndDialog");
initDatepicker(document.getElementById($P.refDlgId("seallDmndDialog"))); initDatepicker(document.getElementById(refDlgId));
$("#"+$P.refDlgId("seallDmndDialog")).find("[name='rcptYmd']").datepicker('setDate', TODAY()); $("#"+refDlgId).find("[name='rcptYmd']").datepicker('setDate', TODAY());
$("#"+$P.refDlgId("seallDmndDialog")).find("[name='btnCreate']").on("click", () => $P.fnCreateDmnd()); $("#"+refDlgId).find("[name='btnCreate']").on("click", () => $P.fnCreateDmnd());
}, },
onClose : () => {} onClose : () => {}
}); });

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

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

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

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

@ -2,7 +2,7 @@
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<c:set var="pageKorName" scope="request">출력설정</c:set> <c:set var="pageKorName" scope="request">출력설정</c:set>
<span data-doctx="${pageName}">
<div class="d-flex flex-row justify-content-evenly"> <div class="d-flex flex-row justify-content-evenly">
<div class="card p-3"> <div class="card p-3">
<div class="row mb-3 justify-content-start"> <div class="row mb-3 justify-content-start">
@ -251,14 +251,14 @@
<input type="number" name="otptPhotoCnt" class="form-control w-px-50" min="0" max="6" /> 장 <input type="number" name="otptPhotoCnt" class="form-control w-px-50" min="0" max="6" /> 장
</span> </span>
</template> </template>
</span>
<script> <script>
var FIM054 = new CommonCodes(${FIM054}); var FIM054 = new CommonCodes(${FIM054});
var FIM047 = new CommonCodes(${FIM047}); var FIM047 = new CommonCodes(${FIM047});
var FIM078 = new CommonCodes(${FIM078}); var FIM078 = new CommonCodes(${FIM078});
var FIM080 = new CommonCodes(${FIM080}); var FIM080 = new CommonCodes(${FIM080});
pageObject["${pageName}"] = {}; pageObject["${pageName}"] = newDoctxFinder("${pageName}");
$(document).ready(function(){ $(document).ready(function(){

@ -2,7 +2,7 @@
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<c:set var="pageKorName" scope="request">PDF 추출 설정</c:set> <c:set var="pageKorName" scope="request">PDF 추출 설정</c:set>
<span data-doctx="${pageName}">
<div class="d-flex flex-row justify-content-evenly"> <div class="d-flex flex-row justify-content-evenly">
<div class="card p-3"> <div class="card p-3">
<div class="row mb-3 justify-content-start"> <div class="row mb-3 justify-content-start">
@ -165,14 +165,14 @@
<li><a class="dropdown-item" onclick="{onclick}">{DSCRP}</a></li> <li><a class="dropdown-item" onclick="{onclick}">{DSCRP}</a></li>
</template> </template>
</span>
<script> <script>
var FIM054 = new CommonCodes(${FIM054}); var FIM054 = new CommonCodes(${FIM054});
var FIM047 = new CommonCodes(${FIM047}); var FIM047 = new CommonCodes(${FIM047});
var FIM078 = new CommonCodes(${FIM078}); var FIM078 = new CommonCodes(${FIM078});
var FIM080 = new CommonCodes(${FIM080}); var FIM080 = new CommonCodes(${FIM080});
pageObject["${pageName}"] = {}; pageObject["${pageName}"] = newDoctxFinder("${pageName}");
$(document).ready(function(){ $(document).ready(function(){

@ -2,7 +2,7 @@
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<c:set var="pageKorName" scope="request">외주요청파일 서식 설정</c:set> <c:set var="pageKorName" scope="request">외주요청파일 서식 설정</c:set>
<span data-doctx="${pageName}">
<div class="d-flex flex-row justify-content-evenly"> <div class="d-flex flex-row justify-content-evenly">
<div class="card p-3"> <div class="card p-3">
<div class="row mb-3 justify-content-start"> <div class="row mb-3 justify-content-start">
@ -131,7 +131,7 @@
<td class="dummy-td"></td> <td class="dummy-td"></td>
</tr> </tr>
</template> </template>
</span>
<script> <script>
var FIM054 = new CommonCodes(${FIM054}); var FIM054 = new CommonCodes(${FIM054});
@ -139,7 +139,7 @@ var FIM047 = new CommonCodes(${FIM047});
var FIM078 = new CommonCodes(${FIM078}); var FIM078 = new CommonCodes(${FIM078});
var FIM080 = new CommonCodes(${FIM080}); var FIM080 = new CommonCodes(${FIM080});
pageObject["${pageName}"] = {}; pageObject["${pageName}"] = newDoctxFinder("${pageName}");
$(document).ready(function(){ $(document).ready(function(){

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

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

Loading…
Cancel
Save