public frmReserveOperate() { InitializeComponent(); stockLogic = new STK_StockLogic(this); reserveLogic = new STK_StockReserveLogic(this); dictLineLogic = new SYS_DictItemLineLogic(this); orderLineLogic = new ORD_SalesOrderLineLogic(this); stkInLineLogic = new STK_InLineLogic(this); returnLineLogic = new ORD_PurchaseReturnLineLogic(this); }
void InitForm(string billType, Guid?sourceBillGuid) { InitializeComponent(); stkOutLogic = new STK_OutLogic(this); orgLogic = new HR_OrgLogic(this); currencyLogic = new SYS_CurrencyLogic(this); dictLineLogic = new SYS_DictItemLineLogic(this); orderLineLogic = new ORD_SalesOrderLineLogic(this); returnLogic = new ORD_PurchaseReturnLogic(this); returnLineLogic = new ORD_PurchaseReturnLineLogic(this); reserveLogic = new STK_StockReserveLogic(this); _billType = billType; _sourceBillGuid = sourceBillGuid; }