@ -625,6 +625,11 @@ Ext.extend(Shipping.MsChfeeAudit, Ext.Panel, {
_this . onSelAuditClick ( button , event ) ;
_this . onSelAuditClick ( button , event ) ;
} ,
} ,
scope : this
scope : this
} , {
xtype : 'label' ,
// flex: 0.4,
id : 'DRSELECTSTR' ,
html : "<font color='green'></font>"
} ] ,
} ] ,
columns : this . girdDrcolums
columns : this . girdDrcolums
} ) ;
} ) ;
@ -1078,6 +1083,11 @@ Ext.extend(Shipping.MsChfeeAudit, Ext.Panel, {
}
}
} ] ,
} ] ,
scope : this
scope : this
} , {
xtype : 'label' ,
// flex: 0.4,
id : 'CRSELECTSTR' ,
html : "<font color='green'></font>"
} ] ,
} ] ,
columns : this . girdCrcolums
columns : this . girdCrcolums
} ) ;
} ) ;
@ -4405,6 +4415,43 @@ Ext.extend(Shipping.MsChfeeAudit, Ext.Panel, {
memberyf . set ( "ISSEL" , '0' ) ;
memberyf . set ( "ISSEL" , '0' ) ;
} ;
} ;
var DRSELECTSTR = Ext . getCmp ( 'DRSELECTSTR' ) ;
DRSELECTSTR . setText ( '' , false ) ;
} else {
var storeSelect = Ext . create ( 'DsExt.ux.RefTableStore' , {
model : 'MsSelectFee' ,
proxy : { url : '/MvcShipping/MsCompanys/GetNoPicDataList' }
} ) ;
for ( var i = 0 ; i < selections . length ; i ++ ) {
var memberyf = selections [ i ] ;
var records = DsStoreQueryBy ( storeSelect , 'CURR' , memberyf . data . Currency )
if ( records . getCount ( ) > 0 ) {
var rec = records . getAt ( 0 ) ;
var AMOUNT = Add ( rec . data . AMOUNT , memberyf . data . Amount ) ;
rec . set ( 'AMOUNT' , AMOUNT ) ;
} else {
var rec = Ext . create ( 'MsSelectFee' , {
CURR : memberyf . data . Currency ,
AMOUNT : memberyf . data . Amount
} ) ;
storeSelect . add ( rec ) ;
}
}
if ( storeSelect . getCount ( ) > 0 ) {
str = Zi . LAN . FEE . DRSELECTSTR + '[' ;
for ( i = 0 ; i < storeSelect . getCount ( ) ; i += 1 ) {
var memberyf = storeSelect . getAt ( i ) ;
str = str + memberyf . data . CURR + ':' + memberyf . data . AMOUNT + ' ' ;
}
str = str + ']' ;
var DRSELECTSTR = Ext . getCmp ( 'DRSELECTSTR' ) ;
DRSELECTSTR . setText ( str , false ) ;
} else {
var DRSELECTSTR = Ext . getCmp ( 'DRSELECTSTR' ) ;
DRSELECTSTR . setText ( '' , false ) ;
}
}
}
}
}
} ) ;
} ) ;
@ -4417,6 +4464,45 @@ Ext.extend(Shipping.MsChfeeAudit, Ext.Panel, {
memberyf . set ( "ISSEL" , '0' ) ;
memberyf . set ( "ISSEL" , '0' ) ;
} ;
} ;
var DRSELECTSTR = Ext . getCmp ( 'CRSELECTSTR' ) ;
DRSELECTSTR . setText ( '' , false ) ;
} else {
var storeSelect = Ext . create ( 'DsExt.ux.RefTableStore' , {
model : 'MsSelectFee' ,
proxy : { url : '/MvcShipping/MsCompanys/GetNoPicDataList' }
} ) ;
for ( var i = 0 ; i < selections . length ; i ++ ) {
var memberyf = selections [ i ] ;
var records = DsStoreQueryBy ( storeSelect , 'CURR' , memberyf . data . Currency )
if ( records . getCount ( ) > 0 ) {
var rec = records . getAt ( 0 ) ;
var AMOUNT = Add ( rec . data . AMOUNT , memberyf . data . Amount ) ;
rec . set ( 'AMOUNT' , AMOUNT ) ;
} else {
var rec = Ext . create ( 'MsSelectFee' , {
CURR : memberyf . data . Currency ,
AMOUNT : memberyf . data . Amount
} ) ;
storeSelect . add ( rec ) ;
}
}
if ( storeSelect . getCount ( ) > 0 ) {
str = Zi . LAN . FEE . DRSELECTSTR + '[' ;
for ( i = 0 ; i < storeSelect . getCount ( ) ; i += 1 ) {
var memberyf = storeSelect . getAt ( i ) ;
str = str + memberyf . data . CURR + ':' + memberyf . data . AMOUNT + ' ' ;
}
str = str + ']' ;
var DRSELECTSTR = Ext . getCmp ( 'CRSELECTSTR' ) ;
DRSELECTSTR . setText ( str , false ) ;
} else {
var DRSELECTSTR = Ext . getCmp ( 'CRSELECTSTR' ) ;
DRSELECTSTR . setText ( '' , false ) ;
}
}
}
}
}
} ) ;
} ) ;