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();
          },
        }
    });
  • 相关阅读:
    当教育成为一种商品
    怎样设置Solaris上网
    对象转为xml输出到页面,中文乱码问题
    Flex 深拷贝与浅拷贝笔记
    使用access数据库需要注意的问题
    根据数据库表结构生成xsd文件
    SendKeys.Send()输入中文
    VB6迁移到VB.NET的一些问题汇总
    技术文章转移完毕
    说说重复发明轮子的事儿
  • 原文地址:https://www.cnblogs.com/feifeicui/p/10101295.html
Copyright © 2011-2022 走看看