|
|
|
@ -14,7 +14,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
EditRecord: null,
|
|
|
|
|
Editdata: null,
|
|
|
|
|
MainEditRecord: null,
|
|
|
|
|
seaeHeadData:null,
|
|
|
|
|
seaeHeadData: null,
|
|
|
|
|
|
|
|
|
|
initUIComponents: function () {
|
|
|
|
|
|
|
|
|
@ -189,64 +189,64 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
clicksToEdit: 1
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.ctncolumns_Order =
|
|
|
|
|
[{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CTN_ID',
|
|
|
|
|
header: Zi.LAN.CTN_ID, //'编号',
|
|
|
|
|
hidden: true,
|
|
|
|
|
width: 0
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BSNO',
|
|
|
|
|
header: Zi.LAN.BSNO2, //'业务编号',
|
|
|
|
|
hidden: true,
|
|
|
|
|
width: 0
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'CTNALL',
|
|
|
|
|
header: Zi.LAN.CTNALL, //'箱型',
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'CTNNUM',
|
|
|
|
|
header: Zi.LAN.CTNNUM, //'箱量',
|
|
|
|
|
width: 60,
|
|
|
|
|
editor: {
|
|
|
|
|
xtype: 'numberfield',
|
|
|
|
|
allowBlank: false,
|
|
|
|
|
selectOnFocus: true
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'PKGS',
|
|
|
|
|
header: Zi.LAN.PKGS, //'件数',
|
|
|
|
|
width: 80,
|
|
|
|
|
editor: {
|
|
|
|
|
xtype: 'numberfield',
|
|
|
|
|
allowBlank: false,
|
|
|
|
|
selectOnFocus: true
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'KINDPKGS',
|
|
|
|
|
header: Zi.LAN.KINDPKGS, //'包装',
|
|
|
|
|
width: 70,
|
|
|
|
|
editor: this.comboxKINDPKGS_CTN
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'KGS',
|
|
|
|
|
header: Zi.LAN.KGS3, //'重量',
|
|
|
|
|
width: 80,
|
|
|
|
|
editor: {
|
|
|
|
|
xtype: 'textfield',
|
|
|
|
|
selectOnFocus: true
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'CBM',
|
|
|
|
|
header: Zi.LAN.CBM2, //'尺码',
|
|
|
|
|
width: 80,
|
|
|
|
|
editor: {
|
|
|
|
|
xtype: 'textfield',
|
|
|
|
|
selectOnFocus: true
|
|
|
|
|
}
|
|
|
|
|
}];
|
|
|
|
|
this.ctncolumns_Order =
|
|
|
|
|
[{
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'CTN_ID',
|
|
|
|
|
header: Zi.LAN.CTN_ID, //'编号',
|
|
|
|
|
hidden: true,
|
|
|
|
|
width: 0
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'BSNO',
|
|
|
|
|
header: Zi.LAN.BSNO2, //'业务编号',
|
|
|
|
|
hidden: true,
|
|
|
|
|
width: 0
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'CTNALL',
|
|
|
|
|
header: Zi.LAN.CTNALL, //'箱型',
|
|
|
|
|
width: 100
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'CTNNUM',
|
|
|
|
|
header: Zi.LAN.CTNNUM, //'箱量',
|
|
|
|
|
width: 60,
|
|
|
|
|
editor: {
|
|
|
|
|
xtype: 'numberfield',
|
|
|
|
|
allowBlank: false,
|
|
|
|
|
selectOnFocus: true
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
sortable: true,
|
|
|
|
|
dataIndex: 'PKGS',
|
|
|
|
|
header: Zi.LAN.PKGS, //'件数',
|
|
|
|
|
width: 80,
|
|
|
|
|
editor: {
|
|
|
|
|
xtype: 'numberfield',
|
|
|
|
|
allowBlank: false,
|
|
|
|
|
selectOnFocus: true
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'KINDPKGS',
|
|
|
|
|
header: Zi.LAN.KINDPKGS, //'包装',
|
|
|
|
|
width: 70,
|
|
|
|
|
editor: this.comboxKINDPKGS_CTN
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'KGS',
|
|
|
|
|
header: Zi.LAN.KGS3, //'重量',
|
|
|
|
|
width: 80,
|
|
|
|
|
editor: {
|
|
|
|
|
xtype: 'textfield',
|
|
|
|
|
selectOnFocus: true
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'CBM',
|
|
|
|
|
header: Zi.LAN.CBM2, //'尺码',
|
|
|
|
|
width: 80,
|
|
|
|
|
editor: {
|
|
|
|
|
xtype: 'textfield',
|
|
|
|
|
selectOnFocus: true
|
|
|
|
|
}
|
|
|
|
|
}];
|
|
|
|
|
|
|
|
|
|
this.storeBodyList = Ext.create('Ext.data.Store', {
|
|
|
|
|
model: 'MsOpSeaeDetail',
|
|
|
|
@ -493,11 +493,11 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
this.comboxCargoid2 = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
store: this.StoreCargoid,
|
|
|
|
|
labelWidth:60,
|
|
|
|
|
labelWidth: 60,
|
|
|
|
|
fieldLabel: "<a><font color='#000000'>货物类型</font></a>",
|
|
|
|
|
forceSelection: true,
|
|
|
|
|
allowBlank: true,
|
|
|
|
|
flex:0.70,
|
|
|
|
|
flex: 0.70,
|
|
|
|
|
//width: 1200,
|
|
|
|
|
name: 'CARGOID',
|
|
|
|
|
valueField: 'EnumValueId',
|
|
|
|
@ -585,7 +585,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
this.comboxPLACERECEIPTID = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: "收货地", //'装货港',
|
|
|
|
|
hidden:true,
|
|
|
|
|
hidden: true,
|
|
|
|
|
labelWidth: 60,
|
|
|
|
|
store: this.storeCodeLoadport_Order2,
|
|
|
|
|
name: 'PLACERECEIPTID',
|
|
|
|
@ -922,7 +922,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
listeners: {
|
|
|
|
|
scope: this,
|
|
|
|
|
'select': function (combo, records, eOpts) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -1065,7 +1065,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
this.comboxPAYABLEAT = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: Zi.LAN.PAYABLEAT, //'到付地点',
|
|
|
|
|
store: this.storeCodeDisport6,
|
|
|
|
|
id:"comboxPAYABLEAT",
|
|
|
|
|
id: "comboxPAYABLEAT",
|
|
|
|
|
queryMode: 'remote',
|
|
|
|
|
minChars: 2,
|
|
|
|
|
queryParam: 'PORT',
|
|
|
|
@ -1176,6 +1176,78 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.storeISSUETYPE = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
model: 'CODE_BLTYPE',
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCodeBLTYPEList' }
|
|
|
|
|
});
|
|
|
|
|
this.storeISSUETYPE.load({ params: { condition: "" } });
|
|
|
|
|
|
|
|
|
|
this.comboxISSUETYPE = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: Zi.LAN.ISSUETYPE, //'签单方式',
|
|
|
|
|
store: this.storeISSUETYPE,
|
|
|
|
|
forceSelection: true,
|
|
|
|
|
name: 'ISSUETYPE',
|
|
|
|
|
id: 'ISSUETYPE',
|
|
|
|
|
valueField: 'BLTYPE',
|
|
|
|
|
displayField: 'BLTYPE',
|
|
|
|
|
listeners: {
|
|
|
|
|
scope: this,
|
|
|
|
|
'select': function (combo, records, eOpts) {
|
|
|
|
|
if (records.length > 0) {
|
|
|
|
|
if (records[0].data.NOBILL != '') {
|
|
|
|
|
this.formEdit.getForm().findField('NOBILL').setValue(records[0].data.NOBILL);
|
|
|
|
|
this.formEdit.getForm().findField('COPYNOBILL').setValue(records[0].data.COPYNOBILL);
|
|
|
|
|
} else {
|
|
|
|
|
if (combo.value == "正本") {
|
|
|
|
|
this.formEdit.getForm().findField('NOBILL').setValue('THREE');
|
|
|
|
|
this.formEdit.getForm().findField('COPYNOBILL').setValue('ONE');
|
|
|
|
|
} else if (combo.value == "电放") {
|
|
|
|
|
this.formEdit.getForm().findField('NOBILL').setValue('ONE');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.storeCodeGoodsList = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
model: 'DsShipping.ux.CodeGoodsModel',
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCodeGoodsList' }
|
|
|
|
|
});
|
|
|
|
|
this.storeCodeGoodsList.load();
|
|
|
|
|
this.comboxGOODSNAME = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: "中文品名",
|
|
|
|
|
store: this.storeCodeGoodsList,
|
|
|
|
|
labelWidth: 60,
|
|
|
|
|
// forceSelection: true,
|
|
|
|
|
name: 'GOODSNAME',
|
|
|
|
|
valueField: 'GOODNAME',
|
|
|
|
|
displayField: 'CodeAndName'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.comboxGOODCODE = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
store: this.storeCodeGoodsList,
|
|
|
|
|
name: 'HSCODE',
|
|
|
|
|
fieldLabel: Zi.LAN.HSCODE, //'HS编码',
|
|
|
|
|
labelWidth: 45,
|
|
|
|
|
valueField: 'GOODCODE',
|
|
|
|
|
displayField: 'GOODCODE',
|
|
|
|
|
listeners: {
|
|
|
|
|
scope: this,
|
|
|
|
|
'select': function (combo, records, eOpts) {
|
|
|
|
|
if (records.length > 0) {
|
|
|
|
|
var hscode = combo.value;
|
|
|
|
|
if (hscode.length > 6) {
|
|
|
|
|
hscode = hscode.substring(0, 6);
|
|
|
|
|
this.formEdit.getForm().findField('HSCODE').setValue(hscode);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//////////////////////
|
|
|
|
|
|
|
|
|
|
this.formDjyOrder = Ext.widget('form', {
|
|
|
|
@ -1226,7 +1298,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
id: 'formDjyOrder_3',
|
|
|
|
|
hidden:false,
|
|
|
|
|
hidden: false,
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
labelWidth: 60,
|
|
|
|
@ -1238,9 +1310,9 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
readOnly: true,
|
|
|
|
|
|
|
|
|
|
name: 'CARRIER'
|
|
|
|
|
},{
|
|
|
|
|
}, {
|
|
|
|
|
xtype: 'datefield',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
format: 'Y-m-d',
|
|
|
|
|
allowBlank: false,
|
|
|
|
|
fieldLabel: 'ETD',
|
|
|
|
@ -1268,10 +1340,10 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
labelWidth: 60,
|
|
|
|
|
items: [
|
|
|
|
|
this.comboxPLACERECEIPTID
|
|
|
|
|
,this.comboxPORTLOAD2
|
|
|
|
|
, this.comboxPORTLOAD2
|
|
|
|
|
, this.comboxPORTDISCHARGE2
|
|
|
|
|
, this.comboxDESTINATION2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, this.comboxPREPARDAT
|
|
|
|
|
, this.comboxPAYABLEAT
|
|
|
|
|
, this.comboxISSUEPLACE
|
|
|
|
@ -1282,23 +1354,26 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
labelWidth: 60,
|
|
|
|
|
items: [
|
|
|
|
|
{
|
|
|
|
|
flex: 1,
|
|
|
|
|
xtype: 'label',
|
|
|
|
|
html: '提单类型'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
flex: 1,
|
|
|
|
|
xtype: 'label',
|
|
|
|
|
html: '中文品名'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
flex: 1,
|
|
|
|
|
xtype: 'label',
|
|
|
|
|
html: 'HSCODE'
|
|
|
|
|
},
|
|
|
|
|
this.comboxSERVICE
|
|
|
|
|
, this.comboxMBLFRT
|
|
|
|
|
//{
|
|
|
|
|
// flex: 1,
|
|
|
|
|
// xtype: 'label',
|
|
|
|
|
// html: '签单方式'
|
|
|
|
|
//},
|
|
|
|
|
this.comboxISSUETYPE,
|
|
|
|
|
//{
|
|
|
|
|
// flex: 1,
|
|
|
|
|
// xtype: 'label',
|
|
|
|
|
// html: '中文品名'
|
|
|
|
|
//},
|
|
|
|
|
this.comboxGOODSNAME,
|
|
|
|
|
//{
|
|
|
|
|
// flex: 1,
|
|
|
|
|
// xtype: 'label',
|
|
|
|
|
// html: 'HSCODE'
|
|
|
|
|
//},
|
|
|
|
|
this.comboxGOODCODE,
|
|
|
|
|
this.comboxSERVICE,
|
|
|
|
|
this.comboxMBLFRT
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@ -1371,7 +1446,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [
|
|
|
|
@ -1406,7 +1481,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
, {
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [
|
|
|
|
@ -1463,7 +1538,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
}]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, { xtype: "hiddenfield" }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@ -1472,7 +1547,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1489,7 +1564,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
, {
|
|
|
|
@ -1497,7 +1572,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
, {
|
|
|
|
@ -1505,7 +1580,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
, {
|
|
|
|
@ -1513,7 +1588,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1522,7 +1597,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
, {
|
|
|
|
@ -1530,8 +1605,8 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
, {
|
|
|
|
@ -1539,8 +1614,8 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textarea',
|
|
|
|
|
items: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
//, {
|
|
|
|
@ -1617,7 +1692,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
var grid_VesselVoyno = Ext.create('Ext.grid.Panel', {
|
|
|
|
|
region: "center",
|
|
|
|
|
autoWidth:false,
|
|
|
|
|
autoWidth: false,
|
|
|
|
|
store: _this.storeVesselVoyno,
|
|
|
|
|
plugins: [{
|
|
|
|
|
ptype: 'rowexpander',
|
|
|
|
@ -1632,17 +1707,17 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
dataIndex: 'ID',
|
|
|
|
|
header: "顺序",
|
|
|
|
|
header: "顺序",
|
|
|
|
|
width: 0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
dataIndex: 'originName',
|
|
|
|
|
header: "起运港",
|
|
|
|
|
header: "起运港",
|
|
|
|
|
width: 140
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
dataIndex: 'cutOffLocalDate',
|
|
|
|
|
header: "截单日期",
|
|
|
|
|
header: "截单日期",
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'departureDate',
|
|
|
|
@ -1653,16 +1728,16 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
header: "航线",
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'vesselName_ALL',
|
|
|
|
|
header: '船名航次',
|
|
|
|
|
dataIndex: 'vesselName_ALL',
|
|
|
|
|
header: '船名航次',
|
|
|
|
|
width: 230
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'nextServiceCode',
|
|
|
|
|
header: "下段航线",
|
|
|
|
|
header: "下段航线",
|
|
|
|
|
width: 80
|
|
|
|
|
}, {
|
|
|
|
|
dataIndex: 'estimatedTransitTimeInDays',
|
|
|
|
|
header: "航程",
|
|
|
|
|
header: "航程",
|
|
|
|
|
width: 60
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
@ -1674,7 +1749,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
grid_VesselVoyno.addListener('itemdblclick', function (dataview, record, item, index, e, b) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//双击时 将船名航次写入 并关闭win_VesselVoyno
|
|
|
|
|
Ext.getCmp("DJYORDER_VESSEL").setValue(record.data.vesselName);
|
|
|
|
|
Ext.getCmp("DJYORDER_VOYNO").setValue(record.data.voyageNumber);
|
|
|
|
@ -1686,12 +1761,12 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
Ext.getCmp("DJYORDER_PodPortName").setValue(record.data.destinationName);
|
|
|
|
|
|
|
|
|
|
this.win_VesselVoyno.close();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, this);
|
|
|
|
|
|
|
|
|
|
grid_VesselVoyno.view.on('expandBody', function (rowNode, record, expandRow, eOpts) {
|
|
|
|
|
_this.displayInnerGrid(record.get('ID') );
|
|
|
|
|
_this.displayInnerGrid(record.get('ID'));
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
grid_VesselVoyno.view.on('collapsebody', function (rowNode, record, expandRow, eOpts) {
|
|
|
|
@ -1727,7 +1802,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
this.panelBtn = new Ext.Panel({
|
|
|
|
|
region: "south",
|
|
|
|
|
height: 35,
|
|
|
|
|
buttonAlign: 'center',
|
|
|
|
|
buttonAlign: 'center',
|
|
|
|
|
buttons: [
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
@ -1757,10 +1832,10 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
Ext.apply(this, {
|
|
|
|
|
items: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.formDjyOrder
|
|
|
|
|
,this.panel_DjyOrderBody
|
|
|
|
|
,this.panelBtn
|
|
|
|
|
, this.panel_DjyOrderBody
|
|
|
|
|
, this.panelBtn
|
|
|
|
|
/////////
|
|
|
|
|
//,this.gridList_OrderCtn
|
|
|
|
|
//, this.gridDocList
|
|
|
|
@ -1770,6 +1845,15 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
//装货港
|
|
|
|
|
this.storeCodeLoadport_Order.add({ EDICODE: this.seaeHeadData.PORTLOADID, CodeAndName: this.seaeHeadData.PORTLOAD });
|
|
|
|
|
|
|
|
|
|
//卸货港
|
|
|
|
|
this.storeCodeDisport_Order.add({ EDICODE: this.seaeHeadData.PORTDISCHARGEID, CodeAndName: this.seaeHeadData.PORTDISCHARGE });
|
|
|
|
|
|
|
|
|
|
//目的地
|
|
|
|
|
this.storeCodeDisport_Order2.add({ EDICODE: this.seaeHeadData.DESTINATIONID, CodeAndName: this.seaeHeadData.DESTINATION });
|
|
|
|
|
|
|
|
|
|
this.formDjyOrder.getForm().setValues(this.seaeHeadData);
|
|
|
|
|
|
|
|
|
|
this.LoadData();
|
|
|
|
@ -1921,8 +2005,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DoSendDjyOrder()
|
|
|
|
|
{
|
|
|
|
|
DoSendDjyOrder() {
|
|
|
|
|
me = this;
|
|
|
|
|
|
|
|
|
|
var BSNO = this.seaeHeadData.BSNO;
|
|
|
|
@ -1998,8 +2081,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
{
|
|
|
|
|
me.storeDocList.remove(selectedRecords[i]);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
else {
|
|
|
|
|
var feeGId = "" + rec.data.GID + "";
|
|
|
|
|
if (feeGidSql == '') {
|
|
|
|
|
feeGidSql = feeGId;
|
|
|
|
@ -2033,7 +2115,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
if (resultData.Message == "船名航次错误") {
|
|
|
|
|
_this.storeVesselVoyno.removeAll();
|
|
|
|
|
_this.storeVesselVoyno_detail.removeAll();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < resultData.Data.length; i += 1) {
|
|
|
|
|
var rec = resultData.Data[i];
|
|
|
|
@ -2052,7 +2134,7 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_this.storeVesselVoyno.add(rec);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -2255,12 +2337,10 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
// checked: false
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (this.carrier == "PIL")
|
|
|
|
|
{
|
|
|
|
|
if (this.carrier == "PIL") {
|
|
|
|
|
carriervalue = 'PABV';
|
|
|
|
|
}
|
|
|
|
|
if (this.carrier == "ZIM")
|
|
|
|
|
{
|
|
|
|
|
if (this.carrier == "ZIM") {
|
|
|
|
|
carriervalue = 'ZIMU';
|
|
|
|
|
}
|
|
|
|
|
this.ParentWin.LeYuDingCangSwap(data, bodydatas, FILETYPE, FILEROLE, carriervalue);
|
|
|
|
@ -2275,9 +2355,9 @@ Ext.extend(Shipping.formDjyOrder_PIL, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//columns_Voyno_detail =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var detailstore = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
|
|
|
|
|
var detailstore = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
model: 'VesselVoyno_Emc_Detail_md',
|
|
|
|
|
proxy: { url: '' }
|
|
|
|
|
});
|
|
|
|
|