示例#1
0
        /// <summary>
        /// 购物车
        /// </summary>
        /// <returns></returns>
        public ActionResult GetCartList()
        {
            Business.Sys_FlowerShopCart Sys_OrdersManaage = new Business.Sys_FlowerShopCart();
            StringBuilder sb = new StringBuilder();

            if (!string.IsNullOrEmpty(userid))
            {
                sb.Append(" and UsersId='" + userid + "'");
            }
            List <Model.FlowerCartVM> list = Sys_OrdersManaage.FlowerShopCartList(sb.ToString());

            Model.CartLine model = new Model.CartLine();
            model.Products = list;
            return(View(model));
        }
示例#2
0
        public ActionResult PayOrders(string goodnum, string FlowerNums)
        {
            string ids = Request["ids"].TrimEnd(',');

            ViewData["ids"] = ids;
            //ViewData["PayTotal"] = Orders.SellingPrice;
            ViewData["msg"] = " 提示:请在30分钟内完成在线支付,逾期将视为订单无效";
            Business.Sys_FlowerShopCart Sys_OrdersManaage = new Business.Sys_FlowerShopCart();
            StringBuilder sb = new StringBuilder();

            if (!string.IsNullOrEmpty(userid))
            {
                sb.Append(" and UsersId='" + userid + "'");
            }
            sb.Append(" and  b.FlowerId in(" + ids + ")");
            List <Model.FlowerCartVM> list = Sys_OrdersManaage.FlowerShopCartList(sb.ToString());

            Model.CartLine model = new Model.CartLine();
            model.Products = list;
            return(View(model));
            //return Redirect("/WxPay/Index?OrdersId=" + Orders.OrderId + "&PayTotal=" + Flower.FlowerSalesPrice * int.Parse(OrdersNum));
        }