Beispiel #1
0
        public List<OrderMgmtReference.Order> ViewOrdersCond(int user_id)
        {
            List<OrderMgmtReference.Order> orderList = new List<OrderMgmtReference.Order>();
            OrderMgmtReference.OrderMgmtClient omc = new OrderMgmtReference.OrderMgmtClient();
            UserMgmtReference.UserMgmtClient umc = new UserMgmtReference.UserMgmtClient();
            if (umc.GetUserInfo(user_id).title.Equals("admin"))
            {
                orderList = omc.GetOrderList().ToList();
            }
            else
            {
                orderList = omc.GetUserOrderList(user_id).ToList();
            }

            return orderList;
        }
Beispiel #2
0
        public Dictionary<OrderMgmtReference.Order, int> MultiOrderPlausibility()
        {
            Dictionary<OrderMgmtReference.Order, int> orderInventory = new Dictionary<OrderMgmtReference.Order, int>();
            OrderMgmtReference.OrderMgmtClient omc = new OrderMgmtReference.OrderMgmtClient();
            MedMgmtReference.MedMgmtClient mmc = new MedMgmtReference.MedMgmtClient();

            List<OrderMgmtReference.Order> orderList = omc.GetOrderList().ToList();
            foreach (var order in orderList)
            {
                if (order.status.Equals("Pending"))
                {
                    orderInventory.Add(order, SingleOrderPlausibility(order.order_id));                
                }
                
            }

            return orderInventory;
        }