단속 검색조건 jsp 수정.

main
jjh 5 months ago
parent e0d601a32b
commit e82e4caebe

@ -127,22 +127,30 @@ WHERE C.DEL_YN = 'N'
<if test="schCrdnYmdFrom != null">AND C.CRDN_YMD <![CDATA[ >= ]]> #{schCrdnYmdFrom} </if> <if test="schCrdnYmdFrom != null">AND C.CRDN_YMD <![CDATA[ >= ]]> #{schCrdnYmdFrom} </if>
<if test="schCrdnYmdTo != null">AND C.CRDN_YMD <![CDATA[ <= ]]> #{schCrdnYmdTo} </if> <if test="schCrdnYmdTo != null">AND C.CRDN_YMD <![CDATA[ <= ]]> #{schCrdnYmdTo} </if>
</if> </if>
<if test="schDateFrom != null or schDateTo != null">
<if test="schDateOpt == 'regDt'">
<if test="schDateFrom != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
<if test="schDateTo != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
</if>
<if test="schDateOpt == 'mdfcnDt'">
<if test="schDateFrom != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
<if test="schDateTo != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
</if>
</if>
<if test="crdnSttsCd != null"> <if test="crdnSttsCd != null">
AND C.CRDN_STTS_CD = #{crdnSttsCd} AND C.CRDN_STTS_CD = #{crdnSttsCd}
</if> </if>
<if test="towngYn != null"> <if test="towngYn != null">
AND CA.TOWNG_YN = #{towngYn} AND CA.TOWNG_YN = #{towngYn}
</if> </if>
<if test="schRegDateFrom != null or schRegDateTo != null">
<if test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null"> AND C.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') </if>
<if test="schRegDateTo != null"> AND C.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') </if>
</if>
<if test="schRegDateOpt == 'mdfcnDt'">
<if test="schRegDateFrom != null"> AND C.MDFCN_DT <![CDATA[ >= ]]> CONCAT(#{schRegDateFrom},'000000') </if>
<if test="schRegDateTo != null"> AND C.MDFCN_DT <![CDATA[ <= ]]> CONCAT(#{schRegDateTo},'235959') </if>
</if>
</if>
<if test="schRgtrCd != null">
<if test="schRgtrOpt == 'rgtr'">
<if test="schRgtrCd != null"> AND C.RGTR = #{schRgtrCd} </if>
</if>
<if test="schRgtrOpt == 'mdfr'">
<if test="schRgtrCd != null"> AND C.MDFR = #{schRgtrCd} </if>
</if>
</if>
<if test="by != null and by != '' and term != null"> <if test="by != null and by != '' and term != null">
<choose> <choose>
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'"> <when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
@ -241,6 +249,24 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
AND IFNULL(CA.OVTIME_PRTTN_YN,'N') = 'N' AND IFNULL(CA.OVTIME_PRTTN_YN,'N') = 'N'
</if> </if>
</if> </if>
<if test="schRegDateFrom != null or schRegDateTo != null">
<if test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null"> AND C.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') </if>
<if test="schRegDateTo != null"> AND C.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') </if>
</if>
<if test="schRegDateOpt == 'mdfcnDt'">
<if test="schRegDateFrom != null"> AND C.MDFCN_DT <![CDATA[ >= ]]> CONCAT(#{schRegDateFrom},'000000') </if>
<if test="schRegDateTo != null"> AND C.MDFCN_DT <![CDATA[ <= ]]> CONCAT(#{schRegDateTo},'235959') </if>
</if>
</if>
<if test="schRgtrCd != null">
<if test="schRgtrOpt == 'rgtr'">
<if test="schRgtrCd != null"> AND C.RGTR = #{schRgtrCd} </if>
</if>
<if test="schRgtrOpt == 'mdfr'">
<if test="schRgtrCd != null"> AND C.MDFR = #{schRgtrCd} </if>
</if>
</if>
<if test="by != null and by != '' and term != null"> <if test="by != null and by != '' and term != null">
<choose> <choose>
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'"> <when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">

@ -28,8 +28,8 @@
<form id="frmSearch--${pageName}" name="frmSearch"> <form id="frmSearch--${pageName}" name="frmSearch">
<div class="container-search"> <div class="container-search">
<div class="row g-1"> <div class="row g-1">
<div class="col-6"> <div class="col-12">
<span class="form-label fw-bold form-search-title">업무구분</span> <span class="form-label fw-bold form-search-title w-px-120 text-end">업무구분</span>
<span class="form-search-linebox"> <span class="form-search-linebox">
<c:forEach items="${TaskListForSgg}" var="item"> <c:forEach items="${TaskListForSgg}" var="item">
<label> <label>
@ -42,7 +42,7 @@
</span> </span>
</div> </div>
<div class="col-6"> <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="schCrdnYmdFrom--${pageName}">단속일자</label>
<span class="form-search-linebox"> <span class="form-search-linebox">
<input type="text" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom" <input type="text" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom"
class="form-control form-date" class="form-control form-date"
@ -55,8 +55,8 @@
<button type="button" class="bx bx-sm bx-calendar bg-white"></button> <button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</span> </span>
</div> </div>
<div class="col-4"> <div class="col-6">
<label class="form-label fw-bold form-search-title" for="crdnInptSeCd--${pageName}">단속구분</label> <label class="form-label fw-bold form-search-title w-px-120 text-end" for="crdnInptSeCd--${pageName}">단속구분</label>
<select id="crdnInptSeCd--${pageName}" name="crdnInptSeCd" class="form-select"> <select id="crdnInptSeCd--${pageName}" name="crdnInptSeCd" class="form-select">
<option value="">전체</option> <option value="">전체</option>
<c:forEach items="${FIM003List}" var="item"> <c:forEach items="${FIM003List}" var="item">
@ -64,18 +64,18 @@
</c:forEach> </c:forEach>
</select> </select>
</div> </div>
<div class="col-4"> <div class="col-6">
<label class="form-label fw-bold form-search-title" for="vhrno--${pageName}">차량번호</label> <label class="form-label fw-bold form-search-title w-px-120 text-end" for="vhrno--${pageName}">차량번호</label>
<input type="text" id="vhrno--${pageName}" name="vhrno" class="form-control" /> <input type="text" id="vhrno--${pageName}" name="vhrno" class="form-control" />
</div> </div>
<div class="col-4"> <div class="col-6">
<span class="area-samevehicleinspection"> <span class="area-samevehicleinspection">
<span class="form-label fw-bold form-search-title">단속건수</span> <span class="form-label fw-bold form-search-title w-px-120 text-end">단속건수</span>
<input type="text" name="schCrdnCntFrom" class="form-control w-px-50" placeholder="2" /> <input type="text" name="schCrdnCntFrom" class="form-control w-px-50" placeholder="2" />
~ <input type="text" name="schCrdnCntTo" class="form-control w-px-50"/> ~ <input type="text" name="schCrdnCntTo" class="form-control w-px-50"/>
</span> </span>
</div> </div>
<div class="col-12"> <div class="col-6">
<label> <label>
<input type="checkbox" name="schExclEnd" class="form-check-input" /> <input type="checkbox" name="schExclEnd" class="form-check-input" />
서손자료제외 서손자료제외
@ -98,9 +98,17 @@
</slot> </slot>
</template> </template>
</span> </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" class="form-control w-px-400" id="term--${pageName}" name="term" autocomplete="off" />
<!-- 상세 검색조건 버튼 -->
<span class="flr"> <span class="flr">
<button type="button" class="btn btn-open-detail" <button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
<i class="bx bx-chevron-down"></i> <i class="bx bx-chevron-down"></i>
상세검색 상세검색
</button> </button>
@ -110,15 +118,8 @@
</div> </div>
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse"> <div id="searchDetail--${pageName}" class="container-search container-search-detail collapse">
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-4">
<input type="hidden" id="by--${pageName}" name="by" /> <label class="form-label fw-bold form-search-title w-px-120 text-end" for="crdnSttsCd--${pageName}">자료상태</label>
<input type="text" id="byOutput--${pageName}" class="form-control" readonly value="동적 검색" />
<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" />
</div>
<div class="col-6">
<label class="form-label fw-bold form-search-title" for="crdnSttsCd--${pageName}">자료상태</label>
<select id="crdnSttsCd--${pageName}" name="crdnSttsCd" class="form-select"> <select id="crdnSttsCd--${pageName}" name="crdnSttsCd" class="form-select">
<option value="">전체</option> <option value="">전체</option>
<c:forEach items="${FIM010List}" var="item"> <c:forEach items="${FIM010List}" var="item">
@ -126,23 +127,32 @@
</c:forEach> </c:forEach>
</select> </select>
</div> </div>
<div class="col-6"> <!-- 등록일자, 수정일자 -->
<select id="schDateOpt--${pageName}" name="schDateOpt" class="form-select"> <div class="col-4">
<select class="form-select w-px-120 text-center" id="schRegDateOpt--${pageName}" name="schRegDateOpt">
<option value="regDt">등록일자</option> <option value="regDt">등록일자</option>
<option value="mdfcnDt">수정일자</option> <option value="mdfcnDt">수정일자</option>
</select> </select>
<span class="form-search-linebox"> <span class="form-search-linebox">
<input type="text" id="schDateFrom--${pageName}" name="schDateFrom" <input type="text" class="form-control form-date" id="schRegDateFrom--${pageName}" name="schRegDateFrom"
class="form-control form-date"
data-fmt-type="day" title="시작 날짜 선택" /> data-fmt-type="day" title="시작 날짜 선택" />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button> <button type="button" class="bx bx-sm bx-calendar bg-white"></button>
~ ~
<input type="text" id="schDateTo--${pageName}" name="schDateTo" <input type="text" class="form-control form-date" id="schRegDateTo--${pageName}" name="schRegDateTo"
class="form-control form-date"
data-fmt-type="day" title="종료 날짜 선택"> data-fmt-type="day" title="종료 날짜 선택">
<button type="button" class="bx bx-sm bx-calendar bg-white"></button> <button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</span> </span>
</div> </div>
<!-- 등록자명, 수정자명 -->
<div class="col-4">
<select class="form-select w-px-120 text-center" id="schRgtrOpt--${pageName}" name="schRgtrOpt">
<option value="rgtr">등록자</option>
<option value="mdfr">수정자</option>
</select>
<input type="hidden" id="schRgtrCd--${pageName}" name="schRgtrCd" />
<input type="text" class="form-control w-px-160" id="schRgtrNm--${pageName}" name="schRgtrNm" />
<button type="button" class="btn btn-sm btn-outline-dark" id="btnFindUser--${pageName}" title="사용자 검색">검색</button>
</div>
</div> </div>
</div> </div>
</form> </form>
@ -360,12 +370,9 @@
</div> </div>
</div> </div>
</span> </span>
</div> </div>
</div> </div>
<div class="content-backdrop fade"></div> <div class="content-backdrop fade"></div>
</div> </div>
@ -519,6 +526,7 @@ $(document).ready(function(){
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); }); searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$("#byOutput--${pageName}").val("동적 검색"); $("#byOutput--${pageName}").val("동적 검색");
$("#schRgtrNm--${pageName}").prop("readonly", true); // 사용자 이름
$('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-7).date); $('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-7).date);
$('#schCrdnYmdTo--${pageName}').datepicker('setDate', TODAY()); $('#schCrdnYmdTo--${pageName}').datepicker('setDate', TODAY());
$P.photoInspectionControl.dataset.setData([]); $P.photoInspectionControl.dataset.setData([]);
@ -1017,6 +1025,33 @@ $(document).ready(function(){
} }
} }
// 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => {
$("#schRgtrCd--${pageName}").val(userId); // 사용자 ID
$("#schRgtrNm--${pageName}").val(userNm); // 사용자 명
}
// 사용자검색 버튼 클릭 이벤트
$P.fnGetFindUser = () => {
let params = {
openerPageName: "${pageName}"
, callbackFuncName: "pageObject['${pageName}']['callbackFindUser']"
}
ajax.get({
url: wctx.url("/user/user02/010/main.do")
, data: params || {}
, success: resp => {
dialog.open({
id: "userDialog"
, title: "사용자 검색"
, content: resp
, size: "lg"
, init: () => { setDialogZindex(); }
});
}
});
}
/************************************************************************** /**************************************************************************
* element.on * element.on
@ -1045,10 +1080,9 @@ $(document).ready(function(){
$("#term--${pageName}").onEnterPress($P.searchInspectionList); $("#term--${pageName}").onEnterPress($P.searchInspectionList);
$('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown()); $('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown());
$("#btnFindUser--${pageName}").on("click", () => $P.fnGetFindUser()); // 사용자 검색
$("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop("1")); $("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop("1"));
fnMakeResizableTable($("#photoInspection-responsive--${pageName}")[0]); fnMakeResizableTable($("#photoInspection-responsive--${pageName}")[0]);
fnMakeResizableTable($("#sameVehicleInspectionMain-responsive--${pageName}")[0]); fnMakeResizableTable($("#sameVehicleInspectionMain-responsive--${pageName}")[0]);
fnMakeResizableTable($("#sameVehicleInspectionSub-responsive--${pageName}")[0]); fnMakeResizableTable($("#sameVehicleInspectionSub-responsive--${pageName}")[0]);

@ -20,7 +20,7 @@
<div class="container-search"> <div class="container-search">
<div class="row g-1"> <div class="row g-1">
<div class="col-6"> <div class="col-6">
<span class="form-label fw-bold form-search-title">단속일자</span> <span class="form-label fw-bold form-search-title w-px-120 text-end">단속일자</span>
<span class="form-search-linebox"> <span class="form-search-linebox">
<input type="text" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom" <input type="text" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom"
class="form-control form-date" class="form-control form-date"
@ -35,10 +35,10 @@
</div> </div>
<div class="col-6"> <div class="col-6">
<input type="hidden" id="by--${pageName}" name="by" /> <input type="hidden" id="by--${pageName}" name="by" />
<input type="text" id="byOutput--${pageName}" class="form-control" readonly value="동적 검색" /> <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="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" /> <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" />
</div> </div>
</div> </div>
</div> </div>

@ -18,7 +18,7 @@
<div class="container-search"> <div class="container-search">
<div class="row g-1"> <div class="row g-1">
<div class="col-6"> <div class="col-6">
<span class="form-label fw-bold form-search-title">업무구분</span> <span class="form-label fw-bold form-search-title w-px-120 text-end">업무구분</span>
<span class="form-search-linebox"> <span class="form-search-linebox">
<c:forEach items="${TaskListForSgg}" var="item"> <c:forEach items="${TaskListForSgg}" var="item">
<label> <label>
@ -31,7 +31,7 @@
</span> </span>
</div> </div>
<div class="col-6"> <div class="col-6">
<label class="form-label fw-bold form-search-title" for="regDt--${pageName}">등록일자</label> <label class="form-label fw-bold form-search-title w-px-120 text-end" for="regDt--${pageName}">등록일자</label>
<input type="text" id="regDt--${pageName}" name="regDt" <input type="text" id="regDt--${pageName}" name="regDt"
class="form-control form-date" data-fmt-type="day" class="form-control form-date" data-fmt-type="day"
title="금일" disabled="disabled" /> title="금일" disabled="disabled" />

@ -25,8 +25,8 @@
<form id="frmSearch--${pageName}" name="frmSearch"> <form id="frmSearch--${pageName}" name="frmSearch">
<div class="container-search"> <div class="container-search">
<div class="row g-1"> <div class="row g-1">
<div class="col-6"> <div class="col-12">
<span class="form-label fw-bold form-search-title">업무구분</span> <span class="form-label fw-bold form-search-title w-px-120 text-end">업무구분</span>
<span class="form-search-linebox"> <span class="form-search-linebox">
<c:forEach items="${TaskListForSgg}" var="item"> <c:forEach items="${TaskListForSgg}" var="item">
<label> <label>
@ -39,7 +39,7 @@
</span> </span>
</div> </div>
<div class="col-6"> <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="schCrdnYmdFrom--${pageName}">단속일자</label>
<span class="form-search-linebox"> <span class="form-search-linebox">
<input type="text" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom" <input type="text" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom"
class="form-control form-date" class="form-control form-date"
@ -53,7 +53,7 @@
</span> </span>
</div> </div>
<div class="col-6"> <div class="col-6">
<label class="form-label fw-bold form-search-title" for="crdnInptSeCd--${pageName}">자료출처</label> <label class="form-label fw-bold form-search-title w-px-120 text-end" for="crdnInptSeCd--${pageName}">자료출처</label>
<select id="crdnInptSeCd--${pageName}" name="crdnInptSeCd" class="form-select"> <select id="crdnInptSeCd--${pageName}" name="crdnInptSeCd" class="form-select">
<option value="">전체</option> <option value="">전체</option>
<c:forEach items="${FIM003List}" var="item"> <c:forEach items="${FIM003List}" var="item">
@ -62,35 +62,18 @@
</select> </select>
</div> </div>
<div class="col-6"> <div class="col-6">
<label class="form-label fw-bold form-search-title" for="vhrno--${pageName}">차량번호</label> <label class="form-label fw-bold form-search-title w-px-120 text-end" for="vhrno--${pageName}">차량번호</label>
<input type="text" id="vhrno--${pageName}" name="vhrno" class="form-control" /> <input type="text" id="vhrno--${pageName}" name="vhrno" class="form-control" />
</div> </div>
<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>
~
<input type="text" id="schDateTo--${pageName}" name="schDateTo"
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"> <div class="col-6">
<input type="hidden" id="by--${pageName}" name="by" /> <input type="hidden" id="by--${pageName}" name="by" />
<input type="text" id="byOutput--${pageName}" class="form-control" readonly value="동적 검색" /> <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="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" /> <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"> <span class="flr">
<button type="button" class="btn btn-open-detail" <button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
<i class="bx bx-chevron-down"></i> <i class="bx bx-chevron-down"></i>
상세검색 상세검색
</button> </button>
@ -99,25 +82,11 @@
</div> </div>
</div> </div>
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse"> <div id="searchDetail--${pageName}" class="container-search container-search-detail collapse">
<div class="row">
<div class="col-6">
<label class="form-label fw-bold form-search-title" for="crdnSttsCd--${pageName}">자료상태</label>
<select id="crdnSttsCd--${pageName}" name="crdnSttsCd" class="form-select">
<option value="">전체</option>
<c:forEach items="${FIM010List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<div class="col-6">
</div>
</div>
<div class="row"> <div class="row">
<div slot="search" class="col-6"> <div slot="search" class="col-6">
<template class="pvs dpv eca"> <template class="pvs dpv eca">
<slot> <slot>
<span class="form-label fw-bold form-search-title">견인</span> <span class="form-label fw-bold form-search-title w-px-120 text-end">견인여부</span>
<label class="form-label"> <label class="form-label">
<input type="radio" name="towngYn" value="" class="form-check-input" checked />전체 <input type="radio" name="towngYn" value="" class="form-check-input" checked />전체
</label> </label>
@ -130,6 +99,41 @@
</slot> </slot>
</template> </template>
</div> </div>
<div class="col-6">
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="crdnSttsCd--${pageName}">자료상태</label>
<select id="crdnSttsCd--${pageName}" name="crdnSttsCd" class="form-select">
<option value="">전체</option>
<c:forEach items="${FIM010List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<!-- 등록일자, 수정일자 -->
<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" 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>
<!-- 등록자명, 수정자명 -->
<div class="col-6">
<select class="form-select w-px-120 text-center" id="schRgtrOpt--${pageName}" name="schRgtrOpt">
<option value="rgtr">등록자</option>
<option value="mdfr">수정자</option>
</select>
<input type="hidden" id="schRgtrCd--${pageName}" name="schRgtrCd" />
<input type="text" class="form-control w-px-160" id="schRgtrNm--${pageName}" name="schRgtrNm" />
<button type="button" class="btn btn-sm btn-outline-dark" id="btnFindUser--${pageName}" title="사용자 검색">검색</button>
</div>
</div> </div>
</div> </div>
</form> </form>
@ -258,17 +262,12 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="content-backdrop fade"></div> <div class="content-backdrop fade"></div>
</div> </div>
<script> <script>
/************************************************************************** /**************************************************************************
@ -351,6 +350,7 @@ $(document).ready(function(){
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); }); searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$("#byOutput--${pageName}").val("동적 검색"); $("#byOutput--${pageName}").val("동적 검색");
$("#schRgtrNm--${pageName}").prop("readonly", true); // 사용자 이름
$('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-365).date); $('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-365).date);
$('#schCrdnYmdTo--${pageName}').datepicker('setDate', TODAY()); $('#schCrdnYmdTo--${pageName}').datepicker('setDate', TODAY());
$P.crdnControl.dataset.setData([]); $P.crdnControl.dataset.setData([]);
@ -545,6 +545,33 @@ $(document).ready(function(){
}); });
} }
// 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => {
$("#schRgtrCd--${pageName}").val(userId); // 사용자 ID
$("#schRgtrNm--${pageName}").val(userNm); // 사용자 명
}
// 사용자검색 버튼 클릭 이벤트
$P.fnGetFindUser = () => {
let params = {
openerPageName: "${pageName}"
, callbackFuncName: "pageObject['${pageName}']['callbackFindUser']"
}
ajax.get({
url: wctx.url("/user/user02/010/main.do")
, data: params || {}
, success: resp => {
dialog.open({
id: "userDialog"
, title: "사용자 검색"
, content: resp
, size: "lg"
, init: () => { setDialogZindex(); }
});
}
});
}
/************************************************************************** /**************************************************************************
* element.on * element.on
@ -555,6 +582,7 @@ $(document).ready(function(){
$("#term--${pageName}").onEnterPress($P.searchCrdnList); $("#term--${pageName}").onEnterPress($P.searchCrdnList);
$('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown(false)); $('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown(false));
$('#btnExcelForApproval--${pageName}').on('click', () => $P.fnExcelDown(true)); $('#btnExcelForApproval--${pageName}').on('click', () => $P.fnExcelDown(true));
$("#btnFindUser--${pageName}").on("click", () => $P.fnGetFindUser()); // 사용자 검색
fnMakeResizableTable($("#table-responsive--${pageName}")[0]); fnMakeResizableTable($("#table-responsive--${pageName}")[0]);
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList); fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList);

@ -20,7 +20,7 @@
<div class="container-search"> <div class="container-search">
<div class="row g-1"> <div class="row g-1">
<div class="col-6"> <div class="col-6">
<span class="form-label fw-bold form-search-title">업무구분</span> <span class="form-label fw-bold form-search-title w-px-120 text-end">업무구분</span>
<span class="form-search-linebox"> <span class="form-search-linebox">
<c:forEach items="${FIM054List}" var="item"> <c:forEach items="${FIM054List}" var="item">
<c:if test="${item.code == 'PVS' or item.code == 'BPV'}"> <c:if test="${item.code == 'PVS' or item.code == 'BPV'}">
@ -56,14 +56,14 @@
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer"> class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr id="useTeamTheadTr--${pageName}"> <tr id="useTeamTheadTr--${pageName}">
<th style="width: 200px;">단속조</th> <th style="width: 160px;">단속조</th>
<th style="width: 200px;">단속구분</th> <th style="width: 160px;">단속구분</th>
<th style="width: 200px;">단속원1</th> <th style="width: 160px;">단속원1</th>
<th style="width: 200px;">단속원2</th> <th style="width: 160px;">단속원2</th>
<th style="width: 200px;">단속원3</th> <th style="width: 160px;">단속원3</th>
<th style="width: 200px;">단속원4</th> <th style="width: 160px;">단속원4</th>
<th style="width: 200px;">특이사항</th> <th style="width: 400px;">특이사항</th>
<th style="width: 200px;">등록일</th> <th style="width: 180px;">등록일시</th>
<th class="dummy-th"></th> <th class="dummy-th"></th>
</tr> </tr>
</thead> </thead>

@ -22,13 +22,13 @@
<div class="container-search"> <div class="container-search">
<div class="row g-1"> <div class="row g-1">
<div class="col-6"> <div class="col-6">
<label class="form-label fw-bold form-search-title" for="vhrno--${pageName}"> <label class="form-label fw-bold form-search-title w-px-120 text-end" for="vhrno--${pageName}">
차량번호 차량번호
</label> </label>
<input type="text" id="vhrno--${pageName}" name="vhrno" class="form-control" /> <input type="text" id="vhrno--${pageName}" name="vhrno" class="form-control" />
</div> </div>
<div class="col-6"> <div class="col-6">
<label class="form-label fw-bold form-search-title" for="delYn--${pageName}"> <label class="form-label fw-bold form-search-title w-px-120 text-end" for="delYn--${pageName}">
삭제여부 삭제여부
</label> </label>
<select id="delYn--${pageName}" name="denYn" class="form-select"> <select id="delYn--${pageName}" name="denYn" class="form-select">
@ -113,12 +113,9 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="content-backdrop fade"></div> <div class="content-backdrop fade"></div>
</div> </div>

Loading…
Cancel
Save