- /**
- * TODO 查询用store
- */
- var store = new Ext.data.Store({
- proxy: new Ext.data.HttpProxy({
- url: 'bankAccBlackListAction!findBankAccBlackListPager.action'
- }),
- reader: new Ext.data.JsonReader({
- root: 'rowList',
- totalProperty: 'totalCount'
- },[
- {name: 'pkBankaccBlacklist', mapping: 'pkBankaccBlacklist'},
- {name: 'accType', mapping: 'accType'},
- {name: 'bankName', mapping: 'bankName'},
- {name: 'accName', mapping: 'accName'},
- {name: 'accNo', mapping: 'accNo'},
- {name: 'riskSource', mapping: 'riskSource'},
- {name: 'riskNote', mapping: 'riskNote'},
- {name: 'operFlag', mapping: 'operFlag'},
- {name: 'effectFlag', mapping: 'effectFlag'},
- {name: 'createUser', mapping: 'createUser'},
- {name: 'createDate', mapping: 'createDate'},
- {name: 'modUser', mapping: 'modUser'},
- {name: 'modDate', mapping: 'modDate'}
- ])
- });
- var cm = new Ext.grid.ColumnModel([
- { header: '账户类型', dataIndex: 'accType', sortable: true },
- { header: '开户行', dataIndex: 'bankName', sortable: true },
- { header: '账号', dataIndex: 'accNo', sortable: true },
- { header: '户名', dataIndex: 'accName', sortable: true },
- { header: '风险数据来源', dataIndex: 'riskSource', sortable: true },
- { header: '风险原因', dataIndex: 'riskNote', sortable: true },
- { header: '处理状态', dataIndex: 'operFlag', sortable: true },
- { header: '生效标志', dataIndex: 'effectFlag', sortable: true }
- ]);
- var gridPanel = new Ext.grid.GridPanel({
- store: store,
- cm: cm,
- sm:new Ext.grid.RowSelectionModel({singleSelect:false}),
- autoHeight: true,
- loadMask:{
- msg: '正在加载信息'
- },
- bbar : new Ext.PagingToolbar({
- pageSize:initPageSize,
- store :store,
- beforePageText : '第',
- afterPageText : '页,共 {0} 页',
- displayInfo : true,
- displayMsg : '{0} - {1} , 共 {2} 条',
- emptyMsg : "无记录"
- })
- });