zoukankan      html  css  js  c++  java
  • Ext.js双击事件

    /**
     * 联系人列表panel
     */
    Ext.define('Op.OpBill.OpBillCustLinkGridPanel', {
        extend: 'Ext.grid.Panel',
        id: 'Op_OpBill_OpBillCustLinkGridPanel_ID',
        title: '联系人信息',
        frame: true,
        height: 300,
        sortableColumns: false,
        enableColumnHide: false,
        enableColumnMove: false,
        selType: "rowmodel",
        selModel: Ext.create('Ext.selection.CheckboxModel', {
            mode: "SINGLE"
        }),
    
        loadValuationStore: function(parentCode) {
            this.getStore().load();
        },
        constructor: function(config) {
            var me = this;
            me.store = Ext.create('Op.OpBill.OpBillCustLinkStore');
            me.tbar = [];
            me.columns = [{
                hidden: true,
                text: 'id',
                dataIndex: 'id'
            },
            {
                text: '联系人',
                dataIndex: 'custLinkman'
            },
            {
                text: '联系人手机号',
                dataIndex: 'custMobile'
            },
            {
                text: '所在省',
                dataIndex: 'custProName'
            },
            {
                text: '所在市',
                dataIndex: 'custCityName'
            },
            {
                text: '所在区',
                dataIndex: 'custCountyName'
            },
            {
                text: '所在街道',
                dataIndex: 'custStreetName'
            },
            {
                text: '详细地址',
                dataIndex: 'custAddress',
                renderer: function(value, meta, record) {
                    meta.tdAttr = 'data-qtip="' + value + '"';
                    return value;
                }
            },
            {
                text: '经纬度',
                dataIndex: 'jingwei'
            }];
            var cfg = Ext.apply({},
            config);
            me.callParent([cfg]);
        },
        listeners:{
          itemdblclick:function(dataview, record, item, index, e){
    
            var form = Ext.getCmp('Op_OpBill_OpBillForm_ID').form;
            form.findField('sendName').setValue(record.data.custLinkman);
            form.findField('sendAddress').setValue(record.data.custAddress);
            Ext.getCmp('OpBill_OpBillCustLinkWindow_ID').close();
          },
        }
    });
  • 相关阅读:
    C++同步串口通信
    python描述符详解
    python属性访问
    python简单计时器实现
    python时间模块详解(time模块)
    python魔法方法大全
    python类与对象各个算数运算魔法方法总结
    python里的魔法方法1(构造与析构)
    Python 函数修饰符(装饰器)的使用
    python类与对象的内置函数大全(BIF)
  • 原文地址:https://www.cnblogs.com/feifeicui/p/10101295.html
Copyright © 2011-2022 走看看