HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
UserInfoVo userInfo = WebUtils.getSessionContainer(request).getUserInfo();
String contextPath = request.getContextPath();
request.setAttribute("webContext", contextPath);
Dto dto = new BaseDto();
PropertiesHelper pHelper = PropertiesFactory.getPropertiesHelper(PropertiesFile.G4);
dto.put("title", WebUtils.getParamValue("SYS_TITLE", request));
dto.put("contextPath", contextPath);
String titleIcon = WebUtils.getParamValue("TITLE_ICON", request);
dto.put("titleIcon", G4Utils.isEmpty(titleIcon) ? "G4Studio.ico" : titleIcon);
Dto themeDto = new BaseDto();
Dto resultDto = new BaseDto();
if(G4Utils.isNotEmpty(userInfo)){
themeDto.put("userid", userInfo.getUserid());
resultDto = armTagSupportService.getEauserSubInfo(themeDto);
}
String theme = null;
if(G4Utils.isNotEmpty(resultDto))
theme = resultDto.getAsString("theme");
String defaultTheme = WebUtils.getParamValue("SYS_DEFAULT_THEME", request);
theme = G4Utils.isEmpty(theme) ? defaultTheme : theme;
dto.put("theme", theme);
String layout = null;
if(G4Utils.isNotEmpty(resultDto))
layout = resultDto.getAsString("layout");
String defaultLayout = WebUtils.getParamValue("APP_LAYOUT", request);
layout = G4Utils.isEmpty(layout) ? defaultLayout : layout;
dto.put("layout", layout);
String background = null;
if(G4Utils.isNotEmpty(resultDto))
background = resultDto.getAsString("background");
String defaultBackfround = WebUtils.getParamValue("DESKTOP_BACKGROUND", request);
background = G4Utils.isEmpty(background) ? defaultBackfround : background;
dto.put("background", background);
PropertiesHelper p = PropertiesFactory.getPropertiesHelper(PropertiesFile.G4);
dto.put("extMode", p.getValue("extMode", TagConstant.Ext_Mode_Run));
dto.put("runMode", p.getValue("runMode", TagConstant.RUN_MODE_NORMAL));
dto.put("ajaxErrCode", G4Constants.Ajax_Timeout);
String micolor = pHelper.getValue("micolor", "blue");
dto.put("username", WebUtils.getSessionContainer(request).getUserInfo().getUsername());
dto.put("account", WebUtils.getSessionContainer(request).getUserInfo().getAccount());
Dto qDto = new BaseDto();