示例#1
0
文件: CartBL.cs 项目: yoorke/pinshop
 public int AddProductToCart(int productID, string cartID, double quantity, double productPrice, double userPrice)
 {
     CartDL cartDL = new CartDL();
     int status = cartDL.AddProductToCart(productID, cartID, quantity, productPrice, userPrice);
     ApplyCoupon(cartID);
     return status;
 }
示例#2
0
 public DataTable GetProducts(string cartID)
 {
     CartDL cartDL = new CartDL();
     DataTable cart = cartDL.GetProducts(cartID);
     for (int i = 0; i < cart.Rows.Count; i++)
         cart.Rows[i]["imageUrl"] = new ProductDL().createImageUrl(cart.Rows[i]["imageUrl"].ToString());
     return cart;
 }
示例#3
0
文件: CartBL.cs 项目: yoorke/pinshop
 public int GetProductsCount(string cartID)
 {
     CartDL cartDL = new CartDL();
     return cartDL.GetProductsCount(cartID);
 }
示例#4
0
文件: CartBL.cs 项目: yoorke/pinshop
 public DataTable GetProducts(string cartID)
 {
     CartDL cartDL = new CartDL();
     return cartDL.GetProducts(cartID);
 }
示例#5
0
文件: CartBL.cs 项目: yoorke/pinshop
 public double GetCartDiscount(string cartID)
 {
     CartDL cartDL = new CartDL();
     return cartDL.GetCartDiscount(cartID);
 }
示例#6
0
文件: CartBL.cs 项目: yoorke/pinshop
 public int GetCartCoupon(string cartID)
 {
     CartDL cartDL = new CartDL();
     return cartDL.GetCartCoupon(cartID);
 }
示例#7
0
文件: CartBL.cs 项目: yoorke/pinshop
 public int DeleteProductFromCart(int productID, string cartID)
 {
     CartDL cartDL = new CartDL();
     return cartDL.DeleteProductFromCart(productID, cartID);
 }
示例#8
0
文件: CartBL.cs 项目: yoorke/pinshop
 public int UpdateCartProduct(string cartID, int productID, double quantity, double productPrice, double userPrice, int couponID)
 {
     CartDL cartDL = new CartDL();
     return cartDL.UpdateCartProduct(cartID, productID, quantity, productPrice, userPrice, couponID);
 }
示例#9
0
文件: CartBL.cs 项目: yoorke/pinshop
 public int SaveCartCoupon(string cartID, int couponID)
 {
     CartDL cartDL = new CartDL();
     return cartDL.SaveCartCoupon(cartID, couponID);
 }
示例#10
0
 public int AddProductToCart(int productID, string cartID, double quantity, double productPrice, double userPrice)
 {
     CartDL cartDL = new CartDL();
     return cartDL.AddProductToCart(productID, cartID, quantity, productPrice, userPrice);
 }