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