protected override void AfterSelectInventoryEx() { if (SelectedInventoryEx != null) { if (!(this.MyDataGrid.CurrentColumn.Header.ToString() == "数量" || this.MyDataGrid.CurrentColumn.Header.ToString() == "撤销")) { CardConsumeSetWindow csw = new CardConsumeSetWindow(Uow, SelectedInventoryEx); csw.ShowDialog(); } } }
private void CreateInventoryEx() { if (this.SelectedInventory != null) { //分2种创建冷饮店的、西餐厅的 InventoryEx inventoryEx = Mapper.Map <DXInfo.Models.InventoryEx>(this.SelectedInventory); inventoryEx.lTasteEx = this.lTasteEx.Clone() as DXInfo.Models.TasteExList; inventoryEx.dSalePrice = this.GetdSalePrice(this.SelectedInventory); inventoryEx.dSalePoint = this.GetdSalePoint(this.SelectedInventory); inventoryEx.lCupType = this.lCupType; inventoryEx.CupType = inventoryEx.lCupType.Find(f => f.Id == (int)DXInfo.Models.CupType.Standard); inventoryEx.Quantity = 1; inventoryEx.IsDiscount = true; this.OCInventoryEx.Add(inventoryEx); CardConsumeSetWindow csw = new CardConsumeSetWindow(Uow, inventoryEx); csw.ShowDialog(); } }