zoukankan      html  css  js  c++  java
  • 查询功能的改进

    com.awd.jlsjlsgl.queryformpanel = Ext.extend(Ext.form.FormPanel,{
    initComponent:function() {
    Ext.apply(this,{
    labelAlign:'right',
    labelWidth:80,
    defaultType:'textfield',
    bodyStyle:'padding:20px;',
    defaults:{290},
    items:[{
    xtype:'panel',
    html:'请在下面输入查询条件:',
    370,
    border:false,
    style:'padding:10 0 0 3;margin:0 0 20 10;border-bottom:1px solid #ccc;font-size:14px;font-weight:bold;'
    }
    ,{
    xtype:'panel',
    layout:'column',
    400,
    border:false,
    defaults:{border:false}
    }
    ,{xtype:'textfield',fieldLabel:'条件一',name:'s_kssmc',288}
    ,{xtype:'cboFY',fieldLabel:'条件二'',name:'s_dj',field_type:'DJ',pageSize:10,editable:true,288}
    ]

    });
    com.awd.jlsjlsgl.queryformpanel.superclass.initComponent.call(this);
    }
    });



    /**
    * 查询窗口
    * @class com.awd.py.querywin
    * @extends Ext.Window
    */
    com.awd.jlsjlsgl.querywin = Ext.extend(Ext.Window,{
    initComponent:function() {
    Ext.apply(this,{
    title:'高级查询',
    455,
    height:395,
    modal:true,
    closeAction:'hide',
    layout:'fit'
    });
    com.awd.jlsjlsgl.querywin.superclass.initComponent.call(this);
    }
    });



    this.queryformpanel = new com.awd.jlsjlsgl.queryformpanel();
    this.querywin = new com.awd.jlsjlsgl.querywin({items:this.queryformpanel,buttons:[{
    text:'确定',
    handler:this.queryResult,
    scope:this
    },{
    text:'重置',
    handler:function(){this.queryformpanel.getForm().reset();},
    scope:this
    },{
    text:'取消',
    handler:function(){this.querywin.hide();},
    scope:this
    }]});



    //查询
    ,queryResult:function(){
    Ext.each(this.queryformpanel.form.items.items, function(f) {
    this.getStore().baseParams[f.name] = f.getValue();
    },this);
    this.getStore().load();
    this.querywin.hide();
    }



  • 相关阅读:
    Nginx入门
    Spring基础知识汇总 Java开发必看
    java ArrayList倒序
    1
    js event 的target 和currentTarget
    java 文件的写入和读取
    DOMContentLoaded与load的区别
    JS中先有Object还是先有Function?
    JSON.stringify的三个参数
    Java的泛型约束和限制
  • 原文地址:https://www.cnblogs.com/meetrice/p/2272661.html
Copyright © 2011-2022 走看看