template.jsp 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
  2. <%@page import="com.uas.erp.model.Employee"%>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme() + "://"
  6. + request.getServerName() + ":" + request.getServerPort()
  7. + path + "/";
  8. %>
  9. <!DOCTYPE html>
  10. <html>
  11. <head>
  12. <title>UAS管理系统-初始化数据导入</title>
  13. <link rel="icon" href="<%=basePath%>resource/images/icon_title.png" type="image/x-icon"/>
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  15. <link rel="stylesheet" href="<%=basePath%>resource/ext/resources/css/ext-all.css" type="text/css"></link>
  16. <link rel="stylesheet" type="text/css" href="<%=basePath%>resource/ux/css/CheckHeader.css" />
  17. <style type="text/css">
  18. .export {
  19. background-image: url('<%=basePath%>resource/images/download.png');
  20. }
  21. .upexcel {
  22. background-image: url('<%=basePath%>resource/images/excel.png');
  23. }
  24. .history {
  25. background-image: url('<%=basePath%>resource/images/drink.png');
  26. }
  27. .rule {
  28. background-image: url('<%=basePath%>resource/images/query.png');
  29. }
  30. .check {
  31. background-image: url('<%=basePath%>resource/images/hourglass.png');
  32. }
  33. .save {
  34. background-image: url('<%=basePath%>resource/images/drink.png');
  35. }
  36. .delete {
  37. background-image: url('<%=basePath%>resource/images/icon/trash.png');
  38. }
  39. .x-button-icon-add {
  40. background-image: url('<%=basePath%>resource/images/add.png');
  41. }
  42. .x-button-icon-close {
  43. background-image: url('<%=basePath%>resource/images/icon/trash.png');
  44. }
  45. .x-button-icon-copy {
  46. background-image: url('<%=basePath%>resource/images/copy.png');
  47. }
  48. .x-button-icon-paste {
  49. background-image: url('<%=basePath%>resource/images/paste.png');
  50. }
  51. .x-button-icon-up {
  52. background-image: url('<%=basePath%>resource/images/up.png');
  53. }
  54. .x-button-icon-down {
  55. background-image: url('<%=basePath%>resource/images/down.png');
  56. }
  57. .x-btn-tb {
  58. border: none;
  59. }
  60. .x-btn-bar-s {
  61. border: 1px solid gray;
  62. }
  63. .x-td-warn {
  64. background: #FF7F24 !important;
  65. }
  66. .x-grid-row-selected .x-grid-cell-special {
  67. border-right: 1px solid #d4b7b7;
  68. background: #CECECE url('<%=basePath%>resource/images/grid/header-bg.png') repeat center center;
  69. }
  70. .x-panel .x-box-item .x-accordion-item .x-panel-default .x-collapsed .x-panel-collapsed .x-panel-default-collapsed {
  71. height: 26px !important;
  72. }
  73. .custom .x-grid-header-ct,.custom .x-column-header {
  74. cursor: pointer;
  75. border-top: 1px solid #92c9eb;
  76. background: #65a9d7;
  77. background: -webkit-gradient(linear, left top, left bottom, from(#ced3d9), to(#65a9d7) );
  78. background: -webkit-linear-gradient(top, #ced3d9, #65a9d7);
  79. background: -moz-linear-gradient(top, #ced3d9, #65a9d7);
  80. background: -ms-linear-gradient(top, #ced3d9, #65a9d7);
  81. background: -o-linear-gradient(top, #ced3d9, #65a9d7);
  82. }
  83. .custom-button {
  84. cursor: pointer;
  85. border-top: 1px solid #96d1f8;
  86. background: #8eb6d1;
  87. background: -webkit-gradient(linear, left top, left bottom, from(#dfebf2), to(#8eb6d1) );
  88. background: -webkit-linear-gradient(top, #dfebf2, #8eb6d1);
  89. background: -moz-linear-gradient(top, #dfebf2, #8eb6d1);
  90. background: -ms-linear-gradient(top, #dfebf2, #8eb6d1);
  91. background: -o-linear-gradient(top, #dfebf2, #8eb6d1);
  92. -webkit-border-radius: 4px;
  93. -moz-border-radius: 4px;
  94. border-radius: 4px;
  95. font-size: 14px;
  96. font-family: Georgia, serif;
  97. vertical-align: middle;
  98. padding: 3px 5px;
  99. }
  100. .custom-button:hover {
  101. background: #5aa4d6;
  102. color: #ccc;
  103. }
  104. .custom-button:active {
  105. background: #96d1f8;
  106. }
  107. .up {
  108. border: none;
  109. background: -webkit-linear-gradient(top, #dfebf2, #8eb6d1) !important;
  110. background: -webkit-gradient(linear, left top, left bottom, from(#dfebf2), to(#8eb6d1) )!important;
  111. background: -webkit-linear-gradient(top, #dfebf2, #8eb6d1)!important;
  112. background: -moz-linear-gradient(top, #dfebf2, #8eb6d1)!important;
  113. background: -ms-linear-gradient(top, #dfebf2, #8eb6d1)!important;
  114. background: -o-linear-gradient(top, #dfebf2, #8eb6d1)!important;
  115. margin-top: -2px;
  116. }
  117. .up:hover {
  118. background: #5aa4d6 !important;
  119. }
  120. #upexcel-body{
  121. background: -webkit-linear-gradient(top, #dfebf2, #8eb6d1) !important;
  122. background: -webkit-gradient(linear, left top, left bottom, from(#dfebf2), to(#8eb6d1) )!important;
  123. background: -webkit-linear-gradient(top, #dfebf2, #8eb6d1)!important;
  124. background: -moz-linear-gradient(top, #dfebf2, #8eb6d1)!important;
  125. background: -ms-linear-gradient(top, #dfebf2, #8eb6d1)!important;
  126. background: -o-linear-gradient(top, #dfebf2, #8eb6d1)!important;
  127. }
  128. #upexcel-body:hover{
  129. background: #5aa4d6 !important;
  130. }
  131. .custom-log {
  132. margin-left: 20px
  133. }
  134. .custom-log tr {
  135. line-height: 26px
  136. }
  137. .custom-log td {
  138. padding: 5px 10px;
  139. border: 1px solid #dfdfdf
  140. }
  141. .custom-log .custom-tr {
  142. background-color: #dfdfdf;
  143. font-weight: bold
  144. }
  145. </style>
  146. <script type="text/javascript" src="<%=basePath%>resource/ext/ext-all.js"></script>
  147. <script type="text/javascript" src="<%=basePath%>resource/i18n/i18n.js"></script>
  148. <script type="text/javascript" src="<%=basePath%>resource/ux/RowExpander.js"></script>
  149. <script type="text/javascript" src="<%=basePath%>resource/ux/CheckColumn.js"></script>
  150. <script type="text/javascript">
  151. removeCss(basePath + 'resource/css/upgrade/gray/main.css');
  152. function removeCss(filename) {
  153. var targetelement = "link";
  154. var targetattr = "href";
  155. var allsuspects = document.getElementsByTagName(targetelement);
  156. for (var i = allsuspects.length; i >= 0; i--) {
  157. if (allsuspects[i] && allsuspects[i].getAttribute(targetattr) != null && allsuspects[i].getAttribute(
  158. targetattr).indexOf(filename) != -1)
  159. allsuspects[i].parentNode.removeChild(allsuspects[i])
  160. }
  161. }
  162. </script>
  163. <script type="text/javascript">
  164. Ext.Loader.setConfig({
  165. enabled: true
  166. });//开启动态加载
  167. Ext.application({
  168. name: 'erp',//为应用程序起一个名字,相当于命名空间
  169. appFolder: basePath + 'app',//app文件夹所在路径
  170. controllers : [//声明所用到的控制层
  171. 'common.Template' ],
  172. launch : function() {
  173. Ext.create('erp.view.common.init.Template');//创建视图
  174. }
  175. });
  176. var caller = 'InitDetail';
  177. <%
  178. Object obj = session.getAttribute("employee");
  179. String em_type = "";
  180. if(obj != null) {
  181. Employee employee = (Employee)obj;
  182. em_type=employee.getEm_type();
  183. }
  184. %>
  185. var em_type = '<%= em_type %>';
  186. </script>
  187. </head>
  188. <body>
  189. </body>
  190. </html>