public ActionResult Damaged() { ViewBag.Wares = SystemBusiness.BaseBusiness.GetWareHouses(CurrentUser.ClientID); ViewBag.DamagedCount = ShoppingCartBusiness.GetShoppingCartCount(EnumDocType.BS, CurrentUser.UserID); return(View()); }
public ActionResult Purchases() { ViewBag.Title = "采购管理"; ViewBag.Type = (int)EnumSearchType.All; ViewBag.Wares = SystemBusiness.BaseBusiness.GetWareHouses(CurrentUser.ClientID); int purchasesCount = ShoppingCartBusiness.GetShoppingCartCount(EnumDocType.RK, CurrentUser.UserID); ViewBag.PurchasesCount = purchasesCount; return(View("Purchases")); }
/// <summary> /// 获取购物车产品数 /// </summary> /// <param name="ordertype"></param> /// <returns></returns> public JsonResult GetShoppingCartCount(EnumDocType ordertype, string guid = "") { if (string.IsNullOrEmpty(guid)) { guid = CurrentUser.UserID; } var count = ShoppingCartBusiness.GetShoppingCartCount(ordertype, guid); JsonDictionary.Add("Quantity", count); return(new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }