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();
    }



  • 相关阅读:
    安装部署NetBeans mysql Tomact joget workflow 环境
    Django-分页扩展
    supervisor linux下进程管理工具
    注意python函数参数的可变变量的传递
    Python远程部署利器Fabric详解
    chrom 扩展程序安装
    supervisor
    python进度条
    os sys区别
    知乎上关于网站 权限系统的回答
  • 原文地址:https://www.cnblogs.com/meetrice/p/2272661.html
Copyright © 2011-2022 走看看