Ejemplo n.º 1
0
        public void GetOrConfirmList(OrConfirm orfirm)
        {
            OrderList.Clear();
            OrConfirm[] orfirms = qryservice.getCiOrdConfirmedQry(orfirm);
            if (orfirms == null || orfirms.Count() == 0)
            {
                return;
            }
            var notshowList = new List <OrConfirm>();

            nowtime = LogicEx.GetInstance().GetSystemDateTime();
            foreach (OrConfirm confirm in orfirms)
            {
                if (SetSorNameValue(confirm))
                {
                    notshowList.Add(confirm);
                }
            }
            IOrderedEnumerable <OrConfirm> gg = orfirms.OrderBy(item => item.Name_su_or);
            IOrderedEnumerable <OrConfirm> ff = gg.OrderBy(item => item.Name_bed);

            OrderList = ff.ToArray();
            foreach (OrConfirm confirm in notshowList)
            {
                OrderList.Remove(confirm);
            }
        }