예제 #1
0
 public static ShoppingProvider Instance()
 {
     if (HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         return(ShoppingSubsiteProvider.CreateInstance());
     }
     return(ShoppingMasterProvider.CreateInstance());
 }
예제 #2
0
        public static ShoppingProvider Instance()
        {
            ShoppingProvider result;

            if (HiContext.Current.SiteSettings.IsDistributorSettings)
            {
                result = ShoppingSubsiteProvider.CreateInstance();
            }
            else
            {
                result = ShoppingMasterProvider.CreateInstance();
            }
            return(result);
        }
예제 #3
0
 static ShoppingSubsiteProvider()
 {
     ShoppingSubsiteProvider._defaultInstance = (DataProviders.CreateInstance("Hidistro.SaleSystem.DistributionData.ShoppingData,Hidistro.SaleSystem.DistributionData") as ShoppingSubsiteProvider);
 }