Beispiel #1
0
        /// <summary>
        ///
        /// 加载数据
        /// </summary>
        public void Init()
        {
            List <PromotionsDish> list = _DataService.FindPromotionsDishByObject(SelectStartDate, SelectEndDate, SelectStatus);

            PromotionsDishLists.Clear();
            foreach (var element in list)
            {
                PromotionsDishBean PDB = new PromotionsDishBean().CreatePromotionsDishBean(element);
                PDB.MarketTypeName = GetMarketType(PDB.MarketTypeId) == null?"": GetMarketType(PDB.MarketTypeId).Name;
                PDB.Code           = element.Dish.Code;
                PDB.DishName       = element.Dish.DishName;
                PromotionsDishLists.Add(PDB);
            }
            if (PromotionsDishLists.Count > 0)
            {
                PromotionsDishSelected = PromotionsDishLists[0];
            }
            JeiXiDetail(PromotionsDishSelected);
        }