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.
200 lines
7.5 KiB
JavaScript
200 lines
7.5 KiB
JavaScript
Ext.namespace('Shipping');
|
|
|
|
Shipping.AireAmendFee = function (config) {
|
|
Ext.applyIf(this, config);
|
|
this.initUIComponents();
|
|
window.Shipping.AireAmendFee.superclass.constructor.call(this);
|
|
};
|
|
|
|
Ext.extend(Shipping.AireAmendFee, Ext.Panel, {
|
|
ParentWin: null,
|
|
OpStatus: 'add',
|
|
StoreList: null,
|
|
EditRecord: null,
|
|
region: 'north',
|
|
|
|
initUIComponents: function () {
|
|
//编辑form
|
|
|
|
// var mainform = window.parent._this;
|
|
var mainform = window.panelEdit;
|
|
// var mainform = Ext.getCmp('OpSeaeEdit');
|
|
// var mainform = window.parent._this; // Ext.getCmp('OpOtherEdit');
|
|
EditRecord = mainform.editRecord;
|
|
this.bsno = EditRecord.get('BSNO');
|
|
this.formHead = 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: '委托编号',
|
|
readOnly: true,
|
|
name: 'CUSTNO'
|
|
}, {
|
|
fieldLabel: '主提单号',
|
|
readOnly: true,
|
|
name: 'MBLNO'
|
|
}, {
|
|
fieldLabel: '付费方式',
|
|
readOnly: true,
|
|
name: 'BLFRT'
|
|
}, {
|
|
fieldLabel: '其他付费方式',
|
|
readOnly: true,
|
|
name: 'OTFRT'
|
|
}
|
|
]
|
|
},
|
|
{ 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'
|
|
}
|
|
]
|
|
},
|
|
{ xtype: 'container',
|
|
layout: 'hbox',
|
|
defaultType: 'textfield',
|
|
items: [{
|
|
fieldLabel: '件数',
|
|
name: 'PKGS'
|
|
}, {
|
|
fieldLabel: '重量',
|
|
name: 'KGS'
|
|
}, {
|
|
fieldLabel: '尺码',
|
|
name: 'CBM'
|
|
}, {
|
|
fieldLabel: '计费重量',
|
|
name: 'FEEKGS'
|
|
}
|
|
]
|
|
}
|
|
|
|
|
|
]
|
|
|
|
}]
|
|
|
|
|
|
}); //end this.formEdit
|
|
this.formHead.getForm().loadRecord(EditRecord);
|
|
|
|
this.panelTop = new Ext.Panel({
|
|
layout: "border",
|
|
region: "north",
|
|
height: 100,
|
|
id: "BillHeadAireA",
|
|
items: [this.formHead]
|
|
});
|
|
|
|
this.panelAmendFee = new Shipping.FeeAmendEditGrid({
|
|
region: 'center',
|
|
layout: 'border'
|
|
});
|
|
this.panelAmendFee.EditRecord = EditRecord;
|
|
this.panelAmendFee.stroplb = 'op_Aire';
|
|
this.bsno = EditRecord.get('BSNO');
|
|
|
|
this.panelAmendFee.strBSNO = this.bsno;
|
|
this.panelAmendFee.stroplb = 'op_Aire';
|
|
|
|
this.panelAmendFee.StoreCustType.add({ "SCUSTTYPE": "WTDW-委托单位", "CUSTTYPE": "委托单位", "CUSTNAME": "CUSTOMERNAME" });
|
|
this.panelAmendFee.StoreCustType.add({ "SCUSTTYPE": "HKGS-航空公司", "CUSTTYPE": "航空公司", "CUSTNAME": "AIRLINES" });
|
|
this.panelAmendFee.StoreCustType.add({ "SCUSTTYPE": "DCDL-订舱代理", "CUSTTYPE": "订舱代理", "CUSTNAME": "FORWARDER" });
|
|
this.panelAmendFee.StoreCustType.add({ "SCUSTTYPE": "BGH-报关行", "CUSTTYPE": "报关行", "CUSTNAME": "CUSTOMSER" });
|
|
this.panelAmendFee.StoreCustType.add({ "SCUSTTYPE": "CD-车队", "CUSTTYPE": "车队", "CUSTNAME": "TRUCKER" });
|
|
this.panelAmendFee.StoreCustType.add({ "SCUSTTYPE": "FHR-发货人", "CUSTTYPE": "发货人", "CUSTNAME": "SHIPPERID" });
|
|
this.panelAmendFee.StoreCustType.add({ "SCUSTTYPE": "SHR-收货人", "CUSTTYPE": "收货人", "CUSTNAME": "CONSIGNEEID" });
|
|
this.panelAmendFee.StoreCustType.add({ "SCUSTTYPE": "TZR-通知人", "CUSTTYPE": "通知人", "CUSTNAME": "NOTIFYPARTYID" });
|
|
this.panelAmendFee.StoreCustType.add({ "SCUSTTYPE": "DL-代理", "CUSTTYPE": "代理", "CUSTNAME": "AGENTID" });
|
|
|
|
this.panelAmendFee.StoreDrOpRange.load({ params: { optype: "modAireRecvFeeManagement"} });
|
|
this.panelAmendFee.StoreCrOpRange.load({ params: { optype: "modAirePayFeeManagement" } });
|
|
this.panelAmendFee.DrFeeRangType = "modAireRecvFeeManagement";
|
|
this.panelAmendFee.CrFeeRangType = "modAirePayFeeManagement";
|
|
this.panelAmendFee.storeFeeNameRef.load({ params: { condition: "ISAIR='1' "} });
|
|
this.panelAmendFee.StoreDateCurr.load({ params: { optype: "op_Aire", bsno: this.bsno} });
|
|
this.panelAmendFee.StoreUnit.load({ params: { bsno: this.bsno} });
|
|
|
|
this.panelAmendFee.storeAmendBill.load({
|
|
params: { billno: this.bsno, optype: "op_Aire" },
|
|
callback: function (r, options, success) {
|
|
if (success) {
|
|
if (r.length > 0) {
|
|
this.panelAmendFee.gridAmendList.getSelectionModel().select(0);
|
|
}
|
|
|
|
}
|
|
},
|
|
scope: this
|
|
});
|
|
Ext.Ajax.request({
|
|
waitMsg: '正在查询主表数据...',
|
|
url: '/Account/ChMonthClose/GetNowPeriod',
|
|
params: {
|
|
condition: ''
|
|
},
|
|
callback: function (options, success, response) {
|
|
if (success) {
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
if (!result.Success) {
|
|
return;
|
|
}
|
|
data = result.data;
|
|
this.panelAmendFee.ACCDATEEDIT.setMinValue(data.PERIOD);
|
|
|
|
|
|
} else {
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
}
|
|
},
|
|
scope: this
|
|
});
|
|
|
|
function getModifyStatus() {
|
|
return this.panelAmendFee.getModifyStatus();
|
|
}
|
|
|
|
Ext.apply(this, {
|
|
items: [this.panelTop, this.panelAmendFee]
|
|
});
|
|
}
|
|
});
|
|
|