public JsonResult GetOrder(long id) { if (CurrentUser == null) { throw new MallException("错误的用户信息"); } var orderdata = _iGiftsOrderService.GetOrder(id, CurrentUser.Id); if (orderdata == null) { throw new MallException("错误的订单编号"); } //Mapper.CreateMap<GiftOrderInfo, GiftsOrderDtoModel>(); // Mapper.CreateMap<GiftOrderItemInfo, GiftsOrderItemDtoModel>(); //_iGiftsOrderService.OrderAddUserInfo(orderlist); orderdata.Address = ClearHtmlString(orderdata.Address); orderdata.CloseReason = ClearHtmlString(orderdata.CloseReason); orderdata.UserRemark = ClearHtmlString(orderdata.UserRemark); var result = orderdata.Map <GiftsOrderDtoModel>(); result.Items = new List <GiftsOrderItemDtoModel>(); var orderitems = _iGiftsOrderService.GetOrderItemByOrder(orderdata.Id); foreach (var subitem in orderitems) { var tmporditemobj = subitem.Map <GiftsOrderItemDtoModel>(); tmporditemobj.DefaultImage = MallIO.GetRomoteProductSizeImage(tmporditemobj.ImagePath, 1, ImageSize.Size_150.GetHashCode()); result.Items.Add(tmporditemobj); } result.success = true; return(Json(result)); }
public ActionResult OrderSuccess(long id) { GiftOrderInfo order = orderser.GetOrder(id, base.CurrentUser.Id); if (order == null) { throw new HimallException("错误的订单编号!"); } ViewBag.Logo = ServiceHelper.Create <ISiteSettingService>().GetSiteSettings().Logo; ViewBag.Step = 3; return(View(order)); }
/// <summary> /// 下单成功 /// </summary> /// <returns></returns> public ActionResult OrderSuccess(long id) { var data = _iGiftsOrderService.GetOrder(id, CurrentUser.Id); if (data == null) { throw new HimallException("错误的预约单编号!"); } //Logo ViewBag.Logo = _iSiteSettingService.GetSiteSettings().Logo;//获取Logo ViewBag.Step = 3; return(View(data)); }
/// <summary> /// 下单成功 /// </summary> /// <returns></returns> public ActionResult OrderSuccess(long id) { var data = _iGiftsOrderService.GetOrder(id, CurrentUser.Id); if (data == null) { throw new HimallException("错误的订单编号!"); } //Logo ViewBag.Logo = SiteSettingApplication.SiteSettings.Logo;//获取Logo ViewBag.Step = 3; ViewBag.Keyword = SiteSettings.Keyword; return(View(data)); }