/// <summary>
 /// 修改估清菜品
 /// </summary>
 public bool UpdataClearEstimateDish(ClearEstimate CE)
 {
     bool isSuccess = false;
     if (CE == null)
     {
         isSuccess = false;
     }
     using (ChooseDishesEntities entities = new ChooseDishesEntities())
     {
         var type = entities.ClearEstimate.SingleOrDefault(bt => bt.Id == CE.Id);
         if (type != null)
         {
             type.Num = CE.Num;
             type.LastNum = CE.LastNum;
             type.SaleNum = CE.SaleNum;
             type.WarnNum = CE.WarnNum;
             type.StartTime = CE.StartTime;
             type.Operator = CE.Operator;
             type.EndTime = CE.EndTime;
             type.CancleTime = CE.CancleTime;
             type.CancleMan = CE.CancleMan;
             type.MidwayCancle = CE.MidwayCancle;
             entities.SaveChanges();
             isSuccess = true;
         }
     }
     return isSuccess;
 }
 /// <summary>
 /// 新增估清菜品
 /// </summary>
 public ClearEstimate AddClearEstimateDish(ClearEstimate CE)
 {
     if (CE == null)
     {
         return null;
     }
     using (ChooseDishesEntities entities = new ChooseDishesEntities())
     {
         entities.ClearEstimate.Add(CE);
         entities.SaveChanges();
         return CE;
     }
 }