mainframe.jsp 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
  2. <%@include file="./taglib.jsp" %>
  3. <%@ page import="cn.sinobest.framework.util.ConfUtil,cn.sinobest.framework.util.Util,cn.sinobest.framework.comm.Environment"%>
  4. <%@ page import="cn.sinobest.framework.comm.iface.IOperator"%>
  5. <%@ page import="cn.sinobest.sysmngr.comm.ConVar"%>
  6. <%@ page import="cn.sinobest.framework.util.Util"%>
  7. <%@ page import="cn.sinobest.appcomm.service.sy.AppcommSyService"%>
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  11. <meta http-equiv="X-UA-Compatible" content="<%=Environment.XUACompatible %>" />
  12. <meta HTTP-EQUIV="Expires" CONTENT="0">
  13. <title><%=Environment.getDefaultTitle() %></title>
  14. <%
  15. String ENABLE_LOGINHINT = ConfUtil.getParam("ENABLE_LOGINHINT","TRUE");
  16. String topFrameRows = "49,*";
  17. boolean bEnableLoginHint = false;
  18. if(ENABLE_LOGINHINT.equalsIgnoreCase("TRUE")){
  19. bEnableLoginHint = true;
  20. topFrameRows = "*,0,0";
  21. }
  22. //根据用户类型跳转不同首页,管理员、窗口用户、科室用户
  23. Object obj = request.getSession().getAttribute(ConVar.LOGIN_SESSION_ID);
  24. IOperator Operator = (IOperator) obj;
  25. String OperID = Operator.getOperID();
  26. AppcommSyService appcommSyService = (AppcommSyService)Util.getBean("appcommSyService");
  27. String usertype = appcommSyService.getUserTypeByRight(OperID);
  28. String syurl="";
  29. if(usertype.equals("ksuser")){
  30. syurl="framework/blank2.jsp?RightID=blank";
  31. }else if(usertype.equals("ckuser")){
  32. syurl="ck/web/ywsl/ywsl_q.jsp?RightID=blank";
  33. }else{
  34. syurl="framework/blank3.jsp?RightID=blank";
  35. }
  36. %>
  37. <script type="text/javascript">
  38. window.defaultStatus="研发单位:广州华资软件技术有限公司 ";
  39. <%if(bEnableLoginHint){%>
  40. window.topFrameRows = "0,49,*";
  41. <%}%>
  42. window.mLoadStatus = {
  43. "banner" : false,
  44. "TreeMenu" : false,
  45. "workspace" : false
  46. };
  47. </script>
  48. </head>
  49. <frameset name="topFrame" rows="<%=topFrameRows %>" cols="*" frameborder="NO" border="1" framespacing="0">
  50. <%if(bEnableLoginHint){%>
  51. <frame name="loadingHint" src="${ctx}/jsp/framework/loading.jsp">
  52. <%}%>
  53. <frame name="banner" scrolling="NO" noresize src="${ctx}/jsp/framework/banner2.jsp">
  54. <frameset name="MenuFrameset" cols="200,7,*" frameborder=no border="0" framespacing="0" rows="*">
  55. <frame name="TreeMenu" scrolling="auto" src="${ctx}/jsp/framework/left2.jsp" >
  56. <frame name="TreeMenuHideShow" scrolling="no" noresize="noresize" src='${ctx}/jsp/framework/left_hide_show.jsp?usertype="<%=usertype %>"' >
  57. <frameset name="contentFrameset" rows="25,*" frameborder="NO" border="0" framespacing="0" cols="*">
  58. <frame name="navigation" noresize="noresize" scrolling="no" src="${ctx}/jsp/framework/navigation.jsp">
  59. <%if("true".equals(Environment.BPM_WORKFLOW_ON)){%>
  60. <frame name="workspace" noresize="noresize" scrolling="auto" src="${ctx}/jsp/framework/blank_bpm.jsp?RightID=blank">
  61. <%}else{%>
  62. <frame name="workspace" noresize="noresize" scrolling="auto" src="${ctx}/jsp/<%=syurl %>">
  63. <%}%>
  64. </frameset>
  65. </frameset>
  66. </frameset>
  67. </html>