catetreepaneldbfind.jsp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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" type="text/css" href="<%=basePath %>resource/ext/resources/css/ext-all-gray.css"/>
  12. <style>
  13. .custom .x-grid-row .x-grid-cell {
  14. color: null;
  15. font: normal 11px tahoma, arial, verdana, sans-serif;
  16. background-color: #f1f1f1;
  17. height: 26px;
  18. line-height: 26px;
  19. border: 1px solid white !important;
  20. }
  21. </style>
  22. <script type="text/javascript" src="<%=basePath %>resource/ext/ext-all.js"></script>
  23. <script type="text/javascript" src="<%=basePath %>resource/i18n/i18n.js"></script>
  24. <script type="text/javascript" src="<%=basePath %>resource/ux/grid/GridHeaderFilters.js"></script>
  25. <script type="text/javascript" src="<%=basePath %>resource/ux/data/PagingMemoryProxy.js"></script>
  26. <script type="text/javascript">
  27. Ext.Loader.setConfig({
  28. enabled: true
  29. });//开启动态加载
  30. Ext.application({
  31. name: 'erp',//为应用程序起一个名字,相当于命名空间
  32. appFolder: basePath+'app',//app文件夹所在路径
  33. controllers: [//声明所用到的控制层
  34. 'common.CateTreepanelDbfind'
  35. ],
  36. launch: function() {
  37. Ext.create('erp.view.common.CateTreepanelDbfind.Viewport');
  38. }
  39. });
  40. var key = getUrlParam('key');
  41. var keyValue = getUrlParam('keyValue');
  42. var caller = '';
  43. var caller1 =getUrlParam('caller1');
  44. var keyField = '';
  45. var condition = key + " like '%" + keyValue + "%'";
  46. var dbfind = getUrlParam('dbfind');
  47. var which = 'form';
  48. var triggerId = getUrlParam('trigger');
  49. var trigger = parent.Ext.getCmp(triggerId);
  50. if(!trigger.ownerCt){//如果是grid的dbfind
  51. which = 'grid';
  52. caller = dbfind.split('|')[0];
  53. keyField = dbfind.split('|')[1];
  54. condition = keyField + " like '%" + keyValue + "%'";
  55. }
  56. var page = 1;
  57. var value = 0;
  58. var total = 0;
  59. var count = 0;
  60. var msg = '';
  61. var height = window.innerHeight;
  62. var pageSize = parseInt(height*0.7/19);
  63. var dbfinds = [];
  64. </script>
  65. </head>
  66. <body >
  67. </body>
  68. </html>