|
|
@ -182,7 +182,7 @@ Ext.extend(Shipping.OP_SERVICEBILLIndex, Ext.Panel, {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
sortable: true,
|
|
|
|
sortable: true,
|
|
|
|
dataIndex: 'FEE_1',
|
|
|
|
dataIndex: 'FEE_1',
|
|
|
|
header: Zi.LAN.FEE,
|
|
|
|
header: Zi.LAN.FEETITLE,
|
|
|
|
width: 80
|
|
|
|
width: 80
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -830,15 +830,19 @@ Ext.extend(Shipping.OP_SERVICEBILLIndex, Ext.Panel, {
|
|
|
|
this.onDeleteClick(button, event);
|
|
|
|
this.onDeleteClick(button, event);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
scope: this
|
|
|
|
scope: this
|
|
|
|
}, {
|
|
|
|
}
|
|
|
|
text: "打印", id: "print",
|
|
|
|
|
|
|
|
tooltip: 'print',
|
|
|
|
//, {
|
|
|
|
handler: function (button, event) {
|
|
|
|
// text: "打印", id: "print",
|
|
|
|
//this.PushState("30011");
|
|
|
|
// tooltip: 'print',
|
|
|
|
this.Print();
|
|
|
|
// handler: function (button, event) {
|
|
|
|
},
|
|
|
|
// //this.PushState("30011");
|
|
|
|
scope: this
|
|
|
|
// this.Print();
|
|
|
|
}, {
|
|
|
|
// },
|
|
|
|
|
|
|
|
// scope: this
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, {
|
|
|
|
xtype: 'button',
|
|
|
|
xtype: 'button',
|
|
|
|
text: "高级查询",
|
|
|
|
text: "高级查询",
|
|
|
|
iconCls: "btnmore",
|
|
|
|
iconCls: "btnmore",
|
|
|
@ -917,6 +921,11 @@ Ext.extend(Shipping.OP_SERVICEBILLIndex, Ext.Panel, {
|
|
|
|
Ext.apply(store.proxy.extraParams, { condition: this.sqlcontext, sort: sortstr });
|
|
|
|
Ext.apply(store.proxy.extraParams, { condition: this.sqlcontext, sort: sortstr });
|
|
|
|
}, this);
|
|
|
|
}, this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.gridList.addListener('sortchange', function (ct, column, direction, eOpts) {
|
|
|
|
|
|
|
|
this.sortfield = column.dataIndex;
|
|
|
|
|
|
|
|
this.sortdire = direction;
|
|
|
|
|
|
|
|
}, this);
|
|
|
|
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
//#endregion
|
|
|
|
this.LoadInitData();
|
|
|
|
this.LoadInitData();
|
|
|
|
|
|
|
|
|
|
|
@ -1223,9 +1232,9 @@ Ext.extend(Shipping.OP_SERVICEBILLIndex, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
|
|
//}, //onDeleteClick
|
|
|
|
//}, //onDeleteClick
|
|
|
|
|
|
|
|
|
|
|
|
onExportClick: function (button, event) {
|
|
|
|
//onExportClick: function (button, event) {
|
|
|
|
GridExportExcelPage(this.gridList);
|
|
|
|
// GridExportExcelPage(this.gridList);
|
|
|
|
},
|
|
|
|
//},
|
|
|
|
//#region 打印
|
|
|
|
//#region 打印
|
|
|
|
|
|
|
|
|
|
|
|
Print: function () {
|
|
|
|
Print: function () {
|
|
|
@ -1341,6 +1350,55 @@ Ext.extend(Shipping.OP_SERVICEBILLIndex, Ext.Panel, {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.onRefreshClick();
|
|
|
|
this.onRefreshClick();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, onExportClick: function (button, event) {
|
|
|
|
|
|
|
|
if (this.storeBodyList.getCount() == 0) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var sortstr = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.sortfield != '' && this.sortdire != '') {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sortstr = this.sortfield + ' ' + this.sortdire;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var sql = this.getCondition();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ext.Msg.wait('正在组织数据, 请稍侯..');
|
|
|
|
|
|
|
|
Ext.Ajax.request({
|
|
|
|
|
|
|
|
waitMsg: '正在组织数据...',
|
|
|
|
|
|
|
|
url: '/MvcShipping/OP_SERVICEBILL/GetDataListStr',
|
|
|
|
|
|
|
|
scope: this,
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
condition: sql,
|
|
|
|
|
|
|
|
sort: sortstr
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
callback: function (options, success, response) {
|
|
|
|
|
|
|
|
if (success) {
|
|
|
|
|
|
|
|
Ext.MessageBox.hide();
|
|
|
|
|
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
|
|
|
|
|
if (jsonresult.Success) {
|
|
|
|
|
|
|
|
var returnstr = jsonresult.Data;
|
|
|
|
|
|
|
|
var sql1 = returnstr;
|
|
|
|
|
|
|
|
sql1 = sql1.replace(/\+/g, "@@@")
|
|
|
|
|
|
|
|
if (sql1 != '') {
|
|
|
|
|
|
|
|
GridExportBySql(sql1, _this.formname + 'bill', '委托结算服务.xls');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
|
|
|
title: '请重试',
|
|
|
|
|
|
|
|
msg: '服务器响应出错',
|
|
|
|
|
|
|
|
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|