public DischesWayRef CreateDischesWayRef(DischesWayRefModel bean) { DischesWayRef beanBack = new DischesWayRef(); beanBack.Id = bean.Id; beanBack.DishId = bean.DishId; beanBack.DischesWayId = bean.DischesWayId; beanBack.Price = bean.Price; beanBack.CreateDatetime = bean.CreateDatetime; beanBack.CreateBy = bean.CreateBy; beanBack.Deleted = bean.Deleted; beanBack.Status = bean.Status; beanBack.UpdateDatetime = bean.UpdateDatetime; beanBack.UpdateBy = bean.UpdateBy; return(beanBack); }
/// <summary> /// 加载做法关联的基本数据 /// </summary> /// <param name="dish"></param> private void LoadRefData(Dish dish) { DishesWayRefTableItems.Clear(); if (dish == null) { return; } List<DischesWayRef> dwrs = _DataService.QueryAllByDishesId(dish.DishId); if (dwrs != null && dwrs.Count > 0) foreach (var dwr in dwrs) { _DischesWayRefModel = new DischesWayRefModel(); _DischesWayRefModel.LineNumber = DishesWayRefTableItems.Count + 1; _DischesWayRefModel.CreateDischesWayRefModel(dwr); DishesWayRefTableItems.Add(DischesWayRefModel); } }
public DischesWayRef CreateDischesWayRef(DischesWayRefModel bean) { DischesWayRef beanBack = new DischesWayRef(); beanBack.Id = bean.Id; beanBack.DishId = bean.DishId; beanBack.DischesWayId = bean.DischesWayId; beanBack.Price = bean.Price; beanBack.CreateDatetime = bean.CreateDatetime; beanBack.CreateBy = bean.CreateBy; beanBack.Deleted = bean.Deleted; beanBack.Status = bean.Status; beanBack.UpdateDatetime = bean.UpdateDatetime; beanBack.UpdateBy = bean.UpdateBy; return beanBack; }