information.jsp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <%@ page language="java" contentType="text/html; charset=utf-8"
  2. pageEncoding="utf-8"%>
  3. <%
  4. String url = request.getRequestURL().toString();
  5. String basePath = url.substring(0, url.length()
  6. - request.getRequestURI().length())
  7. + request.getContextPath() + "/";
  8. %>
  9. <!DOCTYPE html>
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  13. <link rel="stylesheet" href="<%=basePath%>resource/ext/resources/css/ext-all-gray.css" type="text/css"></link>
  14. <link rel="stylesheet" type="text/css" href="<%=basePath %>resource/ux/css/CheckHeader.css" />
  15. <link rel="stylesheet" href="<%=basePath %>jsps/common/messageCenter/css/centerform.css" type="text/css"></link>
  16. <script type="text/javascript" src="<%=basePath%>resource/ext/ext-all.js"></script>
  17. <script type="text/javascript" src="<%=basePath%>resource/i18n/i18n.js"></script>
  18. <script type="text/javascript" src="<%=basePath %>resource/ux/grid/GridHeaderFilters.js"></script>
  19. <script type="text/javascript" src="<%=basePath %>resource/ux/CheckColumn.js"></script>
  20. <link rel="stylesheet" href="<%=basePath %>resource/css/main.css" type="text/css"></link>
  21. <style type="text/css">
  22. .readbutton{
  23. background: #3384FF !important;
  24. font-weight:bold !important;
  25. text-align: center;
  26. color: white !important;
  27. }
  28. .x-window-body-default{
  29. background-color: white;
  30. }
  31. .x-btn-default-small .x-btn-inner .x-btn-default-toolbar-small {
  32. color: white !important;
  33. }
  34. .x-btn-default-toolbar-small .x-btn-inner{
  35. color: white !important;
  36. }
  37. .search{
  38. margin-left: 5px;
  39. }
  40. .x-toolbar-footer {
  41. background: #fff;
  42. margin-top: 0px;
  43. }
  44. </style>
  45. <script type="text/javascript">
  46. Ext.Loader.setConfig({
  47. enabled : true
  48. });//开启动态加载
  49. Ext.application({
  50. name : 'erp',//为应用程序起一个名字,相当于命名空间
  51. appFolder : basePath + 'app',//app文件夹所在路径
  52. controllers : [//声明所用到的控制层
  53. 'common.messageCenter.Information' ],
  54. launch : function() {
  55. Ext.create('erp.view.common.messageCenter.Information');//创建视图
  56. }
  57. });
  58. var height = window.innerHeight;
  59. var width = window.innerWidth;
  60. if(Ext.isIE){
  61. height = screen.height*0.73;
  62. width = screen.width*0.73;
  63. }
  64. var pageSize = parseInt(height*0.7/23);
  65. var emname = '<%=session.getAttribute("em_name")%>';
  66. var emuu = '<%=session.getAttribute("em_uu")%>';
  67. var emcode='<%=session.getAttribute("em_code")%>';
  68. function openTmpUrl(parent,url, newMaster ,winId){
  69. var mywindows = Ext.getCmp('mywindows');
  70. var informationgrid = Ext.getCmp('informationgrid');
  71. var toMaster=informationgrid.currentmaster
  72. if(parent){
  73. openUrl(url);
  74. }else{
  75. if(toMaster){
  76. openMessageUrl(url,'',winId,toMaster)
  77. }else{
  78. openUrl(url);
  79. }
  80. }
  81. if(mywindows){
  82. mywindows.close();
  83. }
  84. /* if(informationgrid.readStatusData){
  85. informationgrid.updateReadstatus(informationgrid.readStatusData);
  86. } */
  87. }
  88. function openTmpMessageUrl(url,appurl,panelId,newMaster){
  89. var mywindows = Ext.getCmp('mywindows');
  90. var informationgrid = Ext.getCmp('informationgrid');
  91. var toMaster=informationgrid.currentmaster
  92. if(toMaster){
  93. openMessageUrl(url,appurl,panelId,toMaster)
  94. }else{
  95. openUrl(url);
  96. }
  97. if(mywindows){
  98. mywindows.close();
  99. }
  100. if(informationgrid.readStatusData){
  101. informationgrid.updateReadstatus(informationgrid.readStatusData);
  102. }
  103. }
  104. </script>
  105. </head>
  106. <body>
  107. </body>
  108. </html>