Esempio n. 1
0
        private void StopCallAway(object obj)
        {
            var group = obj as Group;

            if (group != null)
            {
                group.DisplayAttributes.IsBlinkingEnable = false;
                DbOrderGroup.CallAwayGroup(group.OrderGroupKey, false);
            }
        }
Esempio n. 2
0
        private void CallAwayOrder(Order inOrder)
        {
            var orders = TotalOrders.Where(s => s.TableTabName == inOrder.TableTabName);

            foreach (var order in orders)
            {
                foreach (var group in inOrder.ServingCourseGroups)
                {
                    var existingGroup = order.ServingCourseGroups.FirstOrDefault(s => s.GroupPosKey == group.GroupPosKey);
                    if (existingGroup != null)
                    {
                        existingGroup.CalledAway = true;
                        DbOrderGroup.CallAwayGroup(existingGroup.OrderGroupKey, true);
                    }
                }
            }
        }