import.jsp 5.4 KB

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