public ClearEstimateModel SaveDishDetail(DishBeanUtil dish)
 {
     this.DishCode     = int.Parse(dish.Code);
     this.DishName     = dish.DishName;
     this.DishFormat   = dish.DishFormat;
     this.DishUnitName = dish.DishUnitName;
     return(this);
 }
Beispiel #2
0
 public DishGivingModel SaveGivingDishDetail(DishBeanUtil givingDish)
 {
     this.Code_Giving         = givingDish.Code;
     this.DishName_Giving     = givingDish.DishName;
     this.DishFormat_Giving   = givingDish.DishFormat;
     this.DishUnitName_Giving = givingDish.DishUnitName;
     return(this);
 }
Beispiel #3
0
 public DishGivingModel SaveDishDetail(DishBeanUtil dish)
 {
     this.Code         = dish.Code;
     this.DishName     = dish.DishName;
     this.DishFormat   = dish.DishFormat;
     this.DishUnitName = dish.DishUnitName;
     return(this);
 }
Beispiel #4
0
        public PromotionsDishDetailBean CreatePromotionsDishDetailBeanByDishBeanUtil(DishBeanUtil element)
        {
            this.Code       = element.Code;
            this.DishName   = element.DishName;
            this.DishFormat = element.DishFormat;
            this.DishId     = element.DishId;
            this.DishNumber = 1;

            return(this);
        }
        // 装载 DishBeanUtil
        public void CreateDishBeanUtil(DishBean element)
        {
            if (element.DishPrice != null && element.DishPrice.Count > 0)
            {
                foreach (var elem in element.DishPrice)
                {
                    DishBeanUtil Dbu = new DishBeanUtil();
                    Dbu.CreateDishBeanUtilByDishBean(elem);
                    Dbu.DishName = element.DishName;
                    Dbu.Code = element.Code;
                    Dbu.DishUnitName = element.DishUnit.Name;
                    Dbu.PingYing = element.PingYing;
                    Dbu.AidNumber = element.PingYing;
                    Dbu.DishTypeBigName = element.DishTypeBigName;
                    Dbu.DishTypeName = element.DishTypeName;
                    DishesMenusSelected.Add(Dbu);
                }
            }

        }
        public List<BargainDish> CreateBargainDishList(DishBeanUtil[] _BargainDiahSelectList)
        {
            if (_BargainDiahSelectList != null && _BargainDiahSelectList.Length > 0) {

                List<BargainDish> list = new List<BargainDish>();
                foreach (var element in _BargainDiahSelectList) {
                    BargainDish bargainDishBean = CreateBargainDish(this);
                    bargainDishBean.DishId = element.DishId;
                    bargainDishBean.Enable = 1;
                    bargainDishBean.MarketTypeId = 0;
                    bargainDishBean.CreateBy = SubjectUtils.GetAuthenticationId();
                    BargainDishPrice bargainDishPrice = new BargainDishPrice();
                    bargainDishPrice.Price1 = element.Price1;
                    bargainDishPrice.Price2 = element.Price2;
                    bargainDishPrice.Price3 = element.Price3;
                    bargainDishPrice.MemberPrice3 = element.MemberPrice3;
                    bargainDishPrice.MemberPrice2 = element.MemberPrice2;
                    bargainDishPrice.MemberPrice1 = element.MemberPrice1;
                    bargainDishPrice.DishSpecification = element.DishFormat;
                    bargainDishPrice.CreateBy = bargainDishBean.CreateBy;
                    bargainDishPrice.CreateTime = DateTime.Now;
                    bargainDishBean.BargainDishPrice.Add(bargainDishPrice);
                    list.Add(bargainDishBean);
                }
                return list;
            
            }
            return null;
        }
        public  PromotionsDishDetailBean CreatePromotionsDishDetailBeanByDishBeanUtil(DishBeanUtil element)
        {
            this.Code = element.Code;
            this.DishName = element.DishName;
            this.DishFormat = element.DishFormat;
            this.DishId = element.DishId;
            this.DishNumber = 1;

            return this;
        }
 public DishGivingModel SaveGivingDishDetail(DishBeanUtil givingDish)
 {
     this.Code_Giving = givingDish.Code;
     this.DishName_Giving = givingDish.DishName;
     this.DishFormat_Giving = givingDish.DishFormat;
     this.DishUnitName_Giving = givingDish.DishUnitName;
     return this;
 }
 public DishGivingModel SaveDishDetail(DishBeanUtil dish)
 {
     this.Code = dish.Code;
     this.DishName = dish.DishName;
     this.DishFormat = dish.DishFormat;
     this.DishUnitName = dish.DishUnitName;
     return this;
 }