dataUpdate.jsp 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <%@ page language="java" contentType="text/html; charset=utf-8"
  2. pageEncoding="utf-8"%>
  3. <%
  4. request.setCharacterEncoding("utf-8");
  5. String path = request.getContextPath();
  6. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  7. %>
  8. <!DOCTYPE html>
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  12. <link rel="stylesheet" href="<%=basePath %>resource/ext/resources/css/ext-all-gray.css" type="text/css"></link>
  13. <link rel="stylesheet" href="<%=basePath %>resource/css/main.css" type="text/css"></link>
  14. <link rel="stylesheet" type="text/css" href="<%=basePath %>resource/ux/css/CheckHeader.css" />
  15. <script type="text/javascript" src="<%=basePath %>resource/ext/ext-all.js"></script>
  16. <script type="text/javascript" src="<%=basePath %>resource/i18n/i18n.js"></script>
  17. <script type="text/javascript" src="<%=basePath %>resource/ux/CheckColumn.js"></script>
  18. <style type="text/css">
  19. .upexcel {
  20. background-image: url('<%=basePath%>resource/images/excel.png');
  21. }
  22. .history {
  23. background-image: url('<%=basePath%>resource/images/drink.png');
  24. }
  25. .check {
  26. background-image: url('<%=basePath%>resource/images/hourglass.png');
  27. }
  28. .save {
  29. background-image: url('<%=basePath%>resource/images/drink.png');
  30. }
  31. .x-button-icon-close {
  32. background-image: url('<%=basePath%>resource/images/icon/trash.png');
  33. }
  34. </style>
  35. <script type="text/javascript">
  36. Ext.Loader.setConfig({
  37. enabled: true
  38. });//开启动态加载
  39. Ext.application({
  40. name: 'erp',//为应用程序起一个名字,相当于命名空间
  41. appFolder: basePath+'app',//app文件夹所在路径
  42. controllers: [//声明所用到的控制层
  43. 'ma.update.DataUpdate'
  44. ],
  45. launch: function() {
  46. Ext.create('erp.view.ma.update.DataUpdate');//创建视图
  47. }
  48. });
  49. var caller = "DataUpdate";
  50. var schemeDetails = new Array();
  51. var em_code='<%=session.getAttribute("em_code")%>';
  52. var formCondition = '';
  53. var gridCondition = '';
  54. var schemeStore= new Ext.data.Store({
  55. proxy : {
  56. type : 'ajax',
  57. url : basePath +'ma/update/getUpdateScheme.action',
  58. extraParams:{
  59. em_code:em_code
  60. },
  61. reader: {
  62. type: 'json',
  63. root: 'schemes'
  64. }
  65. },
  66. autoLoad : true,
  67. fields : [{name : 'id_'},{name : 'title_'}]
  68. });
  69. </script>
  70. </head>
  71. <body >
  72. </body>
  73. </html>