public Orders() { Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); encrypt = EncryptFactory.CreateEncrypt(); MyOrders = OrdersFactory.CreateOrders(); Mylog = OrdersLogFactory.CreateOrdersLog(); MyDelivery = DeliveryWayFactory.CreateDeliveryWay(); MyPayway = PayWayFactory.CreatePayWay(); MyProduct = ProductFactory.CreateProduct(); Mypackage = PackageFactory.CreatePackage(); Myorderdelivery = OrdersDeliveryFactory.CreateOrdersDelivery(); MyFavorFee = PromotionFavorFeeFactory.CreatePromotionFavorFee(); MyCoupon = PromotionFavorCouponFactory.CreatePromotionFavorCoupon(); MyBack = OrdersBackApplyFactory.CreateOrdersBackApply(); MyPolicy = PromotionFavorPolicyFactory.CreatePromotionFavorPolicy(); MySupplier = SupplierFactory.CreateSupplier(); Mydelierytime = DeliveryTimeFactory.CreateDeliveryTime(); MyMember = MemberFactory.CreateMember(); MyConsumption = MemberConsumptionFactory.CreateMemberConsumption(); pageurl = new PageURL(int.Parse(Application["Static_IsEnable"].ToString())); MyAccountLog = MemberAccountLogFactory.CreateMemberAccountLog(); MyFavor = PromotionFavorFactory.CreatePromotionFavor(); MyCouponRule = PromotionCouponRuleFactory.CreatePromotionFavorCoupon(); MyInvoice = OrdersInvoiceFactory.CreateOrdersInvoice(); }
public Cart() { Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); encrypt = EncryptFactory.CreateEncrypt(); MyOrders = OrdersFactory.CreateOrders(); MyCart = OrdersGoodsTmpFactory.CreateOrdersGoodsTmp(); MyProduct = ProductFactory.CreateProduct(); MyMem = MemberFactory.CreateMember(); Mypackage = PackageFactory.CreatePackage(); MyAddr = MemberAddressFactory.CreateMemberAddress(); MyDelivery = DeliveryWayFactory.CreateDeliveryWay(); MyPayway = PayWayFactory.CreatePayWay(); Mydelierytime = DeliveryTimeFactory.CreateDeliveryTime(); MyInvioce = OrdersInvoiceFactory.CreateOrdersInvoice(); MyFavorFee = PromotionFavorFeeFactory.CreatePromotionFavorFee(); MyCoupon = PromotionFavorCouponFactory.CreatePromotionFavorCoupon(); MyPolicy = PromotionFavorPolicyFactory.CreatePromotionFavorPolicy(); MyGift = PromotionFavorGiftFactory.CreatePromotionFavorGift(); MyCommission = SupplierCommissionCategoryFactory.CreateSupplierCommissionCategory(); MySupplier = SupplierFactory.CreateSupplier(); MyFavor = PromotionFavorFactory.CreatePromotionFavor(); MyLimit = PromotionLimitFactory.CreatePromotionLimit(); MyMemberFavor = MemberFavoritesFactory.CreateMemberFavorites(); pageurl = new PageURL(int.Parse(Application["Static_IsEnable"].ToString())); }