기타 수정.

main
jjh 9 months ago
parent b04c794232
commit c289730215

@ -41,6 +41,7 @@ public class SndbQuery extends CmmnQuery {
private String schSvbtcYmdFrom; // 공시송달(TB_SVBTC)_공시송달 일자 시작
private String schSvbtcYmdTo; // 공시송달(TB_SVBTC)_공시송달 일자 종료
private String schSndngSeCd; // 발송, 발송상세(TB_SNDNG_DTL)_발송 구분 코드
private String schUndlvrRsnCd; // 발송상세(TB_SNDNG_DTL)_미배달 사유 코드
private String schChcRgIndct; // 선택 등기 표시
// 상세 검색 조건
@ -280,6 +281,16 @@ public class SndbQuery extends CmmnQuery {
return self();
}
public String getSchUndlvrRsnCd() {
return ifEmpty(schUndlvrRsnCd, () -> null);
}
public <T extends SndbQuery> T setSchUndlvrRsnCd(String schUndlvrRsnCd) {
this.schUndlvrRsnCd = schUndlvrRsnCd;
return self();
}
public String getSchChcRgIndct() {
return ifEmpty(schChcRgIndct, () -> null);
}

@ -1170,9 +1170,9 @@ public class Sndb01Controller extends ApplicationController {
ManagedUser managedUser = (ManagedUser)currentUser().getUser();
// View(jsp)에서 사용할 공통코드를 조회
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM004", "FIM005", "FIM006", "FIM047", "FIM054", "FIM061", "FIM064");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM004", "FIM005", "FIM006", "FIM047", "FIM054", "FIM061", "FIM064", "FIM081");
addCodes(commonCodes, mav, "FIM004", "FIM005", "FIM006", "FIM054", "FIM061", "FIM064");
addCodes(commonCodes, mav, "FIM004", "FIM005", "FIM006", "FIM061", "FIM064");
return mav.addObject("pageName", "sndb01220") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("infoPrefix", "sndbk") // prefix
@ -1185,6 +1185,7 @@ public class Sndb01Controller extends ApplicationController {
.addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD)
.addObject("FIM061List", commonCodes.get("FIM061")) // 전기차 충전구역 및 충전방해 위반 코드(VLTN_ID)
.addObject("FIM064List", commonCodes.get("FIM064")) // 화물자동차 밤샘주차 위반 코드(VLTN_ID)
.addObject("FIM081List", commonCodes.get("FIM081")) // 미배달 사유 코드(UNDLVR_RSN_CD)
;
}

@ -873,6 +873,12 @@
<if test="schSndngSeCd != null">
AND SD.SNDNG_SE_CD = #{schSndngSeCd} <!-- 발송 구분 코드 -->
</if>
<if test="schUndlvrRsnCd != null">
AND SD.UNDLVR_RSN_CD = #{schUndlvrRsnCd} <!-- 미배달 사유 코드 -->
</if>
<if test="delYN != null">
AND SD.DEL_YN = #{delYN} <!-- 삭제 여부 -->
</if>
<if test="schCrdnYmdFrom != null">
AND C.CRDN_YMD <![CDATA[>=]]> #{schCrdnYmdFrom} <!-- 단속 일자 시작 -->
</if>
@ -881,9 +887,6 @@
</if>
<if test="schVhrno != null">
AND C.VHRNO = #{schVhrno} <!-- 차량번호 -->
</if>
<if test="delYN != null">
AND SD.DEL_YN = #{delYN} <!-- 삭제 여부 -->
</if>
AND C.DEL_YN = 'N'
<choose>

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -30,7 +29,7 @@
<!-- 검색 조건 영역 -->
<form id="frmSearch--${pageName}" name="frmSearch">
<!-- hidden -->
<input type="hidden" id="sggCd--${pageName}" name="sggCd" data-map="SGG_CD" />
<input type="hidden" id="sggCd--${pageName}" name="sggCd" />
<!-- 메인 조건 -->
<div class="container-search">
@ -64,7 +63,7 @@
<input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" />
<input type="text" class="form-control w-px-300" id="term--${pageName}" name="term" autocomplete="off" />
<input type="text" class="form-control w-px-320" 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}">
@ -190,10 +189,10 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
<!-- / Content -->
<div class="content-backdrop fade"></div>
</div>

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -85,7 +84,7 @@
<input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" />
<input type="text" class="form-control w-px-300" id="term--${pageName}" name="term" autocomplete="off" />
<input type="text" class="form-control w-px-320" 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}">
@ -277,10 +276,10 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
<!-- / Content -->
<div class="content-backdrop fade"></div>
</div>

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -69,7 +68,7 @@
<input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" />
<input type="text" class="form-control w-px-300" id="term--${pageName}" name="term" autocomplete="off" />
<input type="text" class="form-control w-px-320" 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}">
@ -228,14 +227,11 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- / Wrapper-list -->
</div> <!-- / Card -->
</div>
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
<!-- / Content -->
<div class="content-backdrop fade"></div>
</div>
<!-- / inner page html <div class="content-wrapper"> -->

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -100,7 +99,7 @@
<input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" />
<input type="text" class="form-control w-px-300" id="term--${pageName}" name="term" autocomplete="off" />
<input type="text" class="form-control w-px-320" 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}">
@ -274,11 +273,11 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
<!-- Content -->
<!-- / Content -->
<div class="content-backdrop fade"></div>
</div>

@ -196,17 +196,18 @@
* 버튼 clickEvent
**************************************************************************/
// 저장 버튼 클릭 이벤트
$P.fnSave = () => {
$P.fnSave = (title) => {
// validate 확인
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
// 버튼 title
let btnTitle = $("#btnSave--${pageName}").attr("title");
// 파리미터 설정
let params = $P.formFields.get(); // formFields
params.title = title; // 타이틀
dialog.alert({
content : "현재 " + $P.control.prefixName + " 정보를 저장하시겠습니까?"
, onOK : () => {
$P.control.save($P.formFields.get());
$P.control.save(params);
}
});
}
@ -229,8 +230,10 @@
});
});
// 업무 버튼 이벤트
$("#btnSave--${pageName}").on("click", () => $P.fnSave()); // 저장
// 저장 버튼 이벤트
$("#btnSave--${pageName}").on("click", function() {
$P.fnSave($(this).attr("title"));
});
}
// 초기 화면 설정

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -123,7 +122,7 @@
<input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" />
<input type="text" class="form-control w-px-300" id="term--${pageName}" name="term" autocomplete="off" />
<input type="text" class="form-control w-px-320" 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}">
@ -323,7 +322,6 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- / Wrapper-list -->
</div> <!-- / Card -->
</div>

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -85,7 +84,7 @@
<input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" />
<input type="text" class="form-control w-px-300" id="term--${pageName}" name="term" autocomplete="off" />
<input type="text" class="form-control w-px-320" 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}">
@ -244,7 +243,6 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div>

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -30,7 +29,7 @@
<!-- 검색 조건 영역 -->
<form id="frmSearch--${pageName}" name="frmSearch">
<!-- hidden -->
<input type="hidden" id="sggCd--${pageName}" name="sggCd" data-map="SGG_CD" />
<input type="hidden" id="sggCd--${pageName}" name="sggCd" />
<!-- 메인 조건 -->
<div class="container-search">
@ -118,7 +117,7 @@
<input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" />
<input type="text" class="form-control w-px-300" id="term--${pageName}" name="term" autocomplete="off" />
<input type="text" class="form-control w-px-320" 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}">
@ -281,10 +280,10 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
<!-- / Content -->
<div class="content-backdrop fade"></div>
</div>

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -30,7 +29,7 @@
<!-- 검색 조건 영역 -->
<form id="frmSearch--${pageName}" name="frmSearch">
<!-- hidden -->
<input type="hidden" id="sggCd--${pageName}" name="sggCd" data-map="SGG_CD" />
<input type="hidden" id="sggCd--${pageName}" name="sggCd" />
<!-- 메인 조건 -->
<div class="container-search">
@ -127,7 +126,7 @@
<input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" />
<input type="text" class="form-control w-px-300" id="term--${pageName}" name="term" autocomplete="off" />
<input type="text" class="form-control w-px-320" 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}">
@ -338,7 +337,6 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- / Wrapper-list -->
</div> <!-- / Card -->
</div>

@ -5,9 +5,9 @@
<div class="content-wrapper">
<div class="container-xxl flex-grow-1 px-0">
<c:set var="pageKorName" scope="request">과태료 감경 관리</c:set>
<div class="card">
<div class="wrapper-list">
<div>
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">초기화</button>
<span class="container-window-btn-right">
@ -237,8 +237,6 @@
</div>
</div>
</div>
</div>
<!-- Content -->
<div class="content-backdrop fade"></div>
</div>

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -30,7 +29,7 @@
<!-- 검색 조건 영역 -->
<form id="frmSearch--${pageName}" name="frmSearch">
<!-- hidden -->
<input type="hidden" id="sggCd--${pageName}" name="sggCd" data-map="SGG_CD" />
<input type="hidden" id="sggCd--${pageName}" name="sggCd" />
<!-- 메인 조건 -->
<div class="container-search">
@ -103,7 +102,7 @@
<input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" />
<input type="text" class="form-control w-px-300" id="term--${pageName}" name="term" autocomplete="off" />
<input type="text" class="form-control w-px-320" 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}">
@ -298,10 +297,10 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
<!-- / Content -->
<div class="content-backdrop fade"></div>
</div>

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -100,7 +99,7 @@
<input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" />
<input type="text" class="form-control w-px-300" id="term--${pageName}" name="term" autocomplete="off" />
<input type="text" class="form-control w-px-320" 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}">
@ -274,11 +273,10 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
<!-- Content -->
<!-- / Content -->
<div class="content-backdrop fade"></div>
</div>

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -277,10 +276,10 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
<!-- / Content -->
<div class="content-backdrop fade"></div>
</div>

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -206,10 +205,10 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
<!-- / Content -->
<div class="content-backdrop fade"></div>
</div>

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -261,10 +260,10 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
<!-- / Content -->
<div class="content-backdrop fade"></div>
</div>

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -207,10 +206,10 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
<!-- / Content -->
<div class="content-backdrop fade"></div>
</div>

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -210,10 +209,10 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
<!-- / Content -->
<div class="content-backdrop fade"></div>
</div>

@ -83,13 +83,36 @@
</c:forEach>
</select>
</div>
<!-- 미배달 사유 코드 -->
<div class="col-6">
<label class="form-label fw-bold form-search-title text-end">미배달사유</label>
<select class="form-select w-px-150" id="schUndlvrRsnCd--${pageName}" name="schUndlvrRsnCd">
<option value="">전체</option>
<c:forEach items="${FIM081List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<!-- 단속일자 -->
<div class="col-6">
<label class="form-label fw-bold form-search-title text-end">단속일자</label>
<span class="form-search-linebox">
<input type="text" class="form-control form-date" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom"
data-fmt-type="day" autocomplete="off" title="시작 날짜 선택" />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
~
<input type="text" class="form-control form-date" id="schCrdnYmdTo--${pageName}" name="schCrdnYmdTo"
data-fmt-type="day" autocomplete="off" 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" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" />
<input type="text" class="form-control w-px-300" id="term--${pageName}" name="term" autocomplete="off" />
<input type="text" class="form-control w-px-320" id="term--${pageName}" name="term" autocomplete="off" />
</div>
<!-- 선택등기 표시 -->
<div class="col-6 form-check">
@ -162,11 +185,8 @@
<button type="button" class="btn btn-primary w-px-120" id="btnCreateWholSndngLink--${pageName}" title="전체 통합우편 발송">
전체 통합우편 발송
</button>
<button type="button" class="btn btn-primary w-px-120" id="btnCreateSlctnSvbtc--${pageName}" title="선택 공시송달 등록">
선택 공시송달 등록
</button>
<button type="button" class="btn btn-primary w-px-120" id="btnCreateWholSvbtc--${pageName}" title="전체 공시송달 등록">
전체 공시송달 등록
<button type="button" class="btn btn-primary w-px-120" id="btnCreateSvbtc--${pageName}" title="전체 공시송달 등록">
공시송달 등록
</button>
</span>
</span>
@ -375,7 +395,6 @@
});
$("#btnCreateSlctnSndngLink--${pageName}").prop("disabled", keys.length < 1); // 선택 대상 통합우편 발송 버튼
$("#btnCreateSlctnSvbtc--${pageName}").prop("disabled", keys.length < 1); // 선택 대상 공시송달 등록 버튼
// DataTables(그리드) 전체 선택(checkbox)
if (keys.length < 1) {
@ -584,19 +603,27 @@
}
// 선택 통합우편 발송 버튼 이벤트
$P.fnCreateSlctnSndngLink = () => {
$P.fnCreateSlctnSndngLink = (title) => {
// 선택 자료
let selected = $P.control.dataset.getKeys("selected");
if (selected.length < 1) return;
// 버튼 title
let btnTitle = $("#btnCreateSlctnSndngLink--${pageName}").attr("title");
// 파라미터 설정
let params = $P.control.query; // 검색 조건
params.title = title; // 타이틀
params.callPurpose = "create"; // 호출 용도 (등록)
params.sndngDtlIDs = selected.join(","); // IDs
params.sggCd = $P.control.dataset.getValue("SGG_CD") // 시군구 코드
params.deptCd = $P.control.dataset.getValue("DEPT_CD") // 부서코드
params.taskSeCd = $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
params.sndngSeCd = $P.control.dataset.getValue("SNDNG_SE_CD") // 발송 구분 코드
params.tnocs = $P.control.dataset.getValue("TOT_CNT") // 총건수
}
// 전체 통합우편 발송 버튼 이벤트
$P.fnCreateWholSndngLink = () => {
$P.fnCreateWholSndngLink = (title) => {
if ($P.control.dataset.empty) {
dialog.alert({
content : "검색된 자료가 없습니다."
@ -606,35 +633,20 @@
return;
}
// 버튼 title
let btnTitle = $("#btnCreateWholSndngLink--${pageName}").attr("title");
}
// 선택 공시송달 등록 버튼 이벤트
$P.fnCreateSlctnSvbtc = () => {
// 선택 자료
let selected = $P.control.dataset.getKeys("selected");
if (selected.length < 1) return;
// 버튼 title
let btnTitle = $("#btnCreateSlctnSvbtc--${pageName}").attr("title");
// 파라미터 설정
let params = $P.control.query; // 검색 조건
params.title = title; // 타이틀
params.callPurpose = "create"; // 호출 용도 (등록)
params.sndngDtlIDs = selected.join(","); // IDs
params.sggCd = $P.control.dataset.getValue("SGG_CD") // 시군구 코드
params.deptCd = $P.control.dataset.getValue("DEPT_CD") // 부서코드
params.taskSeCd = $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
params.sndngSeCd = $P.control.dataset.getValue("SNDNG_SE_CD") // 발송 구분 코드
params.tnocs = $P.control.dataset.getValue("TOT_CNT") // 총건수
$P.getSvbtcInfo(params);
}
// 전체 공시송달 등록 버튼 이벤트
$P.fnCreateWholSvbtc = () => {
// 공시송달 등록 버튼 이벤트
$P.fnCreateSvbtc = (title) => {
if ($P.control.dataset.empty) {
dialog.alert({
content : "검색된 자료가 없습니다."
@ -644,11 +656,9 @@
return;
}
// 버튼 title
let btnTitle = $("#btnCreateWholSvbtc--${pageName}").attr("title");
// 파라미터 설정
let params = $P.control.query; // 검색 조건
params.title = title; // 타이틀
params.callPurpose = "create"; // 호출 용도 (등록)
params.sggCd = $P.control.dataset.getValue("SGG_CD") // 시군구 코드
params.taskSeCd = $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
@ -697,13 +707,9 @@
$("#btnCreateWholSndngLink--${pageName}").on("click", function() {
$P.fnCreateWholSndngLink($(this).attr("title"));
});
// 선택 공시송달 등록 버튼 이벤트
$("#btnCreateSlctnSvbtc--${pageName}").on("click", function() {
$P.fnCreateSlctnSvbtc($(this).attr("title"));
});
// 전체 공시송달 등록 버튼 이벤트
$("#btnCreateWholSvbtc--${pageName}").on("click", function() {
$P.fnCreateWholSvbtc($(this).attr("title"));
$("#btnCreateSvbtc--${pageName}").on("click", function() {
$P.fnCreateSvbtc($(this).attr("title"));
});
// DataTables width 변경 조정
@ -809,7 +815,7 @@
// 업무구분에 따른 URL 설정
$P.setURL = (taskSeCd) => {
${pageName}Control.urls.load = wctx.url("/" + taskSeCd + $P.PrefixUrl + "/220/list.do"); // 검색
$P.control.urls.load = wctx.url("/" + taskSeCd + $P.PrefixUrl + "/220/list.do"); // 검색
}
/**************************************************************************

@ -64,9 +64,6 @@
**************************************************************************/
pageObject["${pageName}"] = {};
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
var ${pageName}CallPurpose = "${callPurpose}";
/**************************************************************************
* script 진입
**************************************************************************/
@ -76,6 +73,8 @@
// URL
$P.PrefixUrl = "/sndb/sndb01";
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}";
// FormFields
$P.formFields = new FimsFormFields("#frmEdit--${pageName}");
@ -92,7 +91,7 @@
/**************************************************************************
* DatasetControl 이벤트
**************************************************************************/
$P.control.onCurrentChange = item => {
$P.control.onCurrentChange = (item) => {
if (!item) return;
// Dataset 셋팅
@ -102,7 +101,7 @@
$P.setURL(item.data.TASK_SE_CD);
// 호출용도가 등록 이라면..
if (${pageName}CallPurpose == "create") {
if ($P.callPurpose == "create") {
$("#dlvrYmd--${pageName}").datepicker("setDate", new Date()); // 배달일자
}
}
@ -126,13 +125,7 @@
$P.control.save = (info) => {
if (!info) return;
let create = false;
if (${pageName}CallPurpose == "create") {
create = true;
info.sndngDtlSttsCd = "05"; // FIM050 - 05 반송
} else {
create = false;
}
let create = ($P.callPurpose == "create");
ajax.post({
url : !create ? $P.control.urls.update : $P.control.urls.create
@ -145,14 +138,19 @@
* 버튼 clickEvent
**************************************************************************/
// 저장 버튼 클릭 이벤트
$P.fnSave = () => {
$P.fnSave = (title) => {
// validate 확인
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
// 파리미터 설정
let params = $P.formFields.get(); // formFields
params.title = title; // 타이틀
params.sndngDtlSttsCd = "05"; // FIM050 - 05 반송
dialog.alert({
content : "현재 " + $P.control.prefixName + " 정보를 저장하시겠습니까?"
, onOK : () => {
$P.control.save($P.formFields.get());
$P.control.save(params);
}
});
}
@ -175,9 +173,6 @@
});
});
// 업무 버튼 이벤트
$("#btnSave--${pageName}").on("click", () => $P.fnSave()); // 저장
// 미배달 사유 변경 이벤트
$("#undlvrRsnCd--${pageName}").change(function() {
if ($("#undlvrRsnCd--${pageName}").val() == "00") {
@ -186,6 +181,12 @@
$("#undlvrRsnNm--${pageName}").val($("#undlvrRsnCd--${pageName} option:selected").text());
}
});
// 저장 버튼 이벤트
$("#btnSave--${pageName}").on("click", function() {
$P.fnSave($(this).attr("title"));
});
}
// 초기 화면 설정
@ -194,16 +195,13 @@
initDatepicker("frmEdit--${pageName}");
$("#dlvrYmd--${pageName}").datepicker("setDate", new Date());
if (${pageName}CallPurpose == "view") {
if ($P.callPurpose == "view") {
// input 요소들을 disabled
$("#frmEdit--${pageName}").find("input,textarea,select").prop("disabled", true);
// button 요소들을 disabled
$("#btnSave--${pageName}").prop("disabled", true); // 저장 버튼
}
}
// 기본 데이터 설정
$P.initData = () => {
// 미배달 사유 변경 이벤트 실행
$("#undlvrRsnCd--${pageName}").trigger("change");
}
@ -223,10 +221,7 @@
// 2. 초기 화면 설정
$P.initForm();
// 3. 기본 데이터 설정
$P.initData();
// 4. Dataset 설정
// 3. Dataset 설정
$P.control.setData([${sndbkInfo}]);
});

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">

@ -10,7 +10,6 @@
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
@ -30,7 +29,7 @@
<!-- 검색 조건 영역 -->
<form id="frmSearch--${pageName}" name="frmSearch">
<!-- hidden -->
<input type="hidden" id="sggCd--${pageName}" name="sggCd" data-map="SGG_CD" />
<input type="hidden" id="sggCd--${pageName}" name="sggCd" />
<!-- 메인 조건 -->
<div class="container-search">
@ -85,7 +84,7 @@
<input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" />
<input type="text" class="form-control w-px-300" id="term--${pageName}" name="term" autocomplete="off" />
<input type="text" class="form-control w-px-320" 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}">
@ -212,10 +211,10 @@
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
<!-- / Content -->
<div class="content-backdrop fade"></div>
</div>

Loading…
Cancel
Save