Exemplo n.º 1
0
        public static BaseConfig_Supplier GetBaseConfig_Supplier(int Supplier_id)
        {
            string
                cacheKey = "BaseConfig" + Supplier_id;
            BaseConfig_Supplier model = CacheTool.Get(cacheKey) as BaseConfig_Supplier;

            if (model == null)
            {
                B_BaseConfig_Supplier bmodel = new B_BaseConfig_Supplier();
                model            = bmodel.LoadConfig(Supplier_id);
                model.IsMutiSite = false;
                SetBaseConfig(model, Supplier_id);
            }
            return(model);
        }
Exemplo n.º 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);
     }
 }