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.
DS7/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeai/SeaiReceipt.js

56 lines
1.7 KiB
JavaScript

Ext.namespace('Shipping');
Shipping.SeaiReceipt = function (config) {
Ext.applyIf(this, config);
this.initUIComponents();
window.Shipping.SeaiReceipt.superclass.constructor.call(this);
};
Ext.extend(Shipping.SeaiReceipt, Ext.Panel, {
ParentWin: null,
OpStatus: 'add',
StoreList: null,
EditRecord: null,
region: 'north',
BSNO: null,
initUIComponents: function () {
//枚举参照相关
//编辑form
// var condition = " BSNO='" + getUrlParam('id') + "'";
// this.BSNO = getUrlParam('id');
//按钮Toolbar
var mainform = window.parent._this; // Ext.getCmp('OpSeaiEdit');
if (mainform == null) {
this.BSNO = getUrlParam('id');
}
else {
this.EditRecord = mainform.editRecord;
//this.BSNO = EditRecord.get('BSNO');
this.BSNO = this.EditRecord.get('BSNO')
}
this.panelReceipt = new Shipping.ReceiptEditGrid({
region: 'center',
layout: 'border'
});
if (this.EditRecord == null) {
this.panelReceipt.EditRecord = null;
}
else {
this.panelReceipt.EditRecord = this.EditRecord;
}
this.panelReceipt.stroplb = 'op_Seai';
this.panelReceipt.strBSNO = this.BSNO;
this.panelReceipt.StoreDrOpRange.load({ params: { optype: "modOpReceiptManagement"} });
this.panelReceipt.storeDrOpReceipt.load({ params: { billno: this.BSNO, optype: "op_Seai"} });
this.panelReceipt.storeDocList.load({ params: { condition: " BSNO='" + this.BSNO + "'"} });
Ext.apply(this, {
items: [this.panelReceipt]
});
}
});