1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- $(function(){
- // 实例化实体List
- $.QueryMainList = new $.AbstractList( {entity:"QueryMain",searchForm:searchForm,autoLoad:false}) ;
-
- $("#queryId").combobox({
- valueField: 'id',
- textField: 'queryName',
- editable:false,
- data:queryList,
- onSelect:function(record){
- $('#maingrid').datagrid({
- data: []
- });
- // 根据查询条件 拼页面的查询条件
- var queryFields = record.queryFields;
-
- var $queryTable = $("#queryTable");
-
- var $showQueryTr = $("#showQueryTr");
-
- if (!$.isEmpty(record.showFields))
- {
- $showQueryTr.html('');
-
- $showQueryTr.append(record.showFields);
- }
- else
- {
- alertMsg("提示", "当前查询匹配不到适合的展示的列表", "error");
- return;
- }
-
- $('#queryPanel').panel({height:record.panelHeight});
-
- //使用HTML代码
- if (!$.isEmpty(queryFields))
- {
- $queryTable.html('');
-
- $queryTable.append($(queryFields));
- }
-
- $.parser.parse($queryTable);
-
- // $.parser.parse($showQueryTr);
-
- searchForm = $("#searchForm").searchForm();
-
- $.QueryMainList = new $.AbstractList( {entity:"QueryMain",
- searchForm:searchForm,
- autoLoad:false,
- searchUrl:'/QueryMain/normalSearch.action',
- showExportButton:true,
- functionId:'123'
- });
-
- $("#btnSearch").bind("click",$.proxy( $.QueryMainList.quickSearch, $.QueryMainList ) );
- }
- });
-
- if( !$.isEmpty(buttonData )){
- // 构建权限按钮
- var jsonButtons = JSON.parse(buttonData);
- $.buildToolbar($("#toolbar"),jsonButtons );
- };
-
- });
|