1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <%@ page language="java" contentType="text/html; charset=utf-8"
- pageEncoding="utf-8"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- %>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <link rel="stylesheet" type="text/css" href="<%=basePath %>resource/ext/resources/css/ext-all-gray.css"/>
- <style>
- .custom .x-grid-row .x-grid-cell {
- color: null;
- font: normal 11px tahoma, arial, verdana, sans-serif;
- background-color: #f1f1f1;
- height: 26px;
- line-height: 26px;
- border: 1px solid white !important;
- }
- </style>
- <script type="text/javascript" src="<%=basePath %>resource/ext/ext-all.js"></script>
- <script type="text/javascript" src="<%=basePath %>resource/i18n/i18n.js"></script>
- <script type="text/javascript" src="<%=basePath %>resource/ux/grid/GridHeaderFilters.js"></script>
- <script type="text/javascript" src="<%=basePath %>resource/ux/data/PagingMemoryProxy.js"></script>
- <script type="text/javascript">
- Ext.Loader.setConfig({
- enabled: true
- });//开启动态加载
- Ext.application({
- name: 'erp',//为应用程序起一个名字,相当于命名空间
- appFolder: basePath+'app',//app文件夹所在路径
- controllers: [//声明所用到的控制层
- 'common.CateTreepanelDbfind'
- ],
- launch: function() {
- Ext.create('erp.view.common.CateTreepanelDbfind.Viewport');
- }
- });
- var key = getUrlParam('key');
- var keyValue = getUrlParam('keyValue');
- var caller = '';
- var caller1 =getUrlParam('caller1');
- var keyField = '';
- var condition = key + " like '%" + keyValue + "%'";
- var dbfind = getUrlParam('dbfind');
- var which = 'form';
- var triggerId = getUrlParam('trigger');
- var trigger = parent.Ext.getCmp(triggerId);
- if(!trigger.ownerCt){//如果是grid的dbfind
- which = 'grid';
- caller = dbfind.split('|')[0];
- keyField = dbfind.split('|')[1];
- condition = keyField + " like '%" + keyValue + "%'";
- }
- var page = 1;
- var value = 0;
- var total = 0;
- var count = 0;
- var msg = '';
- var height = window.innerHeight;
- var pageSize = parseInt(height*0.7/19);
- var dbfinds = [];
- </script>
- </head>
- <body >
- </body>
- </html>
|