customform.jsp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. <script type="text/javascript">
  19. Ext.Loader.setConfig({
  20. enabled: true
  21. });//开启动态加载
  22. Ext.application({
  23. name: 'erp',//为应用程序起一个名字,相当于命名空间
  24. appFolder: basePath+'app',//app文件夹所在路径
  25. controllers: [//声明所用到的控制层
  26. 'oa.custom.CustomForm'
  27. ],
  28. launch: function() {
  29. Ext.create('erp.view.oa.custom.CustomForm');//创建视图
  30. }
  31. });
  32. var caller = "Form!Custom";
  33. var dbfinds = [];
  34. var formCondition = '';
  35. var gridCondition = '';
  36. function Delete(){
  37. var grid=Ext.getCmp('dbgrid');
  38. var lastselected=grid.getSelectionModel().getLastSelected();
  39. grid.getStore().remove(lastselected);
  40. }
  41. </script>
  42. </head>
  43. <body >
  44. </body>
  45. </html>