vouchertp.jsp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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>
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  11. <link rel="stylesheet" href="<%=basePath %>resource/ext/resources/css/ext-all-gray.css" type="text/css"></link>
  12. <link rel="stylesheet" href="<%=basePath %>resource/css/main.css" type="text/css"></link>
  13. <style type="text/css">
  14. .x-grid-rowwrap-div {
  15. border-width: 0;
  16. }
  17. .u-table>tbody>tr:nth-child(odd) {
  18. background-color: #f9f9f9;
  19. }
  20. .u-table>tbody>tr>td {
  21. padding: 5px;
  22. line-height: 1.4;
  23. vertical-align: top;
  24. border: solid #ddd;
  25. border-width: 1px 1px 0 1px;
  26. position: relative;
  27. }
  28. .u-icon {
  29. display: none;
  30. cursor: pointer;
  31. position: absolute;
  32. background-repeat: no-repeat;
  33. width: 16px;
  34. height: auto;
  35. top: 6px;
  36. left: auto;
  37. bottom: 0;
  38. right: 5px;
  39. }
  40. .u-table>tbody>tr:hover .u-icon {
  41. display: block;
  42. }
  43. .text-right {
  44. text-align: right;
  45. }
  46. </style>
  47. <script type="text/javascript" src="<%=basePath %>resource/ext/ext-all.js"></script>
  48. <script type="text/javascript" src="<%=basePath %>resource/i18n/i18n.js"></script>
  49. <script type="text/javascript" src="<%=basePath%>resource/ux/RowExpander.js"></script>
  50. <script type="text/javascript">
  51. Ext.Array.findBy = function(array, fn, scope) {
  52. var i = 0,
  53. len = array.length;
  54. for (; i < len; i++) {
  55. if (fn.call(scope || array, array[i], i)) {
  56. return array[i];
  57. }
  58. }
  59. return null;
  60. };
  61. Ext.Loader.setConfig({
  62. enabled: true
  63. });//开启动态加载
  64. Ext.application({
  65. name: 'erp',//为应用程序起一个名字,相当于命名空间
  66. appFolder: basePath+'app',//app文件夹所在路径
  67. controllers: [//声明所用到的控制层
  68. 'fa.gla.VoucherTP'
  69. ],
  70. launch: function() {
  71. Ext.create('erp.view.fa.gla.VoucherTP');//创建视图
  72. }
  73. });
  74. var caller = 'Voucher!TP';
  75. var formCondition = '';
  76. var gridCondition = '';
  77. </script>
  78. </head>
  79. <body >
  80. </body>
  81. </html>