|
|
|
@ -19,7 +19,9 @@ import cokr.xit.fims.stat.GroupInfo;
|
|
|
|
|
import cokr.xit.fims.stat.NumberValueInfo;
|
|
|
|
|
import cokr.xit.fims.stat.Stat;
|
|
|
|
|
import cokr.xit.fims.stat.StatQuery;
|
|
|
|
|
import cokr.xit.fims.stat.dao.StatMapper;
|
|
|
|
|
import cokr.xit.fims.stat.service.StatService;
|
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
|
|
|
|
|
|
/**통계 관리 서비스 웹 컨트롤러.<br />
|
|
|
|
|
* {웹 컨텍스트}/stat 로 접근할 수 있다.
|
|
|
|
@ -49,16 +51,19 @@ public class Stat01Controller extends ApplicationController {
|
|
|
|
|
@Resource(name="userMapper")
|
|
|
|
|
protected UserMapper userMapper;
|
|
|
|
|
|
|
|
|
|
@Resource(name="statMapper")
|
|
|
|
|
protected StatMapper statMapper;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public ModelAndView getStatistics(StatQuery statQuery) {
|
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
|
|
|
|
|
|
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
|
|
|
|
|
String curDeptCode = currentUser.getDeptCode();
|
|
|
|
|
String sggCd = globalStngMapper.selectSggCd(curDeptCode);
|
|
|
|
|
statQuery.setSggCd(sggCd);
|
|
|
|
|
//ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
|
|
|
|
|
//String curDeptCode = currentUser.getDeptCode();
|
|
|
|
|
//String sggCd = globalStngMapper.selectSggCd(curDeptCode);
|
|
|
|
|
//statQuery.setSggCd(sggCd);
|
|
|
|
|
|
|
|
|
|
List<String> codeGroup = new ArrayList<String>();
|
|
|
|
|
|
|
|
|
@ -138,6 +143,14 @@ public class Stat01Controller extends ApplicationController {
|
|
|
|
|
mav.setViewName("fims/stat/stat01010-main");
|
|
|
|
|
mav.addObject("pageName", "stat01010-main");
|
|
|
|
|
|
|
|
|
|
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
|
|
|
|
|
String curDeptCode = currentUser.getDeptCode();
|
|
|
|
|
String sggCd = globalStngMapper.selectSggCd(curDeptCode);
|
|
|
|
|
mav.addObject("sggCd", sggCd);
|
|
|
|
|
DataObject sgg = statMapper.selectSggByCode(sggCd);
|
|
|
|
|
String sggNm = sgg.string("NAME");
|
|
|
|
|
mav.addObject("sggNm", sggNm);
|
|
|
|
|
|
|
|
|
|
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054","FIM002");
|
|
|
|
|
mav.addObject("FIM054List", commonCodes.get("FIM054"));
|
|
|
|
|
mav.addObject("FIM002List", commonCodes.get("FIM002"));
|
|
|
|
@ -154,6 +167,14 @@ public class Stat01Controller extends ApplicationController {
|
|
|
|
|
mav.setViewName("fims/stat/stat01020-main");
|
|
|
|
|
mav.addObject("pageName", "stat01020-main");
|
|
|
|
|
|
|
|
|
|
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
|
|
|
|
|
String curDeptCode = currentUser.getDeptCode();
|
|
|
|
|
String sggCd = globalStngMapper.selectSggCd(curDeptCode);
|
|
|
|
|
mav.addObject("sggCd", sggCd);
|
|
|
|
|
DataObject sgg = statMapper.selectSggByCode(sggCd);
|
|
|
|
|
String sggNm = sgg.string("NAME");
|
|
|
|
|
mav.addObject("sggNm", sggNm);
|
|
|
|
|
|
|
|
|
|
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054","FIM002");
|
|
|
|
|
mav.addObject("FIM054List", commonCodes.get("FIM054"));
|
|
|
|
|
mav.addObject("FIM002List", commonCodes.get("FIM002"));
|
|
|
|
@ -171,6 +192,14 @@ public class Stat01Controller extends ApplicationController {
|
|
|
|
|
mav.setViewName("fims/stat/stat01030-main");
|
|
|
|
|
mav.addObject("pageName", "stat01030-main");
|
|
|
|
|
|
|
|
|
|
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
|
|
|
|
|
String curDeptCode = currentUser.getDeptCode();
|
|
|
|
|
String sggCd = globalStngMapper.selectSggCd(curDeptCode);
|
|
|
|
|
mav.addObject("sggCd", sggCd);
|
|
|
|
|
DataObject sgg = statMapper.selectSggByCode(sggCd);
|
|
|
|
|
String sggNm = sgg.string("NAME");
|
|
|
|
|
mav.addObject("sggNm", sggNm);
|
|
|
|
|
|
|
|
|
|
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054");
|
|
|
|
|
mav.addObject("FIM054List", commonCodes.get("FIM054"));
|
|
|
|
|
|
|
|
|
@ -186,6 +215,14 @@ public class Stat01Controller extends ApplicationController {
|
|
|
|
|
mav.setViewName("fims/stat/stat01040-main");
|
|
|
|
|
mav.addObject("pageName", "stat01040-main");
|
|
|
|
|
|
|
|
|
|
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
|
|
|
|
|
String curDeptCode = currentUser.getDeptCode();
|
|
|
|
|
String sggCd = globalStngMapper.selectSggCd(curDeptCode);
|
|
|
|
|
mav.addObject("sggCd", sggCd);
|
|
|
|
|
DataObject sgg = statMapper.selectSggByCode(sggCd);
|
|
|
|
|
String sggNm = sgg.string("NAME");
|
|
|
|
|
mav.addObject("sggNm", sggNm);
|
|
|
|
|
|
|
|
|
|
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054");
|
|
|
|
|
mav.addObject("FIM054List", commonCodes.get("FIM054"));
|
|
|
|
|
|
|
|
|
@ -201,6 +238,14 @@ public class Stat01Controller extends ApplicationController {
|
|
|
|
|
mav.setViewName("fims/stat/stat01050-main");
|
|
|
|
|
mav.addObject("pageName", "stat01050-main");
|
|
|
|
|
|
|
|
|
|
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
|
|
|
|
|
String curDeptCode = currentUser.getDeptCode();
|
|
|
|
|
String sggCd = globalStngMapper.selectSggCd(curDeptCode);
|
|
|
|
|
mav.addObject("sggCd", sggCd);
|
|
|
|
|
DataObject sgg = statMapper.selectSggByCode(sggCd);
|
|
|
|
|
String sggNm = sgg.string("NAME");
|
|
|
|
|
mav.addObject("sggNm", sggNm);
|
|
|
|
|
|
|
|
|
|
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054","FIM002");
|
|
|
|
|
mav.addObject("FIM054List", commonCodes.get("FIM054"));
|
|
|
|
|
mav.addObject("FIM002List", commonCodes.get("FIM002"));
|
|
|
|
|