示例#1
0
        /// <summary>
        /// 基本设置信息
        /// </summary>
        /// <returns></returns>
        public static BaseConfig GetBaseConfig()
        {
            string     cacheKey = "BaseConfig";
            BaseConfig model    = CacheTool.Get(cacheKey) as BaseConfig;

            if (model == null)
            {
                B_BaseConfig bmodel = new B_BaseConfig();
                model            = bmodel.LoadConfig();
                model.IsMutiSite = false;
                SetBaseConfig(model);
            }
            return(model);
        }
示例#2
0
 public static void SetBaseConfig(int Supplier_id = 0)
 {
     if (Supplier_id == 0)
     {
         B_BaseConfig bmodel = new B_BaseConfig();
         BaseConfig   model  = bmodel.LoadConfig();
         SetBaseConfig(model);
     }
     else
     {
         B_BaseConfig_Supplier bmodel = new B_BaseConfig_Supplier();
         BaseConfig_Supplier   model  = bmodel.LoadConfig(Supplier_id);
         SetBaseConfig(model);
     }
 }