public ClearEstimate CreateClearEstimateDish(ClearEstimateModel model)
        {
            ClearEstimate clearEstimate = new ClearEstimate();

            clearEstimate.Id             = model.Id;
            clearEstimate.DishCode       = model.DishCode;
            clearEstimate.Num            = model.Num;
            clearEstimate.LastNum        = model.LastNum;
            clearEstimate.SaleNum        = model.SaleNum;
            clearEstimate.WarnNum        = model.WarnNum;
            clearEstimate.StartTime      = model.StartTime;
            clearEstimate.Operator       = model.Operator;
            clearEstimate.EndTime        = model.EndTime;
            clearEstimate.CancleTime     = model.CancleTime;
            clearEstimate.CancleMan      = model.CancleMan;
            clearEstimate.MidwayCancle   = model.MidwayCancle;
            clearEstimate.Reason         = model.Reason;
            clearEstimate.MarkTime       = model.MarkTime;
            clearEstimate.Status         = model.Status;
            clearEstimate.CreateDatetime = model.CreateDatetime;
            clearEstimate.CreateBy       = model.CreateBy;
            clearEstimate.Deleted        = model.Deleted;
            clearEstimate.UpdateDatetime = model.UpdateDatetime;
            clearEstimate.UpdateBy       = model.UpdateBy;
            return(clearEstimate);
        }
        public ClearEstimate CreateClearEstimateDishObject(ClearEstimateModel model)
        {
            ClearEstimate clearEstimateDish = CreateClearEstimateDish(model);

            clearEstimateDish.Status         = 1;
            clearEstimateDish.CreateBy       = SubjectUtils.GetAuthenticationId();
            clearEstimateDish.CreateDatetime = DateTime.Now;

            return(clearEstimateDish);
        }