/// <summary> /// 订单信息 /// </summary> /// <param name="oid">订单id</param> /// <returns></returns> public ActionResult OrderInfo(int oid = -1) { OrderInfo orderInfo = AdminOrders.GetOrderByOid(oid); if (orderInfo == null) { return(PromptView("订单不存在")); } if (orderInfo.StoreId != WorkContext.StoreId) { return(PromptView("不能操作其它店铺的订单")); } OrderInfoModel model = new OrderInfoModel(); model.OrderInfo = orderInfo; model.RegionInfo = Regions.GetRegionById(orderInfo.RegionId); model.UserInfo = Users.GetUserById(orderInfo.Uid); model.UserRankInfo = AdminUserRanks.GetUserRankById(model.UserInfo.UserRid); model.OrderProductList = AdminOrders.GetOrderProductList(oid); model.OrderActionList = OrderActions.GetOrderActionList(oid); string[] sizeList = StringHelper.SplitString(WorkContext.MallConfig.ProductShowThumbSize); ViewData["size"] = sizeList[sizeList.Length / 2]; ViewData["referer"] = MallUtils.GetStoreAdminRefererCookie(); return(View(model)); }
/// <summary> /// 订单信息 /// </summary> /// <param name="oid">订单id</param> /// <returns></returns> public ActionResult OrderInfo(int oid = -1) { OrderInfo orderInfo = AdminOrders.GetOrderByOid(oid); if (orderInfo == null) { return(PromptView("订单不存在")); } if (orderInfo.StoreId != WorkContext.StoreId) { return(PromptView("不能操作其它店铺的订单")); } OrderInfoModel model = new OrderInfoModel(); model.OrderInfo = orderInfo; model.RegionInfo = Regions.GetRegionById(orderInfo.RegionId); model.UserInfo = Users.GetUserById(orderInfo.Uid); model.UserRankInfo = AdminUserRanks.GetUserRankById(model.UserInfo.UserRid); model.OrderProductList = AdminOrders.GetOrderProductList(oid); model.OrderActionList = OrderActions.GetOrderActionList(oid); ViewData["referer"] = MallUtils.GetStoreAdminRefererCookie(); return(View(model)); }
/// <summary> /// 订单动作列表 /// </summary> public ActionResult OrderActionList() { int oid = WebHelper.GetQueryInt("oid"); OrderInfo orderInfo = Orders.GetOrderByOid(oid); if (orderInfo == null || orderInfo.Uid != WorkContext.Uid) { return(PromptView("订单不存在")); } OrderActionListModel model = new OrderActionListModel(); model.OrderInfo = orderInfo; model.OrderActionList = OrderActions.GetOrderActionList(oid); return(View(model)); }