예제 #1
0
 public static ProductProvider Instance()
 {
     if (HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         return(ProductSubsiteProvider.CreateInstance());
     }
     return(ProductMasterProvider.CreateInstance());
 }
예제 #2
0
        public static ProductProvider Instance()
        {
            ProductProvider result;

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