|
|
@ -271,6 +271,23 @@ Ext.extend(DsTruck.MsPcEditIndex, Ext.Panel, {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.Pagenum = Ext.create('Ext.form.field.Number', {
|
|
|
|
|
|
|
|
name: 'bottles',
|
|
|
|
|
|
|
|
fieldLabel: '每页记录数',
|
|
|
|
|
|
|
|
labelAlign: 'right',
|
|
|
|
|
|
|
|
value: this.PageSize,
|
|
|
|
|
|
|
|
maxValue: 100000,
|
|
|
|
|
|
|
|
width: 180,
|
|
|
|
|
|
|
|
minValue: 0,
|
|
|
|
|
|
|
|
listeners: {
|
|
|
|
|
|
|
|
specialkey: function (field, e) {
|
|
|
|
|
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
|
|
|
|
|
_this.onRefreshClick();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
this.column = [
|
|
|
|
this.column = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
sortable: true, hidden: true,
|
|
|
|
sortable: true, hidden: true,
|
|
|
@ -937,12 +954,12 @@ Ext.extend(DsTruck.MsPcEditIndex, Ext.Panel, {
|
|
|
|
hideGroupedHeader: true,
|
|
|
|
hideGroupedHeader: true,
|
|
|
|
enableGroupingMenu: true
|
|
|
|
enableGroupingMenu: true
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
bbar: Ext.create('Ext.PagingToolbar', {
|
|
|
|
bbar: [Ext.create('Ext.PagingToolbar', {
|
|
|
|
store: this.storeList,
|
|
|
|
store: this.storeList,
|
|
|
|
displayInfo: true,
|
|
|
|
displayInfo: true,
|
|
|
|
displayMsg: '当前显示 {0} - {1}条记录 /共 {2}条记录',
|
|
|
|
displayMsg: '当前显示 {0} - {1}条记录 /共 {2}条记录',
|
|
|
|
emptyMsg: "没有数据"
|
|
|
|
emptyMsg: "没有数据"
|
|
|
|
})
|
|
|
|
}), this.Pagenum]
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2002,12 +2019,16 @@ Ext.extend(DsTruck.MsPcEditIndex, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
|
|
var sql = this.getCondition();
|
|
|
|
var sql = this.getCondition();
|
|
|
|
this.sqlcontext = sql;
|
|
|
|
this.sqlcontext = sql;
|
|
|
|
|
|
|
|
this.PageSize = this.Pagenum.getValue();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.storeList.pageSize = this.PageSize;
|
|
|
|
this.storeList.load({
|
|
|
|
this.storeList.load({
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: sql },
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: sql },
|
|
|
|
waitMsg: "正在查询数据...",
|
|
|
|
waitMsg: "正在查询数据...",
|
|
|
|
scope: this
|
|
|
|
scope: this
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.storeListNofen.pageSize = this.PageSize;
|
|
|
|
this.storeListNofen.load({
|
|
|
|
this.storeListNofen.load({
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: " t.BLTYPE='派车分票' AND (t.GID=t.PGID OR t.PGID='' OR t.PGID IS NULL) and (isend=0 or isend is null) " },
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: " t.BLTYPE='派车分票' AND (t.GID=t.PGID OR t.PGID='' OR t.PGID IS NULL) and (isend=0 or isend is null) " },
|
|
|
|
waitMsg: "正在查询数据...",
|
|
|
|
waitMsg: "正在查询数据...",
|
|
|
@ -2018,13 +2039,16 @@ Ext.extend(DsTruck.MsPcEditIndex, Ext.Panel, {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onDsQuery: function (button, event) {
|
|
|
|
onDsQuery: function (button, event) {
|
|
|
|
|
|
|
|
|
|
|
|
var sql=this.sqlcontext;
|
|
|
|
var sql = this.sqlcontext;
|
|
|
|
|
|
|
|
this.PageSize = this.Pagenum.getValue();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.storeList.pageSize = this.PageSize;
|
|
|
|
this.storeList.load({
|
|
|
|
this.storeList.load({
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: sql },
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: sql },
|
|
|
|
waitMsg: "正在查询数据...",
|
|
|
|
waitMsg: "正在查询数据...",
|
|
|
|
scope: this
|
|
|
|
scope: this
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
this.storeListNofen.pageSize = this.PageSize;
|
|
|
|
this.storeListNofen.load({
|
|
|
|
this.storeListNofen.load({
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: " t.BLTYPE='派车分票' AND (t.GID=t.PGID OR t.PGID='' OR t.PGID IS NULL) and (isend=0 or isend is null) " },
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: " t.BLTYPE='派车分票' AND (t.GID=t.PGID OR t.PGID='' OR t.PGID IS NULL) and (isend=0 or isend is null) " },
|
|
|
|
waitMsg: "正在查询数据...",
|
|
|
|
waitMsg: "正在查询数据...",
|
|
|
|