grid.jsp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. <style>
  16. .custom .x-panel-body-default {
  17. background: #f1f2f5;
  18. }
  19. .custom .x-form-item-label {
  20. margin-left: 3px;
  21. font-family: "ChantelliAntiquaRegular";
  22. }
  23. </style>
  24. <script type="text/javascript" src="<%=basePath %>resource/ext/ext-all.js"></script>
  25. <script type="text/javascript" src="<%=basePath %>resource/i18n/i18n.js"></script>
  26. <script type="text/javascript" src="<%=basePath %>resource/ux/CheckColumn.js"></script>
  27. <script type="text/javascript">
  28. Ext.Loader.setConfig({
  29. enabled: true
  30. });//开启动态加载
  31. Ext.application({
  32. name: 'erp',//为应用程序起一个名字,相当于命名空间
  33. appFolder: basePath+'app',//app文件夹所在路径
  34. controllers: [//声明所用到的控制层
  35. 'ma.Grid'
  36. ],
  37. launch: function() {
  38. Ext.create('erp.view.ma.Grid');//创建视图
  39. }
  40. });
  41. var caller = "Form", whoami = getUrlParam('whoami');
  42. </script>
  43. </head>
  44. <body >
  45. </body>
  46. </html>