통합조회 메인화면 업무구분 표시 수정

main
이범준 11 months ago
parent 97f1ddab41
commit 7d45c75288

@ -21,10 +21,14 @@ import cokr.xit.base.code.CommonCode;
import cokr.xit.base.file.xls.XLSWriter;
import cokr.xit.base.file.xls.XLSWriter.CellDef;
import cokr.xit.base.file.xls.XLSWriter.Styler;
import cokr.xit.base.security.SecuredUserInfo;
import cokr.xit.base.user.ManagedUser;
import cokr.xit.base.user.dao.UserMapper;
import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.cmmn.CmmnUtil;
import cokr.xit.fims.cmmn.service.bean.FactionBean;
import cokr.xit.fims.cmmn.service.bean.TaskBean;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.dao.GlobalStngMapper;
import cokr.xit.fims.sprt.Keyword;
@ -95,6 +99,12 @@ public class Sprt01Controller extends ApplicationController {
@Resource(name="otptStngBean")
protected OtptStngBean otptStngBean;
@Resource(name = "taskBean")
private TaskBean taskBean;
@Resource(name = "factionBean")
private FactionBean factionBean;
/** (fims/sprt/sprt01/010-main) .
*
* @return /fims/sprt/sprt01010
@ -118,6 +128,24 @@ public class Sprt01Controller extends ApplicationController {
mav.addObject("FIM026List", commonCodes.get("FIM026"));
mav.addObject("FIM054List", commonCodes.get("FIM054"));
List<CommonCode> taskListForSgg = new ArrayList<CommonCode>();
if(currentUser().getInstitute().equals("default")) {
taskListForSgg = commonCodes.get("FIM054");
} else {
SecuredUserInfo userInfo = currentUser();
Map<String, Object> info = userInfo.getInfo();
if(info == null || info.get("sggCd") == null || info.get("sggCd").equals("")) {
factionBean.initUserInfo(userInfo);
}
List<String> taskSeCdListForSgg = taskBean.getTasks((new CmmnQuery()).setSggCd((String)userInfo.getInfo().get("sggCd")).setUseYN("Y"))
.stream().map(item -> item.string("TASK_SE_CD")).toList();
taskListForSgg = commonCodes.get("FIM054").stream()
.filter(item -> taskSeCdListForSgg.contains(item.getCode())).toList();
}
mav.addObject("TaskListForSgg", taskListForSgg);
mav.addObject("FIM004List", commonCodes.get("FIM004"));
mav.addObject("FIM005List", commonCodes.get("FIM005"));
mav.addObject("FIM006List", commonCodes.get("FIM006"));

@ -60,7 +60,7 @@
value="" onchange="integrationSearch.fnResetAndChangeBiz('');" checked="checked">
전체
</label>
<c:forEach items="${FIM054List}" var="item">
<c:forEach items="${TaskListForSgg}" var="item">
<label>
<input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분"
value="${item.code}" onchange="integrationSearch.fnResetAndChangeBiz(this.value);">

Loading…
Cancel
Save