|
|
|
@ -1821,9 +1821,9 @@ Ext.extend(Shipping.MsSeaeOrderEdit, Ext.Panel, {
|
|
|
|
|
var selectrecords = DsStoreQueryBy(this.storeCodeLoadport, 'PORT', combo.value);
|
|
|
|
|
if (selectrecords.getCount() > 0) {
|
|
|
|
|
var selectdata = selectrecords.getAt(0).data;
|
|
|
|
|
this.formBill.getForm().findField('PORTLOADID').setValue(selectdata.EDICODE);
|
|
|
|
|
this.formEdit.getForm().findField('PORTLOADID').setValue(selectdata.EDICODE);
|
|
|
|
|
} else {
|
|
|
|
|
this.formBill.getForm().findField('PORTLOADID').setValue('');
|
|
|
|
|
this.formEdit.getForm().findField('PORTLOADID').setValue('');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1853,22 +1853,22 @@ Ext.extend(Shipping.MsSeaeOrderEdit, Ext.Panel, {
|
|
|
|
|
var selectrecords = DsStoreQueryBy(this.storeCodeDisport, 'PORT', combo.value);
|
|
|
|
|
if (selectrecords.getCount() > 0) {
|
|
|
|
|
var selectdata = selectrecords.getAt(0).data;
|
|
|
|
|
this.formBill.getForm().findField('PORTDISCHARGEID').setValue(selectdata.EDICODE);
|
|
|
|
|
var DESTINATION = this.formBill.getForm().findField('DESTINATIONID').getValue();
|
|
|
|
|
this.formEdit.getForm().findField('PORTDISCHARGEID').setValue(selectdata.EDICODE);
|
|
|
|
|
var DESTINATION = this.formEdit.getForm().findField('DESTINATIONID').getValue();
|
|
|
|
|
if (DESTINATION == null || DESTINATION == '') {
|
|
|
|
|
this.formEdit.getForm().findField('DESTINATION').setValue(combo.value);
|
|
|
|
|
this.formBill.getForm().findField('DESTINATIONID').setValue(selectdata.EDICODE);
|
|
|
|
|
this.formEdit.getForm().findField('DESTINATIONID').setValue(selectdata.EDICODE);
|
|
|
|
|
}
|
|
|
|
|
var PLACEDELIVERY = this.formBill.getForm().findField('PLACEDELIVERYID').getValue();
|
|
|
|
|
if (PLACEDELIVERY == null || PLACEDELIVERY == '') {
|
|
|
|
|
//var PLACEDELIVERY = this.formBill.getForm().findField('PLACEDELIVERYID').getValue();
|
|
|
|
|
//if (PLACEDELIVERY == null || PLACEDELIVERY == '') {
|
|
|
|
|
//this.formEdit.getForm().findField('PLACEDELIVERY').setValue(combo.value);
|
|
|
|
|
this.formBill.getForm().findField('PLACEDELIVERYID').setValue(selectdata.EDICODE);
|
|
|
|
|
}
|
|
|
|
|
this.formEdit.getForm().findField('PLACEDELIVERYID').setValue(selectdata.EDICODE);
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
this.formEdit.getForm().findField('LANE').setValue(records[0].data.LANE);
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
this.formBill.getForm().findField('PORTDISCHARGEID').setValue('');
|
|
|
|
|
this.formEdit.getForm().findField('PORTDISCHARGEID').setValue('');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -1901,20 +1901,20 @@ Ext.extend(Shipping.MsSeaeOrderEdit, Ext.Panel, {
|
|
|
|
|
var selectrecords = DsStoreQueryBy(this.storeCodeDisport2, 'PORT', combo.value);
|
|
|
|
|
if (selectrecords.getCount() > 0) {
|
|
|
|
|
var selectdata = selectrecords.getAt(0).data;
|
|
|
|
|
this.formBill.getForm().findField('DESTINATIONID').setValue(selectdata.EDICODE);
|
|
|
|
|
var PLACEDELIVERY = this.formBill.getForm().findField('PLACEDELIVERYID').getValue();
|
|
|
|
|
this.formEdit.getForm().findField('DESTINATIONID').setValue(selectdata.EDICODE);
|
|
|
|
|
var PLACEDELIVERY = this.formEdit.getForm().findField('PLACEDELIVERYID').getValue();
|
|
|
|
|
if (PLACEDELIVERY == null || PLACEDELIVERY == '') {
|
|
|
|
|
this.formEdit.getForm().findField('PLACEDELIVERY').setValue(combo.value);
|
|
|
|
|
this.formBill.getForm().findField('PLACEDELIVERYID').setValue(selectdata.EDICODE);
|
|
|
|
|
this.formEdit.getForm().findField('PLACEDELIVERYID').setValue(selectdata.EDICODE);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.formBill.getForm().findField('DESTINATIONID').setValue('');
|
|
|
|
|
this.formEdit.getForm().findField('DESTINATIONID').setValue('');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
change: function (field, newValue, oldValue, eOpts) {
|
|
|
|
|
if (newValue == null || newValue == '') {
|
|
|
|
|
this.formBill.getForm().findField('DESTINATIONID').setValue('');
|
|
|
|
|
this.formEdit.getForm().findField('DESTINATIONID').setValue('');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -2103,7 +2103,7 @@ Ext.extend(Shipping.MsSeaeOrderEdit, Ext.Panel, {
|
|
|
|
|
region: 'north',
|
|
|
|
|
frame: true,
|
|
|
|
|
bodyPadding: 5,
|
|
|
|
|
height: 250,
|
|
|
|
|
height: 270,
|
|
|
|
|
layout: 'anchor',
|
|
|
|
|
trackResetOnLoad: true,
|
|
|
|
|
fieldDefaults: {
|
|
|
|
@ -2138,9 +2138,11 @@ Ext.extend(Shipping.MsSeaeOrderEdit, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
this.comboxVoyVeg,
|
|
|
|
|
this.comboxPORTLOAD,
|
|
|
|
|
this.comboxTRANSPORT,
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
{
|
|
|
|
|
fieldLabel: '装港代码',
|
|
|
|
|
readOnly:true,
|
|
|
|
|
name: 'PORTLOADID'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
fieldLabel: Zi.LAN.ORDERETD,
|
|
|
|
@ -2175,7 +2177,12 @@ Ext.extend(Shipping.MsSeaeOrderEdit, Ext.Panel, {
|
|
|
|
|
name: 'VOYNO'
|
|
|
|
|
},
|
|
|
|
|
this.comboxPORTDISCHARGE,
|
|
|
|
|
this.comboxDESTINATION,
|
|
|
|
|
{
|
|
|
|
|
fieldLabel: '卸港代码',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
name: 'PORTDISCHARGEID'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
fieldLabel: '驳船ETD',
|
|
|
|
@ -2199,14 +2206,14 @@ Ext.extend(Shipping.MsSeaeOrderEdit, Ext.Panel, {
|
|
|
|
|
name: "ORDER_CUSTCODE"
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
this.comboxLANE,
|
|
|
|
|
this.comboxDESTINATION,
|
|
|
|
|
{
|
|
|
|
|
fieldLabel: '目的地免箱天数',
|
|
|
|
|
labelWidth: 100,
|
|
|
|
|
// flex: 0.8,
|
|
|
|
|
name: 'DESTFBP'
|
|
|
|
|
fieldLabel: '目的代码',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
name: 'DESTINATIONID'
|
|
|
|
|
},
|
|
|
|
|
this.comboxSERVICE
|
|
|
|
|
|
|
|
|
|
this.comboxTRANSPORT,
|
|
|
|
|
|
|
|
|
|
// , this.comboxPKGTYPE,
|
|
|
|
|
// {
|
|
|
|
@ -2233,16 +2240,39 @@ Ext.extend(Shipping.MsSeaeOrderEdit, Ext.Panel, {
|
|
|
|
|
//, this.comboxAgent
|
|
|
|
|
//, this.comboxYARD
|
|
|
|
|
]
|
|
|
|
|
}, {
|
|
|
|
|
}
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
items: [
|
|
|
|
|
{
|
|
|
|
|
fieldLabel: Zi.LAN.ORDER_CUSTNAME,
|
|
|
|
|
labelWidth: 70,
|
|
|
|
|
// flex: 0.8,
|
|
|
|
|
name: "ORDER_CUSTNAME"
|
|
|
|
|
},
|
|
|
|
|
{ xtype: 'hiddenfield' },
|
|
|
|
|
this.comboxLANE,
|
|
|
|
|
{
|
|
|
|
|
fieldLabel: '目的地免箱天数',
|
|
|
|
|
labelWidth: 100,
|
|
|
|
|
// flex: 0.8,
|
|
|
|
|
name: 'DESTFBP'
|
|
|
|
|
},
|
|
|
|
|
this.comboxSERVICE
|
|
|
|
|
//{ xtype: 'hiddenfield' },
|
|
|
|
|
//{ xtype: 'hiddenfield' }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
items: [ {
|
|
|
|
|
fieldLabel: Zi.LAN.ORDER_CUSTNAME,
|
|
|
|
|
labelWidth: 70,
|
|
|
|
|
// flex: 0.8,
|
|
|
|
|
name: "ORDER_CUSTNAME"
|
|
|
|
|
},{
|
|
|
|
|
items: [
|
|
|
|
|
{xtype:'hiddenfield'},
|
|
|
|
|
{
|
|
|
|
|
xtype: 'textareafield',
|
|
|
|
|
grow: true,
|
|
|
|
|
flex: 2,
|
|
|
|
@ -2491,35 +2521,54 @@ Ext.extend(Shipping.MsSeaeOrderEdit, Ext.Panel, {
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
items: [this.comboxPLACERECEIPT, {
|
|
|
|
|
fieldLabel: '收货地代码',
|
|
|
|
|
//readOnly: true,
|
|
|
|
|
name: 'PLACERECEIPTID'
|
|
|
|
|
}]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
items: [{
|
|
|
|
|
items: [
|
|
|
|
|
|
|
|
|
|
this.comboxPLACEDELIVERY,
|
|
|
|
|
{
|
|
|
|
|
fieldLabel: '交货代码',
|
|
|
|
|
//readOnly: true,
|
|
|
|
|
name: 'PLACEDELIVERYID'
|
|
|
|
|
}, { xtype: 'hiddenfield' }]
|
|
|
|
|
}//, { xtype: 'hiddenfield' }
|
|
|
|
|
]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
items: [{
|
|
|
|
|
fieldLabel: '装港代码',
|
|
|
|
|
name: 'PORTLOADID'
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '卸港代码',
|
|
|
|
|
name: 'PORTDISCHARGEID'
|
|
|
|
|
}]
|
|
|
|
|
items: [
|
|
|
|
|
// {
|
|
|
|
|
// fieldLabel: '装港代码',
|
|
|
|
|
// readOnly:true,
|
|
|
|
|
// name: 'PORTLOADID'
|
|
|
|
|
//}, {
|
|
|
|
|
// fieldLabel: '卸港代码',
|
|
|
|
|
// readOnly: true,
|
|
|
|
|
// name: 'PORTDISCHARGEID'
|
|
|
|
|
// },
|
|
|
|
|
//{
|
|
|
|
|
//fieldLabel: '目的代码',
|
|
|
|
|
//readOnly: true,
|
|
|
|
|
//name: 'DESTINATIONID'
|
|
|
|
|
//},
|
|
|
|
|
]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
items: [{
|
|
|
|
|
fieldLabel: '目的代码',
|
|
|
|
|
name: 'DESTINATIONID'
|
|
|
|
|
}]
|
|
|
|
|
items: [
|
|
|
|
|
//{
|
|
|
|
|
//fieldLabel: '目的代码',
|
|
|
|
|
//readOnly: true,
|
|
|
|
|
//name: 'DESTINATIONID'
|
|
|
|
|
//}, { xtype: 'hiddenfield' }
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|