|
|
|
@ -12780,6 +12780,33 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.storeCust = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefListRm' }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// this.storeCust.load({ params: { condition: ""} });
|
|
|
|
|
this.comboxCust = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: Zi.LAN.CUSTNAME,
|
|
|
|
|
store: this.storeCust,
|
|
|
|
|
queryMode: 'remote',
|
|
|
|
|
minChars: 0,
|
|
|
|
|
queryParam: 'CODENAME',
|
|
|
|
|
forceSelection: true,
|
|
|
|
|
name: 'CUSTNAME',
|
|
|
|
|
valueField: 'CustName',
|
|
|
|
|
displayField: 'CodeAndName',
|
|
|
|
|
enableKeyEvents: true,
|
|
|
|
|
listeners: {
|
|
|
|
|
keyup: function (field, e) {
|
|
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
|
|
_this.onRefreshClick();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// this.storeEnterpCode = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
// fields: [
|
|
|
|
|
// { name: 'CUSTOMER', type: 'string' },
|
|
|
|
@ -13165,7 +13192,7 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [this.comboxOpLb, this.comboxBLNOTYPE, {
|
|
|
|
|
items: [this.comboxOpLb, this.comboxCust,this.comboxBLNOTYPE, {
|
|
|
|
|
// fieldLabel: '发票号',
|
|
|
|
|
name: 'PS_INVNO',
|
|
|
|
|
flex: 0.7,
|
|
|
|
@ -13190,7 +13217,7 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, this.comboxBLFRT,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
// fieldLabel: '品名',
|
|
|
|
@ -14346,8 +14373,12 @@ Ext.extend(Shipping.MsRptOpProfitIndex, Ext.Panel, {
|
|
|
|
|
var PS_CUSTSERVICE = form.findField('PS_CUSTSERVICE').getValue();
|
|
|
|
|
sql = sql + getAndConSql(sql, PS_CUSTSERVICE, "B.CUSTSERVICE='" + PS_CUSTSERVICE + "'");
|
|
|
|
|
|
|
|
|
|
var BLFRT = form.findField('BLFRT').getValue();
|
|
|
|
|
sql = sql + getAndConSql(sql, BLFRT, "B.BLFRT='" + BLFRT + "'");
|
|
|
|
|
|
|
|
|
|
var CUSTNAME = form.findField('CUSTNAME').getValue();
|
|
|
|
|
sql = sql + getAndConSql(sql, CUSTNAME, " EXISTS (select 1 from ch_fee WHERE B.BSNO=ch_fee.BSNO AND ch_fee.CUSTOMERNAME='" + CUSTNAME + "')");
|
|
|
|
|
|
|
|
|
|
//var BLFRT = form.findField('BLFRT').getValue();
|
|
|
|
|
//sql = sql + getAndConSql(sql, BLFRT, "B.BLFRT='" + BLFRT + "'");
|
|
|
|
|
|
|
|
|
|
var VESSEL = form.findField('PS_VESSEL').getValue();
|
|
|
|
|
sql = sql + getAndConSql(sql, VESSEL, "B.VESSEL like '%" + VESSEL + "%'");
|
|
|
|
|