|
|
|
@ -341,24 +341,44 @@ Ext.extend(Shipping.MsOpBillLSEdit, Ext.Panel, {
|
|
|
|
|
model: 'DsShipping.ux.CodeDisportModel',
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCodeDisportListRm' }
|
|
|
|
|
});
|
|
|
|
|
this.storeCodeDisport.on('beforeload', function (store) {
|
|
|
|
|
var carrier = this.MainEditRecord.data.CARRIER;
|
|
|
|
|
Ext.apply(store.proxy.extraParams, { CARRIER: carrier });
|
|
|
|
|
}, this);
|
|
|
|
|
|
|
|
|
|
//this.storeCodeDisport.load();
|
|
|
|
|
|
|
|
|
|
this.storeCodeDisport2 = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
model: 'DsShipping.ux.CodeDisportModel',
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCodeDisportListRm' }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.storeCodeDisport2.on('beforeload', function (store) {
|
|
|
|
|
var carrier = this.MainEditRecord.data.CARRIER;
|
|
|
|
|
Ext.apply(store.proxy.extraParams, { CARRIER: carrier });
|
|
|
|
|
}, this);
|
|
|
|
|
//this.storeCodeDisport2.load();
|
|
|
|
|
|
|
|
|
|
this.storeCodeDisport3 = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
model: 'DsShipping.ux.CodeDisportModel',
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCodeDisportListRm' }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.storeCodeDisport3.on('beforeload', function (store) {
|
|
|
|
|
var carrier = this.MainEditRecord.data.CARRIER;
|
|
|
|
|
Ext.apply(store.proxy.extraParams, { CARRIER: carrier });
|
|
|
|
|
}, this);
|
|
|
|
|
//this.storeCodeDisport3.load();
|
|
|
|
|
|
|
|
|
|
this.storeCodeDisport4 = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
model: 'DsShipping.ux.CodeDisportModel',
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCodeDisportListRm' }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.storeCodeDisport4.on('beforeload', function (store) {
|
|
|
|
|
var carrier = this.MainEditRecord.data.CARRIER;
|
|
|
|
|
Ext.apply(store.proxy.extraParams, { CARRIER: carrier });
|
|
|
|
|
}, this);
|
|
|
|
|
//this.storeCodeDisport4.load();
|
|
|
|
|
|
|
|
|
|
//国内港口(出口装货港、进口卸货港)
|
|
|
|
@ -404,9 +424,23 @@ Ext.extend(Shipping.MsOpBillLSEdit, Ext.Panel, {
|
|
|
|
|
listeners: {
|
|
|
|
|
scope: this,
|
|
|
|
|
blur: function (field, The, eOpts) {
|
|
|
|
|
field.setRawValue(field.value);
|
|
|
|
|
var selectrecords = DsStoreQueryBy(_this.storeCodeDisport, 'CodeAndName', _this.comboxPORTDISCHARGE.rawValue);
|
|
|
|
|
if (selectrecords.getCount() > 0) {
|
|
|
|
|
var selectdata = selectrecords.getAt(0).data;
|
|
|
|
|
var PORTDISCHARGE = this.formEdit.getForm().findField('PORTDISCHARGE').getValue();
|
|
|
|
|
if (PORTDISCHARGE.trim() == "") {
|
|
|
|
|
this.formEdit.getForm().findField('PORTDISCHARGE').setValue(selectdata.PORT);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
beforequery: function (e) {
|
|
|
|
|
var port = this.formEdit.getForm().findField('PORTDISCHARGEID').getValue();
|
|
|
|
|
if (port != '')
|
|
|
|
|
e.query = port;
|
|
|
|
|
//return FilterCombox(e, 2);//在beforequery使用此方法
|
|
|
|
|
},
|
|
|
|
|
'select': function (combo, records, eOpts) {
|
|
|
|
|
if (records.length > 0) {
|
|
|
|
|
this.formEdit.getForm().findField('PORTDISCHARGE').setValue(records[0].data.PORT);
|
|
|
|
@ -435,6 +469,23 @@ Ext.extend(Shipping.MsOpBillLSEdit, Ext.Panel, {
|
|
|
|
|
displayField: 'CodeAndName',
|
|
|
|
|
listeners: {
|
|
|
|
|
scope: this,
|
|
|
|
|
blur: function (field, The, eOpts) {
|
|
|
|
|
var selectrecords = DsStoreQueryBy(_this.storeCodeDisport2, 'CodeAndName', _this.comboxDESTINATION.rawValue);
|
|
|
|
|
if (selectrecords.getCount() > 0) {
|
|
|
|
|
var selectdata = selectrecords.getAt(0).data;
|
|
|
|
|
var DESTINATION = this.formEdit.getForm().findField('DESTINATION').getValue();
|
|
|
|
|
if (DESTINATION.trim() == "") {
|
|
|
|
|
this.formEdit.getForm().findField('DESTINATION').setValue(selectdata.PORT);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
beforequery: function (e) {
|
|
|
|
|
var port = this.formEdit.getForm().findField('DESTINATIONID').getValue();
|
|
|
|
|
if (port != '')
|
|
|
|
|
e.query = port;
|
|
|
|
|
},
|
|
|
|
|
'select': function (combo, records, eOpts) {
|
|
|
|
|
if (records.length > 0) {
|
|
|
|
|
this.formEdit.getForm().findField('DESTINATION').setValue(records[0].data.PORT);
|
|
|
|
@ -465,6 +516,23 @@ Ext.extend(Shipping.MsOpBillLSEdit, Ext.Panel, {
|
|
|
|
|
displayField: 'CodeAndName',
|
|
|
|
|
listeners: {
|
|
|
|
|
scope: this,
|
|
|
|
|
blur: function (field, The, eOpts) {
|
|
|
|
|
var selectrecords = DsStoreQueryBy(_this.storeCodeDisport3, 'CodeAndName', _this.comboxPLACEDELIVERY.rawValue);
|
|
|
|
|
if (selectrecords.getCount() > 0) {
|
|
|
|
|
var selectdata = selectrecords.getAt(0).data;
|
|
|
|
|
var PLACEDELIVERY = this.formEdit.getForm().findField('PLACEDELIVERY').getValue();
|
|
|
|
|
if (PLACEDELIVERY.trim() == "") {
|
|
|
|
|
this.formEdit.getForm().findField('PLACEDELIVERY').setValue(selectdata.PORT);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
beforequery: function (e) {
|
|
|
|
|
var port = this.formEdit.getForm().findField('PLACEDELIVERYID').getValue();
|
|
|
|
|
if (port != '')
|
|
|
|
|
e.query = port;
|
|
|
|
|
},
|
|
|
|
|
'select': function (combo, records, eOpts) {
|
|
|
|
|
if (records.length > 0) {
|
|
|
|
|
this.formEdit.getForm().findField('PLACEDELIVERY').setValue(records[0].data.PORT);
|
|
|
|
@ -486,6 +554,25 @@ Ext.extend(Shipping.MsOpBillLSEdit, Ext.Panel, {
|
|
|
|
|
displayField: 'CodeAndName',
|
|
|
|
|
listeners: {
|
|
|
|
|
scope: this,
|
|
|
|
|
blur: function (field, The, eOpts) {
|
|
|
|
|
var selectrecords = DsStoreQueryBy(_this.storeCodeDisport4, 'CodeAndName', _this.comboxPLACERECEIPT.rawValue);
|
|
|
|
|
if (selectrecords.getCount() > 0) {
|
|
|
|
|
var selectdata = selectrecords.getAt(0).data;
|
|
|
|
|
var PLACERECEIPT = this.formEdit.getForm().findField('PLACERECEIPT').getValue();
|
|
|
|
|
if (PLACERECEIPT.trim() == "") {
|
|
|
|
|
this.formEdit.getForm().findField('PLACERECEIPT').setValue(selectdata.PORT);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
beforequery: function (e) {
|
|
|
|
|
var port = this.formEdit.getForm().findField('PLACERECEIPTID').getValue();
|
|
|
|
|
if (port != '')
|
|
|
|
|
e.query = port;
|
|
|
|
|
|
|
|
|
|
//return FilterCombox(e, 2);//在beforequery使用此方法
|
|
|
|
|
},
|
|
|
|
|
'select': function (combo, records, eOpts) {
|
|
|
|
|
if (records.length > 0) {
|
|
|
|
|
this.formEdit.getForm().findField('PLACERECEIPT').setValue(records[0].data.PORT);
|
|
|
|
@ -5378,7 +5465,19 @@ this.storeConsignee.on('beforeload', function (store) {
|
|
|
|
|
scope: this
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (data.PORTDISCHARGEID != '') {
|
|
|
|
|
this.storeCodeDisport.load({ params: { PORT: data.PORTDISCHARGEID, CARRIER: this.MainEditRecord.data.CARRIER } });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (data.DESTINATIONID != '') {
|
|
|
|
|
this.storeCodeDisport2.load({ params: { PORT: data.DESTINATIONID, CARRIER: this.MainEditRecord.data.CARRIER } });
|
|
|
|
|
}
|
|
|
|
|
if (data.PLACEDELIVERYID != '') {
|
|
|
|
|
this.storeCodeDisport3.load({ params: { PORT: data.PLACEDELIVERYID, CARRIER: this.MainEditRecord.data.CARRIER } });
|
|
|
|
|
}
|
|
|
|
|
if (data.PLACERECEIPTID != '') {
|
|
|
|
|
this.storeCodeDisport4.load({ params: { PORT: data.PLACERECEIPTID, CARRIER: this.MainEditRecord.data.CARRIER } });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|