@ -37,6 +37,8 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
carrierlistsortdire : '' ,
forwarderlistsortfield : '' ,
forwarderlistsortdire : '' ,
forwarderlistsortfield : '' ,
forwarderlistsortdire : '' ,
lanelistsortfield : '' ,
lanelistsortdire : '' ,
portlistsortfield : '' ,
@ -3390,25 +3392,684 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
}
] ;
] ;
// this.girdcolumscust = this.initgirdcolumscust;
this . girdcolumscarrier = DsTruck . GetGridPanel ( USERID , this . formname + 'carrier' , this . initgirdcolumscarrier , 1 ) ;
this . gridListCarrier = new Ext . grid . GridPanel ( {
store : this . storeCarrierList ,
enableHdMenu : false ,
region : 'center' ,
loadMask : { msg : Zi . LAN . ShuJuJiaZaiZhongQingShaoDeng } ,
trackMouseOver : true ,
disableSelection : false ,
columns : this . girdcolumscarrier ,
viewConfig : {
enableTextSelection : true , //允许复制数据
autoFill : true
} ,
// paging bar on the bottom
bbar : Ext . create ( 'Ext.PagingToolbar' , {
store : this . storeCarrierList ,
displayInfo : true ,
displayMsg : Zi . LAN . displayMsg ,
emptyMsg : Zi . LAN . emptyMsg
} )
} ) ;
// this.gridListCust.reconfigure(this.storeCustList, this.girdcolumscust);
this . gridListCarrier . addListener ( 'sortchange' , function ( ct , column , direction , eOpts ) {
this . carrierlistsortfield = column . dataIndex ;
this . carrierlistsortdire = direction ;
} , this ) ;
//#endregion
//#region 订舱代理
this . storeForwarderList = Ext . create ( 'Ext.data.Store' , {
pageSize : this . PageSize ,
fields : [
{ name : 'FORWARDER' , type : 'string' } ,
{ name : 'BSTYPE' , type : 'string' } ,
{ name : 'BLCOUNT' , type : 'number' } ,
{ name : 'NETWEIGHT' , type : 'number' } ,
{ name : 'KGS' , type : 'number' } ,
{ name : 'CBM' , type : 'number' } ,
{ name : 'TEU' , type : 'number' } ,
{ name : 'CNTR1' , type : 'number' } ,
{ name : 'CNTR2' , type : 'number' } ,
{ name : 'CNTR3' , type : 'number' } ,
{ name : 'CNTR4' , type : 'number' } ,
{ name : 'CNTR5' , type : 'number' } ,
{ name : 'CNTR6' , type : 'number' } ,
{ name : 'CNTR7' , type : 'number' } ,
{ name : 'CNTR8' , type : 'number' } ,
{ name : 'CNTR9' , type : 'number' } ,
{ name : 'CNTR10' , type : 'number' } ,
{ name : 'OTCNTR' , type : 'number' } ,
{ name : 'RMBDR' , type : 'number' } ,
{ name : 'RMBCR' , type : 'number' } ,
{ name : 'USDDR' , type : 'number' } ,
{ name : 'USDCR' , type : 'number' } ,
{ name : 'OTDR' , type : 'number' } ,
{ name : 'OTCR' , type : 'number' } ,
{ name : 'TTLDR' , type : 'number' } ,
{ name : 'TTLCR' , type : 'number' } ,
{ name : 'TTLTAXDR' , type : 'number' } ,
{ name : 'TTLTAXCR' , type : 'number' } ,
{ name : 'TTLTAXPROFIT' , type : 'number' } ,
{ name : 'RMBPROFIT' , type : 'number' } ,
{ name : 'USDPROFIT' , type : 'number' } ,
{ name : 'OTPROFIT' , type : 'number' } ,
{ name : 'RMBPROFIT' , type : 'number' } ,
{ name : 'USDPROFIT' , type : 'number' } ,
{ name : 'OTPROFIT' , type : 'number' } ,
{ name : 'TTLPROFIT' , type : 'number' } ,
{ name : 'NOTAXRMBDR' , type : 'number' } ,
{ name : 'NOTAXRMBCR' , type : 'number' } ,
{ name : 'NOTAXUSDDR' , type : 'number' } ,
{ name : 'NOTAXUSDCR' , type : 'number' } ,
{ name : 'NOTAXOTDR' , type : 'number' } ,
{ name : 'NOTAXOTCR' , type : 'number' } ,
{ name : 'NOTAXTTLDR' , type : 'number' } ,
{ name : 'NOTAXTTLCR' , type : 'number' } ,
{ name : 'NOTAXRMBPROFIT' , type : 'number' } ,
{ name : 'NOTAXUSDPROFIT' , type : 'number' } ,
{ name : 'NOTAXOTPROFIT' , type : 'number' } ,
{ name : 'NOTAXTTLPROFIT' , type : 'number' } ,
{ name : 'NOACCTAXRMBDR' , type : 'number' } ,
{ name : 'NOACCTAXRMBCR' , type : 'number' } ,
{ name : 'NOACCTAXUSDDR' , type : 'number' } ,
{ name : 'NOACCTAXUSDCR' , type : 'number' } ,
{ name : 'NOACCTAXOTDR' , type : 'number' } ,
{ name : 'NOACCTAXOTCR' , type : 'number' } ,
{ name : 'NOACCTAXTTLDR' , type : 'number' } ,
{ name : 'NOACCTAXTTLCR' , type : 'number' } ,
{ name : 'NOACCTAXRMBPROFIT' , type : 'number' } ,
{ name : 'NOACCTAXUSDPROFIT' , type : 'number' } ,
{ name : 'NOACCTAXOTPROFIT' , type : 'number' } ,
{ name : 'NOACCTAXTTLPROFIT' , type : 'number' } ,
{ name : 'RMBNODR' , type : 'number' } ,
{ name : 'USDNODR' , type : 'number' } ,
{ name : 'OTNODR' , type : 'number' } ,
{ name : 'TTLNODR' , type : 'number' } ,
{ name : 'RMBNOCR' , type : 'number' } ,
{ name : 'USDNOCR' , type : 'number' } ,
{ name : 'OTNOCR' , type : 'number' } ,
{ name : 'TTLNOCR' , type : 'number' } ,
{ name : 'STLRMBDR' , type : 'number' } ,
{ name : 'STLUSDDR' , type : 'number' } ,
{ name : 'STLOTDR' , type : 'number' } ,
{ name : 'STLTTLDR' , type : 'number' } ,
{ name : 'STLRMBCR' , type : 'number' } ,
{ name : 'STLUSDCR' , type : 'number' } ,
{ name : 'STLOTCR' , type : 'number' } ,
{ name : 'STLTTLCR' , type : 'number' } ,
{ name : 'TTLPROFIT' , type : 'number' } ,
{ name : 'PROFITRATE' , type : 'number' } ,
{ name : 'NOTAXPROFITRATE' , type : 'number' }
] ,
remoteSort : true ,
proxy : {
type : 'ajax' ,
timeout : 120000 ,
url : '/MvcShipping/MsRptOpProfit/ForwarderListData' ,
reader : {
id : '' ,
root : 'data' ,
totalProperty : 'totalCount'
}
}
} ) ;
//定义Grid
this . initgirdcolumsforwarder = [ {
sortable : true ,
dataIndex : 'FORWARDER' ,
text : Zi . LAN . FORWARDER ,
width : 80
} , {
sortable : true ,
dataIndex : 'BLCOUNT' ,
text : Zi . LAN . BLCOUNT ,
width : 80
} ,
{
sortable : true ,
id : '' ,
dataIndex : 'CNTR1' ,
text : '箱型1' ,
width : 60
} ,
{
sortable : true ,
id : '' ,
dataIndex : 'CNTR2' ,
text : '箱型2' ,
width : 60
} ,
{
sortable : true ,
id : '' ,
dataIndex : 'CNTR3' ,
text : '箱型3' ,
width : 60
} ,
{
sortable : true ,
id : '' ,
dataIndex : 'CNTR4' ,
text : '箱型4' ,
width : 60
} ,
{
sortable : true ,
id : '' ,
dataIndex : 'CNTR5' ,
text : '箱型5' ,
width : 60
} ,
{
sortable : true ,
id : '' ,
dataIndex : 'CNTR6' ,
text : '箱型6' ,
width : 60
} ,
{
sortable : true ,
id : '' ,
dataIndex : 'CNTR7' ,
text : '箱型7' ,
width : 60
} ,
{
sortable : true ,
id : '' ,
dataIndex : 'CNTR8' ,
text : '箱型8' ,
width : 60
} ,
{
sortable : true ,
id : '' ,
dataIndex : 'CNTR9' ,
text : '箱型9' ,
width : 60
} ,
{
sortable : true ,
id : '' ,
dataIndex : 'CNTR10' ,
text : '箱型10' ,
width : 60
} ,
{
sortable : true ,
id : '' ,
dataIndex : 'OTCNTR' ,
text : Zi . LAN . OTCNTR ,
width : 60
} , {
sortable : true ,
dataIndex : 'TEU' ,
text : 'TEU' ,
width : 80
} , {
sortable : true ,
dataIndex : 'KGS' ,
text : 'KGS' ,
width : 80
} , {
sortable : true ,
dataIndex : 'CBM' ,
text : 'CBM' ,
width : 80
} , {
text : Zi . LAN . ALLIN ,
dataIndex : 'ALLIN' ,
columns : [ {
sortable : true ,
dataIndex : 'RMBDR' ,
text : Zi . LAN . RMBDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'RMBCR' ,
text : Zi . LAN . RMBCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'RMBPROFIT' ,
text : Zi . LAN . RMBPROFIT ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'USDDR' ,
text : Zi . LAN . USDDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'USDCR' ,
text : Zi . LAN . USDCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'USDPROFIT' ,
text : Zi . LAN . USDPROFIT ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'OTDR' ,
text : Zi . LAN . OTDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'OTCR' ,
text : Zi . LAN . OTCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'OTPROFIT' ,
text : Zi . LAN . OTPROFIT ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'TTLDR' ,
text : Zi . LAN . TTLDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'TTLCR' ,
text : Zi . LAN . TTLCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'TTLPROFIT' ,
text : Zi . LAN . TTLPROFIT ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'PROFITRATE' ,
text : Zi . LAN . PROFITRATE ,
width : 80 ,
renderer : function ( value , meta ) {
if ( value != 0 ) value = value + '%' ;
return value ;
}
} , {
sortable : true ,
dataIndex : 'TTLTAXDR' ,
text : Zi . LAN . TTLTAXDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'TTLTAXCR' ,
text : Zi . LAN . TTLTAXCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'TTLTAXPROFIT' ,
text : Zi . LAN . TTLTAXPROFIT ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} ]
} , {
text : Zi . LAN . ALLBALANCE ,
dataIndex : 'ALLBALANCE' ,
columns : [ {
sortable : true ,
dataIndex : 'STLRMBDR' ,
text : Zi . LAN . STLRMBDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'RMBNODR' ,
text : Zi . LAN . RMBNODR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'STLUSDDR' ,
text : Zi . LAN . STLUSDDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'USDNODR' ,
text : Zi . LAN . USDNODR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'STLOTDR' ,
text : Zi . LAN . STLOTDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'OTNODR' ,
text : Zi . LAN . OTNODR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'STLTTLDR' ,
text : Zi . LAN . STLTTLDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'TTLNODR' ,
text : Zi . LAN . TTLNODR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'STLRMBCR' ,
text : Zi . LAN . STLRMBCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'RMBNOCR' ,
text : Zi . LAN . RMBNOCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'STLUSDCR' ,
text : Zi . LAN . STLUSDCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'USDNOCR' ,
text : Zi . LAN . USDNOCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'STLOTCR' ,
text : Zi . LAN . STLOTCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'OTNOCR' ,
text : Zi . LAN . OTNOCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'STLTTLCR' ,
text : Zi . LAN . STLTTLCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} , {
sortable : true ,
dataIndex : 'TTLNOCR' ,
text : Zi . LAN . TTLNOCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 80
} ]
} , {
text : Zi . LAN . ALLNOTAX ,
dataIndex : 'ALLNOTAX' ,
columns : [ {
sortable : true ,
dataIndex : 'NOTAXRMBDR' ,
text : Zi . LAN . NOTAXRMBDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOTAXRMBCR' ,
text : Zi . LAN . NOTAXRMBCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOTAXRMBPROFIT' ,
text : Zi . LAN . NOTAXRMBPROFIT ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOTAXUSDDR' ,
text : Zi . LAN . NOTAXUSDDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOTAXUSDCR' ,
text : Zi . LAN . NOTAXUSDCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOTAXUSDPROFIT' ,
text : Zi . LAN . NOTAXUSDPROFIT ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOTAXOTDR' ,
text : Zi . LAN . NOTAXOTDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOTAXOTCR' ,
text : Zi . LAN . NOTAXOTCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOTAXOTPROFIT' ,
text : Zi . LAN . NOTAXOTPROFIT ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOTAXTTLDR' ,
text : Zi . LAN . NOTAXTTLDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOTAXTTLCR' ,
text : Zi . LAN . NOTAXTTLCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOTAXTTLPROFIT' ,
text : Zi . LAN . NOTAXTTLPROFIT ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOTAXPROFITRATE' ,
text : Zi . LAN . NOTAXPROFITRATE ,
width : 80 ,
renderer : function ( value , meta ) {
if ( value != 0 ) value = value + '%' ;
return value ;
}
} ]
} , {
text : Zi . LAN . ALLNOACCTAX ,
dataIndex : 'ALLNOACCTAX' ,
columns : [ {
sortable : true ,
dataIndex : 'NOACCTAXRMBDR' ,
text : Zi . LAN . NOACCTAXRMBDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOACCTAXRMBCR' ,
text : Zi . LAN . NOACCTAXRMBCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOACCTAXRMBPROFIT' ,
text : Zi . LAN . NOACCTAXRMBPROFIT ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOACCTAXUSDDR' ,
text : Zi . LAN . NOACCTAXUSDDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOACCTAXUSDCR' ,
text : Zi . LAN . NOACCTAXUSDCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOACCTAXUSDPROFIT' ,
text : Zi . LAN . NOACCTAXUSDPROFIT ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOACCTAXOTDR' ,
text : Zi . LAN . NOACCTAXOTDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOACCTAXOTCR' ,
text : Zi . LAN . NOACCTAXOTCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOACCTAXOTPROFIT' ,
text : Zi . LAN . NOACCTAXOTPROFIT ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOACCTAXTTLDR' ,
text : Zi . LAN . NOACCTAXTTLDR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOACCTAXTTLCR' ,
text : Zi . LAN . NOACCTAXTTLCR ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} , {
sortable : true ,
dataIndex : 'NOACCTAXTTLPROFIT' ,
text : Zi . LAN . NOACCTAXTTLPROFIT ,
renderer : function ( value , cellmeta , record , rowIndex , columnIndex , store ) { try { var lsValue = usMoney ( value , 2 , '' , false ) ; if ( lsValue != "NaN" ) { value = lsValue ; if ( parseFloat ( lsValue ) < 0 ) { return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>' ; } } else { return value ; } } catch ( e ) { return value ; } return value ; } ,
align : 'right' ,
width : 90
} ]
}
] ;
// this.girdcolumscust = this.initgirdcolumscust;
this . girdcolumscarrier = DsTruck . GetGridPanel ( USERID , this . formname + 'carrier' , this . initgirdcolumscarrier , 1 ) ;
this . girdcolums forwarder = DsTruck . GetGridPanel ( USERID , this . formname + ' forwarder', this . initgirdcolumsforward er, 1 ) ;
this . gridListCarrier = new Ext . grid . GridPanel ( {
store : this . storeCarrierList ,
this . gridList Forward er = new Ext . grid . GridPanel ( {
store : this . store Forward erList,
enableHdMenu : false ,
region : 'center' ,
loadMask : { msg : Zi . LAN . ShuJuJiaZaiZhongQingShaoDeng } ,
trackMouseOver : true ,
disableSelection : false ,
columns : this . girdcolumscarrier ,
columns : this . girdcolums forward er,
viewConfig : {
enableTextSelection : true , //允许复制数据
autoFill : true
} ,
// paging bar on the bottom
bbar : Ext . create ( 'Ext.PagingToolbar' , {
store : this . storeCarrierList ,
store : this . store Forward erList,
displayInfo : true ,
displayMsg : Zi . LAN . displayMsg ,
emptyMsg : Zi . LAN . emptyMsg
@ -3416,9 +4077,9 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
} ) ;
// this.gridListCust.reconfigure(this.storeCustList, this.girdcolumscust);
this . gridList Carri er. addListener ( 'sortchange' , function ( ct , column , direction , eOpts ) {
this . carri erlistsortfield = column . dataIndex ;
this . carri erlistsortdire = direction ;
this . gridList Forward er. addListener ( 'sortchange' , function ( ct , column , direction , eOpts ) {
this . forward erlistsortfield = column . dataIndex ;
this . forward erlistsortdire = direction ;
} , this ) ;
//#endregion
@ -13026,7 +13687,14 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
frame : true ,
items : [ this . gridListCarrier ]
} ) ;
this . panelForwarderSum = new Ext . Panel ( {
title : Zi . LAN . FORWARDER ,
layout : "border" ,
region : 'center' ,
margin : '0 0' ,
frame : true ,
items : [ this . gridListForwarder ]
} ) ;
this . panelDeptSum = new Ext . Panel ( {
title : Zi . LAN . SALEDEPT ,
@ -13155,6 +13823,7 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
this . panelCustSum ,
this . panelSaleSum ,
this . panelCarrierSum ,
this . panelForwarderSum ,
this . panelOpSum ,
this . panelOpDeptSum ,
this . panelDeptSum ,
@ -13197,6 +13866,7 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
_this . InitGrid ( _this . girdcolumslane , _this . gridListLane , _this . storeLaneList ) ;
_this . InitGrid ( _this . gridlistsumcolumn , _this . gridListSum , _this . storeSumList ) ;
_this . InitGrid ( _this . girdcolumscarrier , _this . gridListCarrier , _this . storeCarrierList ) ;
_this . InitGrid ( _this . girdcolumsforwarder , _this . gridListForwarder , _this . storeForwarderList ) ;
_this . InitGrid ( _this . girdcolumsport , _this . gridListPort , _this . storePortList ) ;
_this . InitGrid ( _this . girdcolumsportload , _this . gridListPortLoad , _this . storePortLoadList ) ;
_this . InitGrid ( _this . girdcolumsforwarder , _this . gridListForwarder , _this . storeForwarderList ) ;
@ -13234,6 +13904,11 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
if ( this . CheckAmend . checked == true ) amendstr = 'true' ;
Ext . apply ( store . proxy . extraParams , { condition : _this . sqlcontext , feecondition : _this . feesqlcontext , amendstr : amendstr } ) ;
} , this ) ;
this . storeForwarderList . on ( 'beforeload' , function ( store ) {
var amendstr = 'false' ;
if ( this . CheckAmend . checked == true ) amendstr = 'true' ;
Ext . apply ( store . proxy . extraParams , { condition : _this . sqlcontext , feecondition : _this . feesqlcontext , amendstr : amendstr } ) ;
} , this ) ;
this . storeDeptList . on ( 'beforeload' , function ( store ) {
var amendstr = 'false' ;
if ( this . CheckAmend . checked == true ) amendstr = 'true' ;
@ -13422,6 +14097,7 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
this . storeList . pageSize = this . PageSize ;
this . storeCustList . pageSize = this . PageSize ;
this . storeCarrierList . pageSize = this . PageSize ;
this . storeForwarderList . pageSize = this . PageSize ;
this . storeSaleList . pageSize = this . PageSize ;
this . storeDeptList . pageSize = this . PageSize ;
this . storeOpList . pageSize = this . PageSize ;
@ -13469,7 +14145,13 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
waitMsg : "正在查询数据..." ,
scope : this
} ) ;
} else if ( this . tabpanel . getActiveTab ( ) == this . panelSaleSum ) {
} else if ( this . tabpanel . getActiveTab ( ) == this . panelForwarderSum ) {
this . storeForwarderList . load ( {
params : { start : 0 , limit : this . PageSize , condition : sql , feecondition : feesql , amendstr : amendstr } ,
waitMsg : "正在查询数据..." ,
scope : this
} ) ;
} else if ( this . tabpanel . getActiveTab ( ) == this . panelSaleSum ) {
this . storeSaleList . load ( {
params : { start : 0 , limit : this . PageSize , condition : sql , feecondition : feesql , amendstr : amendstr } ,
@ -13605,6 +14287,12 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
waitMsg : "正在查询数据..." ,
scope : this
} ) ;
} else if ( this . tabpanel . getActiveTab ( ) == this . panelForwarderSum ) {
this . storeForwarderList . load ( {
params : { start : 0 , limit : this . PageSize , condition : sql , feecondition : feesql , amendstr : amendstr } ,
waitMsg : "正在查询数据..." ,
scope : this
} ) ;
} else if ( this . tabpanel . getActiveTab ( ) == this . panelSaleSum ) {
this . storeSaleList . load ( {
@ -13742,7 +14430,13 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
waitMsg : "正在查询数据..." ,
scope : this
} ) ;
} else if ( newCard == this . panelSaleSum && this . storeSaleList . getCount ( ) == 0 ) {
} else if ( newCard == this . panelForwarderSum && this . storeForwarderList . getCount ( ) == 0 ) {
this . storeForwarderList . load ( {
params : { start : 0 , limit : this . PageSize , condition : sql , feecondition : feesql , amendstr : amendstr } ,
waitMsg : "正在查询数据..." ,
scope : this
} ) ;
} else if ( newCard == this . panelSaleSum && this . storeSaleList . getCount ( ) == 0 ) {
this . storeSaleList . load ( {
params : { start : 0 , limit : this . PageSize , condition : sql , feecondition : feesql , amendstr : amendstr } ,
waitMsg : "正在查询数据..." ,
@ -14004,7 +14698,9 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
this . girdcolumsportload = DsTruck . SaveGridPanel ( USERID , this . formname + 'portload' , this . gridListPortLoad . columns , this . girdcolumsportload , 1 , true ) ;
} else if ( this . tabpanel . getActiveTab ( ) == this . panelCarrierSum ) {
this . girdcolumscarrier = DsTruck . SaveGridPanel ( USERID , this . formname + 'carrier' , this . gridListCarrier . columns , this . girdcolumscarrier , 1 , true ) ;
} else if ( this . tabpanel . getActiveTab ( ) == this . panelDocSum ) {
} else if ( this . tabpanel . getActiveTab ( ) == this . panelForwarderSum ) {
this . girdcolumsforwarder = DsTruck . SaveGridPanel ( USERID , this . formname + 'forwarder' , this . gridListForwarder . columns , this . girdcolumsforwarder , 1 , true ) ;
} else if ( this . tabpanel . getActiveTab ( ) == this . panelDocSum ) {
this . girdcolumsdoc = DsTruck . SaveGridPanel ( USERID , this . formname + 'doc' , this . gridListDoc . columns , this . girdcolumsdoc , 1 , true ) ;
} else if ( this . tabpanel . getActiveTab ( ) == this . panelCustServiceSum ) {
this . girdcolumscustservice = DsTruck . SaveGridPanel ( USERID , this . formname + 'custservice' , this . gridListCustService . columns , this . girdcolumscustservice , 1 , true ) ;
@ -14056,7 +14752,10 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
} else if ( this . tabpanel . getActiveTab ( ) == this . panelCarrierSum ) {
this . gridListCarrier . reconfigure ( this . storeCarrierList , this . initgirdcolumscarrier ) ;
this . girdcolumscarrier = DsTruck . SaveGridPanel ( USERID , this . formname + 'carrier' , this . gridListCarrier . columns , this . initgirdcolumscarrier , 1 , true ) ;
} else if ( this . tabpanel . getActiveTab ( ) == this . panelDocSum ) {
} else if ( this . tabpanel . getActiveTab ( ) == this . panelForwarderSum ) {
this . gridListForwarder . reconfigure ( this . storeForwarderList , this . initgirdcolumsforwarder ) ;
this . girdcolumsforwarder = DsTruck . SaveGridPanel ( USERID , this . formname + 'forwarder' , this . gridListForwarder . columns , this . initgirdcolumsforwarder , 1 , true ) ;
} else if ( this . tabpanel . getActiveTab ( ) == this . panelDocSum ) {
this . gridListDoc . reconfigure ( this . storeDocList , this . initgirdcolumsdoc ) ;
this . girdcolumsdoc = DsTruck . SaveGridPanel ( USERID , this . formname + 'doc' , this . gridListDoc . columns , this . initgirdcolumsdoc , 1 , true ) ;
} else if ( this . tabpanel . getActiveTab ( ) == this . panelCustServiceSum ) {
@ -14810,7 +15509,64 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
}
}
} ) ;
} else if ( this . tabpanel . activeTab == this . panelDocSum ) {
} else if ( this . tabpanel . activeTab == this . panelForwarderSum ) {
if ( this . storeForwarderList . getCount ( ) == 0 ) {
return ;
}
var sortstr = ' B.FORWARDER' ;
if ( this . forwarderlistsortfield != '' && this . forwarderlistsortdire != '' ) {
sortstr = this . forwarderlistsortfield + ' ' + this . forwarderlistsortdire ;
}
Ext . Msg . wait ( '正在组织数据, 请稍侯..' ) ;
Ext . Ajax . request ( {
waitMsg : '正在组织数据...' ,
url : '/MvcShipping/MsRptOpProfit/ForwarderListData' ,
scope : this ,
params : {
start : 0 , limit : this . PageSize ,
condition : _this . sqlcontext ,
feecondition : _this . feesqlcontext ,
amendstr : amendstr ,
printstr : 'true' ,
sortstr : 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 printType = 'MSRPTPROFITFORWARDER' ;
var sql1 = returnstr ;
sql1 = sql1 . replace ( /\+/g , "@@@" )
if ( sql1 != '' ) {
GridExportBySql ( sql1 , this . formname + 'carrier' , '利润报表-订舱代理.xls' ) ;
//var openSet = "height=1, width=400, toolbar=no, menubar=no,scrollbars=no, resizable=no,location=no, status=no,Top=" + (screen.height - 200) / 2 + ",Left=" + (screen.width - 400) / 2;
//var openType = "_blank";
//var openUrl = "../../Reports/RptExport.aspx?handle=DsRptExcel&formname=" + this.formname + 'carrier' + "&condition1=" + sql1;
//window.open(openUrl, openType, openSet);
}
} 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
} ) ;
}
}
} ) ;
} else if ( this . tabpanel . activeTab == this . panelDocSum ) {
if ( this . storeDocList . getCount ( ) == 0 ) {
return ;
@ -15630,6 +16386,61 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
}
}
} ) ;
} else if ( this . tabpanel . activeTab == this . panelForwarderSum ) {
if ( this . storeForwarderList . getCount ( ) == 0 ) {
return ;
}
var sortstr = ' B.FORWARDER' ;
if ( this . forwarderlistsortfield != '' && this . forwarderlistsortdire != '' ) {
sortstr = this . forwarderlistsortfield + ' ' + this . forwarderlistsortdire ;
}
Ext . Msg . wait ( '正在组织数据, 请稍侯..' ) ;
Ext . Ajax . request ( {
waitMsg : '正在组织数据...' ,
url : '/MvcShipping/MsRptOpProfit/ForwarderListData' ,
scope : this ,
params : {
start : 0 , limit : this . PageSize ,
condition : _this . sqlcontext ,
feecondition : _this . feesqlcontext ,
amendstr : amendstr ,
printstr : 'true' ,
sortstr : 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 printType = 'MSRPTPROFITFORWARDER' ;
var sql1 = returnstr ;
var sql2 = "" ;
var sql3 = "" ;
var sql4 = "" ;
var sql5 = "" ;
var sql6 = "" ;
PrintComm ( printType , sql1 , sql2 , sql3 , sql4 , sql5 , sql6 ) ;
} 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
} ) ;
}
}
} ) ;
} else if ( this . tabpanel . activeTab == this . panelBltypeSum ) {