EXt6js创建一个页面

21 篇文章 0 订阅
6 篇文章 0 订阅
/**
 * Created by Cy on 2016/10/17.
 */
Ext.define('BSWeb.view.business.communityinfo.CommunityInfo', {
    extend: 'Ext.grid.Panel',
    title: '小区管理',
    layout: 'fit',
    closable: true,
    itemId: 'CommunityItemId',
    columnLines: true,

    viewConfig: {
        //sortAscText:'123445'
    },

    requires: [
        'BSWeb.store.business.community.Community',
        'BSWeb.view.business.community.CommunityController',
        'BSWeb.view.business.communityinfo.AddCommunity',
        'BSWeb.view.business.communityinfo.Updacommunity'
    ],

    store: {
        type: 'Communitystore'
    },

    //defaults: {

    //},

    controller: 'CommunityInfo',

    columns: [
        { xtype: 'rownumberer' },
        { text: '小区编号', dataIndex: 'V_CommNo', sortable: true, menuDisabled: true, locked: true },
        { text: '所属楼盘', dataIndex: 'V_ProperName', sortable: true, menuDisabled: true, locked: true },
        { text: '小区名称', dataIndex: 'V_CommName', sortable: true, menuDisabled: true, locked: true },
        { text: '小区地址', dataIndex: 'V_Address', sortable: true, menuDisabled: true },
        { text: '小区负责人人', dataIndex: 'V_Person', sortable: true, menuDisabled: true },
        { text: '小区负责人人电话', dataIndex: 'V_PersonPh', sortable: true, menuDisabled: true },
        { text: '小区总面积', dataIndex: 'De_CommArea', sortable: true, menuDisabled: true },
        { text: '小区绿化面积', dataIndex: 'De_GreenArea', sortable: true, menuDisabled: true },
        { text: '小区路面总面积', dataIndex: 'De_RoadArea', sortable: true, menuDisabled: true },
        { text: '小区停车场总面积', dataIndex: 'De_ParkArea', sortable: true, menuDisabled: true },
        { text: '小区停车场车编号', dataIndex: 'V_ParkNo', sortable: true, menuDisabled: true },
        { text: '物业中心位置', dataIndex: 'V_PropAddress', sortable: true, menuDisabled: true },
        { text: '物业中心负责人', dataIndex: 'V_PropName', sortable: true, menuDisabled: true },
        { text: '物业中心电话', dataIndex: 'V_PropPhone', sortable: true, menuDisabled: true },
        { text: '是否有门禁', dataIndex: 'Bi_IsAccControl', sortable: true, menuDisabled: true },
        { text: '填报人账户', dataIndex: 'In_FillrAccount', sortable: true, menuDisabled: true },
        { text: '添加人名称', dataIndex: 'V_Fllr', sortable: true, menuDisabled: true },
        { text: '添加时间', dataIndex: 'De_FillrTime', sortable: true, flex: 1, lockable: true, menuDisabled: true, xtype: 'datecolumn', format: 'Y-m-d H:i:s' },
        { text: '备注', dataIndex: 'T_Note', sortable: true, menuDisabled: true },

    ],

    //分页
    dockedItems: [{
        xtype: 'pagingtoolbar',
        itemId: 'CommunityPageItemId',
        dock: 'bottom',
        displayInfo: true,
        nextText: '下一页',
        firstText: '首页',
        lastText: '尾页',
        prevText: '上一页',
        beforePageText: '上一页',
        afterPageText: '下一页',
        displayMsg: '信息:从 {0} 条 到 {1} 条 总共 {2} 条',
        emptyMsg: '当前没有信息',
        store: {
            type: 'Communitystore'
        }
    }],

    //操作栏
    tbar: [
        //'->',
        { text: '增加', icon: 'resources/application_form_add.png', itemId: 'add' },
        '-',
        { text: '修改', icon: 'resources/application_form_edit.png', itemId: 'update' },
        '-',
        { text: '删除', icon: 'resources/application_form_delete.png', itemId: 'delete' },
        '-',
        { xtype: 'textfield', itemId: 'searchText', enableKeyEvents: true },
        { text: '姓名查询', icon: 'resources/application_form_magnify.png', itemId: 'search' }

    ]
    //
    // selModel:{
    //     selType:'checkboxmodel'
    // }

})

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值