소스정리(html엘리먼트 id제거 및 name추가)

main
이범준 3 months ago
parent 15bb4a276c
commit c86badf7bf

@ -157,7 +157,8 @@
<div>
<div name="gridbuttonArea" class="container-page-btn">
<div class="d-flex flex-row justify-content-between">
<span id="crdnPaging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></span>
<span id="crdnPaging--${pageName}PagingInfo" class="dataTables_info"
role="status" aria-live="polite"></span>
<ul id="crdnPaging--${pageName}" class="pagination pagination-primary">
</ul>
</div>

@ -130,7 +130,7 @@
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" name="table-responsive"
<div name="table-responsive"
class="table-responsive ox-scroll oy-scroll h-px-500">
<table class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead name="crdnThead" class="sticky-thead">
@ -358,6 +358,7 @@ $(document).ready(function(){
};
Apply.fromDatasetControl.reload($P.ctrl).then((resp)=>{
Apply.toDataset.set($P.ctrl.dataset, resp);
$P.ctrl.dataset.onDatasetChange(resp, {reloaded : true});
@ -384,7 +385,12 @@ $(document).ready(function(){
}
}
$("label[for='table-responsive--${pageName}']").trigger("refreshEnd");
$(".parentGrid").each(function(){
if(this.parentGrid == $P.find("table-responsive")){
$(this).trigger("refreshEnd");
}
});
});
}
@ -492,7 +498,10 @@ $(document).ready(function(){
pageObject.parentRes.push(parentRes);
$("#"+dialogId).find("label[class='parentGrid']").attr("for","table-responsive--${pageName}");
if($("#"+dialogId).find("div[class='parentGrid']").length > 0){
$("#"+dialogId).find("div[class='parentGrid']")[0].parentGrid = $P.find("table-responsive");
}
}
});
}

@ -1,6 +1,6 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<c:set var="pageKorName" scope="request">민원접수 초기 자료 조회</c:set>
<div class="d-flex flex-row justify-content-evenly" data-doctx="${pageName}">
<div class="card mw-px-1000">
<form name="frmEdit">
@ -69,10 +69,10 @@
<div class="col-md-12">
<span class="float-end">
<button type="button" name="btnViewCrdnList" class="btn btn-outline-dark mx-2">
동일번호&nbsp;<span id="outputCrdnCount--${pageName}"></span>건
동일번호&nbsp;<span name="outputCrdnCount"></span>건
</button>
<button type="button" name="btnViewCvlcptDscsnList" class="btn btn-outline-dark mx-2">
차량민원&nbsp;<span id="outputCvlcptDscsnCount--${pageName}"></span>건
차량민원&nbsp;<span name="outputCvlcptDscsnCount"></span>건
</button>
</span>
</div>
@ -381,7 +381,7 @@
</div>
<jsp:include page="/WEB-INF/jsp/fims/photo-main.jsp" />
<label for="" id="refreshEnd--${pageName}" class="parentGrid" hidden></label>
<div id="refreshEnd--${pageName}" class="parentGrid" hidden></div>
</div>
@ -942,7 +942,7 @@ $(document).ready(function(){
//
resp = await countCrdnByVhrno(vhrno, taskSeCd, sggCd);
if(resp.crdnCount > 0){
$("#outputCrdnCount--${pageName}").html(resp.crdnCount);
$P.$find("outputCrdnCount").html(resp.crdnCount);
$P.$find("btnViewCrdnList").removeAttr("hidden");
} else {
$P.$find("btnViewCrdnList").attr("hidden","hidden");
@ -951,7 +951,7 @@ $(document).ready(function(){
//
resp = await countCvlcptDscsnByVhrno(vhrno, taskSeCd, sggCd);
if(resp.cvlcptDscsnNocs.NOCS > 0){
$("#outputCvlcptDscsnCount--${pageName}").html(resp.cvlcptDscsnNocs.NOCS);
$P.$find("outputCvlcptDscsnCount").html(resp.cvlcptDscsnNocs.NOCS);
$P.$find("btnViewCvlcptDscsnList").removeAttr("hidden");
} else {
$P.$find("btnViewCvlcptDscsnList").attr("hidden","hidden");

@ -126,7 +126,7 @@
<ul id="crdnPaging--${pageName}" class="pagination pagination-primary">
</ul>
</div>
<span id="gridbuttonArea--${pageName}" class="container-window-btn-right">
<span name="gridbuttonArea" class="container-window-btn-right">
<button type="button" name="btnOpenCvlcptOrgnl"
class="btn btn-primary" title="민원원본보기">민원원본보기</button>
<button type="button" name="btnOpenAnswerPreview"
@ -311,7 +311,7 @@ $(document).ready(function(){
$P.fnResetAndChangeBiz = taskSeCd => {
var clsForTask = taskSeCd.toLowerCase();
//업무별 버튼
renderForTask("gridbuttonArea--${pageName}", clsForTask);
renderForTask($P.find("gridbuttonArea"), clsForTask);
//버튼 이벤트 재매핑
$P.$find("btnExecuteDisabledTagInfoInquire").off("click");
$P.$find("btnExecuteDisabledTagInfoInquire").on("click", () => $P.fnExecuteDisabledTagInfoInquire());

@ -127,7 +127,7 @@
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" name="table-responsive"
<div name="table-responsive"
class="table-responsive ox-scroll oy-scroll h-px-500">
<table class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead name="crdnThead" class="sticky-thead">
@ -352,7 +352,6 @@ $(document).ready(function(){
}
}
$("label[for='table-responsive--${pageName}']").trigger("refreshEnd");
});
}

Loading…
Cancel
Save