?? custordersdetail.js
字號:
Ext.namespace("CRM.custMan");
CRM.custMan.custOrdersDetail = Ext.extend(Ext.Panel, {
closable : true,
autoScroll : true,
layout : "fit",
maskDisabled : false,
initComponent : function() {
this.store = new Ext.data.JsonStore({
id : "id",
url : 'customer.do?actionType=doFindDetailList&oddOrderId='
+ oddOrderId,
root : "data",
totalProperty : "rowCount",
remoteSort : true,
fields : this.storeMapping
});
CRM.custMan.custOrdersDetail.superclass.initComponent.call(this);
this.grid = new Ext.grid.GridPanel({
store : this.store,
cm : this.cm,
height : 300,
stripeRows : true,
pageSize : 10,
bbar : new Ext.PagingToolbar({
pageSize : 10,
store : this.store,
grid : this.grid,
displayInfo : true,
displayMsg : '顯示 {0} - {1}條記錄 共有 {2} 條記錄',
emptyMsg : "沒有記錄"
})
});
this.store.load({
params : {
start : 0,
limit : 10
}
});
this.add(this.grid);
}
});
custOrdersDetailPanel = Ext.extend(CRM.custMan.custOrdersDetail, {
id : 'custOrdersDetail',
storeMapping : ["prodName", "oddCount", "oddUnit", "oddPrice", "prodTotal",],
initComponent : function() {
this.cm = new Ext.grid.ColumnModel([new Ext.grid.RowNumberer(), {
header : '商品',
sortable : true,
dataIndex : 'prodName',
width : 200
}, {
header : '數(shù)量',
sortable : true,
dataIndex : 'oddCount',
width : 150
}, {
header : '單位',
sortable : true,
dataIndex : 'oddUnit',
width : 180
}, {
header : '單價(元)',
sortable : true,
dataIndex : 'oddPrice',
width : 150
}, {
header : '金額(元)',
dataIndex : 'prodTotal',
width : 150
}]);
custOrdersDetailPanel.superclass.initComponent.call(this);
}
});
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -