pagingReceive.jsp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  6. %>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  11. <link type="text/css" rel="stylesheet" href="<%=basePath %>resource/ext/resources/css/ext-all-gray.css"/>
  12. <link rel="stylesheet" href="<%=basePath %>resource/css/main.css" type="text/css"></link>
  13. <style>
  14. .custom .x-grid-row .x-grid-cell {
  15. height: auto;
  16. line-height: auto;
  17. }
  18. .custom .x-grid-cell-inner {
  19. height: auto;
  20. line-height: auto;
  21. }
  22. </style>
  23. <script type="text/javascript" src="<%=basePath %>resource/ext/ext-all.js"></script>
  24. <script type="text/javascript" src="<%=basePath %>resource/i18n/i18n.js"></script>
  25. <script type="text/javascript" src="<%=basePath %>resource/ux/grid/GridHeaderFilters.js"></script>
  26. <script type="text/javascript" src="<%=basePath %>resource/ux/data/PagingMemoryProxy.js"></script>
  27. <script type="text/javascript" src="<%=basePath %>resource/ux/grid/Export.js"></script>
  28. <script type="text/javascript">
  29. Ext.Loader.setConfig({
  30. enabled: true
  31. });//开启动态加载
  32. Ext.application({
  33. name: 'erp',//为应用程序起一个名字,相当于命名空间
  34. appFolder: basePath+'app',//app文件夹所在路径
  35. controllers: [//声明所用到的控制层
  36. 'oa.info.PagingReceive'
  37. ],
  38. launch: function() {
  39. Ext.create('erp.view.oa.info.Viewportr');//创建视图
  40. }
  41. });
  42. var page = 1;
  43. var height = window.innerHeight;
  44. if(Ext.isIE){//ie不支持window.innerHeight;document.documentElement.clientHeight == 0
  45. height = screen.height*0.75;
  46. }
  47. var pageSize = parseInt(height*0.7/28);
  48. var pageSize = 13;
  49. var dataCount = 0;
  50. var url = '';
  51. var msg = '';
  52. //var caller = getUrlParam('whoami');
  53. var caller = 'PagingRelease!r';
  54. </script>
  55. </head>
  56. <body>
  57. </body>
  58. </html>