다이얼로그 크기 변경에 따른 수정.

main
jjh 10 months ago
parent 46390d88c9
commit e64416f379

@ -41,8 +41,6 @@
</form> <!-- /입력 영역 --> </form> <!-- /입력 영역 -->
</div> </div>
<p></p>
<div class="nav-align-top"> <div class="nav-align-top">
<ul class="nav nav-tabs" id="tabs--${pageName}" role="tablist"> <ul class="nav nav-tabs" id="tabs--${pageName}" role="tablist">
<li class="nav-item"> <li class="nav-item">
@ -147,64 +145,6 @@
useDataEdit${pageName}(item); useDataEdit${pageName}(item);
} }
/**************************************************************************
*
**************************************************************************/
// 자료 재조회
${pageName}RefreshDataInfo = (params) => {
ajax.get({
url : wctx.url(params.taskSeCd + "/sprt/sprt02/010/main.do")
, headers: { Accept: "application/json; charset=utf-8" } // json
, data : params || {}
, success : resp => {
if (resp.totalInfo) {
// 최상단 단속 Data 셋팅
${pageName}Control.setData([resp.totalInfo]);
if (activeTabIndex${pageName} == 0) {
fnCrdnPayerInfo${pageName}(); // 단속 납부자 Data 셋팅
} else if (activeTabIndex${pageName} == 1) {
fnOpnnSbmsnInfo${pageName}(); // 의견제출 정보
} else if (activeTabIndex${pageName} == 2) {
fnSndngInfo${pageName}(); // 발송 반송 정보
} else if (activeTabIndex${pageName} == 3) {
fnPrcsDtlInfo${pageName}(); // 처리 상세 정보
} else if (activeTabIndex${pageName} == 4) {
fnLevyNpmntInfo${pageName}(); // 부과체납 정보
} else if (activeTabIndex${pageName} == 5) {
fnRcvmtInfo${pageName}(); // 수납 정보
} else if (activeTabIndex${pageName} == 6) {
fnCvlcptDscsnInfo${pageName}(); // 민원상담 정보
}
}
}
});
}
// 자료 삭제 가능 여부
useDataEdit${pageName} = (item) => {
// 삭제 자료일 경우 빨간색으로 변경
let elem = document.getElementById("crdnSttsNm--${pageName}");
if (item.data.CRDN_STTS_CD == "99") {
elem.classList.remove("text-primary");
elem.classList.add("text-danger");
} else {
elem.classList.remove("text-danger");
elem.classList.add("text-primary");
}
}
//
fnClose${pageName} = (isDataReLoad) => {
dialog.close(${pageName}Control.prefix + "Dialog");
let controlName = "${callControlName}";
if (isDataReLoad && controlName != "noControlName") {
${callControlName}._load();
}
}
/************************************************************************** /**************************************************************************
* 네이게이션 Event * 네이게이션 Event
**************************************************************************/ **************************************************************************/
@ -263,7 +203,7 @@
, delYN : "N" , delYN : "N"
}; };
${pageName}RefreshDataInfo(params); refreshList${pageName}(params);
} }
// 다음 자료 조회 // 다음 자료 조회
@ -301,7 +241,67 @@
, delYN : "N" , delYN : "N"
}; };
${pageName}RefreshDataInfo(params); refreshList${pageName}(params);
}
/**************************************************************************
* 사용자 함수(function)
**************************************************************************/
// 자료 삭제 가능 여부
useDataEdit${pageName} = (item) => {
// 삭제 자료일 경우 빨간색으로 변경
let elem = document.getElementById("crdnSttsNm--${pageName}");
if (item.data.CRDN_STTS_CD == "99") {
elem.classList.remove("text-primary");
elem.classList.add("text-danger");
} else {
elem.classList.remove("text-danger");
elem.classList.add("text-primary");
}
}
//
fnClose${pageName} = (isDataReLoad) => {
dialog.close(${pageName}Control.prefix + "Dialog");
let controlName = "${callControlName}";
if (isDataReLoad && controlName != "noControlName") {
${callControlName}._load();
}
}
// 자료 재조회
refreshList${pageName} = (params) => {
if (!params) return;
ajax.get({
url : wctx.url(params.taskSeCd + "/sprt/sprt02/010/main.do")
, headers: { Accept: "application/json; charset=utf-8" } // json
, data : params || {}
, success : resp => {
if (resp.totalInfo) {
// 최상단 단속 Data 셋팅
${pageName}Control.setData([resp.totalInfo]);
if (activeTabIndex${pageName} == 0) {
fnCrdnPayerInfo${pageName}(); // 단속 납부자 Data 셋팅
} else if (activeTabIndex${pageName} == 1) {
fnOpnnSbmsnInfo${pageName}(); // 의견제출 정보
} else if (activeTabIndex${pageName} == 2) {
fnSndngInfo${pageName}(); // 발송 반송 정보
} else if (activeTabIndex${pageName} == 3) {
fnPrcsDtlInfo${pageName}(); // 처리 상세 정보
} else if (activeTabIndex${pageName} == 4) {
fnLevyNpmntInfo${pageName}(); // 부과체납 정보
} else if (activeTabIndex${pageName} == 5) {
fnRcvmtInfo${pageName}(); // 수납 정보
} else if (activeTabIndex${pageName} == 6) {
fnCvlcptDscsnInfo${pageName}(); // 민원상담 정보
}
}
}
});
} }
getCrdnPayerInfo${pageName} = (params) => { getCrdnPayerInfo${pageName} = (params) => {
@ -549,20 +549,9 @@
} }
// 초기 기본 설정
initForm${pageName} = () => {
// 화면 초기화
$("#frmEdit--${pageName}")[0].reset();
// Dataset 초기화
${pageName}Control.dataset.clear();
curDataIndex${pageName} = null; // 화면이 열릴때 초기 값으로 null로 설정해야 건수가 정상 표시 된다.
}
// 기본 데이터 설정 // 기본 데이터 설정
setFormData${pageName} = () => { initData${pageName} = () => {
curDataIndex${pageName} = null; // 화면이 열릴때 초기 값으로 null로 설정해야 건수가 정상 표시 된다.
} }
/************************************************************************** /**************************************************************************
@ -571,18 +560,14 @@
$(document).ready(function() { $(document).ready(function() {
// 이벤트 설정 // 이벤트 설정
setEvent${pageName}(); setEvent${pageName}();
// 기본 데이터 설정
// 초기 기본 설정 initData${pageName}();
initForm${pageName}();
// Dataset 설정 // Dataset 설정
${pageName}Control.setData([${totalInfo}]); ${pageName}Control.setData([${totalInfo}]);
// 단속, 납부자 정보 // 단속, 납부자 정보
fnCrdnPayerInfo${pageName}(); fnCrdnPayerInfo${pageName}();
// 기본 데이터 설정
setFormData${pageName}();
}); });
</script> </script>

@ -4,7 +4,7 @@
<!-- Page Body --> <!-- Page Body -->
<div class="content-wrapper"> <div class="content-wrapper">
<div class="d-flex flex-row justify-content-evenly"> <div class="d-flex flex-row justify-content-evenly">
<div class="col-xl-9 mx-1"> <div style="width:1170px;">
<!-- 입력 영역 --> <!-- 입력 영역 -->
<form id="frmEdit--${pageName}" name="frmEdit"> <form id="frmEdit--${pageName}" name="frmEdit">
<input type="hidden" id="crdnId--${pageName}" name="crdnId" data-map="CRDN_ID" /> <input type="hidden" id="crdnId--${pageName}" name="crdnId" data-map="CRDN_ID" />
@ -135,7 +135,7 @@
<!-- 기타 내용 --> <!-- 기타 내용 -->
<div class="col-md-12"> <div class="col-md-12">
<label for="etcCn--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end align-top">기타내용</label> <label for="etcCn--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end align-top">기타내용</label>
<textarea type="text" class="form-control w-87" id="etcCn--${pageName}" name="etcCn" data-map="ETC_CN" cols="100%" rows="3" readonly></textarea> <textarea type="text" class="form-control w-87" id="etcCn--${pageName}" name="etcCn" data-map="ETC_CN" cols="100%" rows="2" readonly></textarea>
</div> </div>
<!-- 과태료 단속금액 --> <!-- 과태료 단속금액 -->
<div class="col-md-3"> <div class="col-md-3">
@ -283,10 +283,10 @@
</div> </div>
</div> <!-- 납부자 정보 <div class="card"> --> </div> <!-- 납부자 정보 <div class="card"> -->
</form> <!-- /입력 영역 --> </form> <!-- /입력 영역 -->
</div> <!-- <div class="col-xl-9 mx-1"> --> </div> <!-- <div style="width:1170px;"> -->
<!-- 단속 이미지 --> <!-- 단속 이미지 -->
<div class="card" style="width:500px;"> <div class="card" style="width:320px;">
<form id="frmFile--${pageName}" method="post" enctype="multipart/form-data"> <form id="frmFile--${pageName}" method="post" enctype="multipart/form-data">
<input type="file" id="newFileList--${pageName}" name="newFileList" multiple accept="image/*" hidden /> <input type="file" id="newFileList--${pageName}" name="newFileList" multiple accept="image/*" hidden />
</form> </form>
@ -300,7 +300,7 @@
<button type="button" class="btn btn-primary" id="btnDeleteFile--${pageName}" title="선택 사진 삭제">사진 삭제</button> <button type="button" class="btn btn-primary" id="btnDeleteFile--${pageName}" title="선택 사진 삭제">사진 삭제</button>
</div> </div>
</div> </div>
<div id="displayForExist--${pageName}" style="overflow-y:scroll; min-height:80px; max-height:630px; border-style:solid;"> <div id="displayForExist--${pageName}" style="overflow-y:scroll; min-height:80px; max-height:600px; border-style:solid;">
</div> </div>
<form id="frmUploadSet--${pageName}" method="post" enctype="multipart/form-data"> <form id="frmUploadSet--${pageName}" method="post" enctype="multipart/form-data">

@ -31,7 +31,7 @@
<!-- DataTables(그리드) --> <!-- DataTables(그리드) -->
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}"> <div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}">
<div class="table-responsive" id="table-responsive--${pageName}" style="overflow-x:scroll; height:336px; overflow-y:scroll;" > <div class="table-responsive" id="table-responsive--${pageName}" style="overflow-x:scroll; height:320px; overflow-y:scroll;" >
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" <table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer"
id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info"> id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead"> <thead class="sticky-thead">

@ -151,7 +151,7 @@
<!-- DataTables(그리드) --> <!-- DataTables(그리드) -->
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}${pageDataName3}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div id="DataTables_Table_0_wrapper--${pageName}${pageDataName3}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}${pageDataName3}" class="table-responsive" style="overflow-x:scroll; height:340px; overflow-y:scroll;" > <div id="table-responsive--${pageName}${pageDataName3}" class="table-responsive" style="overflow-x:scroll; height:320px; overflow-y:scroll;" >
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}${pageDataName3}" aria-describedby="DataTables_Table_0_info"> <table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}${pageDataName3}" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr id="theadTr--${pageName}${pageDataName3}"> <tr id="theadTr--${pageName}${pageDataName3}">
@ -199,7 +199,7 @@
<!-- DataTables(그리드) --> <!-- DataTables(그리드) -->
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}${pageDataName4}"> <div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}${pageDataName4}">
<div class="table-responsive" id="table-responsive--${pageName}${pageDataName4}" style="overflow-x:scroll; height:340px; overflow-y:scroll;" > <div class="table-responsive" id="table-responsive--${pageName}${pageDataName4}" style="overflow-x:scroll; height:320px; overflow-y:scroll;" >
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}${pageDataName4}" aria-describedby="DataTables_Table_0_info"> <table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}${pageDataName4}" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr id="theadTr--${pageName}${pageDataName4}"> <tr id="theadTr--${pageName}${pageDataName4}">

Loading…
Cancel
Save