|
|
//集运管理-路单查询
|
|
|
Ext.namespace('DsTruckRpt');
|
|
|
|
|
|
DsTruckRpt.MsRptPcHeadQryIndex = function (config) {
|
|
|
Ext.applyIf(this, config);
|
|
|
this.initUIComponents();
|
|
|
window.DsTruckRpt.MsRptPcHeadQryIndex.superclass.constructor.call(this);
|
|
|
};
|
|
|
|
|
|
Ext.extend(DsTruckRpt.MsRptPcHeadQryIndex, Ext.Panel, {
|
|
|
PageSize: 100,
|
|
|
OprationStatus: null, //仅当弹出界面时使用
|
|
|
SelectedRecord: null,
|
|
|
|
|
|
initUIComponents: function () {
|
|
|
this.formname = "tmswlPcHead";
|
|
|
|
|
|
//定义数据集
|
|
|
this.storeList = Ext.create('Ext.data.Store', {
|
|
|
pageSize: this.PageSize,
|
|
|
fields: [
|
|
|
{ name: 'BillNo', type: 'string' },
|
|
|
{ name: 'GId', type: 'string' },
|
|
|
{ name: 'DDCODE', type: 'string' },
|
|
|
{ name: 'DDCODE_REF', type: 'string' },
|
|
|
{ name: 'DDNAME', type: 'string' },
|
|
|
{ name: 'ExpDate', type: 'string' },
|
|
|
{ name: 'CustCode', type: 'string' },
|
|
|
{ name: 'CUSTNAME', type: 'string' },
|
|
|
|
|
|
{ name: 'TruckNo', type: 'string' },
|
|
|
{ name: 'MblNo', type: 'string' },
|
|
|
{ name: 'DrvName', type: 'string' },
|
|
|
{ name: 'DrvName_Ref', type: 'string' },
|
|
|
{ name: 'Mobile', type: 'string' },
|
|
|
{ name: 'ContainerType', type: 'string' },
|
|
|
{ name: 'ContainerType_Ref', type: 'string' },
|
|
|
{ name: 'ContainerQty', type: 'number' },
|
|
|
{ name: 'YardCode_Ref', type: 'string' },
|
|
|
{ name: 'VoyVeg_Ref', type: 'string' },
|
|
|
{ name: 'DstArea', type: 'string' },
|
|
|
{ name: 'NOLOADMIL', type: 'number' },
|
|
|
{ name: 'OVERLOADMIL', type: 'number' },
|
|
|
{ name: 'RATEDFUEL', type: 'number' },
|
|
|
{ name: 'REALFUEL', type: 'number' },
|
|
|
{ name: 'LrDate', type: 'string' },
|
|
|
{ name: 'USERCODE', type: 'string' },
|
|
|
{ name: 'USERNAME', type: 'string' },
|
|
|
{ name: 'REFBILLNO', type: 'string' },
|
|
|
{ name: 'DetiNation', type: 'string' },
|
|
|
{ name: 'ContainerNo', type: 'string' },
|
|
|
{ name: 'SealNo', type: 'string' }
|
|
|
|
|
|
, { name: 'CustomerName', type: 'string' }
|
|
|
, { name: 'F_CustomerName', type: 'string' }
|
|
|
, { name: 'CutoffTime', type: 'string' }
|
|
|
, { name: 'isEnd', type: 'string' }
|
|
|
, { name: 'YS_DF', type: 'number' }
|
|
|
, { name: 'YS_LY', type: 'number' }
|
|
|
, { name: 'YS_Total', type: 'number' }
|
|
|
, { name: 'YF_LQ', type: 'number' }
|
|
|
, { name: 'YF_XDCFY', type: 'number' }
|
|
|
, { name: 'YF_Total', type: 'number' }
|
|
|
//#region 现在不显示了
|
|
|
|
|
|
// { name: 'JZDATE', type: 'string' },
|
|
|
//
|
|
|
// { name: 'ORGCODE', type: 'string' },
|
|
|
// { name: 'ORGNAME', type: 'string' },
|
|
|
//
|
|
|
// { name: 'TRUCKNO_REF', type: 'string' },
|
|
|
//
|
|
|
// { name: 'CONTAINERQTY', type: 'number' },
|
|
|
// { name: 'VOYVEG', type: 'string' },
|
|
|
// { name: 'VOYVEG_REF', type: 'string' },
|
|
|
// { name: 'ETDATE', type: 'string' },
|
|
|
// { name: 'ENDPORTDATE', type: 'string' },
|
|
|
//
|
|
|
// { name: 'YARDCODE', type: 'string' },
|
|
|
// { name: 'YARDCODE_REF', type: 'string' },
|
|
|
// { name: 'YARDNAME', type: 'string' },
|
|
|
// { name: 'RTNYARDCODE', type: 'string' },
|
|
|
// { name: 'RTNYARDCODE_REF', type: 'string' },
|
|
|
// { name: 'RTNYARDNAME', type: 'string' },
|
|
|
// { name: 'BSTYPE', type: 'string' },
|
|
|
// { name: 'BSTYPE_REF', type: 'string' },
|
|
|
//
|
|
|
//
|
|
|
// { name: 'FACTORYADDR', type: 'string' },
|
|
|
// { name: 'LINKTEL', type: 'string' },
|
|
|
// { name: 'LINKMAN', type: 'string' },
|
|
|
// { name: 'RATEDMIL', type: 'number' },
|
|
|
//
|
|
|
// { name: 'FUELQTY', type: 'number' },
|
|
|
// { name: 'REALMIL', type: 'number' },
|
|
|
//
|
|
|
//
|
|
|
// { name: 'TON', type: 'number' },
|
|
|
// { name: 'AROUNDTON', type: 'number' },
|
|
|
// { name: 'LOADCOUNT', type: 'number' },
|
|
|
// { name: 'ARRIVEDATE', type: 'string' },
|
|
|
//
|
|
|
// { name: 'RETURNDATE', type: 'string' },
|
|
|
// { name: 'REFBILLNO', type: 'string' },
|
|
|
// { name: 'REMARK', type: 'string' },
|
|
|
// { name: 'ISDOUBLE', type: 'string' },
|
|
|
// { name: 'REFBILLNOSE', type: 'string' },
|
|
|
// { name: 'CONTAINERTYPESE', type: 'string' },
|
|
|
// { name: 'CONTAINERTYPESE_Ref', type: 'string' },
|
|
|
// { name: 'CONTAINERQTYSE', type: 'number' },
|
|
|
// { name: 'MBLNOSE', type: 'string' },
|
|
|
// { name: 'VOYVEGSE', type: 'string' },
|
|
|
// { name: 'VOYVEGSE_REF', type: 'string' },
|
|
|
// { name: 'ETDATESE', type: 'string' },
|
|
|
// { name: 'ENDPORTDATESE', type: 'string' },
|
|
|
// { name: 'YARDCODESE', type: 'string' },
|
|
|
// { name: 'YARDCODESE_Ref', type: 'string' },
|
|
|
// { name: 'YARDNAMESE', type: 'string' },
|
|
|
// { name: 'DSTAREASE', type: 'string' },
|
|
|
// { name: 'FACTORYADDRSE', type: 'string' },
|
|
|
// { name: 'DETINATIONSE', type: 'string' },
|
|
|
// { name: 'LINKMANSE', type: 'string' },
|
|
|
// { name: 'LINKTELSE', type: 'string' },
|
|
|
// { name: 'RTNYARDCODESE', type: 'string' },
|
|
|
// { name: 'RTNYARDCODESE_REF', type: 'string' },
|
|
|
// { name: 'RTNYARDNAMESE', type: 'string' },
|
|
|
// { name: 'BILLSTATUS', type: 'string' },
|
|
|
// { name: 'BILLSTATUS_REF', type: 'string' },
|
|
|
// { name: 'FEESTATUS', type: 'string' },
|
|
|
// { name: 'FEESTATUS_REF', type: 'string' },
|
|
|
//
|
|
|
// { name: 'TOTALMIL', type: 'number' },
|
|
|
// { name: 'TIMEMARK', type: 'number' },
|
|
|
// { name: 'PCBILLTYPE', type: 'string' },
|
|
|
// { name: 'LOADPLACE', type: 'string' },
|
|
|
// { name: 'LOADFUEL', type: 'number' },
|
|
|
// { name: 'NOLOADFUEL', type: 'number' },
|
|
|
// { name: 'RPTDATE', type: 'string' },
|
|
|
//// { name: 'NEADLOADDATE', type: 'string' },
|
|
|
//// { name: 'NEEDARRIVEDATE', type: 'string' },
|
|
|
// { name: 'ARRIVETIME', type: 'string' },
|
|
|
// { name: 'RETURNTIME', type: 'string' },
|
|
|
// { name: 'CUSTLIKEMANCODE', type: 'string' },
|
|
|
// { name: 'CUSTLIKEMANNAME', type: 'string' },
|
|
|
// { name: 'CUSTTEL', type: 'string' },
|
|
|
// { name: 'DRVCODE', type: 'string' }
|
|
|
//#endregion
|
|
|
|
|
|
],
|
|
|
remoteSort: true,
|
|
|
proxy: {
|
|
|
type: 'ajax',
|
|
|
url: '/RptMng/MsRptPcHeadQry/QryData',
|
|
|
reader: {
|
|
|
id: '',
|
|
|
root: 'data',
|
|
|
totalProperty: 'totalCount'
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//定义Grid
|
|
|
this.column = [
|
|
|
{
|
|
|
sortable: true, hidden: true,
|
|
|
dataIndex: 'GId',
|
|
|
header: 'GId',
|
|
|
width: 130
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'BillNo',
|
|
|
header: '路单号',
|
|
|
width: 130
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DDCODE_REF',
|
|
|
header: '调度',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ExpDate',
|
|
|
header: '派车日期',
|
|
|
width: 70
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUSTNAME',
|
|
|
header: '客户(托单)',
|
|
|
width: 120
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CustomerName',
|
|
|
header: '客户(路单)',
|
|
|
width: 120
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'F_CustomerName',
|
|
|
header: '最终客户',
|
|
|
width: 120
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'TruckNo',
|
|
|
header: '车号',
|
|
|
width: 65
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'MblNo',
|
|
|
header: '提单号',
|
|
|
width: 120
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DrvName',
|
|
|
header: '司机姓名',
|
|
|
width: 65
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'Mobile',
|
|
|
header: '司机手机',
|
|
|
width: 76
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ContainerType_Ref',
|
|
|
header: '箱型',
|
|
|
width: 50
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ContainerQty',
|
|
|
header: '箱量',
|
|
|
summaryType: 'sum',
|
|
|
width: 50
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'YardCode_Ref',
|
|
|
header: '场站',
|
|
|
width: 150
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'VoyVeg_Ref',
|
|
|
header: '船名航次',
|
|
|
width: 150
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DstArea',
|
|
|
header: '目的地',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DetiNation',
|
|
|
header: '工厂地址',
|
|
|
width: 200
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'OVERLOADMIL',
|
|
|
header: '重驶里程',
|
|
|
summaryType: 'sum',
|
|
|
width: 60
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'NOLOADMIL',
|
|
|
header: '空驶里程',
|
|
|
summaryType: 'sum',
|
|
|
width: 60
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'RATEDFUEL',
|
|
|
header: '额定油耗',
|
|
|
summaryType: 'sum',
|
|
|
width: 60
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'REALFUEL',
|
|
|
header: '实际油耗',
|
|
|
summaryType: 'sum',
|
|
|
width: 60
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'USERNAME',
|
|
|
header: '录入人',
|
|
|
width: 60
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'LrDate',
|
|
|
header: '录入日期',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ContainerNo',
|
|
|
header: '箱号',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SealNo',
|
|
|
header: '封号',
|
|
|
width: 80
|
|
|
}
|
|
|
, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'YS_LY',
|
|
|
header: '应收陆运费',
|
|
|
width: 80,
|
|
|
summaryType: 'sum'
|
|
|
},
|
|
|
{
|
|
|
sortable: true,
|
|
|
dataIndex: 'YS_DF',
|
|
|
header: '应收垫付',
|
|
|
width: 80,
|
|
|
summaryType: 'sum'
|
|
|
},
|
|
|
{
|
|
|
sortable: true,
|
|
|
dataIndex: 'YS_Total',
|
|
|
header: '应收合计',
|
|
|
width: 80,
|
|
|
summaryType: 'sum'
|
|
|
}
|
|
|
, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'YF_LQ',
|
|
|
header: '应付路桥费',
|
|
|
width: 80,
|
|
|
summaryType: 'sum'
|
|
|
},
|
|
|
{
|
|
|
sortable: true,
|
|
|
dataIndex: 'YF_XDCFY',
|
|
|
header: '应付下单车费用',
|
|
|
width: 80,
|
|
|
summaryType: 'sum'
|
|
|
},
|
|
|
{
|
|
|
sortable: true,
|
|
|
dataIndex: 'YF_Total',
|
|
|
header: '应付合计',
|
|
|
width: 80,
|
|
|
summaryType: 'sum'
|
|
|
}
|
|
|
];
|
|
|
|
|
|
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();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
Ext.grid.RowNumberer = Ext.extend(Ext.grid.RowNumberer, {
|
|
|
width: 50
|
|
|
});
|
|
|
this.gridList = new Ext.grid.GridPanel({
|
|
|
store: this.storeList,
|
|
|
enableHdMenu: false,
|
|
|
region: 'center',
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
trackMouseOver: true,
|
|
|
disableSelection: false,
|
|
|
columns: this.column,
|
|
|
//#region 现在不显示了
|
|
|
// , {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'DDCODE',
|
|
|
// header: '调度',
|
|
|
// width: 60
|
|
|
// }
|
|
|
// , {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'USERCODE',
|
|
|
// header: '用户编码',
|
|
|
// width: 60
|
|
|
// }
|
|
|
// , {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'YARDCODE',
|
|
|
// header: '拖箱场站',
|
|
|
// renderer: function (value, p, record) { return value + '-' + record.data.YARDCODE_Ref; },
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'YARDNAME',
|
|
|
// header: '拖箱场站名称',
|
|
|
// width: 80
|
|
|
// }
|
|
|
// , {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'ORGCODE',
|
|
|
// header: '组织编码',
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'CONTAINERQTY',
|
|
|
// header: '箱量',
|
|
|
// width: 100
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'ETDATE',
|
|
|
// header: '开船日期',
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'ENDPORTDATE',
|
|
|
// header: '截港日期',
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'RTNYARDCODE',
|
|
|
// header: '返箱场站',
|
|
|
// renderer: function (value, p, record) { return value + '-' + record.data.RTNYARDCODE_Ref; },
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'RTNYARDNAME',
|
|
|
// header: '返箱场站名称',
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'BSTYPE',
|
|
|
// header: '托单类型',
|
|
|
// renderer: function (value, p, record) { return value + '-' + record.data.BSTYPE_Ref; },
|
|
|
// width: 20
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'FACTORYADDR',
|
|
|
// header: '拖货地址',
|
|
|
// width: 200
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'LINKTEL',
|
|
|
// header: '联系电话',
|
|
|
// width: 200
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'LINKMAN',
|
|
|
// header: '联系人',
|
|
|
// width: 200
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'RATEDMIL',
|
|
|
// header: '额定里程',
|
|
|
// width: 160
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'REALMIL',
|
|
|
// header: '实际里程',
|
|
|
// width: 160
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'ARRIVEDATE',
|
|
|
// header: '到厂日期',
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'RETURNDATE',
|
|
|
// header: '返回日期',
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'REFBILLNO',
|
|
|
// header: '相关单据号',
|
|
|
// width: 200
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'REMARK',
|
|
|
// header: '备注',
|
|
|
// width: 200
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'ISDOUBLE',
|
|
|
// header: '是否双背',
|
|
|
// width: 20
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'REFBILLNOSE',
|
|
|
// header: '相关单据号2',
|
|
|
// width: 200
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'CONTAINERTYPESE',
|
|
|
// header: '箱型2',
|
|
|
// renderer: function (value, p, record) { return value + '-' + record.data.CONTAINERTYPESE_Ref; },
|
|
|
// width: 200
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'CONTAINERQTYSE',
|
|
|
// header: '箱量2',
|
|
|
// width: 100
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'MBLNOSE',
|
|
|
// header: '提单号2',
|
|
|
// width: 120
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'VOYVEGSE',
|
|
|
// header: '船名航次2',
|
|
|
// renderer: function (value, p, record) { return value + '-' + record.data.VOYVEGSE_Ref; },
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'ETDATESE',
|
|
|
// header: '开船日期2',
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'ENDPORTDATESE',
|
|
|
// header: '截港日期2',
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'YARDCODESE',
|
|
|
// header: '场站编码2',
|
|
|
// renderer: function (value, p, record) { return value + '-' + record.data.YARDCODESE_Ref; },
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'YARDNAMESE',
|
|
|
// header: '场站名称2',
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'DSTAREASE',
|
|
|
// header: '目的地2',
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'FACTORYADDRSE',
|
|
|
// header: '拖货地址2',
|
|
|
// width: 200
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'DETINATIONSE',
|
|
|
// header: '工厂地址2',
|
|
|
// width: 200
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'LINKMANSE',
|
|
|
// header: '联系人2',
|
|
|
// width: 200
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'LINKTELSE',
|
|
|
// header: '联系电话2',
|
|
|
// width: 200
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'RTNYARDCODESE',
|
|
|
// header: '返箱场站2',
|
|
|
// renderer: function (value, p, record) { return value + '-' + record.data.RTNYARDCODESE_Ref; },
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'RTNYARDNAMESE',
|
|
|
// header: '返箱场站名称2',
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'BILLSTATUS',
|
|
|
// header: '业务锁定状态',
|
|
|
// renderer: function (value, p, record) { return value + '-' + record.data.BILLSTATUS_Ref; },
|
|
|
// width: 120
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'FEESTATUS',
|
|
|
// header: '费用锁定状态',
|
|
|
// renderer: function (value, p, record) { return value + '-' + record.data.FEESTATUS_Ref; },
|
|
|
// width: 120
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'GID',
|
|
|
// header: '惟一编号',
|
|
|
// width: 160
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'LOADPLACE',
|
|
|
// header: '始发地点',
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'LOADFUEL',
|
|
|
// header: '重驶油耗',
|
|
|
// width: 160
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'NOLOADFUEL',
|
|
|
// header: '空驶油耗',
|
|
|
// width: 160
|
|
|
// }
|
|
|
// , {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'RPTDATE',
|
|
|
// header: '报表日期',
|
|
|
// width: 80
|
|
|
// }
|
|
|
//// , {
|
|
|
//// sortable: true,
|
|
|
//// dataIndex: 'NEADLOADDATE',
|
|
|
//// header: '要求起运日期',
|
|
|
//// width: 80
|
|
|
//// }, {
|
|
|
//// sortable: true,
|
|
|
//// dataIndex: 'NEEDARRIVEDATE',
|
|
|
//// header: '要求到达日期',
|
|
|
//// width: 80
|
|
|
//// }
|
|
|
// , {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'ARRIVETIME',
|
|
|
// header: '到厂时间',
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'RETURNTIME',
|
|
|
// header: '返回时间',
|
|
|
// width: 80
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'CUSTLIKEMANCODE',
|
|
|
// header: '客户联系人',
|
|
|
// width: 120
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'CUSTLIKEMANNAME',
|
|
|
// header: '客户联系人姓名',
|
|
|
// width: 120
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'CUSTTEL',
|
|
|
// header: '客户联系电话',
|
|
|
// width: 160
|
|
|
// }, {
|
|
|
// sortable: true,
|
|
|
// dataIndex: 'DRVCODE',
|
|
|
// header: '驾驶员编码',
|
|
|
// width: 60
|
|
|
// }
|
|
|
//#endregion
|
|
|
features: [{
|
|
|
ftype: 'summary'
|
|
|
}],
|
|
|
// paging bar on the bottom
|
|
|
bbar: [Ext.create('Ext.PagingToolbar', {
|
|
|
id: "bbar1",
|
|
|
store: this.storeList,
|
|
|
displayInfo: true,
|
|
|
displayMsg: '当前显示 {0} - {1}条记录 /共 {2}条记录',
|
|
|
emptyMsg: "没有数据"
|
|
|
}), this.Pagenum]
|
|
|
});
|
|
|
|
|
|
/////////////以下部分为获取存储的gridpanel显示样式
|
|
|
this.column = DsTruck.GetGridPanel(USERID, this.formname, this.column);
|
|
|
//使用者id,表名 ,中间column数组
|
|
|
this.column.unshift(new Ext.grid.RowNumberer());
|
|
|
this.gridList.reconfigure(this.storeList, this.column);
|
|
|
////////////////////////////
|
|
|
|
|
|
this.gridList.addListener('itemdblclick', function (dataview, record, item, index, e, b) {
|
|
|
this.SelectedRecord = record;
|
|
|
this.OprationStatus = 'edit';
|
|
|
|
|
|
//DsOpenEditWin("/TruckMng/MsWlPc/Edit", "", "700", "1000");
|
|
|
|
|
|
if (formtype == "Operate") {
|
|
|
DsOpenEditWin("/TruckMng/MsWlPc/Edit_ADL", "", "700", "1000");
|
|
|
}
|
|
|
if (formtype == "Qry") {
|
|
|
DsOpenEditWin("/TruckMng/MsWlPc/Edit", "", "700", "1000");
|
|
|
}
|
|
|
}, this);
|
|
|
|
|
|
//#region formSearch
|
|
|
|
|
|
//#region formSearch枚举参照相关
|
|
|
this.storeFeeNameRef = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsTruckMng.ux.FeeTypeRefModel',
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetFeeTypeRefList' }
|
|
|
});
|
|
|
this.storeFeeNameRef.load({ params: { condition: "ISTRUCKING='1' "} });
|
|
|
|
|
|
this.comboxFeeNameRef = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '不含此费用',
|
|
|
store: this.storeFeeNameRef,
|
|
|
name: 'FeeName',
|
|
|
valueField: 'Name',
|
|
|
displayField: 'CodeAndName', flex: 1
|
|
|
});
|
|
|
|
|
|
|
|
|
this.storeCustCode = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsTruckMng.ux.CustomRefModel',
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
});
|
|
|
this.storeCustCode.load({ params: { condition: "ISCONTROLLER='1'"} });
|
|
|
this.comboxCustCode = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '委托单位',
|
|
|
typeAhead: true,
|
|
|
store: this.storeCustCode,
|
|
|
name: 'CustCode',
|
|
|
valueField: 'CustCode',
|
|
|
displayField: 'CodeAndName'
|
|
|
});
|
|
|
|
|
|
this.storeBsType = Ext.create('DsExt.ux.RefEnumStore', {});
|
|
|
this.storeBsType.load({ params: { enumTypeId: 99025} });
|
|
|
this.comboxBsType = Ext.create('DsExt.ux.RefEnumCombox', {
|
|
|
fieldLabel: '托单类型',
|
|
|
store: this.storeBsType,
|
|
|
name: 'BsType'
|
|
|
});
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
this.formSearch = Ext.widget('form', {
|
|
|
frame: true,
|
|
|
region: 'center',
|
|
|
bodyPadding: 5,
|
|
|
fieldDefaults: {
|
|
|
margins: '2 2 2 2',
|
|
|
labelAlign: 'right',
|
|
|
flex: 1,
|
|
|
labelWidth: 90,
|
|
|
msgTarget: 'qtip'
|
|
|
},
|
|
|
|
|
|
items: [
|
|
|
{//fieldset 1
|
|
|
xtype: 'container',
|
|
|
defaultType: 'textfield',
|
|
|
layout: 'anchor',
|
|
|
defaults: {
|
|
|
anchor: '100%'
|
|
|
},
|
|
|
items: [{
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '提单号',
|
|
|
name: 'PS_MBLNO'
|
|
|
}, {
|
|
|
fieldLabel: '司机姓名/车牌',
|
|
|
name: 'PS_DRVNAME'
|
|
|
}, {
|
|
|
fieldLabel: '目的地/工厂',
|
|
|
name: 'DstArea', flex: 2
|
|
|
}
|
|
|
]
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '托单号',
|
|
|
id: "PS_REFBILLNO",
|
|
|
name: 'PS_REFBILLNO'
|
|
|
}, {
|
|
|
fieldLabel: '单据(路单)号',
|
|
|
name: 'PS_BILLNO'
|
|
|
}, {
|
|
|
fieldLabel: '组织编码',
|
|
|
name: 'OrgCode'
|
|
|
}, this.comboxCustCode
|
|
|
]
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '从派车日期',
|
|
|
format: 'Y-m-d',
|
|
|
xtype: 'datefield',
|
|
|
name: 'PS_EXPDATEBGN'
|
|
|
}, {
|
|
|
fieldLabel: '到派车日期',
|
|
|
format: 'Y-m-d',
|
|
|
xtype: 'datefield',
|
|
|
name: 'PS_EXPDATEEND'
|
|
|
}
|
|
|
, {
|
|
|
fieldLabel: '从委托日期',
|
|
|
format: 'Y-m-d',
|
|
|
xtype: 'datefield',
|
|
|
name: 'CustDate_min'
|
|
|
}, {
|
|
|
fieldLabel: '到委托日期',
|
|
|
format: 'Y-m-d',
|
|
|
xtype: 'datefield',
|
|
|
name: 'CustDate_max'
|
|
|
}
|
|
|
, this.comboxFeeNameRef
|
|
|
, this.comboxBsType
|
|
|
]
|
|
|
}
|
|
|
]//end items(fieldset 1)
|
|
|
}//end fieldset 1
|
|
|
]//end root items
|
|
|
|
|
|
});
|
|
|
|
|
|
//#endregion formSearch
|
|
|
|
|
|
//查询工具条
|
|
|
this.panelBtn = new Ext.Panel({
|
|
|
region: "north",
|
|
|
tbar: [
|
|
|
{
|
|
|
text: "新建", id: "btnadd", hidden: true,
|
|
|
iconCls: "btnadd",
|
|
|
handler: function (button, event) {
|
|
|
this.OprationStatus = 'add';
|
|
|
if (formtype == "Operate") {
|
|
|
DsOpenEditWin("/TruckMng/MsWlPc/Edit_ADL", "", "700", "1000");
|
|
|
}
|
|
|
if (formtype == "Qry") {
|
|
|
DsOpenEditWin("/TruckMng/MsWlPc/Edit", "", "700", "1000");
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
text: "删除", id: "btndelete", hidden: true,
|
|
|
iconCls: "btndelete",
|
|
|
handler: function (button, event) {
|
|
|
this.onDeleteClick(button, event);
|
|
|
},
|
|
|
scope: this
|
|
|
}, '-',
|
|
|
{
|
|
|
text: "执行查询",
|
|
|
iconCls: "btnrefresh",
|
|
|
handler: function (button, event) {
|
|
|
this.onRefreshClick(button, event);
|
|
|
},
|
|
|
scope: this
|
|
|
}, {
|
|
|
text: "导出Excel",
|
|
|
id: "btnExportExcel",
|
|
|
iconCls: 'btnexportexcel',
|
|
|
handler: function (button, event) {
|
|
|
this.onExportClick(button, event);
|
|
|
},
|
|
|
scope: this
|
|
|
}, '-', {
|
|
|
id: "btnFeeAuditReject",
|
|
|
text: '驳回提交费用业务',
|
|
|
tooltip: '驳回提交费用业务',
|
|
|
iconCls: "btnrefuse",
|
|
|
handler: function (button, event) {
|
|
|
this.onAuditRefuseClick(button, event);
|
|
|
},
|
|
|
scope: this
|
|
|
}, , {
|
|
|
text: "保存列表样式",
|
|
|
id: "btntest",
|
|
|
handler: function (button, event) {
|
|
|
var formname = this.formname;
|
|
|
var tempcolumns = this.gridList.columns;
|
|
|
DsTruck.SaveGridPanel(USERID, formname, tempcolumns, this.column, 0, false);
|
|
|
},
|
|
|
scope: this
|
|
|
},
|
|
|
'-',
|
|
|
{
|
|
|
text: "打印",
|
|
|
iconCls: "btnprint",
|
|
|
handler: function (button, event) {
|
|
|
this.Print();
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
});
|
|
|
|
|
|
this.panelTop = new Ext.Panel({
|
|
|
layout: "border",
|
|
|
region: "north",
|
|
|
height: 125,
|
|
|
items: [this.formSearch, this.panelBtn]
|
|
|
});
|
|
|
|
|
|
Ext.apply(this, {
|
|
|
items: [this.panelTop, this.gridList]
|
|
|
});
|
|
|
|
|
|
this.storeList.on('beforeload', function (store) {
|
|
|
if (!this.checkSearchCondition())
|
|
|
return;
|
|
|
|
|
|
var sql = this.getCondition();
|
|
|
Ext.apply(store.proxy.extraParams, { condition: sql });
|
|
|
}, this);
|
|
|
|
|
|
//this.onRefreshClick();
|
|
|
//载入时根据formtype决定是否显示新建/删除
|
|
|
if (formtype == "Operate")//爱德林项目,直接增加路单
|
|
|
{
|
|
|
Ext.getCmp("btnadd").show();
|
|
|
Ext.getCmp("btndelete").show();
|
|
|
//Ext.getCmp("BILLNO").show();
|
|
|
//Ext.getCmp("PS_REFBILLNO").hide();
|
|
|
|
|
|
this.storeList.proxy.url = '/RptMng/MsRptPcHeadQry/QryData_ADL';
|
|
|
}
|
|
|
if (formtype == "Qry")//交运项目
|
|
|
{
|
|
|
Ext.getCmp("btnadd").hide();
|
|
|
Ext.getCmp("btndelete").hide();
|
|
|
//Ext.getCmp("BILLNO").hide();
|
|
|
//Ext.getCmp("PS_REFBILLNO").show();
|
|
|
|
|
|
this.storeList.proxy.url = '/RptMng/MsRptPcHeadQry/QryData';
|
|
|
}
|
|
|
|
|
|
}, //end initUIComponents
|
|
|
onAuditRefuseClick: function (button, event) {
|
|
|
|
|
|
var sql = " A.GID in (select bsno from ch_fee where FEESTATUS=6)";
|
|
|
|
|
|
this.storeList.load({
|
|
|
params: { start: 0, limit: this.PageSize, condition: sql },
|
|
|
waitMsg: "正在查询数据...",
|
|
|
scope: this
|
|
|
});
|
|
|
},
|
|
|
onRefreshClick: function (button, event) {
|
|
|
if (!this.checkSearchCondition())
|
|
|
return;
|
|
|
|
|
|
var sql = this.getCondition();
|
|
|
this.PageSize = this.Pagenum.getValue();
|
|
|
|
|
|
this.storeList.load({
|
|
|
params: { start: 0, limit: this.PageSize, condition: sql },
|
|
|
waitMsg: "正在查询数据...",
|
|
|
scope: this
|
|
|
});
|
|
|
},
|
|
|
getCondition: function () {
|
|
|
var form = this.formSearch.getForm();
|
|
|
var sql = " A.PCBILLTYPE<>'6' ";
|
|
|
/*
|
|
|
var sqldata = form.getValues();
|
|
|
sql = Ext.JSON.encode(sqldata);
|
|
|
*/
|
|
|
|
|
|
var mblNo = form.findField('PS_MBLNO').getValue();
|
|
|
sql = sql + getAndConSql(sql, mblNo, " (A.MblNo like '%" + mblNo + "%' or A.MBLNOse like '%" + mblNo + "%') ");
|
|
|
|
|
|
var drvName = form.findField('PS_DRVNAME').getValue();
|
|
|
sql = sql + getAndConSql(sql, drvName, " (A.DrvName like '%" + drvName + "%' or A.TruckNo='" + drvName + "') ");
|
|
|
|
|
|
var DstArea = form.findField('DstArea').getValue();
|
|
|
sql = sql + getAndConSql(sql, DstArea, " (A.DstArea like '%" + DstArea + "%' or A.DetiNation like '%" + DstArea + "%') ");
|
|
|
|
|
|
var pcBillNo = form.findField('PS_BILLNO').getValue();
|
|
|
sql = sql + getAndConSql(sql, pcBillNo, " A.BillNo like '%" + pcBillNo + "%'");
|
|
|
|
|
|
var billNo = form.findField('PS_REFBILLNO').getValue();
|
|
|
sql = sql + getAndConSql(sql, billNo, " (A.RefBillNo like '%" + billNo + "%' or A.RefBillNose like '%" + billNo + "%')");
|
|
|
|
|
|
var expDate_Min = form.findField('PS_EXPDATEBGN').getRawValue();
|
|
|
sql = sql + getAndConSql(sql, expDate_Min, " A.ExpDate>='" + expDate_Min + "'");
|
|
|
|
|
|
var expDate_Max = form.findField('PS_EXPDATEEND').getRawValue();
|
|
|
sql = sql + getAndConSql(sql, expDate_Max, " A.ExpDate<='" + expDate_Max + " 23:59:59'");
|
|
|
|
|
|
var CustDatesql = "";
|
|
|
var CustDate_min = form.findField('CustDate_min').getRawValue();
|
|
|
var CustDate_max = form.findField('CustDate_max').getRawValue();
|
|
|
|
|
|
if (CustDate_min != "") {
|
|
|
CustDatesql = " (A.refBillNo in(select billno from tMsWlBsHead where CustDate >='" + CustDate_min + "' )) ";
|
|
|
}
|
|
|
if (CustDate_max != "") {
|
|
|
CustDatesql = " (A.refBillNo in(select billno from tMsWlBsHead where CustDate <='" + CustDate_max + " 23:59:59' )) ";
|
|
|
}
|
|
|
if (CustDate_max != "" && CustDate_min != "") {
|
|
|
CustDatesql = " (A.refBillNo in(select billno from tMsWlBsHead where CustDate between '" + CustDate_min + "' and '" + CustDate_max + " 23:59:59' )) ";
|
|
|
}
|
|
|
if (CustDatesql != "") {
|
|
|
sql = sql + getAndConSql(sql, CustDatesql, CustDatesql);
|
|
|
}
|
|
|
|
|
|
var orgCode = form.findField('OrgCode').getValue();
|
|
|
sql = sql + getAndConSql(sql, orgCode, "A.OrgCode like '%" + orgCode + "%'");
|
|
|
|
|
|
var CustCode = form.findField('CustCode').getValue();
|
|
|
sql = sql + getAndConSql(sql, CustCode, " (A.refBillNo in(select billno from tMsWlBsHead where CustCode = '" + CustCode + "'))");
|
|
|
|
|
|
var FEENAME = form.findField('FeeName').getValue();
|
|
|
sql = sql + getAndConSql(sql, FEENAME, " A.GID not in( select distinct BSNO from ch_fee where feename='" + FEENAME + "')");
|
|
|
|
|
|
var bsType = form.findField('BsType').getValue();
|
|
|
//sql = sql + getAndConSql(sql, bsType, " (A.refBillNo in(select billno from tMsWlBsHead where BsType = '" + bsType + "')) ");
|
|
|
sql = sql + getAndConSql(sql, bsType, " (A.BsType = '" + bsType + "') ");
|
|
|
return sql;
|
|
|
},
|
|
|
checkSearchCondition: function () {
|
|
|
var form = this.formSearch.getForm();
|
|
|
if (!form.isValid()) {
|
|
|
Ext.Msg.alert('提示', '查询条件赋值错误,请检查。');
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
},
|
|
|
OprationSwap: function () {
|
|
|
var ret = new Array();
|
|
|
ret[0] = this.OprationStatus;
|
|
|
ret[1] = this.storeList;
|
|
|
ret[2] = this.SelectedRecord;
|
|
|
if (this.OprationStatus == "add") {
|
|
|
ret[3] = "";
|
|
|
} else {
|
|
|
ret[3] = this.SelectedRecord.data.REFBILLNO;
|
|
|
}
|
|
|
ret[4] = "MsRptPcHeadQryIndex";
|
|
|
ret[5] = formtype;
|
|
|
return ret;
|
|
|
},
|
|
|
|
|
|
Print: function () {
|
|
|
if (!this.checkSearchCondition())
|
|
|
return;
|
|
|
|
|
|
var sql = this.getCondition();
|
|
|
var orgcode = GetCookie_OrgCode();
|
|
|
|
|
|
|
|
|
var printType = 'MsRptPcHeadQryIndex';
|
|
|
var sql1 = "SELECT A.BillNo,A.GId,A.LrDate,A.JzDate,A.UserCode,A.UserName,A.OrgCode,A.OrgName,A.TruckNo, ";
|
|
|
sql1 =sql1+"(SELECT TRUCKNO FROM TMSWLTRUCK WHERE TRUCKNO=A.TRUCKNO) AS TruckNo_Ref,DrvName,";
|
|
|
sql1 =sql1+"(SELECT DRVNAME FROM TMSWLDRIVER WHERE DRVCODE=A.DRVNAME) AS DRVNAME_REF,A.Mobile,dbo.trimdate(A.ExpDate) ExpDate,A.ContainerType,";
|
|
|
sql1 =sql1+"(SELECT CtnName FROM VMSTRUCKCTN WHERE CTNCODE=A.CONTAINERTYPE) AS ContainerType_Ref,A.ContainerQty,A.VoyVeg, ";
|
|
|
sql1 =sql1+"(SELECT CODEANDNAME FROM VMSTRUCKVOYINFO WHERE VOYCODE=A.VOYVEG) AS VoyVeg_Ref,A.EtDate,A.EndPortDate,A.MblNo,A.YardCode,";
|
|
|
sql1 =sql1+"(SELECT CODEANDNAME FROM VMSTRUCKCLIENT WHERE CUSTCODE=A.YARDCODE) AS YardCode_Ref,A.YardName,A.RtnYardCode, ";
|
|
|
sql1 =sql1+"(SELECT CODEANDNAME FROM VMSTRUCKCLIENT WHERE CUSTCODE=A.RTNYARDCODE) AS RtnYardCode_Ref,A.RtnYardName,A.BSTYPE,";
|
|
|
sql1 =sql1+"(SELECT ENUMVALUENAME FROM TSYSENUMVALUE WHERE LANGID=0 AND ENUMTYPEID=99025 AND ENUMVALUEID=A.BSTYPE) AS BSTYPE_REF,A.DstArea,A.DetiNation,A.FactoryAddr,A.LinkTel,A.LinkMan,A.RATEDMIL,A.RATEDFUEL ";
|
|
|
sql1 =sql1+",A.FUELQTY,A.REALMIL,A.REALFUEL,A.NOLOADMIL,A.OVERLOADMIL,A.TON,A.AROUNDTON,A.LOADCOUNT,A.ARRIVEDATE,A.DDCODE, ";
|
|
|
sql1 =sql1+"(SELECT CODEANDNAME FROM VMSTRUCKUSER WHERE USERCODE=A.DDCODE) AS DDCODE_REF,A.DDNAME,A.RETURNDATE,A.REFBILLNO,A.REMARK,A.ISDOUBLE,A.REFBILLNOSE,A.CONTAINERTYPESE, ";
|
|
|
|
|
|
sql1 =sql1+"(SELECT CODEANDNAME FROM VMSTRUCKCTN WHERE CTNCODE=A.CONTAINERTYPESE) AS CONTAINERTYPESE_REF,A.CONTAINERQTYSE,A.MBLNOSE,A.VOYVEGSE, ";
|
|
|
sql1 =sql1+"(SELECT CODEANDNAME FROM VMSTRUCKVOYINFO WHERE VOYCODE=A.VOYVEGSE) AS VOYVEGSE_REF,A.ETDATESE,A.ENDPORTDATESE,A.YARDCODESE, ";
|
|
|
sql1 =sql1+"(SELECT CODEANDNAME FROM VMSTRUCKCLIENT WHERE CUSTCODE=A.YARDCODESE) AS YARDCODESE_REF,A.YARDNAMESE,A.DSTAREASE,A.FACTORYADDRSE,A.DETINATIONSE,A.LINKMANSE,A.LINKTELSE,A.RTNYARDCODESE, ";
|
|
|
sql1 =sql1+"(SELECT CODEANDNAME FROM VMSTRUCKCLIENT WHERE CUSTCODE=A.RTNYARDCODESE) AS RTNYARDCODESE_REF,A.RTNYARDNAMESE,A.BILLSTATUS, ";
|
|
|
sql1 =sql1+"(SELECT ENUMVALUENAME FROM TSYSENUMVALUE WHERE LANGID=0 AND ENUMTYPEID=99026 AND ENUMVALUEID=A.BILLSTATUS) AS BILLSTATUS_REF,A.FEESTATUS, ";
|
|
|
sql1 =sql1+"(SELECT ENUMVALUENAME FROM TSYSENUMVALUE WHERE LANGID=0 AND ENUMTYPEID=99027 AND ENUMVALUEID=A.FEESTATUS) AS FEESTATUS_REF,A.GID,A.TOTALMIL,A.LOADPLACE,A.LOADFUEL,A.NOLOADFUEL ";
|
|
|
sql1 =sql1+",A.ARRIVETIME,A.RETURNTIME,A.CUSTLIKEMANCODE,A.CUSTLIKEMANNAME,A.CUSTTEL,A.DRVCODE,A.REFBILLNO";
|
|
|
sql1 =sql1+",B.CUSTCODE,B.CUSTNAME,B.DETINATION,A.ContainerNo,A.SealNo ";
|
|
|
|
|
|
sql1 =sql1+",dbo.F_GetFeeGroup(A.Gid,1,'运费') YS_LY ";
|
|
|
sql1 =sql1+",dbo.F_GetFeeGroup(A.Gid,1,'垫付费用') YS_DF ";
|
|
|
sql1 =sql1+",dbo.F_GetFeeGroup(A.Gid,2,'路桥费') YF_LQ ";
|
|
|
sql1 =sql1+",dbo.F_GetFeeGroup(A.Gid,2,'下单车费用') YF_XDCFY ";
|
|
|
sql1 =sql1+",dbo.F_GetFeeGroup(A.Gid,1,'运费')+dbo.F_GetFeeGroup(A.Gid,1,'垫付费用') YS_Total ";
|
|
|
sql1 =sql1+",dbo.F_GetFeeGroup(A.Gid,2,'路桥费')+dbo.F_GetFeeGroup(A.Gid,2,'下单车费用') YF_Total ";
|
|
|
|
|
|
sql1 =sql1+" from tMsWlPcHead A,tMsWlBsHead B ";
|
|
|
|
|
|
sql1 = sql1 + " where A.RefBillNo=B.BillNo and A.PcBillType='0' and B.BSTYPE<>'7' and UPPER(A.OrgCode)='" + orgcode + "' "; //不包含第三方业务
|
|
|
sql1 = sql1 + " and "+sql; //不包含第三方业务
|
|
|
sql1 = sql1 + " order by A.LRDATE DESC ";
|
|
|
|
|
|
|
|
|
|
|
|
var sql2 = "";
|
|
|
var sql3 = "";
|
|
|
var sql4 = "";
|
|
|
var sql5 = "";
|
|
|
var sql6 = "";
|
|
|
|
|
|
PrintComm(printType, sql1, sql2, sql3, sql4, sql5, sql6);
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
onExportClick: function (button, event) {
|
|
|
GridExportExcelPage(this.gridList);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|