|
|
|
@ -22,8 +22,8 @@
|
|
|
|
|
<form id="frmSearch--${pageName}" name="frmSearch">
|
|
|
|
|
<div class="container-search">
|
|
|
|
|
<div class="row g-1">
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<span class="form-label fw-bold form-search-title">업무구분</span>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<span class="form-label fw-bold form-search-title w-px-120 text-end">업무구분</span>
|
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
|
<c:forEach items="${TaskListForSgg}" var="item">
|
|
|
|
|
<label>
|
|
|
|
@ -36,62 +36,73 @@
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<span class="form-label fw-bold form-search-title">접수일자</span>
|
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schCvlcptRcptYmdFrom--${pageName}">접수일자</label>
|
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
|
<input type="text" id="schCvlcptRcptYmdFrom--${pageName}" name="schCvlcptRcptYmdFrom"
|
|
|
|
|
<input type="text" id="schCvlcptRcptYmdFrom--${pageName}" name="schCvlcptRcptYmdFrom"
|
|
|
|
|
class="form-control form-date"
|
|
|
|
|
data-fmt-type="day" title="시작 날짜 선택" />
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
~
|
|
|
|
|
<input type="text" id="schCvlcptRcptYmdTo--${pageName}" name="schCvlcptRcptYmdTo"
|
|
|
|
|
<input type="text" id="schCvlcptRcptYmdTo--${pageName}" name="schCvlcptRcptYmdTo"
|
|
|
|
|
class="form-control form-date"
|
|
|
|
|
data-fmt-type="day" title="종료 날짜 선택">
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<button type="button"
|
|
|
|
|
onclick="$('#cvlcptPrcsPicNm--${pageName}').val('${currentUserName}');">
|
|
|
|
|
담당자명 지정
|
|
|
|
|
<button type="button" class="w-px-120" onclick="$('#cvlcptPrcsPicNm--${pageName}').val('${currentUserName}');">
|
|
|
|
|
담당자명 지정
|
|
|
|
|
</button>
|
|
|
|
|
<input type="text" id="cvlcptPrcsPicNm--${pageName}" name="cvlcptPrcsPicNm"
|
|
|
|
|
<input type="text" id="cvlcptPrcsPicNm--${pageName}" name="cvlcptPrcsPicNm"
|
|
|
|
|
class="form-control" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<input type="hidden" id="by--${pageName}" name="by" />
|
|
|
|
|
<input type="text" id="byOutput--${pageName}" class="form-control" readonly value="동적 검색" />
|
|
|
|
|
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schCvlcptPrcsPrnmntDtFrom--${pageName}">처리기한</label>
|
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
|
<input type="text" id="schCvlcptPrcsPrnmntDtFrom--${pageName}" name="schCvlcptPrcsPrnmntDtFrom"
|
|
|
|
|
class="form-control form-date"
|
|
|
|
|
data-fmt-type="day" title="시작 날짜 선택" />
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
~
|
|
|
|
|
<input type="text" id="schCvlcptPrcsPrnmntDtTo--${pageName}" name="schCvlcptPrcsPrnmntDtTo"
|
|
|
|
|
class="form-control form-date"
|
|
|
|
|
data-fmt-type="day" title="종료 날짜 선택">
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<input type="hidden" id="by--${pageName}" name="by" />
|
|
|
|
|
<input type="text" class="form-control fw-bold w-px-120 text-end" id="byOutput--${pageName}" value="동적 검색" readonly />
|
|
|
|
|
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
|
|
|
|
|
<input type="hidden" id="subOption--${pageName}" name="subOption" />
|
|
|
|
|
<input type="text" id="term--${pageName}" name="term" class="form-control" />
|
|
|
|
|
<input type="text" class="form-control w-px-400" id="term--${pageName}" name="term" autocomplete="off" />
|
|
|
|
|
<!-- 상세 검색조건 버튼 -->
|
|
|
|
|
<span class="flr">
|
|
|
|
|
<button type="button" class="btn btn-open-detail"
|
|
|
|
|
data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
|
|
|
|
|
<i class="bx bx-chevron-down"></i>
|
|
|
|
|
상세검색
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
|
|
|
|
|
<i class="bx bx-chevron-down"></i>
|
|
|
|
|
상세검색
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<select id="schDateOpt--${pageName}" name="schDateOpt" class="form-select">
|
|
|
|
|
<option value="regDt">등록일자</option>
|
|
|
|
|
<option value="mdfcnDt">수정일자</option>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
|
<input type="text" id="schDateFrom--${pageName}" name="schDateFrom"
|
|
|
|
|
class="form-control form-date"
|
|
|
|
|
data-fmt-type="day" title="시작 날짜 선택" />
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<select class="form-select w-px-120 text-center" id="schRegDateOpt--${pageName}" name="schRegDateOpt">
|
|
|
|
|
<option value="regDt">등록일자</option>
|
|
|
|
|
<option value="mdfcnDt">수정일자</option>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
|
<input type="text" class="form-control form-date" id="schRegDateFrom--${pageName}" name="schRegDateFrom"
|
|
|
|
|
data-fmt-type="day" title="시작 날짜 선택" />
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
~
|
|
|
|
|
<input type="text" id="schDateTo--${pageName}" name="schDateTo"
|
|
|
|
|
class="form-control form-date"
|
|
|
|
|
<input type="text" class="form-control form-date" id="schRegDateTo--${pageName}" name="schRegDateTo"
|
|
|
|
|
data-fmt-type="day" title="종료 날짜 선택">
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
@ -99,13 +110,13 @@
|
|
|
|
|
<div>
|
|
|
|
|
<span class="container-page-btn">
|
|
|
|
|
<div class="d-flex flex-row justify-content-between">
|
|
|
|
|
<span id="crdnPaging--${pageName}PagingInfo" class="dataTables_info"
|
|
|
|
|
<span id="crdnPaging--${pageName}PagingInfo" class="dataTables_info"
|
|
|
|
|
role="status" aria-live="polite"></span>
|
|
|
|
|
<ul id="crdnPaging--${pageName}" class="pagination pagination-primary">
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
<button type="button" id="btnOpenCvlcptOrgnl--${pageName}" class="btn btn-primary"
|
|
|
|
|
<button type="button" id="btnOpenCvlcptOrgnl--${pageName}" class="btn btn-primary"
|
|
|
|
|
title="민원원본보기">
|
|
|
|
|
민원원본보기
|
|
|
|
|
</button>
|
|
|
|
@ -202,7 +213,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="content-backdrop fade"></div>
|
|
|
|
|
</div>
|
|
|
|
@ -221,23 +232,23 @@ $(document).ready(function(){
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
$P.holdList = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), {
|
|
|
|
|
animation: true,
|
|
|
|
|
autohide: true,
|
|
|
|
|
delay: 2000
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* DatasetControl
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$P.crdnControl = new DatasetControl({
|
|
|
|
|
dataGetter : obj => obj["List"], appendData:true,
|
|
|
|
|
keymapper : info => info ? info.CRDN_ID : "",
|
|
|
|
|
urls : {
|
|
|
|
|
load : "",
|
|
|
|
|
getInfo : "",
|
|
|
|
|
remove : ""
|
|
|
|
|
keymapper : info => info ? info.CRDN_ID : "",
|
|
|
|
|
urls : {
|
|
|
|
|
load : "",
|
|
|
|
|
getInfo : "",
|
|
|
|
|
remove : ""
|
|
|
|
|
},
|
|
|
|
|
formats : {
|
|
|
|
|
CRDN_REG_SE_CD : FIM026,
|
|
|
|
@ -249,12 +260,12 @@ $(document).ready(function(){
|
|
|
|
|
$P.crdnControl.defaultFetchSize = FETCH_XS;
|
|
|
|
|
$P.crdnControl.untilPageNum = 0;
|
|
|
|
|
$P.crdnControl.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* Dataset.on
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$P.crdnControl.dataset.onDatasetChange = (obj) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var t = $P.getGridTemplate();
|
|
|
|
|
var trs = Apply.fromDataset.getTbody($P.crdnControl.dataset, t.found, t.notFound, t.replacer);
|
|
|
|
|
$P.renderCrdnList(obj["Total"], $P.crdnControl.dataset.length, trs);
|
|
|
|
@ -266,14 +277,14 @@ $(document).ready(function(){
|
|
|
|
|
Apply.fromDataset.currentRow($P.crdnControl.dataset, dataItem, $("#crdnTbody--${pageName}")[0]);
|
|
|
|
|
if(!dataItem){
|
|
|
|
|
$("#bottomCrdnPlc--${pageName}").val("");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnOpenCvlcptOrgnl--${pageName}").hide();
|
|
|
|
|
$("#btnDelete--${pageName}").hide();
|
|
|
|
|
$("#btnDeleteSameRcptYmd--${pageName}").hide();
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#bottomCrdnPlc--${pageName}").val(dataItem.data["CRDN_PLC"]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.holdList.includes(dataItem.data["CRDN_ID"])){
|
|
|
|
|
$("#btnOpenCvlcptOrgnl--${pageName}").hide();
|
|
|
|
|
$("#btnDelete--${pageName}").hide();
|
|
|
|
@ -294,18 +305,19 @@ $(document).ready(function(){
|
|
|
|
|
$("#btnOpenCvlcptOrgnl--${pageName}").show();
|
|
|
|
|
$("#btnDelete--${pageName}").show();
|
|
|
|
|
$("#btnDeleteSameRcptYmd--${pageName}").show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var searchForm = $("#frmSearch--${pageName}");
|
|
|
|
|
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
|
|
|
|
|
searchForm.find("input[type='checkbox']").prop("checked", false);
|
|
|
|
|
searchForm.find("input[type='text']").val("");
|
|
|
|
|
searchForm.find("input[type='hidden']").val("");
|
|
|
|
|
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#byOutput--${pageName}").val("동적 검색");
|
|
|
|
|
$("#schRgtrNm--${pageName}").prop("readonly", true); // 사용자 이름
|
|
|
|
|
$('#schCvlcptRcptYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
|
|
|
|
|
$('#schCvlcptRcptYmdTo--${pageName}').datepicker('setDate', TODAY());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.dataset.setData([]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -315,7 +327,7 @@ $(document).ready(function(){
|
|
|
|
|
$P.crdnControl.urls.getInfo = wctx.url("/"+taskSeCd+"/cvlc/cvlc01/020/info.do");
|
|
|
|
|
$P.crdnControl.urls.remove = wctx.url("/"+taskSeCd+"/cvlc/cvlc01/010/remove.do");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.getParams = () => {
|
|
|
|
|
var formFields = new FimsFormFields("#frmSearch--${pageName}");
|
|
|
|
|
var data = formFields.get();
|
|
|
|
@ -323,13 +335,13 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.searchCrdnList = () => {
|
|
|
|
|
$P.holdList = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnDelete--${pageName}").show();
|
|
|
|
|
$("#btnDeleteSameRcptYmd--${pageName}").show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.query = $P.getParams();
|
|
|
|
|
$P.crdnControl.load(1);
|
|
|
|
|
}
|
|
|
|
@ -345,98 +357,98 @@ $(document).ready(function(){
|
|
|
|
|
key : $P.crdnControl.dataset.getCurrent()["CRDN_ID"],
|
|
|
|
|
index : $P.crdnControl.dataset.getCurrent()["ROW_NUM"] - 1
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Apply.fromDatasetControl.load($P.crdnControl, 1).then((resp)=>{
|
|
|
|
|
Apply.toDataset.set($P.crdnControl.dataset, resp);
|
|
|
|
|
$P.crdnControl.dataset.onDatasetChange(resp);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.crdnControl.untilPageNum != 0){
|
|
|
|
|
$P.crdnControl.query.fetchSize = $P.crdnControl.defaultFetchSize;
|
|
|
|
|
$P.crdnControl.query.pageNum = $P.crdnControl.untilPageNum;
|
|
|
|
|
$P.crdnControl.untilPageNum = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.crdnControl.beforeCurrent != null){
|
|
|
|
|
var beforeCurrentKey = $P.crdnControl.beforeCurrent.key;
|
|
|
|
|
var beforeCurrentIndex = $P.crdnControl.beforeCurrent.index;
|
|
|
|
|
$P.crdnControl.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!$P.crdnControl.dataset.empty){
|
|
|
|
|
var info = $P.crdnControl.dataset.getData(beforeCurrentKey);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(info != null){
|
|
|
|
|
$P.crdnControl.dataset.setCurrent(beforeCurrentKey,true);
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(beforeCurrentIndex > ($P.crdnControl.dataset.length - 1)){
|
|
|
|
|
info = $P.crdnControl.dataset.getDataset()[$P.crdnControl.dataset.length - 1];
|
|
|
|
|
} else {
|
|
|
|
|
info = $P.crdnControl.dataset.getDataset()[beforeCurrentIndex];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.dataset.setCurrent(info["CRDN_ID"],true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("label[for='table-responsive--${pageName}']").trigger("refreshEnd");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnExcelDown = () => {
|
|
|
|
|
if($P.crdnControl.dataset.empty){
|
|
|
|
|
alert("조회된 자료가 없습니다.");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var cellDefs = getCellDefs($("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)"),
|
|
|
|
|
|
|
|
|
|
var cellDefs = getCellDefs($("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)"),
|
|
|
|
|
$($("#crdnRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
|
|
|
|
|
$P.crdnControl.query.cellDefs = cellDefs;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.download();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.getGridTemplate = () => {
|
|
|
|
|
var notFound = [document.getElementById("crdnNotFound--${pageName}").innerHTML];
|
|
|
|
|
var found = document.getElementById("crdnRow--${pageName}").innerHTML;
|
|
|
|
|
var replacer = (str, dataItem) => str
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickCrdnList('" + dataItem.getValue("CRDN_ID") + "');");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
found : found,
|
|
|
|
|
notFound : notFound,
|
|
|
|
|
replacer : replacer
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderCrdnList = (total, listLength, trs) => {
|
|
|
|
|
|
|
|
|
|
var noMore = (total == listLength);
|
|
|
|
|
var initScroll = ($P.crdnControl.query.pageNum < 2) && ($P.crdnControl.untilPageNum == 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore);
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.holdList.forEach(function(item){
|
|
|
|
|
$("#crdnTbody--${pageName}").find("tr[data-key='"+item+"']").addClass("bg-dark");
|
|
|
|
|
$("#crdnTbody--${pageName}").find("tr[data-key='"+item+"']").addClass("bg-dark");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.clickCrdnList = (dataKey) => {
|
|
|
|
|
if(dataKey == ""){
|
|
|
|
|
$("#bottomCrdnPlc--${pageName}").val("");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#crdnTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
|
|
|
|
|
$("#bottomCrdnPlc--${pageName}").val($P.crdnControl.dataset.getData(dataKey)["CRDN_PLC"]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.holdList.includes(dataKey)){
|
|
|
|
|
$("#btnOpenCvlcptOrgnl--${pageName}").hide();
|
|
|
|
|
$("#btnDelete--${pageName}").hide();
|
|
|
|
@ -446,25 +458,25 @@ $(document).ready(function(){
|
|
|
|
|
$("#btnDelete--${pageName}").show();
|
|
|
|
|
$("#btnDeleteSameRcptYmd--${pageName}").show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Apply.toDataset.current($P.crdnControl.dataset, dataKey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.dblclickCrdnList = (dataKey) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.holdList.includes(dataKey)){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var dialogId = "cvlcptInitialDataEditDialog--${pageName}";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : $P.crdnControl.urls.getInfo,
|
|
|
|
|
data : {
|
|
|
|
|
"crdnId" : dataKey,
|
|
|
|
|
"openerPageName" : "${pageName}"
|
|
|
|
|
data : {
|
|
|
|
|
"crdnId" : dataKey,
|
|
|
|
|
"openerPageName" : "${pageName}"
|
|
|
|
|
},
|
|
|
|
|
success : (resp) => {
|
|
|
|
|
success : (resp) => {
|
|
|
|
|
dialog.open({
|
|
|
|
|
id : dialogId,
|
|
|
|
|
title : "민원접수 초기자료 편집",
|
|
|
|
@ -473,7 +485,7 @@ $(document).ready(function(){
|
|
|
|
|
init : () => {
|
|
|
|
|
var parentRes = new Object();
|
|
|
|
|
var childReq = pageObject.childReq.pop();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(var reqKey in childReq) {
|
|
|
|
|
if($P.provide[reqKey]){
|
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
|
@ -481,9 +493,9 @@ $(document).ready(function(){
|
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageObject.parentRes.push(parentRes);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#"+dialogId).find("label[class='parentGrid']").attr("for","table-responsive--${pageName}");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -491,7 +503,7 @@ $(document).ready(function(){
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnHold = () => {
|
|
|
|
|
var curKey = $P.crdnControl.dataset.getCurrent()["CRDN_ID"];
|
|
|
|
|
if($P.holdList.includes(curKey)){
|
|
|
|
@ -499,19 +511,19 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
$P.holdList.push(curKey);
|
|
|
|
|
$("#crdnTbody--${pageName}").find("tr[data-key='"+curKey+"']").addClass("bg-dark");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnOpenCvlcptOrgnl--${pageName}").hide();
|
|
|
|
|
$("#btnDelete--${pageName}").hide();
|
|
|
|
|
$("#btnDeleteSameRcptYmd--${pageName}").hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnRemove = (rcptYmd) => {
|
|
|
|
|
|
|
|
|
|
if(rcptYmd != null){
|
|
|
|
|
var ds = $P.crdnControl.dataset.getDataset();
|
|
|
|
|
|
|
|
|
|
var crdnIds = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var filtered = ds.filter(function(item){
|
|
|
|
|
if(item['CVLCPT_RCPT_YMD'] == rcptYmd && !$P.holdList.includes(item['CRDN_ID'])){
|
|
|
|
|
return true;
|
|
|
|
@ -522,18 +534,18 @@ $(document).ready(function(){
|
|
|
|
|
for(var i=0; i < filtered.length; i++){
|
|
|
|
|
crdnIds.push(filtered[i].CRDN_ID);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.dataset.select(crdnIds,true);
|
|
|
|
|
} else {
|
|
|
|
|
var cur = $P.crdnControl.dataset.getCurrent();
|
|
|
|
|
if(cur == null){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var curKey = cur["CRDN_ID"];
|
|
|
|
|
$P.crdnControl.dataset.select(curKey,true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var selected = $P.crdnControl.dataset.getKeys("selected");
|
|
|
|
|
if (selected.length < 1) {
|
|
|
|
|
return;
|
|
|
|
@ -551,14 +563,14 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.removeCallback = (resp) => {
|
|
|
|
|
if (resp.saved){
|
|
|
|
|
$P.toast.show();
|
|
|
|
|
sleep(1000).then(() => $P.refreshCrdnList());
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnRemoveSameRcptYmd = () => {
|
|
|
|
|
var cur = $P.crdnControl.dataset.getCurrent();
|
|
|
|
|
if(cur == null){
|
|
|
|
@ -568,28 +580,28 @@ $(document).ready(function(){
|
|
|
|
|
var curRcptYmd = cur["CVLCPT_RCPT_YMD"];
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content : "접수일 : "+dateFormat.format(curRcptYmd)+"<br/>모든 자료를 제거하시겠습니까?",
|
|
|
|
|
init : function() {
|
|
|
|
|
focusOK();
|
|
|
|
|
init : function() {
|
|
|
|
|
focusOK();
|
|
|
|
|
},
|
|
|
|
|
onOK : () => {
|
|
|
|
|
$P.fnRemove(curRcptYmd);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnOpenCvlcptOrgnl = () => {
|
|
|
|
|
var cur = $P.crdnControl.dataset.getCurrent();
|
|
|
|
|
if(cur == null){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var dialogId = "cvlcptOrgnlDialog--${pageName}";
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : wctx.url("/"+taskSeCd+"/cvlc/cvlc01/050/info.do"),
|
|
|
|
|
data : { crdnId : cur["CRDN_ID"] },
|
|
|
|
|
success : (resp) => {
|
|
|
|
|
success : (resp) => {
|
|
|
|
|
dialog.open({
|
|
|
|
|
id : dialogId,
|
|
|
|
|
title : "민원내역 원본",
|
|
|
|
@ -598,7 +610,7 @@ $(document).ready(function(){
|
|
|
|
|
init : () => {
|
|
|
|
|
var parentRes = new Object();
|
|
|
|
|
var childReq = pageObject.childReq.pop();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(var reqKey in childReq) {
|
|
|
|
|
if($P.provide[reqKey]){
|
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
|
@ -606,21 +618,21 @@ $(document).ready(function(){
|
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageObject.parentRes.push(parentRes);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.provide = {
|
|
|
|
|
"getCountStatus" : function(currentKey){
|
|
|
|
|
var ds = $P.crdnControl.dataset.getDataset();
|
|
|
|
|
var index = ds.findIndex(item => item.CRDN_ID == currentKey);
|
|
|
|
|
return (index+1) + " of " + ds.length;
|
|
|
|
|
},
|
|
|
|
|
"getNextKey" : function(currentKey){
|
|
|
|
|
"getNextKey" : function(currentKey){
|
|
|
|
|
var ds = $P.crdnControl.dataset.getDataset();
|
|
|
|
|
var index = ds.findIndex(item => item.CRDN_ID == currentKey);
|
|
|
|
|
if(ds.length > index+1){
|
|
|
|
@ -633,7 +645,7 @@ $(document).ready(function(){
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"getPrevKey" : function(currentKey){
|
|
|
|
|
"getPrevKey" : function(currentKey){
|
|
|
|
|
var ds = $P.crdnControl.dataset.getDataset();
|
|
|
|
|
var index = ds.findIndex(item => item.CRDN_ID == currentKey);
|
|
|
|
|
if(index != 0 && ds.length > 1){
|
|
|
|
@ -646,16 +658,16 @@ $(document).ready(function(){
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"selectRow" : function(currentKey){
|
|
|
|
|
"selectRow" : function(currentKey){
|
|
|
|
|
$P.clickCrdnList(currentKey);
|
|
|
|
|
},
|
|
|
|
|
"holdRow" : function(currentKey){
|
|
|
|
|
"holdRow" : function(currentKey){
|
|
|
|
|
$P.fnHold(currentKey);
|
|
|
|
|
},
|
|
|
|
|
"refreshList" : function(){
|
|
|
|
|
$P.refreshCrdnList();
|
|
|
|
|
},
|
|
|
|
|
"hasData" : function(key){
|
|
|
|
|
"hasData" : function(key){
|
|
|
|
|
if($P.crdnControl.dataset.getData(key) == null){
|
|
|
|
|
return false;
|
|
|
|
|
} else {
|
|
|
|
@ -663,8 +675,7 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* element.on
|
|
|
|
|
**************************************************************************/
|
|
|
|
@ -673,30 +684,30 @@ $(document).ready(function(){
|
|
|
|
|
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
|
|
|
|
|
$("#term--${pageName}").onEnterPress($P.searchCrdnList);
|
|
|
|
|
$('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnHold--${pageName}").on("click", () => $P.fnHold());
|
|
|
|
|
$("#btnDelete--${pageName}").on("click", () => $P.fnRemove());
|
|
|
|
|
$("#btnDeleteSameRcptYmd--${pageName}").on("click", () => $P.fnRemoveSameRcptYmd());
|
|
|
|
|
$("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fnMakeResizableTable($("#table-responsive--${pageName}")[0]);
|
|
|
|
|
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* 초기화
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
//달력 초기화
|
|
|
|
|
initDatepicker("frmSearch--${pageName}");
|
|
|
|
|
initDetailSearchButton("frmSearch--${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
|
|
|
|
|
$P.fnResetAndChangeBiz(defaultBizValue);
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
|
|
|
|
|
$(this).prop("disabled", "true");
|
|
|
|
|
});
|
|
|
|
|