|
|
|
@ -538,7 +538,9 @@ Ext.extend(Shipping.MsRptOpProfitPerCentIndex, Ext.Panel, {
|
|
|
|
|
{ id: 'rdoDestination', boxLabel: Zi.LAN.DESTINATION, name: 'OBJNAME', inputValue: 'B.DESTINATION' },
|
|
|
|
|
{ id: 'rdoStlname', boxLabel: Zi.LAN.STLNAME, name: 'OBJNAME', inputValue: 'B.STLNAME' },
|
|
|
|
|
{ id: 'rdoFeeObjName', boxLabel: Zi.LAN.DCCUST, name: 'OBJNAME', inputValue: 'F.CUSTOMERNAME' },
|
|
|
|
|
{ id: 'rdoFrCustService', boxLabel: Zi.LAN.PS_FRCUSTSERVICE, name: 'OBJNAME', inputValue: 'B.FRCUSTSERVICE' }
|
|
|
|
|
{ id: 'rdoFrCustService', boxLabel: Zi.LAN.PS_FRCUSTSERVICE, name: 'OBJNAME', inputValue: 'B.FRCUSTSERVICE' },
|
|
|
|
|
{ id: 'rdoBlType', boxLabel: Zi.LAN.BLTYPE, name: 'OBJNAME', inputValue: 'B.BLTYPE' },
|
|
|
|
|
{ id: 'rdoAll', boxLabel: Zi.LAN.All, name: 'OBJNAME', inputValue: '' }
|
|
|
|
|
],
|
|
|
|
|
listeners: {
|
|
|
|
|
change: function (rd, newValue, oldValue, eOpts) {
|
|
|
|
@ -548,30 +550,33 @@ Ext.extend(Shipping.MsRptOpProfitPerCentIndex, Ext.Panel, {
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'radiogroup',
|
|
|
|
|
fieldLabel: Zi.LAN.rdOBJCHART,
|
|
|
|
|
id: 'rdOBJCHART',
|
|
|
|
|
flex: 2,
|
|
|
|
|
columns: 2,
|
|
|
|
|
fieldLabel: Zi.LAN.OBJNAME+'2',
|
|
|
|
|
id: 'rdOBJNAME2',
|
|
|
|
|
flex: 5,
|
|
|
|
|
columns: 8,
|
|
|
|
|
vertical: true,
|
|
|
|
|
items: [
|
|
|
|
|
{ id: 'rdoBsSource2', boxLabel: Zi.LAN.BSSOURCE, name: 'OBJNAME2', inputValue: 'B.BSSOURCE' },
|
|
|
|
|
{ id: 'rdoLane2', boxLabel: Zi.LAN.LANE, name: 'OBJNAME2', inputValue: 'B.LANE', checked: true },
|
|
|
|
|
{ id: 'rdoSale2', boxLabel: Zi.LAN.PS_SALE, name: 'OBJNAME2', inputValue: 'B.SALE' },
|
|
|
|
|
{ id: 'rdoBsType2', boxLabel: Zi.LAN.PS_BSTYPE, name: 'OBJNAME2', inputValue: 'B.BSTYPE' },
|
|
|
|
|
{ id: 'rdoCustomerName2', boxLabel: Zi.LAN.PS_CUSTOMERNAME, name: 'OBJNAME2', inputValue: 'B.CUSTOMERNAME' },
|
|
|
|
|
{ id: 'rdoCarrier2', boxLabel: Zi.LAN.CARRIER, name: 'OBJNAME2', inputValue: 'B.CARRIER' },
|
|
|
|
|
{ id: 'rdoOp2', boxLabel: Zi.LAN.PS_OP, name: 'OBJNAME2', inputValue: 'B.OP' },
|
|
|
|
|
{ id: 'rdoCustService2', boxLabel: Zi.LAN.PS_CUSTSERVICE, name: 'OBJNAME2', inputValue: 'B.CUSTSERVICE' },
|
|
|
|
|
{ id: 'rdoDoc2', boxLabel: Zi.LAN.PS_DOC, name: 'OBJNAME2', inputValue: 'B.DOC' },
|
|
|
|
|
{ id: 'rdoDestination2', boxLabel: Zi.LAN.DESTINATION, name: 'OBJNAME2', inputValue: 'B.DESTINATION' },
|
|
|
|
|
{ id: 'rdoStlname2', boxLabel: Zi.LAN.STLNAME, name: 'OBJNAME2', inputValue: 'B.STLNAME' },
|
|
|
|
|
{ id: 'rdoFeeObjName2', boxLabel: Zi.LAN.DCCUST, name: 'OBJNAME2', inputValue: 'F.CUSTOMERNAME' },
|
|
|
|
|
{ id: 'rdoFrCustService2', boxLabel: Zi.LAN.PS_FRCUSTSERVICE, name: 'OBJNAME2', inputValue: 'B.FRCUSTSERVICE' },
|
|
|
|
|
{ id: 'rdoBlType2', boxLabel: Zi.LAN.BLTYPE, name: 'OBJNAME2', inputValue: 'B.BLTYPE' }
|
|
|
|
|
],
|
|
|
|
|
listeners: {
|
|
|
|
|
change: function (the, newValue, oldValue, eOpts) {
|
|
|
|
|
if (newValue.OBJCHART == '柱状图') {
|
|
|
|
|
_this.panelchart.setVisible(false);
|
|
|
|
|
_this.panelcolumnchart.setVisible(true);
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
_this.panelchart.setVisible(true);
|
|
|
|
|
_this.panelcolumnchart.setVisible(false);
|
|
|
|
|
// _this.panelBody.removeAll();
|
|
|
|
|
// _this.panelBody.add(_this.panelchart);
|
|
|
|
|
// _this.panelBody.add(_this.panelBodyChFee);
|
|
|
|
|
}
|
|
|
|
|
change: function (rd, newValue, oldValue, eOpts) {
|
|
|
|
|
if (_this.isquery)
|
|
|
|
|
_this.onRefreshClick();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
items: [
|
|
|
|
|
{ boxLabel: Zi.LAN.rdOBJCHARTD2, name: 'OBJCHART', inputValue: '饼形图', checked: true },
|
|
|
|
|
{ boxLabel: Zi.LAN.rdOBJCHARTD1, name: 'OBJCHART', inputValue: '柱状图' }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}, {
|
|
|
|
@ -601,7 +606,33 @@ Ext.extend(Shipping.MsRptOpProfitPerCentIndex, Ext.Panel, {
|
|
|
|
|
_this.onRefreshClick();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, { xtype: 'hiddenfield', flex: 2 }
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'radiogroup',
|
|
|
|
|
fieldLabel: Zi.LAN.rdOBJCHART,
|
|
|
|
|
id: 'rdOBJCHART',
|
|
|
|
|
flex: 2,
|
|
|
|
|
columns: 2,
|
|
|
|
|
vertical: true,
|
|
|
|
|
listeners: {
|
|
|
|
|
change: function (the, newValue, oldValue, eOpts) {
|
|
|
|
|
if (newValue.OBJCHART == '柱状图') {
|
|
|
|
|
_this.panelchart.setVisible(false);
|
|
|
|
|
_this.panelcolumnchart.setVisible(true);
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
_this.panelchart.setVisible(true);
|
|
|
|
|
_this.panelcolumnchart.setVisible(false);
|
|
|
|
|
// _this.panelBody.removeAll();
|
|
|
|
|
// _this.panelBody.add(_this.panelchart);
|
|
|
|
|
// _this.panelBody.add(_this.panelBodyChFee);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
items: [
|
|
|
|
|
{ boxLabel: Zi.LAN.rdOBJCHARTD2, name: 'OBJCHART', inputValue: '饼形图', checked: true },
|
|
|
|
|
{ boxLabel: Zi.LAN.rdOBJCHARTD1, name: 'OBJCHART', inputValue: '柱状图' }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
@ -926,9 +957,11 @@ Ext.extend(Shipping.MsRptOpProfitPerCentIndex, Ext.Panel, {
|
|
|
|
|
var OBJNAME = rdOBJNAME.getValue();
|
|
|
|
|
var OBJNUM = rdOBJNUM.getValue();
|
|
|
|
|
var TOPNUM = Ext.getCmp('rdTOP').getValue();
|
|
|
|
|
var rdOBJNAME2 = Ext.getCmp('rdOBJNAME2');
|
|
|
|
|
var OBJNAME2 = rdOBJNAME2.getValue();
|
|
|
|
|
|
|
|
|
|
var sql = this.getCondition();
|
|
|
|
|
Ext.apply(store.proxy.extraParams, { condition: sql, objname: OBJNAME, sumfieldtype: OBJNUM, topnum: TOPNUM });
|
|
|
|
|
Ext.apply(store.proxy.extraParams, { condition: sql, objname: OBJNAME, sumfieldtype: OBJNUM, topnum: TOPNUM, objname2: OBJNAME2 });
|
|
|
|
|
}, this);
|
|
|
|
|
|
|
|
|
|
LoadQueryData(this.formname, this.formSearch, this.CheckSaveQuery);
|
|
|
|
@ -946,6 +979,8 @@ Ext.extend(Shipping.MsRptOpProfitPerCentIndex, Ext.Panel, {
|
|
|
|
|
var OBJNAME = rdOBJNAME.getValue();
|
|
|
|
|
var OBJNUM = rdOBJNUM.getValue();
|
|
|
|
|
var TOPNUM = Ext.getCmp('rdTOP').getValue();
|
|
|
|
|
var rdOBJNAME2 = Ext.getCmp('rdOBJNAME2');
|
|
|
|
|
var OBJNAME2 = rdOBJNAME2.getValue();
|
|
|
|
|
|
|
|
|
|
var sql = this.getCondition();
|
|
|
|
|
|
|
|
|
@ -953,7 +988,7 @@ Ext.extend(Shipping.MsRptOpProfitPerCentIndex, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.storeList.load({
|
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: sql, objname: OBJNAME, sumfieldtype: OBJNUM, topnum: TOPNUM },
|
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: sql, objname: OBJNAME, sumfieldtype: OBJNUM, topnum: TOPNUM, objname2: OBJNAME2 },
|
|
|
|
|
waitMsg: "正在查询数据...",
|
|
|
|
|
scope: this
|
|
|
|
|
});
|
|
|
|
@ -969,11 +1004,13 @@ Ext.extend(Shipping.MsRptOpProfitPerCentIndex, Ext.Panel, {
|
|
|
|
|
var OBJNAME = rdOBJNAME.getValue();
|
|
|
|
|
var OBJNUM = rdOBJNUM.getValue();
|
|
|
|
|
var TOPNUM = Ext.getCmp('rdTOP').getValue();
|
|
|
|
|
var rdOBJNAME2 = Ext.getCmp('rdOBJNAME2');
|
|
|
|
|
var OBJNAME2 = rdOBJNAME2.getValue();
|
|
|
|
|
|
|
|
|
|
var sql = this.sqlcontext;
|
|
|
|
|
|
|
|
|
|
this.storeList.load({
|
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: sql, objname: OBJNAME, sumfieldtype: OBJNUM, topnum: TOPNUM },
|
|
|
|
|
params: { start: 0, limit: this.PageSize, condition: sql, objname: OBJNAME, sumfieldtype: OBJNUM, topnum: TOPNUM, objname2: OBJNAME2 },
|
|
|
|
|
waitMsg: "正在查询数据...",
|
|
|
|
|
scope: this
|
|
|
|
|
});
|
|
|
|
|