You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

233 lines
8.8 KiB
JavaScript

11 months ago
Ext.namespace('Shipping');
Shipping.SeaeFee = function (config) {
Ext.applyIf(this, config);
this.initUIComponents();
window.Shipping.SeaeFee.superclass.constructor.call(this);
};
Ext.extend(Shipping.SeaeFee, Ext.Panel, {
ParentWin: null,
OpStatus: 'add',
StoreList: null,
EditRecord: null,
region: 'north',
initUIComponents: function () {
//按钮Toolbar
// var mainform = Ext.getCmp('OpSeaeEdit');
var mainform = window.window._this;
// if (mainform == null || mainform == NaN) {
// var mainform = Ext.getCmp('OpSeaeFenEdit');
// }
EditRecord = mainform.editRecord;
this.bsno1 = EditRecord.get('BSNO');
this.ordno1 = EditRecord.get('ORDNO');
this.formHead1 = Ext.widget('form', {
frame: true,
bodyPadding: 5,
fieldDefaults: {
margins: '2 2 2 2',
labelAlign: 'right',
flex: 1,
labelWidth: 90,
msgTarget: 'qtip'
},
items: [
{
xtype: 'fieldset',
defaultType: 'textfield',
layout: 'anchor',
defaults: {
anchor: '100%'
},
items: [
{ xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [{
fieldLabel: '件数',
name: 'PKGS', flex: 0, hidden: true, margins: '0'
}, {
fieldLabel: '重量',
name: 'KGS', flex: 0, hidden: true, margins: '0'
}, {
fieldLabel: '尺码',
name: 'CBM', flex: 0, hidden: true, margins: '0'
}, {
fieldLabel: '订舱编号',
readOnly: true,
name: 'ORDNO'
}, {
fieldLabel: '主提单号',
readOnly: true,
name: 'MBLNO'
},
{
fieldLabel: '箱型箱量',
readOnly: true,
name: 'CNTRTOTAL'
}, {
fieldLabel: '付费方式',
readOnly: true,
name: 'BLFRT'
}, {
fieldLabel: 'MBL付费方式',
readOnly: true,
name: 'MBLFRT'
}
]
},
{ xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [{
fieldLabel: '揽货人',
readOnly: true,
name: 'SALE'
}, {
fieldLabel: '委托单位',
readOnly: true,
name: 'CUSTOMERNAME'
},
{
fieldLabel: '卸货港',
readOnly: true,
name: 'PORTDISCHARGE'
},
{
fieldLabel: '船名',
readOnly: true,
name: 'VESSEL'
}, {
fieldLabel: '航次',
readOnly: true,
name: 'VOYNO'
}
]
},
{ xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [{
xtype: 'label',
text: '服务项目'
},
{
xtype: 'checkboxfield',
fieldLabel: '熏蒸',
flex: 1,
labelAlign: 'right',
readOnly: true,
frame: true,
name: 'ISFUMIGATION'
},
{
xtype: 'checkboxfield',
fieldLabel: '仓储',
flex: 1,
labelAlign: 'right',
readOnly: true,
name: 'ISSTORAGE'
},
{
xtype: 'checkboxfield',
fieldLabel: '陆运',
flex: 1,
labelAlign: 'right',
readOnly: true,
name: 'ISLAND'
},
{
xtype: 'checkboxfield',
fieldLabel: '报关',
flex: 1,
labelAlign: 'right',
readOnly: true,
name: 'ISCUSTOMES'
},
{
xtype: 'checkboxfield',
fieldLabel: '报检',
flex: 1,
labelAlign: 'right',
readOnly: true,
name: 'ISINSPECTION'
},
{
xtype: 'checkboxfield',
fieldLabel: '订舱',
flex: 1,
labelAlign: 'right',
readOnly: true,
name: 'ISBOOKING'
},
{
xtype: 'checkboxfield',
fieldLabel: '使用代理',
flex: 1,
labelAlign: 'right',
readOnly: true,
name: 'ISAGENT'
},
{
xtype: 'checkboxfield',
fieldLabel: '分单签单',
flex: 1,
labelAlign: 'right',
readOnly: true,
name: 'ISHBLNO'
}
]
}
]
}]
}); //end this.formEdit
this.formHead1.getForm().loadRecord(EditRecord);
this.panelTop1 = new Ext.Panel({
layout: "border",
region: "north",
height: 110,
id: "BillHead",
items: [this.formHead1]
});
this.panelFee3=new Shipping.OrderFeeGrid({
region: 'center',
layout: 'border'
});
this.panelFee3.EditRecord = EditRecord;
this.panelFee3.stroplb = 'op_Seae';
this.panelFee3.strBSNO = EditRecord.get('BSNO');
this.panelFee3.StoreCustType.add({ "SCUSTTYPE": "WTDW-委托单位", "CUSTTYPE": "委托单位", "CUSTNAME": "CUSTOMERNAME" });
this.panelFee3.StoreCustType.add({ "SCUSTTYPE": "CGS-船公司", "CUSTTYPE": "船公司", "CUSTNAME": "CARRIER" });
this.panelFee3.StoreCustType.add({ "SCUSTTYPE": "DCDL-订舱代理", "CUSTTYPE": "订舱代理", "CUSTNAME": "FORWARDER" });
this.panelFee3.StoreCustType.add({ "SCUSTTYPE": "FHR-发货人", "CUSTTYPE": "发货人", "CUSTNAME": "SHIPPERID" });
this.panelFee3.StoreCustType.add({ "SCUSTTYPE": "SHR-收货人", "CUSTTYPE": "收货人", "CUSTNAME": "CONSIGNEEID" });
this.panelFee3.StoreCustType.add({ "SCUSTTYPE": "TZR-通知人", "CUSTTYPE": "通知人", "CUSTNAME": "NOTIFYPARTYID" });
this.panelFee3.StoreDrOpRange.load({ params: { optype: "modSeaeOrderList"} });
this.panelFee3.StoreCrOpRange.load({ params: { optype: "modSeaeOrderList"} });
this.panelFee3.storeFeeNameRef.load({ params: { condition: "ISSEA='1' "} });
this.panelFee3.storeFeeNameRefCr.load({ params: { condition: "ISSEA='1' "} });
this.panelFee3.StoreDateCurr.load({ params: { optype: "op_Seae", bsno: this.bsno1} });
this.panelFee3.StoreUnit.load({ params: { bsno: this.ordno1, bstype: "op_SeaeOrder" } });
this.panelFee3.storeDrChFee.load({ params: { billno: this.bsno1, type: 1, optype: "op_Seae" } });
this.panelFee3.storeCrChFee.load({ params: { billno: this.bsno1, type: 2, optype: "op_Seae"} });
this.panelFee3.storeBodySum.load({ params: { bsno: this.bsno1} });
Ext.apply(this, {
items: [this.panelTop1, this.panelFee3]
});
}
});