main.jsp 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. <%@page import="com.uas.erp.model.Master"%>
  2. <%@page import="com.uas.erp.model.Employee"%>
  3. <%@ page language="java" pageEncoding="utf-8"%>
  4. <%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
  5. <%
  6. String path = request.getContextPath();
  7. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  8. %>
  9. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  10. <html>
  11. <head>
  12. <link rel="icon" href="<%=basePath %>resource/images/icon_title.png" type="image/x-icon"/>
  13. <link rel="stylesheet" href="<%=basePath %>resource/ext/resources/css/ext-all-gray.css" type="text/css"/>
  14. <link rel="stylesheet" type="text/css" href="<%=basePath %>resource/css/TabScrollerMenu.css"/>
  15. <link rel="stylesheet" href="<%=basePath %>resource/css/main.css" type="text/css"/>
  16. <link rel="stylesheet" type="text/css" href="<%=basePath %>resource/ux/css/CheckHeader.css" />
  17. <link rel="stylesheet" href="<%=basePath %>resource/css/tree.css" type="text/css"/>
  18. <link rel="stylesheet" href="<%=basePath %>jsps/oa/doc/resources/css/button.css" type="text/csss"></link>
  19. <script type="text/javascript" src="<%=basePath %>resource/ext/ext-all.js"></script>
  20. <script type="text/javascript" src="<%=basePath %>resource/i18n/i18n.js?_em=<%=session.getAttribute("em_uu") %>"></script>
  21. <script type="text/javascript" src="<%=basePath %>resource/ux/TabScrollerMenu.js"></script>
  22. <script type="text/javascript" src="<%=basePath %>resource/ux/TabCloseMenu.js"></script>
  23. <script type="text/javascript" src="<%=basePath %>resource/jquery/jquery-1.4.min.js"></script>
  24. <script type="text/javascript" src="<%=basePath%>resource/ux/layout/component/form/ItemSelector.js"></script>
  25. <script type="text/javascript" src="<%=basePath%>resource/ux/layout/component/form/MultiSelect.js"></script>
  26. <script type="text/javascript" src="<%=basePath%>resource/ux/form/MultiSelect.js"></script>
  27. <script type="text/javascript" src="<%=basePath%>resource/other/vendLogin.js"></script>
  28. <style type="text/css">
  29. i{
  30. display:block;
  31. background:red;
  32. border-radius:50%;
  33. width:5px;
  34. height:5px;
  35. top:0px;
  36. right:0px;
  37. position:absolute;
  38. }
  39. .x-window-header-default-top {
  40. -moz-box-shadow: #ebe7e7 0 1px 0px 0 inset, #ebe7e7 -1px 0 0px 0 inset, #ebe7e7 1px 0 0px 0 inset;
  41. -webkit-box-shadow: #ebe7e7 0 1px 0px 0 inset, #ebe7e7 -1px 0 0px 0 inset, #ebe7e7 1px 0 0px 0 inset;
  42. -o-box-shadow: #ebe7e7 0 1px 0px 0 inset, #ebe7e7 -1px 0 0px 0 inset, #ebe7e7 1px 0 0px 0 inset;
  43. box-shadow: #ebe7e7 0 1px 0px 0 inset, #ebe7e7 -1px 0 0px 0 inset, #ebe7e7 1px 0 0px 0 inset;
  44. }
  45. .settings9{background-color:#D5D5D5 !important;}
  46. .main-btn-underline .x-btn-inner{font-size:13px;}
  47. .main-btn-underline-over .x-btn-inner{text-decoration: underline;color: blue;}
  48. .bottom-left{float: left;cursor: pointer;padding-bottom: 6px;margin-left: 3px;text-decoration: none;font-weight:lighter;font-family: "宋体"}
  49. .bottom_right{text-decoration: none;float:right;cursor: pointer;padding-bottom: 4px; margin-left: 1px;font-weight:lighter;color: blue;font-family: "宋体"}
  50. .bottom_right:hover{float:right;color: green;cursor: pointer;text-decoration: underline;}
  51. .float{ width:200px; padding:5px 10px; border:1px solid #ffecb0; font-size:12px; background-color:#fffee0; -moz-box-shadow:1px 1px 2px rgba(0,0,0,.2); -webkit-box-shadow:1px 1px 2px rgba(0,0,0,.2); box-shadow:1px 1px 2px rgba(0,0,0,.2); position:absolute; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; }
  52. .float .close-ico{ position:absolute; top:5px; right:5px; display:block; width:16px; height:16px; background-image:url(../resource/images/cup.gif); text-indent:-900px; overflow:hidden; }
  53. .float .close-ico:hover{ background-position:0 -16px;}
  54. .float p{ line-height:22px}
  55. .x-panel-body-default {
  56. background: #f1f2f5;
  57. border: none !important;
  58. }
  59. #ucloud-body{
  60. z-index:10!important;
  61. border-radius: 10px!important;
  62. margin: -1px!important;
  63. width: 561px!important;
  64. height: 510px!important;
  65. left: -18px!important;
  66. top: -5px!important;
  67. background-image: url("http://localhost:8080/ERP/resource/images/ucloud.png");
  68. background-size: 580px 500px;
  69. background-position: 0px 0px;
  70. }
  71. .searchMenu{
  72. position:absolute;top:110;left:180;width:auto;height:auto;z-index:4;visibility:hidden;border: 1;background-color: BECEBE;
  73. border:1px solid #ffecb0; -moz-box-shadow:1px 1px 2px rgba(0,0,0,.2); -webkit-box-shadow:1px 1px 2px rgba(0,0,0,.2); box-shadow:1px 1px 2px rgba(0,0,0,.2); -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px;
  74. }
  75. .new_btn{
  76. background:#72d1ff;
  77. font-family: 微软雅黑;
  78. }
  79. .focus_textfield{
  80. outline: 0;
  81. border-color: rgba(82, 168, 236, 0.8);
  82. -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
  83. -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
  84. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
  85. }
  86. .over_btn{
  87. background:#EC6D51;
  88. font-family: 微软雅黑;
  89. }
  90. .menuDiv{
  91. position:absolute;width:auto;height:auto;z-index:4;visibility:hidden;border: 1;background-color: #dedede;
  92. border:1px; -moz-box-shadow:1px 1px 2px rgba(0,0,0,.2); -webkit-box-shadow:1px 1px 2px rgba(0,0,0,.2); box-shadow:1px 1px 2px rgba(0,0,0,.2); -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px;
  93. }
  94. .menuDiv a{
  95. text-decoration: none;
  96. }
  97. .menuDiv a:hover{
  98. color: black;
  99. font-weight: bold;
  100. }
  101. .main-btn-left {
  102. border: none;
  103. float: left;
  104. font-size: 13px;
  105. }
  106. .main-btn-right {
  107. border: none;
  108. float: right;
  109. font-size: 13px;
  110. }
  111. .main-btn-left a:hover,.main-btn-right font:hover{
  112. text-decoration: underline;
  113. }
  114. .menuitem-lock{
  115. background: url('<%=basePath %>resource/images/icon/lock.png') no-repeat center center;
  116. }
  117. .main-btn-user {
  118. background-image: url('<%=basePath %>resource/images/wishmaster.gif');
  119. }
  120. .main-btn-uuHelper {
  121. display: inline-block;
  122. margin-right:2px;
  123. margin-top:-4px;
  124. width:16px;
  125. height:16px;
  126. vertical-align:middle;
  127. background:url('<%=basePath %>resource/images/icon/uuHepler.png') no-repeat;
  128. }
  129. .main-btn-link {
  130. background-image: url('<%=basePath %>resource/images/ie.png');
  131. }
  132. .main-btn-msg {
  133. background-image: url('<%=basePath %>resource/images/mainpage/message.gif');
  134. }
  135. #myinfo{
  136. font-size: 13px;
  137. display: none;
  138. }
  139. #myinfo font,input{
  140. font-size: 13px;
  141. }
  142. .label{
  143. width: 45px;
  144. font-family: 隶书;
  145. color: blue;
  146. }
  147. #myinfo input{
  148. border: none;
  149. width: 100px;
  150. }
  151. #phones {
  152. background-color: #fff;
  153. text-shadow: #fff 0 1px 0;
  154. position: relative;
  155. display: block;
  156. height: auto;
  157. }
  158. #phones div.phone img {
  159. margin-bottom: 1px;
  160. }
  161. #phones div.phone {
  162. float: left;
  163. padding: 1px 1px;
  164. margin: 0px;
  165. text-align: center;
  166. line-height: 14px;
  167. color: #333;
  168. font-size: 10px;
  169. font-family: "Helvetica Neue",sans-serif;
  170. height: 130px;
  171. width: 140px;
  172. overflow: hidden;
  173. border: 1px solid gray;
  174. cursor: pointer;
  175. }
  176. .x-ie6 #phones div.phone,
  177. .x-ie7 #phones div.phone,
  178. .x-ie8 #phones div.phone {
  179. border-top: none;
  180. padding: 3px 2px;
  181. margin: 2px;
  182. }
  183. #phones div.phone-hover {
  184. background-color: #eee;
  185. }
  186. #phones div{
  187. background-color: #D3E1F1 !important;
  188. }
  189. #phones div:hover{
  190. background-color: #D6B1F1 !important;
  191. }
  192. #phones .x-item-selected {
  193. background-color: #D6B1F1 !important;
  194. }
  195. #phones div.phone strong {
  196. color: #000;
  197. display: block;
  198. }
  199. #phones div.phone span {
  200. color: #999;
  201. }
  202. .process-lazy {
  203. color: red;
  204. }
  205. .UClose{
  206. border: 0px!important;
  207. background-image: -webkit-linear-gradient(top, #FEFFFF, #FEFFFF) !important;
  208. }
  209. .allNavigationWindow .x-window-header-default-top {
  210. background-color: #F6F6F6;
  211. }
  212. .allNavigationWindow{ background-color: #F5F3F3; }
  213. #searchMaster,#searchMaster div,#searchMaster input {
  214. width: 99.5% !important;
  215. }
  216. #menuMaster{
  217. top: 29px !important;
  218. }
  219. </style>
  220. <script type="text/javascript">
  221. Ext.Loader.setConfig({
  222. enabled: true
  223. });//开启动态加载
  224. Ext.application({
  225. name: 'erp',//为应用程序起一个名字,相当于命名空间
  226. appFolder: basePath+'app',//app文件夹所在路径
  227. controllers: [//声明所用到的控制层
  228. 'vendbarcode.main'
  229. ],
  230. launch: function() {
  231. Ext.create('erp.view.vendbarcode.main.main');
  232. }
  233. });
  234. var emp = '<%=session.getAttribute("employee")%>';
  235. if(emp=='null'){
  236. document.location.href = basePath + "vendbarcode/relogin.action";
  237. }
  238. var username = '<%=session.getAttribute("username")%>';
  239. var em_name = '<%=session.getAttribute("em_name")%>';
  240. var em_uu = '<%=session.getAttribute("em_uu")%>';
  241. var en_uu = '<%=session.getAttribute("en_uu")%>';
  242. var em_code = '<%=session.getAttribute("em_code")%>';
  243. var en_email ='<%=session.getAttribute("en_email")%>';
  244. var em_type = '<%=session.getAttribute("em_type")%>';
  245. var em_id ='<%=session.getAttribute("em_id")%>';
  246. var en_admin = '<%=session.getAttribute("en_admin")%>';
  247. var changepsw= '<%=session.getAttribute("changepsw")%>';
  248. var em_defaulthsid = '<%=session.getAttribute("em_defaulthsid")%>';
  249. var hascheckInitpwd ='<%=session.getAttribute("hascheckInitpwd")%>';
  250. var UCloud ='<%=session.getAttribute("UCloud")%>';
  251. function selectAll(){
  252. if($("#selectAll").attr("checked") == true){
  253. $(":checkbox").attr("checked","checked");
  254. }else{
  255. $(":checkbox").attr("checked","");
  256. }
  257. }
  258. function getSearchKeys(){
  259. var sf = Ext.getCmp('searchField');
  260. sf.setValue('');
  261. var condition = '';
  262. $.each($("input:checked"),function(){
  263. if(this.id != "selectAll"){
  264. if(this.name != "condition"){
  265. if(sf.value == '' || sf.value == null || sf.value == '快速查找'){
  266. sf.setValue($(this).next().text());
  267. } else if(! contains(sf.value, $(this).next().text(), true)){
  268. sf.setValue(sf.value + ';' + $(this).next().text());
  269. }
  270. } else {
  271. condition = this.value;
  272. }
  273. }
  274. });
  275. if(condition == 'and'){
  276. sf.setValue(sf.value.replace(/;/g, '&&'));
  277. } else {
  278. sf.setValue(sf.value.replace(/;/g, '##'));
  279. }
  280. $('#searchMenu').hide();
  281. sf.onTriggerClick(sf.value);
  282. }
  283. function deleteFromCookie(id, value){
  284. $("#"+id).remove();
  285. var searchKeys = Ext.util.Cookies.get('searchKeys');
  286. if(contains(searchKeys, '||' + value + '||')){
  287. searchKeys = searchKeys.replace('||' + value, '');
  288. } else if(contains(searchKeys, value + '||')){
  289. searchKeys = searchKeys.replace(value + '||', '');
  290. } else if(contains(searchKeys, '||' + value)){
  291. searchKeys = searchKeys.replace('||' + value, '');
  292. }
  293. Ext.util.Cookies.set('searchKeys', searchKeys);
  294. }
  295. function logout(){
  296. Ext.Msg.confirm('温馨提示',"确定退出吗?",
  297. ok);
  298. function ok(btn){
  299. if(btn == 'yes'){
  300. Ext.Ajax.request({
  301. url: basePath + "vendbarcode/logout.action",
  302. method: 'GET',
  303. callback: function(opt, s, r) {
  304. document.location.href = basePath + "vendbarcode/relogin.action";
  305. }
  306. });
  307. } else {
  308. return;
  309. }
  310. };
  311. }
  312. function main_relogin(){
  313. showLoginDiv();
  314. }
  315. window.onload = function() {
  316. //禁用右键菜单
  317. Ext.getDoc().on("contextmenu", function(e){
  318. //e.stopEvent();
  319. });
  320. SetCookie('em_name', em_name);
  321. SetCookie('em_uu', em_uu);
  322. SetCookie('en_name', en_name);
  323. SetCookie('en_uu', en_uu);
  324. SetCookie('em_code', em_code);
  325. /* SetCookie('printType', en_admin); */
  326. };
  327. </script>
  328. </head>
  329. <body>
  330. <textarea id="textarea_text" style="position:absolute;left:-1000px"></textarea>
  331. <script type="text/javascript" src="<%=basePath %>resource/ux/CheckColumn.js"></script>
  332. </body>
  333. <script>
  334. <%
  335. Object obj = session.getAttribute("employee");
  336. String sob = "";
  337. String sobText = "";
  338. String password="";
  339. if(obj != null) {
  340. Employee employee = (Employee)obj;
  341. sob = employee.getEm_master();
  342. Master master = employee.getCurrentMaster();
  343. password = employee.getEm_password();
  344. if (master != null) {
  345. sob = master.getMa_name();
  346. sobText = master.getMa_function();
  347. }
  348. }
  349. Object is_saas = session.getAttribute("isSaas");
  350. boolean isSaas = is_saas != null && Boolean.valueOf(is_saas.toString());
  351. %>
  352. var sob = '<%=sob%>';
  353. var sobText = '<%=sobText%>';
  354. var isSaas = <%=isSaas%>;
  355. function hiddenPic(){
  356. document.getElementById("Layer1").innerHTML = "";
  357. document.getElementById("Layer1").style.display = "none";
  358. }
  359. </script>
  360. </html>