/// <summary> /// Initializes a new instance of the <see cref="POSManagerViewModel"/> class. /// </summary> public POSManagerViewModel() { this.CurrentPageIndex = 1; PosStatus.Add(GetPosStatusData(UIExt.Model.Enumeration.PosStatus.All)); PosStatus.Add(GetPosStatusData(UIExt.Model.Enumeration.PosStatus.Assigned)); PosStatus.Add(GetPosStatusData(UIExt.Model.Enumeration.PosStatus.Unassigned)); this.Initialize(); }
private bool?GetAssign(PosStatus SelectedPosStatus) { if (SelectedPosStatus == UIExt.Model.Enumeration.PosStatus.All) { return(null); } return(SelectedPosStatus == UIExt.Model.Enumeration.PosStatus.Assigned); }
public OrderPosModel DoChangeStatusOrderPos(long orderPosId, PosStatus status) { var relevantOrderPos = context.OrderPos .Include(o => o.Itemtyp) .FirstOrDefault(o => o.Id == orderPosId); relevantOrderPos.PosStatus = status; context.SaveChanges(); return(OrderPosModel.MapFromDatabase(relevantOrderPos)); }
public IEnumerable <OrderModel> GetOrdersByStatus(PosStatus status) { return(context.Order .Include(o => o.Table) .Include(o => o.Positions) .Include("Positions.Itemtyp") .Where(t => t.Positions.Any(p => p.PosStatus == status)) .ToList() .Select(o => { o.Positions = o.Positions.Where(p => p.PosStatus == status).ToList(); return o; }) .Select(m => OrderModel.MapFromDatabase(m))); }
public override void Feedback(PosStatus status) { feedbackInfo(status); }
private Tuple <PosStatus, string> GetPosStatusData(PosStatus posStatus) { return(new Tuple <PosStatus, string>(posStatus, EnumHelper.GetDescription(posStatus))); }
protected void feedbackInfo(PosStatus status) { _status = status; }
abstract public void Feedback(PosStatus status);
public override void Feedback(PosStatus status) { }