|
|
|
|
Ext.namespace('Shipping');
|
|
|
|
|
|
|
|
|
|
Shipping.AireFee = function (config) {
|
|
|
|
|
Ext.applyIf(this, config);
|
|
|
|
|
this.initUIComponents();
|
|
|
|
|
window.Shipping.AireFee.superclass.constructor.call(this);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ext.extend(Shipping.AireFee, 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;
|
|
|
|
|
|
|
|
|
|
var mainform = window.panelEdit;
|
|
|
|
|
// if (mainform == null || mainform == NaN) {
|
|
|
|
|
// var mainform = Ext.getCmp('OpSeaeFenEdit');
|
|
|
|
|
// }
|
|
|
|
|
EditRecord = mainform.editRecord;
|
|
|
|
|
this.bsno = EditRecord.get('BSNO');
|
|
|
|
|
this.formHead = Ext.widget('form', {
|
|
|
|
|
frame: true,
|
|
|
|
|
region: "center",
|
|
|
|
|
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: '委托编号',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
name: 'CUSTNO'
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '主提单号',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
name: 'MBLNO'
|
|
|
|
|
},{
|
|
|
|
|
fieldLabel: '揽货人',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
name: 'SALE'
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '委托单位',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
name: 'CUSTOMERNAME'
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '付费方式',
|
|
|
|
|
flex: 0.5, readOnly: true,
|
|
|
|
|
name: 'BLFRT'
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: 'OT付费方式',
|
|
|
|
|
flex: 0.5, readOnly: true,
|
|
|
|
|
name: 'OTFRT'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{ xtype: 'container',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [
|
|
|
|
|
{
|
|
|
|
|
fieldLabel: '目的港',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
name: 'PORTDISCHARGE'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
fieldLabel: '航班',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
name: 'VESSEL'
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '件数',
|
|
|
|
|
name: 'PKGS'
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '重量',
|
|
|
|
|
name: 'KGS'
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '尺码',
|
|
|
|
|
name: 'CBM'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{ xtype: 'container',
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
items: [{
|
|
|
|
|
fieldLabel: '计费重量',
|
|
|
|
|
name: 'FEEKGS'
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '分提单号',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
name: 'HBLNO'
|
|
|
|
|
}, {
|
|
|
|
|
fieldLabel: '备注',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
flex: 3, name: 'REMARK'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); //end this.formEdit
|
|
|
|
|
this.formHead.getForm().loadRecord(EditRecord);
|
|
|
|
|
|
|
|
|
|
this.panelTop = new Ext.Panel({
|
|
|
|
|
layout: "border",
|
|
|
|
|
region: "north",
|
|
|
|
|
height: 120,
|
|
|
|
|
id: "BillHeadAire",
|
|
|
|
|
items: [this.formHead]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.panelFee = new Shipping.FeeEditGrid({
|
|
|
|
|
region: 'center',
|
|
|
|
|
layout: 'border'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.panelFee.EditRecord = EditRecord;
|
|
|
|
|
this.panelFee.stroplb = 'op_Aire';
|
|
|
|
|
this.panelFee.strBSNO = EditRecord.get('BSNO');
|
|
|
|
|
this.panelFee.strMBLNO = EditRecord.get('MBLNO');
|
|
|
|
|
|
|
|
|
|
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "WTDW-委托单位", "CUSTTYPE": "委托单位", "CUSTNAME": "CUSTOMERNAME" });
|
|
|
|
|
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "HKGS-航空公司", "CUSTTYPE": "航空公司", "CUSTNAME": "AIRLINES" });
|
|
|
|
|
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "DCDL-订舱代理", "CUSTTYPE": "订舱代理", "CUSTNAME": "FORWARDER" });
|
|
|
|
|
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "BGH-报关行", "CUSTTYPE": "报关行", "CUSTNAME": "CUSTOMSER" });
|
|
|
|
|
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "CD-车队", "CUSTTYPE": "车队", "CUSTNAME": "TRUCKER" });
|
|
|
|
|
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "FHR-发货人", "CUSTTYPE": "发货人", "CUSTNAME": "SHIPPERID" });
|
|
|
|
|
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "SHR-收货人", "CUSTTYPE": "收货人", "CUSTNAME": "CONSIGNEEID" });
|
|
|
|
|
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "TZR-通知人", "CUSTTYPE": "通知人", "CUSTNAME": "NOTIFYPARTYID" });
|
|
|
|
|
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "DL-代理", "CUSTTYPE": "代理", "CUSTNAME": "AGENTID" });
|
|
|
|
|
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "BX-保险公司", "CUSTTYPE": "保险公司", "CUSTNAME": "" });
|
|
|
|
|
this.panelFee.StoreCustType.add({ "SCUSTTYPE": "QT-其他", "CUSTTYPE": "其他", "CUSTNAME": "" });
|
|
|
|
|
|
|
|
|
|
this.panelFee.StoreDrOpRange.load({ params: { optype: "modAireRecvFeeManagement"} });
|
|
|
|
|
this.panelFee.StoreCrOpRange.load({ params: { optype: "modAirePayFeeManagement"} });
|
|
|
|
|
this.panelFee.storeFeeNameRef.load({ params: { condition: "ISAIR='1' "} });
|
|
|
|
|
this.panelFee.StoreDateCurr.load({ params: { optype: "op_Aire", bsno: this.bsno} });
|
|
|
|
|
this.panelFee.StoreUnit.load({ params: { bsno: this.bsno, bstype: "op_aire"} });
|
|
|
|
|
|
|
|
|
|
this.panelFee.storeDrChFee.load({ params: { billno: this.bsno, type: 1, optype: "op_Aire"} });
|
|
|
|
|
this.panelFee.storeCrChFee.load({ params: { billno: this.bsno, type: 2, optype: "op_Aire"} });
|
|
|
|
|
|
|
|
|
|
this.panelFee.storeBodySum.load({ params: { bsno: this.bsno, optype: "op_Aire" },
|
|
|
|
|
callback: function (r, options, success) {
|
|
|
|
|
if (success) {
|
|
|
|
|
_thisfee.setTotalHead();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.panelFee.storeChFeeGain.load({ params: { bsno: this.bsno, optype: "op_Aire"} });
|
|
|
|
|
this.panelFee.storeBodyList_GuDingFeeWeiHu.load();
|
|
|
|
|
function getModifyStatus() {
|
|
|
|
|
return this.panelFee.getModifyStatus();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Ext.apply(this, {
|
|
|
|
|
items: [this.panelTop, this.panelFee]
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|