통계 수정

main
이범준 1 year ago
parent bfe8b98c1a
commit a50f2dda1f

@ -32,7 +32,7 @@ public class StatQuery extends CmmnQuery {
private String[] categorization; private String[] categorization;
/** /**
* *
*/ */
private String[] categorizationAddOption; private String[] categorizationAddOption;

@ -22,7 +22,7 @@ import cokr.xit.fims.stat.service.StatService;
* { }/stat . * { }/stat .
* @author leebj * @author leebj
*/ */
public class StatController extends ApplicationController { public class Stat01Controller extends ApplicationController {
@Resource(name="statService") @Resource(name="statService")
private StatService statService; private StatService statService;
@ -33,6 +33,21 @@ public class StatController extends ApplicationController {
@Resource(name="userMapper") @Resource(name="userMapper")
protected UserMapper userMapper; protected UserMapper userMapper;
/** .
* @return fims/stat/stat01010-main
*/
public ModelAndView statMain() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/stat/stat01010-main");
mav.addObject("pageName", "stat01010-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054");
mav.addObject("FIM054List", commonCodes.get("FIM054"));
return mav;
}
public ModelAndView getStatistics(StatQuery statQuery) { public ModelAndView getStatistics(StatQuery statQuery) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");

@ -366,8 +366,14 @@ public class CmnController {
} }
@Controller @Controller
@RequestMapping(name="통계", value="/stat") @RequestMapping(name="통계", value="/stat/stat01")
class StatController extends cokr.xit.fims.stat.web.StatController { class Stat01Controller extends cokr.xit.fims.stat.web.Stat01Controller {
@Override
@RequestMapping(name="통계 메인", value="/010/main.do")
public ModelAndView statMain() {
return super.statMain();
}
@Override @Override
@RequestMapping(name="통계 요청", value="/010/info.do") @RequestMapping(name="통계 요청", value="/010/info.do")

@ -0,0 +1,88 @@
<%@ 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="prefixName" scope="request">통계1</c:set>
<div class="content-wrapper">
<div class="container-xxl flex-grow-1 px-0">
<div class="card wrapper-list">
<span class="mb-1">
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark"
title="초기화">
초기화
</button>
<span class="container-window-btn-right">
<button type="button" id="btnSearch--${pageName}" class="btn btn-search w-px-120"
title="검색">
검색
</button>
</span>
</div>
<!-- / 상단 버튼 -->
<!-- 검색 조건 영역 -->
<form id="frmSearch--${pageName}" name="frmSearch">
<!-- 메인 조건 -->
<div class="container-search">
<div class="row g-1">
<!-- 업무구분 -->
<div class="col-12">
<label class="form-label fw-bold form-search-title text-end">업무구분</label>
<span class="form-search-linebox">
<label>
<input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분"
value="" onchange="" checked="checked">
전체
</label>
<c:forEach items="${FIM054List}" var="item">
<label>
<input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분"
value="${item.code}" onchange="">
${item.value}
</label>
</c:forEach>
</span>
</div>
</div>
</div> <!-- / 메인 조건 -->
</form>
</span>
</div>
</div>
<jsp:include page="/WEB-INF/jsp/include/bottom.jsp" />
<div class="content-backdrop fade"></div>
</div>
<script>
pageObject["${pageName}"] = {};
$(document).ready(function(){
var $P = pageObject["${pageName}"];
/**************************************************************************
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
}
$P.searchStat = () => {
}
/**************************************************************************
* element.on
**************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset());
$('#btnSearch--${pageName}').on('click', () => $P.searchStat());
});
</script>

@ -284,7 +284,7 @@ function fnLoadStatisticsDatas(){
//통계 데이터 조회 //통계 데이터 조회
function fnLoadStatisticsData(queryParam, cursor, statType){ function fnLoadStatisticsData(queryParam, cursor, statType){
ajax.get({ ajax.get({
url : wctx.url("/stat/010/info.do"), url : wctx.url("/stat/stat01/010/info.do"),
data : queryParam, data : queryParam,
success : (resp) => { success : (resp) => {
var statData = resp.stat; var statData = resp.stat;

Loading…
Cancel
Save