시군구 설정 화면 수정

main
이범준 3 months ago
parent 66ddb71497
commit daf7f3f71a

@ -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"%>
<c:set var="pageKorName" scope="request">공지사항 관리</c:set> <c:set var="pageKorName" scope="request">공지사항 관리</c:set>
<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">
<div class="card wrapper-list"> <div class="card wrapper-list">
@ -109,7 +109,7 @@
/************************************************************************** /**************************************************************************
* Global Variable * Global Variable
**************************************************************************/ **************************************************************************/
pageObject["${pageName}"] = {}; pageObject["${pageName}"] = newDoctxFinder("${pageName}");
$(document).ready(function(){ $(document).ready(function(){

@ -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"%>
<c:set var="pageKorName" scope="request">공지사항 상세</c:set> <c:set var="pageKorName" scope="request">공지사항 상세</c:set>
<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">
<div class="card"> <div class="card">
@ -62,7 +62,7 @@
</div> </div>
<script> <script>
pageObject["${pageName}"] = {}; pageObject["${pageName}"] = newDoctxFinder("${pageName}");
pageObject["${pageName}"].provided = {}; pageObject["${pageName}"].provided = {};
pageObject.childReq = []; pageObject.childReq = [];

@ -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>
<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">
<div class="card wrapper-list"> <div class="card wrapper-list">
<div id="calendar--${pageName}" class="m-4 px-4 w-px-1500 h-px-700"> <div id="calendar--${pageName}" class="m-4 px-4 w-px-1500 h-px-700">
@ -17,7 +17,7 @@
<script> <script>
LoadScript("fullCalendarScript","/webjars/3rd-party/sneat/libs/fullcalendar/fullcalendar.js"); LoadScript("fullCalendarScript","/webjars/3rd-party/sneat/libs/fullcalendar/fullcalendar.js");
pageObject["${pageName}"] = {}; pageObject["${pageName}"] = newDoctxFinder("${pageName}");
$(document).ready(function(){ $(document).ready(function(){

@ -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"%>
<c:set var="pageKorName" scope="request">일정 상세</c:set> <c:set var="pageKorName" scope="request">일정 상세</c:set>
<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">
<div class="card"> <div class="card">
@ -57,7 +57,7 @@
</div> </div>
</div> </div>
<script> <script>
pageObject["${pageName}"] = {}; pageObject["${pageName}"] = newDoctxFinder("${pageName}");
pageObject["${pageName}"].provided = {}; pageObject["${pageName}"].provided = {};
pageObject.childReq = []; pageObject.childReq = [];

@ -1,17 +1,17 @@
<%@ 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"%>
<c:set var="pageKorName" scope="request">시군구관리</c:set> <c:set var="pageKorName" scope="request">시군구관리</c:set>
<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">
<div class="card wrapper-list"> <div class="card wrapper-list">
<form id="mainForm--${pageName}" method="post" enctype="multipart/form-data"> <form name="mainForm" method="post" enctype="multipart/form-data">
<div class="card my-2"> <div class="card my-2">
<div class="mx-3 my-2 d-block"> <div class="mx-3 my-2 d-block">
<span class="h3"> <span class="h3">
시군구 정보 시군구 정보
</span> </span>
<span> <span>
<button type="button" id="btnSaveSgg--${pageName}" class="btn btn-primary w-px-100 float-end">저장</button> <button type="button" name="btnSaveSgg" class="btn btn-primary w-px-100 float-end">저장</button>
</span> </span>
</div> </div>
@ -30,25 +30,28 @@
<label class="w-px-140 col-form-label text-sm-end pe-2"> <label class="w-px-140 col-form-label text-sm-end pe-2">
직인 직인
</label> </label>
<img id="offcsImage--${pageName}" alt="" src="" data-orgn-path="" data-orgn-name="" <img name="offcsImage"
alt="" src="" data-orgn-path="" data-orgn-name=""
class="mw-px-100 mh-px-100 fit-contain" /> class="mw-px-100 mh-px-100 fit-contain" />
<input id="offcs--${pageName}" name="offcs" type="file" hidden /> <input type="file" name="offcs" hidden />
</div> </div>
<div class="col-md-4 d-flex align-items-center"> <div class="col-md-4 d-flex align-items-center">
<label class="w-px-140 col-form-label text-sm-end pe-2"> <label class="w-px-140 col-form-label text-sm-end pe-2">
심볼 심볼
</label> </label>
<img id="symbolImage--${pageName}" alt="" src="" data-orgn-path="" data-orgn-name="" <img name="symbolImage"
alt="" src="" data-orgn-path="" data-orgn-name=""
class="mw-px-100 mh-px-100 fit-contain" /> class="mw-px-100 mh-px-100 fit-contain" />
<input id="symbol--${pageName}" name="symbol" type="file" hidden /> <input type="file" name="symbol" hidden />
</div> </div>
<div class="col-md-4 d-flex align-items-center"> <div class="col-md-4 d-flex align-items-center">
<label class="w-px-140 col-form-label text-sm-end pe-2"> <label class="w-px-140 col-form-label text-sm-end pe-2">
로고 로고
</label> </label>
<img id="logoImage--${pageName}" alt="" src="" data-orgn-path="" data-orgn-name="" <img name="logoImage"
alt="" src="" data-orgn-path="" data-orgn-name=""
class="mw-px-100 mh-px-100 fit-contain" /> class="mw-px-100 mh-px-100 fit-contain" />
<input id="logo--${pageName}" name="logo" type="file" hidden /> <input type="file" name="logo" hidden />
</div> </div>
</div> </div>
</div> </div>
@ -63,172 +66,173 @@
</div> </div>
<div class="nav-align-top my-2 mx-2 flex-row"> <div class="nav-align-top my-2 mx-2 flex-row">
<ul class="nav nav-tabs" role="tablist" id="tabButtonContainer--${pageName}"> <ul class="nav nav-tabs" role="tablist" name="tabButtonContainer">
</ul> </ul>
<button type="button" id="btnOpenSelectTaskDialog--${pageName}" <button type="button" name="btnOpenSelectTaskDialog"
class="btn btn-darkgray ms-1 superadmin">+ 새 과태료업무 추가</button> class="btn btn-darkgray ms-1 superadmin">+ 새 과태료업무 추가</button>
</div> </div>
<span class="tab-content" id="tabContentContainer--${pageName}"> <span class="tab-content" name="tabContentContainer">
</span> </span>
</div> </div>
</div> </div>
</div> </div>
</div>
<template id="taskTabButtonTemplate--${pageName}">
<li class="nav-item">
<button type="button" class="nav-link {active} w-px-150"
role="tab" data-bs-toggle="tab" data-bs-target="#tab{task}--${pageName}"
onclick="">
{taskNm}
</button>
</li>
</template>
<template id="taskTabContentsTemplate--${pageName}">
<span id="tab{task}--${pageName}" class="tab-pane {activeshow}" role="tabpanel">
<div class="mx-3 my-2 d-flex flex-column">
<div class="float-end">
<button type="button" data-task="{task}"
onclick="pageObject['${pageName}'].fnSaveForTask(this);"
class="btn btn-primary w-px-100 float-end"
>저장</button>
</div>
</div>
<form id="{task}Form--${pageName}"> <template name="taskTabButtonTemplate">
<div class="row g-3 mt-1 mb-3"> <li class="nav-item">
<div class="col-md-3"> <button type="button" class="nav-link {active} w-px-150"
<label class="w-px-140 col-form-label text-sm-end" for="">업무명</label> role="tab" data-bs-toggle="tab" data-bs-target="[data-doctx='${pageName}'] [name='tab{task}']"
<input name="taskSeNm" type="text" class="form-control w-px-150" /> onclick="">
</div> {taskNm}
<div class="col-md-3"> </button>
<label class="w-px-140 col-form-label text-sm-end" for="">사전통지일수</label> </li>
<input name="advntceDayCnt" type="text" class="form-control w-px-50" /> </template>
</div>
<div class="col-md-3"> <template name="taskTabContentsTemplate">
<label class="w-px-140 col-form-label text-sm-end" for="">사전통지감경율</label>
<input name="advntceRdcrt" type="text" class="form-control w-px-50" /> <span name="tab{task}" class="tab-pane {activeshow}" role="tabpanel">
</div> <div class="mx-3 my-2 d-flex flex-column">
<div class="col-md-3"> <div class="float-end">
<label class="w-px-140 col-form-label text-sm-end" for="">사회적약자감경율</label> <button type="button" data-task="{task}"
<input name="wksnRdcrt" type="text" class="form-control w-px-50" /> onclick="pageObject['${pageName}'].fnSaveForTask(this);"
</div> class="btn btn-primary w-px-100 float-end"
<div class="col-md-3"> >저장</button>
<label class="w-px-140 col-form-label text-sm-end" for="">과태료가산일자</label>
<input name="ffnlgAdtnYmd" type="text" class="form-control w-px-100" />
</div>
<div class="col-md-3">
<label class="w-px-140 col-form-label text-sm-end" for="">과태료가산율</label>
<input name="ffnlgAdtnRt" type="text" class="form-control w-px-50" />
</div>
<div class="col-md-3">
<label class="w-px-140 col-form-label text-sm-end" for="">과태료중가산율</label>
<input name="ffnlgInadtnRt" type="text" class="form-control w-px-50" />
</div>
<div class="col-md-3">
<label class="w-px-140 col-form-label text-sm-end" for="">과태료중가산최대수</label>
<input name="ffnlgInadtnMxmmCnt" type="text" class="form-control w-px-50" />
</div> </div>
</div> </div>
<div class="row g-3 mt-1 mb-3 superadmin">
<div class="col-md-3"> <form name="{task}Form">
<label class="w-px-140 col-form-label text-sm-end text-red" for="">세외수입연계<br/>구분코드</label> <div class="row g-3 mt-1 mb-3">
<input name="nxrpLinkSeCd" type="text" class="form-control w-px-50" /> <div class="col-md-3">
<label class="w-px-140 col-form-label text-sm-end" for="">업무명</label>
<input name="taskSeNm" type="text" class="form-control w-px-150" />
</div>
<div class="col-md-3">
<label class="w-px-140 col-form-label text-sm-end" for="">사전통지일수</label>
<input name="advntceDayCnt" type="text" class="form-control w-px-50" />
</div>
<div class="col-md-3">
<label class="w-px-140 col-form-label text-sm-end" for="">사전통지감경율</label>
<input name="advntceRdcrt" type="text" class="form-control w-px-50" />
</div>
<div class="col-md-3">
<label class="w-px-140 col-form-label text-sm-end" for="">사회적약자감경율</label>
<input name="wksnRdcrt" type="text" class="form-control w-px-50" />
</div>
<div class="col-md-3">
<label class="w-px-140 col-form-label text-sm-end" for="">과태료가산일자</label>
<input name="ffnlgAdtnYmd" type="text" class="form-control w-px-100" />
</div>
<div class="col-md-3">
<label class="w-px-140 col-form-label text-sm-end" for="">과태료가산율</label>
<input name="ffnlgAdtnRt" type="text" class="form-control w-px-50" />
</div>
<div class="col-md-3">
<label class="w-px-140 col-form-label text-sm-end" for="">과태료중가산율</label>
<input name="ffnlgInadtnRt" type="text" class="form-control w-px-50" />
</div>
<div class="col-md-3">
<label class="w-px-140 col-form-label text-sm-end" for="">과태료중가산최대수</label>
<input name="ffnlgInadtnMxmmCnt" type="text" class="form-control w-px-50" />
</div>
</div> </div>
<div class="col-md-3"> <div class="row g-3 mt-1 mb-3 superadmin">
<label class="w-px-140 col-form-label text-sm-end text-red" for="">세외수입연계<br/>구분상세순번</label> <div class="col-md-3">
<input name="nxrpLinkSeDtlSn" type="text" class="form-control w-px-50" /> <label class="w-px-140 col-form-label text-sm-end text-red" for="">세외수입연계<br/>구분코드</label>
<input name="nxrpLinkSeCd" type="text" class="form-control w-px-50" />
</div>
<div class="col-md-3">
<label class="w-px-140 col-form-label text-sm-end text-red" for="">세외수입연계<br/>구분상세순번</label>
<input name="nxrpLinkSeDtlSn" type="text" class="form-control w-px-50" />
</div>
<div class="col-md-6"></div>
</div> </div>
<div class="col-md-6"></div> </form>
</div>
</form> <div class="card-datatable text-nowrap area-photoinspection mx-2 mt-2 mb-3">
<div name="{task}Table_0_wrapper" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div class="card-datatable text-nowrap area-photoinspection mx-2 mt-2 mb-3"> <div name="{task}table-responsive" class="table-responsive ox-scroll oy-scroll h-px-300">
<div id="{task}Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <table name="{task}Table_0"
<div id="{task}table-responsive--${pageName}" class="table-responsive ox-scroll oy-scroll h-px-300"> class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<table id="{task}Table_0--${pageName}" <thead class="sticky-thead">
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer"> <tr>
<thead class="sticky-thead"> <th style="width: 90px;">위반코드</th>
<tr> <th style="width: 160px;">위반항목</th>
<th style="width: 90px;">위반코드</th> <th style="width: 360px;">위반법명</th>
<th style="width: 160px;">위반항목</th> <th style="width: 160px;">위반법1</th>
<th style="width: 360px;">위반법명</th> <th style="width: 160px;">위반법2</th>
<th style="width: 160px;">위반법1</th> <th style="width: 160px;">위반법기타</th>
<th style="width: 160px;">위반법2</th> <th style="width: 120px;">회계구분코드</th>
<th style="width: 160px;">위반법기타</th> <th style="width: 120px;">회계구분명</th>
<th style="width: 120px;">회계구분코드</th> <th style="width: 120px;">세목코드</th>
<th style="width: 120px;">회계구분명</th> <th style="width: 300px;">세목명</th>
<th style="width: 120px;">세목코드</th> <th style="width: 120px;">운영항목코드</th>
<th style="width: 300px;">세목명</th> <th style="width: 300px;">운영항목명</th>
<th style="width: 120px;">운영항목코드</th> <th style="width: 160px;">특별회계사업코드</th>
<th style="width: 300px;">운영항목명</th> <th style="width: 300px;">특별회계사업명</th>
<th style="width: 160px;">특별회계사업코드</th> <th class="dummy-th"></th>
<th style="width: 300px;">특별회계사업명</th> </tr>
<th class="dummy-th"></th> </thead>
</tr> <tbody name="{task}tbody"></tbody>
</thead> </table>
<tbody id="{task}tbody--${pageName}"></tbody> </div>
</table>
</div> </div>
</div> </div>
</div>
</span> </span>
</template> </template>
<template id="taskTbodyTemplate--${pageName}"> <template name="taskTbodyTemplate">
<tr data-key="{VLTN_ID}"> <tr data-key="{VLTN_ID}">
<td>{VLTN_CD}</td> <td>{VLTN_CD}</td>
<td data-col="vltnArtcl"> <td data-col="vltnArtcl">
<input type="text" class="form-control w-100" value="{VLTN_ARTCL}" /> <input type="text" class="form-control w-100" value="{VLTN_ARTCL}" />
</td> </td>
<td data-col="vltnLawNm"> <td data-col="vltnLawNm">
<input type="text" class="form-control w-100" value="{VLTN_LAW_NM}" /> <input type="text" class="form-control w-100" value="{VLTN_LAW_NM}" />
</td> </td>
<td data-col="vltnLaw1"> <td data-col="vltnLaw1">
<input type="text" class="form-control w-100" value="{VLTN_LAW1}" /> <input type="text" class="form-control w-100" value="{VLTN_LAW1}" />
</td> </td>
<td data-col="vltnLaw2"> <td data-col="vltnLaw2">
<input type="text" class="form-control w-100" value="{VLTN_LAW2}" /> <input type="text" class="form-control w-100" value="{VLTN_LAW2}" />
</td> </td>
<td data-col="vltnLawEtc"> <td data-col="vltnLawEtc">
<input type="text" class="form-control w-100" value="{VLTN_LAW_ETC}" /> <input type="text" class="form-control w-100" value="{VLTN_LAW_ETC}" />
</td> </td>
<td data-col="acntgSeCd"> <td data-col="acntgSeCd">
<input type="text" class="form-control w-100" value="{ACNTG_SE_CD}" /> <input type="text" class="form-control w-100" value="{ACNTG_SE_CD}" />
</td> </td>
<td data-col="acntgSeNm"> <td data-col="acntgSeNm">
<input type="text" class="form-control w-100" value="{ACNTG_SE_NM}" /> <input type="text" class="form-control w-100" value="{ACNTG_SE_NM}" />
</td> </td>
<td data-col="txitmCd"> <td data-col="txitmCd">
<input type="text" class="form-control w-100" value="{TXITM_CD}" /> <input type="text" class="form-control w-100" value="{TXITM_CD}" />
</td> </td>
<td data-col="txitmNm"> <td data-col="txitmNm">
<input type="text" class="form-control w-100" value="{TXITM_NM}" /> <input type="text" class="form-control w-100" value="{TXITM_NM}" />
</td> </td>
<td data-col="operItemCd"> <td data-col="operItemCd">
<input type="text" class="form-control w-100" value="{OPER_ITEM_CD}" /> <input type="text" class="form-control w-100" value="{OPER_ITEM_CD}" />
</td> </td>
<td data-col="operItemNm"> <td data-col="operItemNm">
<input type="text" class="form-control w-100" value="{OPER_ITEM_NM}" /> <input type="text" class="form-control w-100" value="{OPER_ITEM_NM}" />
</td> </td>
<td data-col="spclBizCd"> <td data-col="spclBizCd">
<input type="text" class="form-control w-100" value="{SPCL_BIZ_CD}" /> <input type="text" class="form-control w-100" value="{SPCL_BIZ_CD}" />
</td> </td>
<td data-col="spclBizNm"> <td data-col="spclBizNm">
<input type="text" class="form-control w-100" value="{SPCL_BIZ_NM}" /> <input type="text" class="form-control w-100" value="{SPCL_BIZ_NM}" />
</td> </td>
</tr> </tr>
</template> </template>
</div>
<script> <script>
pageObject["${pageName}"] = {}; pageObject["${pageName}"] = newDoctxFinder("${pageName}");
$(document).ready(function(){ $(document).ready(function(){
@ -265,28 +269,28 @@ $(document).ready(function(){
success : function(resp, textStatus, jqXHR) { success : function(resp, textStatus, jqXHR) {
$P.sggInfo = resp.sggInfo; $P.sggInfo = resp.sggInfo;
$("#mainForm--${pageName}").find("[name='sggID']").val($P.sggInfo.SGG_CD); $P.$find("mainForm").find("[name='sggID']").val($P.sggInfo.SGG_CD);
$("#mainForm--${pageName}").find("[name='sggNm']").val($P.sggInfo.SGG_NM); $P.$find("mainForm").find("[name='sggNm']").val($P.sggInfo.SGG_NM);
$("#mainForm--${pageName}").find("[name='instCd']").val($P.sggInfo.INST_CD); $P.$find("mainForm").find("[name='instCd']").val($P.sggInfo.INST_CD);
$("#mainForm--${pageName}").find("[name='instNm']").val($P.sggInfo.INST_NM); $P.$find("mainForm").find("[name='instNm']").val($P.sggInfo.INST_NM);
$("#offcsImage--${pageName}") $P.$find("offcsImage")
.attr("data-orgn-name", $P.sggInfo.OFFCS_FILE_NM) .attr("data-orgn-name", $P.sggInfo.OFFCS_FILE_NM)
.attr("data-orgn-path", $P.sggInfo.OFFCS_FILE_PATH); .attr("data-orgn-path", $P.sggInfo.OFFCS_FILE_PATH);
$("#offcs--${pageName}").val(""); $P.$find("offcs").val("");
$("#offcs--${pageName}").trigger("change"); $P.$find("offcs").trigger("change");
$("#symbolImage--${pageName}") $P.$find("symbolImage")
.attr("data-orgn-name", $P.sggInfo.SYMBOL_FILE_NM) .attr("data-orgn-name", $P.sggInfo.SYMBOL_FILE_NM)
.attr("data-orgn-path", $P.sggInfo.SYMBOL_FILE_PATH); .attr("data-orgn-path", $P.sggInfo.SYMBOL_FILE_PATH);
$("#symbol--${pageName}").val(""); $P.$find("symbol").val("");
$("#symbol--${pageName}").trigger("change"); $P.$find("symbol").trigger("change");
$("#logoImage--${pageName}") $P.$find("logoImage")
.attr("data-orgn-name", $P.sggInfo.LOGO_FILE_NM) .attr("data-orgn-name", $P.sggInfo.LOGO_FILE_NM)
.attr("data-orgn-path", $P.sggInfo.LOGO_FILE_PATH); .attr("data-orgn-path", $P.sggInfo.LOGO_FILE_PATH);
$("#logo--${pageName}").val(""); $P.$find("logo").val("");
$("#logo--${pageName}").trigger("change"); $P.$find("logo").trigger("change");
resolve({resp, textStatus, jqXHR}); resolve({resp, textStatus, jqXHR});
}, },
@ -315,8 +319,8 @@ $(document).ready(function(){
var taskSeCd = task.TASK_SE_CD; var taskSeCd = task.TASK_SE_CD;
var taskSeNm = task.TASK_SE_NM; var taskSeNm = task.TASK_SE_NM;
var tabButtonTemplate = document.getElementById("taskTabButtonTemplate--${pageName}").innerHTML; var tabButtonTemplate = $P.find("taskTabButtonTemplate").innerHTML;
var tabContentsTemplate = document.getElementById("taskTabContentsTemplate--${pageName}").innerHTML; var tabContentsTemplate = $P.find("taskTabContentsTemplate").innerHTML;
tabButtonTemplate = tabButtonTemplate.replace(/{task}/gi, taskSeCd); tabButtonTemplate = tabButtonTemplate.replace(/{task}/gi, taskSeCd);
tabButtonTemplate = tabButtonTemplate.replace(/{taskNm}/gi, taskSeNm); tabButtonTemplate = tabButtonTemplate.replace(/{taskNm}/gi, taskSeNm);
@ -337,8 +341,8 @@ $(document).ready(function(){
contents.push(tabContentsTemplate); contents.push(tabContentsTemplate);
} }
$("#tabButtonContainer--${pageName}").html(tabs.join("")); $P.$find("tabButtonContainer").html(tabs.join(""));
$("#tabContentContainer--${pageName}").html(contents.join("")); $P.$find("tabContentContainer").html(contents.join(""));
if(MY_INFO.institute != "ADMIN00"){ if(MY_INFO.institute != "ADMIN00"){
$(".superadmin").attr("hidden","hidden"); $(".superadmin").attr("hidden","hidden");
@ -348,17 +352,19 @@ $(document).ready(function(){
var task = $P.taskList[i]; var task = $P.taskList[i];
var taskSeCd = task.TASK_SE_CD; var taskSeCd = task.TASK_SE_CD;
var taskSeNm = task.TASK_SE_NM; var taskSeNm = task.TASK_SE_NM;
$("#"+taskSeCd+"Form--${pageName}").find("[name='taskSeNm']").val(taskSeNm); let formName = taskSeCd+"Form";
$("#"+taskSeCd+"Form--${pageName}").find("[name='advntceDayCnt']").val(task.ADVNTCE_DAY_CNT);
$("#"+taskSeCd+"Form--${pageName}").find("[name='advntceRdcrt']").val(task.ADVNTCE_RDCRT); $P.$find(formName).find("[name='taskSeNm']").val(taskSeNm);
$("#"+taskSeCd+"Form--${pageName}").find("[name='wksnRdcrt']").val(task.WKSN_RDCRT); $P.$find(formName).find("[name='advntceDayCnt']").val(task.ADVNTCE_DAY_CNT);
$("#"+taskSeCd+"Form--${pageName}").find("[name='ffnlgAdtnYmd']").val(task.FFNLG_ADTN_YMD); $P.$find(formName).find("[name='advntceRdcrt']").val(task.ADVNTCE_RDCRT);
$("#"+taskSeCd+"Form--${pageName}").find("[name='ffnlgAdtnRt']").val(task.FFNLG_ADTN_RT); $P.$find(formName).find("[name='wksnRdcrt']").val(task.WKSN_RDCRT);
$("#"+taskSeCd+"Form--${pageName}").find("[name='ffnlgInadtnRt']").val(task.FFNLG_INADTN_RT); $P.$find(formName).find("[name='ffnlgAdtnYmd']").val(task.FFNLG_ADTN_YMD);
$("#"+taskSeCd+"Form--${pageName}").find("[name='ffnlgInadtnMaxCnt']").val(task.FFNLG_INADTN_MAX_CNT); $P.$find(formName).find("[name='ffnlgAdtnRt']").val(task.FFNLG_ADTN_RT);
$P.$find(formName).find("[name='ffnlgInadtnRt']").val(task.FFNLG_INADTN_RT);
$("#"+taskSeCd+"Form--${pageName}").find("[name='nxrpLinkSeCd']").val(task.NXRP_LINK_SE_CD); $P.$find(formName).find("[name='ffnlgInadtnMaxCnt']").val(task.FFNLG_INADTN_MAX_CNT);
$("#"+taskSeCd+"Form--${pageName}").find("[name='nxrpLinkSeDtlSn']").val(task.NXRP_LINK_SE_DTL_SN);
$P.$find(formName).find("[name='nxrpLinkSeCd']").val(task.NXRP_LINK_SE_CD);
$P.$find(formName).find("[name='nxrpLinkSeDtlSn']").val(task.NXRP_LINK_SE_DTL_SN);
} }
resolve({resp, textStatus, jqXHR}); resolve({resp, textStatus, jqXHR});
@ -387,10 +393,10 @@ $(document).ready(function(){
for(var i=0; i < datasetNames.length; i++){ for(var i=0; i < datasetNames.length; i++){
var taskSeCd = datasetNames[i].substr(0,3); var taskSeCd = datasetNames[i].substr(0,3);
var template = document.getElementById("taskTbodyTemplate--${pageName}").innerHTML; var template = $P.find("taskTbodyTemplate").innerHTML;
var taskDataset = $P.taskDatasets[taskSeCd+"Dataset"]; var taskDataset = $P.taskDatasets[taskSeCd+"Dataset"];
var trs = taskDataset.empty ? [""] : taskDataset.inStrings(template); var trs = taskDataset.empty ? [""] : taskDataset.inStrings(template);
$("#"+taskSeCd+"tbody--${pageName}").html(trs.join()); $P.$find(taskSeCd+"tbody").html(trs.join());
} }
resolve({resp, textStatus, jqXHR}); resolve({resp, textStatus, jqXHR});
@ -402,14 +408,14 @@ $(document).ready(function(){
}; };
//이미지 뷰어 //이미지 뷰어
fnMakeSingleImageViewer($("#offcsImage--${pageName}")[0] , $("#offcs--${pageName}")[0], "orgn-path", "orgn-name"); fnMakeSingleImageViewer($P.find("offcsImage"), $P.find("offcs"), "orgn-path", "orgn-name");
fnMakeSingleImageViewer($("#symbolImage--${pageName}")[0] , $("#symbol--${pageName}")[0], "orgn-path", "orgn-name"); fnMakeSingleImageViewer($P.find("symbolImage"), $P.find("symbol"), "orgn-path", "orgn-name");
fnMakeSingleImageViewer($("#logoImage--${pageName}")[0] , $("#logo--${pageName}")[0], "orgn-path", "orgn-name"); fnMakeSingleImageViewer($P.find("logoImage"), $P.find("logo"), "orgn-path", "orgn-name");
//시군구 기본 설정 저장 버튼 //시군구 기본 설정 저장 버튼
$("#btnSaveSgg--${pageName}").on("click", function(){ $P.$find("btnSaveSgg").on("click", function(){
var formData = new FormData($("#mainForm--${pageName}")[0]); var formData = new FormData($P.find("mainForm"));
ajax.post({ ajax.post({
url: wctx.url("/ogdp/updateSggStng.do"), url: wctx.url("/ogdp/updateSggStng.do"),
@ -431,14 +437,14 @@ $(document).ready(function(){
}); });
//업무 추가 버튼 //업무 추가 버튼
$("#btnOpenSelectTaskDialog--${pageName}").on("click", function(){ $P.$find("btnOpenSelectTaskDialog").on("click", function(){
$("#selectTaskButtons").html(""); $("#selectTaskButtons").html("");
var keys = Object.keys(ALL_TASK); var keys = Object.keys(ALL_TASK);
var ableKeys = []; var ableKeys = [];
for(var i=0; i < keys.length; i++){ for(var i=0; i < keys.length; i++){
if($("#tabContentContainer--${pageName}").find("#tab"+keys[i]+"--${pageName}").length < 1){ if($P.$find("tabContentContainer").find("[name='tab"+keys[i]+"']").length < 1){
ableKeys.push(keys[i]); ableKeys.push(keys[i]);
} }
} }
@ -471,7 +477,7 @@ $(document).ready(function(){
ajax.post({ ajax.post({
url: wctx.url("/ogdp/createTaskStng.do"), url: wctx.url("/ogdp/createTaskStng.do"),
data: { data: {
sggCd : $("#mainForm--${pageName}").find("[name='sggID']").val(), sggCd : $P.$find("mainForm").find("[name='sggID']").val(),
taskSeCd : taskSeCd taskSeCd : taskSeCd
}, },
success: (resp) => { success: (resp) => {
@ -491,13 +497,13 @@ $(document).ready(function(){
$P.fnSaveForTask = (el) => { $P.fnSaveForTask = (el) => {
var taskSeCd = el.dataset.task; var taskSeCd = el.dataset.task;
var sggCd = $("#mainForm--${pageName}").find("[name='sggID']").val(); var sggCd = $P.$find("mainForm").find("[name='sggID']").val();
var formData = new FormData($("#"+taskSeCd+"Form--${pageName}")[0]); var formData = new FormData($P.find(taskSeCd+"Form"));
formData.append("taskSeCd",taskSeCd); formData.append("taskSeCd",taskSeCd);
formData.append("sggCd", sggCd); formData.append("sggCd", sggCd);
var rowArr = $P.getRowData(taskSeCd+"tbody--${pageName}", formData); var rowArr = $P.getRowData(taskSeCd+"tbody", formData);
var vltnStngList = fnJsonArrayToFormData(rowArr,"vltnStngList"); var vltnStngList = fnJsonArrayToFormData(rowArr,"vltnStngList");
var keys = Object.keys(vltnStngList); var keys = Object.keys(vltnStngList);
@ -525,9 +531,9 @@ $(document).ready(function(){
}; };
$P.getRowData = (tbodyId, formData) => { $P.getRowData = (tbodyName, formData) => {
var rowArr = []; var rowArr = [];
$("#"+tbodyId+" tr").each(function(){ $P.$find(tbodyName).find("tr").each(function(){
var row = {}; var row = {};
row.vltnId = this.dataset.key; row.vltnId = this.dataset.key;

@ -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"%>
<c:set var="pageKorName" scope="request">부서관리</c:set> <c:set var="pageKorName" scope="request">부서관리</c:set>
<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">
<div class="card wrapper-list"> <div class="card wrapper-list">
@ -139,7 +139,7 @@
/************************************************************************** /**************************************************************************
* Global Variable * Global Variable
**************************************************************************/ **************************************************************************/
pageObject["${pageName}"] = {}; pageObject["${pageName}"] = newDoctxFinder("${pageName}");
$(document).ready(function(){ $(document).ready(function(){

@ -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"%>
<c:set var="pageKorName" scope="request">부서 정보</c:set> <c:set var="pageKorName" scope="request">부서 정보</c:set>
<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">
<div class="card"> <div class="card">
@ -260,7 +260,7 @@
</div> </div>
<script> <script>
pageObject["${pageName}"] = {}; pageObject["${pageName}"] = newDoctxFinder("${pageName}");
pageObject["${pageName}"].provided = {}; pageObject["${pageName}"].provided = {};
pageObject.childReq = []; pageObject.childReq = [];

Loading…
Cancel
Save