@ -48,7 +48,22 @@ Ext.extend(Shipping.MsInfoClientRang, Ext.Panel, {
//#region List列表显示信息
//#region List列表显示信息
this . Pagenum = Ext . create ( 'Ext.form.field.Number' , {
name : 'bottles' ,
fieldLabel : Zi . LAN . PageSize ,
labelAlign : 'right' ,
value : this . PageSize ,
maxValue : 100000 ,
width : 180 ,
minValue : 0 ,
listeners : {
specialkey : function ( field , e ) {
if ( e . getKey ( ) == e . ENTER ) {
_this . onRefreshClick ( ) ;
}
}
}
} ) ;
Ext . grid . RowNumberer = Ext . extend ( Ext . grid . RowNumberer , {
Ext . grid . RowNumberer = Ext . extend ( Ext . grid . RowNumberer , {
width : 30
width : 30
@ -222,12 +237,12 @@ Ext.extend(Shipping.MsInfoClientRang, Ext.Panel, {
} ,
} ,
columns : this . girdcolums ,
columns : this . girdcolums ,
// paging bar on the bottom
// paging bar on the bottom
bbar : Ext . create ( 'Ext.PagingToolbar' , {
bbar : [ Ext . create ( 'Ext.PagingToolbar' , {
store : this . storeList ,
store : this . storeList ,
displayMsg : Zi . LAN . displayMsg , //'当前显示 {0} - {1}条记录 /共 {2}条记录',
displayMsg : Zi . LAN . displayMsg , //'当前显示 {0} - {1}条记录 /共 {2}条记录',
emptyMsg : Zi . LAN . emptyMsg , //"没有数据"
emptyMsg : Zi . LAN . emptyMsg , //"没有数据"
displayInfo : true
displayInfo : true
} )
} ) , this . Pagenum ]
} ) ;
} ) ;
/////////////以下部分为获取存储的gridpanel显示样式
/////////////以下部分为获取存储的gridpanel显示样式
@ -726,6 +741,8 @@ Ext.extend(Shipping.MsInfoClientRang, Ext.Panel, {
onRefreshClick : function ( button , event ) {
onRefreshClick : function ( button , event ) {
//var girdcolums = this.gridList.getColumnMode();
//var girdcolums = this.gridList.getColumnMode();
var sql = this . getCondition ( ) ;
var sql = this . getCondition ( ) ;
this . PageSize = this . Pagenum . getValue ( ) ;
this . storeList . currentPage = 1 ;
this . sqlcontext = sql ;
this . sqlcontext = sql ;
this . storeList . load ( {
this . storeList . load ( {
params : { start : 0 , limit : this . PageSize , sort : '' , condition : sql } ,
params : { start : 0 , limit : this . PageSize , sort : '' , condition : sql } ,
@ -738,6 +755,8 @@ Ext.extend(Shipping.MsInfoClientRang, Ext.Panel, {
onDsQuery : function ( ) {
onDsQuery : function ( ) {
//var girdcolums = this.gridList.getColumnMode();
//var girdcolums = this.gridList.getColumnMode();
var sql = this . sqlcontext ;
var sql = this . sqlcontext ;
this . PageSize = this . Pagenum . getValue ( ) ;
this . storeList . currentPage = 1 ;
this . storeList . load ( {
this . storeList . load ( {
params : { start : 0 , limit : this . PageSize , sort : '' , condition : sql } ,
params : { start : 0 , limit : this . PageSize , sort : '' , condition : sql } ,
waitMsg : Zi . LAN . ZhengZaiChaXunShuJu ,
waitMsg : Zi . LAN . ZhengZaiChaXunShuJu ,