통계 화면 수정

main
이범준 1 year ago
parent 476553d009
commit b7cb243b8b

@ -19,8 +19,9 @@ public class Stat02Controller extends ApplicationController {
mav.setViewName("fims/stat/stat02010-main"); mav.setViewName("fims/stat/stat02010-main");
mav.addObject("pageName", "stat02010-main"); mav.addObject("pageName", "stat02010-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054"); Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054","FIM002");
mav.addObject("FIM054List", commonCodes.get("FIM054")); mav.addObject("FIM054List", commonCodes.get("FIM054"));
mav.addObject("FIM002List", commonCodes.get("FIM002"));
return mav; return mav;
} }

@ -70,25 +70,25 @@
<div class="row g-1 my-2 bg-lighter"> <div class="row g-1 my-2 bg-lighter">
<div class="col-3"> <div class="col-3">
<label class="form-label fw-bold form-search-title text-end">그룹단위1</label> <label class="form-label fw-bold form-search-title text-end">그룹단위1</label>
<select name="groupLevel1" class="form-select"> <select id="groupLevel1--${pageName}" name="groupLevel1" class="form-select">
</select> </select>
</div> </div>
<div class="col-3"> <div class="col-3">
<label class="form-label fw-bold form-search-title text-end">그룹단위2</label> <label class="form-label fw-bold form-search-title text-end">그룹단위2</label>
<select name="groupLevel2" class="form-select"> <select id="groupLevel2--${pageName}" name="groupLevel2" class="form-select">
<option value="">미선택</option> <option value="">미선택</option>
</select> </select>
</div> </div>
<div class="col-3"> <div class="col-3">
<label class="form-label fw-bold form-search-title text-end">그룹단위3</label> <label class="form-label fw-bold form-search-title text-end">그룹단위3</label>
<select name="groupLevel3" class="form-select"> <select id="groupLevel3--${pageName}" name="groupLevel3" class="form-select">
<option value="">미선택</option> <option value="">미선택</option>
</select> </select>
</div> </div>
<div class="col-3"> <div class="col-3">
<label class="form-label fw-bold form-search-title text-end">그룹단위4</label> <label class="form-label fw-bold form-search-title text-end">그룹단위4</label>
<select name="groupLevel4" class="form-select"> <select id="groupLevel4--${pageName}" name="groupLevel4" class="form-select">
<option value="">미선택</option> <option value="">미선택</option>
</select> </select>
</div> </div>
@ -103,6 +103,10 @@
<div class="row g-1 my-2 bg-lighter"> <div class="row g-1 my-2 bg-lighter">
<div class="col-3"> <div class="col-3">
<label class="form-label fw-bold form-search-title text-end">상세목록</label> <label class="form-label fw-bold form-search-title text-end">상세목록</label>
<select id="refListYn--${pageName}" name="refListYn" class="form-select">
<option value="N">미조회</option>
<option value="Y">조회</option>
</select>
</div> </div>
</div> </div>
@ -110,12 +114,42 @@
</form> </form>
</span> </span>
<span id="grid--${pageName}"> <span>
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
<div class="table-responsive"
style="overflow-x: scroll;height:500px;overflow-y: scroll;">
<table id="masterTable--${pageName}"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead">
<tr id="masterThead--${pageName}">
</tr>
</thead>
<tbody id="masterTbody--${pageName}">
</tbody>
</table>
</div>
</div>
</div>
</span> </span>
<span id="detailGrid--${pageName}"> <span id="detailArea" hidden>
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
<div class="table-responsive"
style="overflow-x: scroll;height:500px;overflow-y: scroll;">
<table id="detailTable--${pageName}"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead">
<tr id="detailThead--${pageName}">
</tr>
</thead>
<tbody id="detailTbody--${pageName}">
</tbody>
</table>
</div>
</div>
</div>
</span> </span>
</div> </div>
@ -140,27 +174,107 @@ $(document).ready(function(){
} }
$P.getGroupInfoList = () => {
var groupInfoLiost = [];
var selected = $("#groupLevel1--${pageName}").find(":selected");
groupInfoLiost.push({
refCol : selected[0].dataset.refCol,
ctgrType : selected[0].dataset.ctgrType,
dtlCtgr : selected[0].dataset.dtlCtgr
})
selected = $("#groupLevel2--${pageName}").find(":selected");
if(selected.val() == ""){
return groupInfoLiost;
}
groupInfoLiost.push({
refCol : selected[0].dataset.refCol,
ctgrType : selected[0].dataset.ctgrType,
dtlCtgr : selected[0].dataset.dtlCtgr
})
selected = $("#groupLevel3--${pageName}").find(":selected");
if(selected.val() == ""){
return groupInfoLiost;
}
groupInfoLiost.push({
refCol : selected[0].dataset.refCol,
ctgrType : selected[0].dataset.ctgrType,
dtlCtgr : selected[0].dataset.dtlCtgr
})
selected = $("#groupLevel4--${pageName}").find(":selected");
if(selected.val() == ""){
return groupInfoLiost;
}
groupInfoLiost.push({
refCol : selected[0].dataset.refCol,
ctgrType : selected[0].dataset.ctgrType,
dtlCtgr : selected[0].dataset.dtlCtgr
})
return groupInfoLiost;
}
$P.getNumberValueInfoList = () => {
var numberValuefoLiost = [];
return numberValuefoLiost;
}
$P.searchStat = () => { $P.searchStat = () => {
var defaultQuery = { var statQuery = {
structureType : "list", structureType : "aggregate"
refCol : ["OPNN_SBMSN_STTS_CD"],
ctgrType : ["code"],
dtlCtgr : ["FIM031"]
}; };
ajax.get({ var formFields = new FimsFormFields("#frmSearch--${pageName}");
url : wctx.url("/stat/stat01/010/info.do"), var formFieldsData = formFields.get();
data : defaultQuery,
success : (resp) => { //업무구분
if(formFieldsData.taskSeCd != ""){
statQuery.taskSeCd = formFieldsData.taskSeCd;
}
//집계 그룹 정보
statQuery.groupInfoList = $P.getGroupInfoList();
//수치값 정보
statQuery.numberValueInfoList = $P.getNumberValueInfoList();
} //상세목록 조회 여부
}); statQuery.refListYn = formFieldsData.refListYn;
//ajax.get({
// url : wctx.url("/stat/stat01/010/info.do"),
// data : defaultQuery,
// success : (resp) => {
// }
//});
} }
initDatepicker("frmSearch--${pageName}"); //달력 초기화 initDatepicker("frmSearch--${pageName}"); //달력 초기화
$("#schDateOpt--${pageName}").append(document.getElementById("schDateOptDatalist--${pageName}").innerHTML);
$("#groupLevel1--${pageName}").append(document.getElementById("groupLevelDatalist--${pageName}").innerHTML);
$("#groupLevel2--${pageName}").append(document.getElementById("groupLevelDatalist--${pageName}").innerHTML);
$("#groupLevel3--${pageName}").append(document.getElementById("groupLevelDatalist--${pageName}").innerHTML);
$("#groupLevel4--${pageName}").append(document.getElementById("groupLevelDatalist--${pageName}").innerHTML);
$("#searchForMenu--${pageName}").append(document.getElementById("searchForMenuTemplate--${pageName}").innerHTML);
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/

@ -3,3 +3,108 @@
<c:set var="prefixName" scope="request">단속 통계</c:set> <c:set var="prefixName" scope="request">단속 통계</c:set>
<jsp:include page="/WEB-INF/jsp/fims/stat/stat01010-main.jsp" /> <jsp:include page="/WEB-INF/jsp/fims/stat/stat01010-main.jsp" />
<datalist id="schDateOptDatalist--${pageName}">
<option value="crdnYmd">단속일자</option>
</datalist>
<template id="searchForMenuTemplate--${pageName}">
<div class="col-6">
<label class="form-label fw-bold form-search-title text-end">단속구분</label>
<select name="crdnSeCd" class="form-select">
<option value="">전체</option>
<c:forEach items="${FIM002List}" 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>
<select name="carSe" class="form-select">
<option value="">전체</option>
<option value="일반">일반</option>
<option value="중기">중기</option>
<option value="임시">임시</option>
<option value="외교">외교</option>
<option value="영사">영사</option>
<option value="준영">준영</option>
<option value="미군">미군</option>
<option value="국제">국제</option>
<option value="준외">준외</option>
<option value="기타">기타</option>
</select>
</div>
<div class="col-12">
<label>
<input type="checkbox" name="schExclEnd" class="form-check-input" />
서손자료 제외
</label>
<label>
<input type="checkbox" name="schOnlyRent" class="form-check-input" />
렌트카차량(하허호후)만 조회
</label>
</div>
</template>
<datalist id="groupLevelDatalist--${pageName}">
<option value="sggCd"
data-ref-col="SGG_CD" data-ctgr-type="otherCode" data-dtl-ctgr="SGG_CD"
>시군구</option>
<option value="taskSeCd"
data-ref-col="TASK_SE_CD" data-ctgr-type="code" data-dtl-ctgr="FIM054"
>과태료</option>
<option value="crdnTeam"
data-ref-col="" data-ctgr-type="" data-dtl-ctgr=""
>단속조</option>
<option value="crdnPlc"
data-ref-col="CRDN_PLC" data-ctgr-type="" data-dtl-ctgr=""
>단속장소</option>
<option value="crdnYear"
data-ref-col="CRDN_YMD" data-ctgr-type="date" data-dtl-ctgr="YYYY"
>단속연도</option>
<option value="crdnYearMonth"
data-ref-col="CRDN_YMD" data-ctgr-type="date" data-dtl-ctgr="YYYYMM"
>단속연월</option>
<option value="crdnYmd"
data-ref-col="CRDN_YMD" data-ctgr-type="date" data-dtl-ctgr="YYYYMMDD"
>단속일자</option>
<option value="crdnDayOfWeek"
data-ref-col="CRDN_YMD" data-ctgr-type="date" data-dtl-ctgr="DAY_OF_WEEK"
>단속요일</option>
<option value="crdnHour"
data-ref-col="CRDN_YMD" data-ctgr-type="date" data-dtl-ctgr="HH"
>단속시간대</option>
<option value="crdnLine"
data-ref-col="" data-ctgr-type="" data-dtl-ctgr=""
>단속노선</option>
<option value="vhrno"
data-ref-col="VHRNO" data-ctgr-type="" data-dtl-ctgr=""
>차량번호</option>
<option value="crdnStdgNm"
data-ref-col="CRDN_STDNG_NM" data-ctgr-type="" data-dtl-ctgr=""
>단속동</option>
<option value="crdnRoadNm"
data-ref-col="CRDN_ROAD_NM" data-ctgr-type="" data-dtl-ctgr=""
>도로명</option>
<option value="userId"
data-ref-col="USER_ID" data-ctgr-type="otherCode" data-dtl-ctgr="USER_ID"
>사용자</option>
<option value="crdnSttsCd"
data-ref-col="CRDN_STTS_CD" data-ctgr-type="code" data-dtl-ctgr="FIM010"
>처리상태</option>
<option value="crdnSpareaCd"
data-ref-col="CRDN_SPAREA_CD" data-ctgr-type="code" data-dtl-ctgr="FIM007"
>특별구역</option>
<option value="vltnId"
data-ref-col="VLTN_ID" data-ctgr-type="otherCode" data-dtl-ctgr="VLTN_ID"
>위반내용</option>
<option value="ffnlgCarmdlCd"
data-ref-col="FFNLG_CARMDL_CD" data-ctgr-type="code" data-dtl-ctgr="FIM009"
>차종</option>
<option value="businessCar"
data-ref-col="" data-ctgr-type="" data-dtl-ctgr=""
>사업용차량구분</option>
<option value="carSe"
data-ref-col="" data-ctgr-type="" data-dtl-ctgr=""
>차량구분</option>
</datalist>

@ -3,3 +3,69 @@
<c:set var="prefixName" scope="request">부과 통계</c:set> <c:set var="prefixName" scope="request">부과 통계</c:set>
<jsp:include page="/WEB-INF/jsp/fims/stat/stat01010-main.jsp" /> <jsp:include page="/WEB-INF/jsp/fims/stat/stat01010-main.jsp" />
<datalist id="schDateOptDatalist--${pageName}">
<option value="">부과일자</option>
<option value="">처리일자</option>
<option value="">소인일자</option>
<option value="">회계일자</option>
<option value="">수납일자</option>
<option value="">징수결의일자</option>
<option value="">부과수납일자</option>
<option value="">고지일자</option>
<option value="">징수일자</option>
</datalist>
<template id="searchForMenuTemplate--${pageName}">
<div class="col-6">
<label class="form-label fw-bold form-search-title text-end">고지번호</label>
<input type="text" class="form-control" name=""/>
~ <input type="text" class="form-control" name=""/>
</div>
<div class="col-6">
<label class="form-label fw-bold form-search-title text-end">회계연도</label>
<input type="text" class="form-control w-px-70" name=""/>
</div>
</template>
<datalist id="groupLevelDatalist--${pageName}">
<option value="sggCd"
data-ref-col="SGG_CD" data-ctgr-type="otherCode" data-dtl-ctgr="SGG_CD"
>시군구</option>
<option value="taskSeCd"
data-ref-col="TASK_SE_CD" data-ctgr-type="code" data-dtl-ctgr="FIM054"
>과태료</option>
<option value="pstmrkYear"
data-ref-col="PSTMRK_YMD" data-ctgr-type="date" data-dtl-ctgr="YYYYMM"
>소인연월</option>
<option value="pstmrkYearMonth"
data-ref-col="PSTMRK_YMD" data-ctgr-type="date" data-dtl-ctgr="YYYYMMDD"
>소인일자</option>
<option value="acntgYear"
data-ref-col="ACNTG_YMD" data-ctgr-type="date" data-dtl-ctgr="YYYY"
>회계연도</option>
<option value="acntgYearMonth"
data-ref-col="ACNTG_YMD" data-ctgr-type="date" data-dtl-ctgr="YYYYMM"
>회계연월</option>
<option value="acntgYmd"
data-ref-col="ACNTG_YMD" data-ctgr-type="date" data-dtl-ctgr="YYYYMMDD"
>회계일자</option>
<option value="rcvmtYearMonth"
data-ref-col="RCVMT_YMD" data-ctgr-type="date" data-dtl-ctgr="YYYYMM"
>수납연월</option>
<option value="rcvmtYmd"
data-ref-col="RCVMT_YMD" data-ctgr-type="date" data-dtl-ctgr="YYYYMMDD"
>수납일자</option>
<option value="levyYear"
data-ref-col="LEVY_YMD" data-ctgr-type="date" data-dtl-ctgr="YYYY"
>부과연도</option>
<option value="levyYearMonth"
data-ref-col="LEVY_YMD" data-ctgr-type="date" data-dtl-ctgr="YYYYMM"
>부과연월</option>
<option value=""
data-ref-col="" data-ctgr-type="date" data-dtl-ctgr="YYYY"
>고지연도</option>
<option value=""
data-ref-col="" data-ctgr-type="date" data-dtl-ctgr="YYYYMM"
>고지연월</option>
</datalist>

@ -3,3 +3,19 @@
<c:set var="prefixName" scope="request">발송 통계</c:set> <c:set var="prefixName" scope="request">발송 통계</c:set>
<jsp:include page="/WEB-INF/jsp/fims/stat/stat01010-main.jsp" /> <jsp:include page="/WEB-INF/jsp/fims/stat/stat01010-main.jsp" />
<datalist id="schDateOptDatalist--${pageName}">
<option value="sndngYmd">발송일자</option>
</datalist>
<template id="searchForMenuTemplate--${pageName}">
</template>
<datalist id="groupLevelDatalist--${pageName}">
<option value="sndngSttsCd"
data-ref-col="SNDNG_STTS_CD" data-ctgr-type="code" data-dtl-ctgr="FIM0049"
>발송상태구분</option>
</datalist>

@ -210,8 +210,8 @@ function fnMakeStatReq(taskSeCd){
groupInfoList : [ groupInfoList : [
{ {
refCol : "CRDN_SE_CD", refCol : "CRDN_SE_CD",
ctgrType : ["code"], ctgrType : "code",
dtlCtgr : ["FIM002"] dtlCtgr : "FIM002"
} }
], ],
codeSubsetInfoList : [ codeSubsetInfoList : [
@ -254,8 +254,8 @@ function fnMakeStatReq(taskSeCd){
groupInfoList : [ groupInfoList : [
{ {
refCol : "등록대상이첩대상구분", refCol : "등록대상이첩대상구분",
ctgrType : ["code"], ctgrType : "code",
dtlCtgr : ["FIM999"] dtlCtgr : "FIM999"
} }
], ],
fixedItemId : ["등록대상","이첩대상"], fixedItemId : ["등록대상","이첩대상"],
@ -284,8 +284,8 @@ function fnMakeStatReq(taskSeCd){
groupInfoList : [ groupInfoList : [
{ {
refCol : "SNDNG_SE_CD", refCol : "SNDNG_SE_CD",
ctgrType : ["code"], ctgrType : "code",
dtlCtgr : ["FIM047"] dtlCtgr : "FIM047"
} }
], ],
fixedItemId : ["01", "02", "03"], fixedItemId : ["01", "02", "03"],
@ -314,8 +314,8 @@ function fnMakeStatReq(taskSeCd){
groupInfoList : [ groupInfoList : [
{ {
refCol : "OPNN_SBMSN_STTS_CD", refCol : "OPNN_SBMSN_STTS_CD",
ctgrType : ["code"], ctgrType : "code",
dtlCtgr : ["FIM031"] dtlCtgr : "FIM031"
} }
], ],
codeSubsetInfoList : [ codeSubsetInfoList : [
@ -352,8 +352,8 @@ function fnMakeStatReq(taskSeCd){
groupInfoList : [ groupInfoList : [
{ {
refCol : "CRDN_SE_CD", refCol : "CRDN_SE_CD",
ctgrType : ["code"], ctgrType : "code",
dtlCtgr : ["FIM002"] dtlCtgr : "FIM002"
} }
], ],
codeSubsetInfoList : [ codeSubsetInfoList : [
@ -395,8 +395,8 @@ function fnMakeStatReq(taskSeCd){
groupInfoList : [ groupInfoList : [
{ {
refCol : "CRDN_STTS_CD", refCol : "CRDN_STTS_CD",
ctgrType : ["code"], ctgrType : "code",
dtlCtgr : ["FIM010"] dtlCtgr : "FIM010"
} }
], ],
numberValueInfoList : [ numberValueInfoList : [
@ -436,8 +436,8 @@ function fnMakeStatReq(taskSeCd){
groupInfoList : [ groupInfoList : [
{ {
refCol : "SNDNG_SE_CD", refCol : "SNDNG_SE_CD",
ctgrType : ["code"], ctgrType : "code",
dtlCtgr : ["FIM047"] dtlCtgr : "FIM047"
} }
], ],
numberValueInfoList : [ numberValueInfoList : [
@ -469,8 +469,8 @@ function fnMakeStatReq(taskSeCd){
groupInfoList : [ groupInfoList : [
{ {
refCol : "OPNN_SBMSN_STTS_CD", refCol : "OPNN_SBMSN_STTS_CD",
ctgrType : ["code"], ctgrType : "code",
dtlCtgr : ["FIM031"] dtlCtgr : "FIM031"
} }
], ],
numberValueInfoList : [ numberValueInfoList : [

Loading…
Cancel
Save