Esempio n. 1
0
 /// <summary>
 /// 添加订单
 /// </summary>
 /// <param name="view"></param>
 /// <returns></returns>
 public bool AddCrmOrder(AddOrderView view)
 {
     if (view?.Order == null || view.OrderItems?.Count == 0)
     {
         return(false);
     }
     view.Order.CreateTime  = DateTime.Now;
     view.Order.CloseTime   = DateTime.Now;
     view.Order.ConsignTime = DateTime.Now;
     view.Order.PaymentTime = DateTime.Now;
     //order.Status = (int)CrmOrderStatusEnum.Success;
     return(_service.AddCrmOrder(view.Order, view.OrderItems));;
 }