@ -13129,10 +13129,11 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
} ) ;
this . storeSalesCode . load ( ) ;
this . comboxSalesCode = Ext . create ( ' DsExt.ux.RefTableCombox ', {
this . comboxSalesCode = Ext . create ( ' Ext.ux.form.field.BoxSelect ', {
fieldLabel : Zi . LAN . PS _SALE ,
store : this . storeSalesCode ,
labelWidth : 50 ,
autosize : true ,
flex : 0.7 ,
forceSelection : true ,
name : 'PS_SALE' ,
@ -13156,11 +13157,12 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
this . storeOpCode . load ( ) ;
this . comboxOp = Ext . create ( ' DsExt.ux.RefTableCombox ', {
this . comboxOp = Ext . create ( ' Ext.ux.form.field.BoxSelect ', {
fieldLabel : Zi . LAN . PS _OP ,
store : this . storeOpCode ,
forceSelection : true ,
labelWidth : 40 ,
autosize : true ,
flex : 0.7 ,
name : 'PS_OP' ,
valueField : 'UserName' ,
@ -13183,11 +13185,12 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
this . storeCustSeviceCode . load ( ) ;
this . comboxCUSTSERVICE = Ext . create ( ' DsExt.ux.RefTableCombox ', {
this . comboxCUSTSERVICE = Ext . create ( ' Ext.ux.form.field.BoxSelect ', {
fieldLabel : Zi . LAN . PS _CUSTSERVICE ,
store : this . storeCustSeviceCode ,
labelWidth : 40 ,
flex : 0.6 ,
autosize : true ,
forceSelection : true ,
name : 'PS_CUSTSERVICE' ,
valueField : 'UserName' ,
@ -13260,9 +13263,10 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
} ) ;
//船公司
this . comboxCARRIER = Ext . create ( ' DsExt.ux.RefTableCombox ', {
this . comboxCARRIER = Ext . create ( ' Ext.ux.form.field.BoxSelect ', {
fieldLabel : Zi . LAN . CARRIER , //'船公司',
store : this . storeCARRIER ,
autosize : true ,
// labelWidth: 48,
// flex: 0.7,
forceSelection : true ,
@ -13351,9 +13355,10 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
this . StoreSubComp . load ( { params : { condition : "" } } ) ;
this . comboxSubComp = Ext . create ( ' DsExt.ux.RefTableCombox ', {
this . comboxSubComp = Ext . create ( ' Ext.ux.form.field.BoxSelect ', {
fieldLabel : Zi . LAN . SALECORP ,
store : this . StoreSubComp ,
autosize : true ,
name : 'SUBCOMP' ,
// flex: 0.5,
// labelWidth: 55,
@ -13654,7 +13659,7 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
// }
// },
this . comboxLANE , this . comboxSubComp
this . comboxLANE
]
} , {
xtype : 'container' ,
@ -13686,7 +13691,7 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
}
}
}
} , this . combox CARRIER, this . comboxSalesCode , this . comboxOp , this . comboxCUSTSERVICE
} , this . combox Op, this . comboxBSSOURCE , this . comboxBSSOURCEDETAIL
]
} , {
xtype : 'container' ,
@ -13718,9 +13723,15 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
}
}
}
} , this . combox BSSOURCE, this . comboxBSSOURCEDETAIL , this . combox FeeLock, this . comboxINVSTATUS , this . comboxISADVANCEDPAY , this . CheckAmend
} , this . combox FeeLock, this . comboxINVSTATUS , this . comboxISADVANCEDPAY , this . CheckAmend
]
}
} , {
xtype : 'container' ,
layout : 'hbox' ,
defaultType : 'textfield' ,
items : [ this . comboxSubComp , this . comboxCUSTSERVICE , this . comboxSalesCode , this . comboxCARRIER
]
}
] //end items(fieldset 1)
} //end fieldset 1
] //end root items
@ -13852,7 +13863,7 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
this . panelSearch = new Ext . Panel ( {
layout : "border" ,
region : "north" ,
height : 9 6,
height : 11 6,
items : [ this . formSearch ]
} ) ;
@ -14766,6 +14777,15 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
//}
} ,
getStrValue : function ( list ) {
var _list = [ ] ;
for ( var _i = 0 ; _i < list . length ; _i ++ ) {
_list . push ( "'" + list [ _i ] + "'" ) ;
}
return _list ;
} ,
getCondition : function ( ) {
var form = this . formSearch . getForm ( ) ;
var sql = '' ;
@ -14805,7 +14825,8 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
// sql = sql + getAndConSql(sql, ENTERP, "B.ENTERP='" + ENTERP + "'");
var CARRIER = form . findField ( 'CARRIER' ) . getValue ( ) ;
sql = sql + getAndConSql ( sql , CARRIER , "B.CARRIER='" + CARRIER + "'" ) ;
CARRIER = this . getStrValue ( CARRIER ) ;
sql = sql + getAndConSql ( sql , CARRIER , "B.CARRIER IN (" + CARRIER + ")" ) ;
var CUSTOMERNAME = form . findField ( 'PS_CUSTOMERNAME' ) . getValue ( ) ;
sql = sql + getAndConSql ( sql , CUSTOMERNAME , "B.CUSTOMERNAME='" + CUSTOMERNAME + "'" ) ;
@ -14814,10 +14835,12 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
sql = sql + getAndConSql ( sql , LANE , "B.LANE='" + LANE + "'" ) ;
var SALE = form . findField ( 'PS_SALE' ) . getValue ( ) ;
sql = sql + getAndConSql ( sql , SALE , "B.SALE='" + SALE + "'" ) ;
SALE = this . getStrValue ( SALE ) ;
sql = sql + getAndConSql ( sql , SALE , "B.SALE in (" + SALE + ")" ) ;
var OP = form . findField ( 'PS_OP' ) . getValue ( ) ;
sql = sql + getAndConSql ( sql , OP , "B.OP='" + OP + "'" ) ;
OP = this . getStrValue ( OP ) ;
sql = sql + getAndConSql ( sql , OP , "B.OP IN (" + OP + ")" ) ;
var BSTYPE = form . findField ( 'PS_BSTYPE' ) . getValue ( ) ;
sql = sql + getAndConSql ( sql , BSTYPE , "B.BSTYPE='" + BSTYPE + "'" ) ;
@ -14826,11 +14849,13 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
sql = sql + getAndConSql ( sql , OPLB , "B.OPLBNAME='" + OPLB + "'" ) ;
var SUBCOMP = form . findField ( 'SUBCOMP' ) . getValue ( ) ;
sql = sql + getAndConSql ( sql , SUBCOMP , "B.SALECORPID='" + SUBCOMP + "'" ) ;
SUBCOMP = this . getStrValue ( SUBCOMP ) ;
sql = sql + getAndConSql ( sql , SUBCOMP , "B.SALECORPID IN (" + SUBCOMP + ")" ) ;
var PS _CUSTSERVICE = form . findField ( 'PS_CUSTSERVICE' ) . getValue ( ) ;
sql = sql + getAndConSql ( sql , PS _CUSTSERVICE , "B.CUSTSERVICE='" + PS _CUSTSERVICE + "'" ) ;
PS _CUSTSERVICE = this . getStrValue ( PS _CUSTSERVICE ) ;
sql = sql + getAndConSql ( sql , PS _CUSTSERVICE , "B.CUSTSERVICE IN (" + PS _CUSTSERVICE + ")" ) ;
var BLFRT = form . findField ( 'BLFRT' ) . getValue ( ) ;
sql = sql + getAndConSql ( sql , BLFRT , "B.BLFRT='" + BLFRT + "'" ) ;