Ejemplo n.º 1
0
 public bool InsertBaoYangPackageBrandPriorityConfig(BaoYangPackageBrandPriorityConfig model)
 {
     try
     {
         return(DALBaoYangPackageBrandPriorityConfig.InsertBaoYangPackageBrandPriorityConfig(model));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new BaoYangPackageBrandPriorityConfigException(1, "InsertBaoYangPackageBrandPriorityConfig", ex);
         Logger.Log(Level.Error, exception, "InsertBaoYangPackageBrandPriorityConfig");
         throw ex;
     }
 }
Ejemplo n.º 2
0
 public bool InsertOrUpdate(List <BaoYangPackageBrandPriorityConfig> list)
 {
     try
     {
         return(DALBaoYangPackageBrandPriorityConfig.InsertOrUpdate(list));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new BaoYangPackageBrandPriorityConfigException(1, "InsertOrUpdate", ex);
         Logger.Log(Level.Error, exception, "InsertOrUpdate");
         throw ex;
     }
 }
Ejemplo n.º 3
0
 public BaoYangPackageBrandPriorityConfig GetBaoYangPackageBrandPriorityConfig(int id)
 {
     try
     {
         return(DALBaoYangPackageBrandPriorityConfig.GetBaoYangPackageBrandPriorityConfig(id));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new BaoYangPackageBrandPriorityConfigException(1, "GetBaoYangPackageBrandPriorityConfig", ex);
         Logger.Log(Level.Error, exception, "GetBaoYangPackageBrandPriorityConfig");
         throw ex;
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 根据选择的品牌该品牌的系列
 /// </summary>
 /// <param name="conn"></param>
 /// <param name="brand"></param>
 /// <returns></returns>
 public static IDictionary <string, string> GetVehicleSeries(string brand)
 {
     try
     {
         return(DALBaoYangPackageBrandPriorityConfig.GetVehicleSeries(brand));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new BaoYangPackageBrandPriorityConfigException(1, "GetVehicleSeries", ex);
         Logger.Log(Level.Error, exception, "GetVehicleSeries");
         throw ex;
     }
 }
Ejemplo n.º 5
0
 public static List <string> GetAllVehicleBrands()
 {
     try
     {
         return(DALBaoYangPackageBrandPriorityConfig.GetAllVehicleBrands());
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new BaoYangPackageBrandPriorityConfigException(1, "GetAllVehicleBrands", ex);
         Logger.Log(Level.Error, exception, "GetAllVehicleBrands");
         throw ex;
     }
 }
Ejemplo n.º 6
0
 public List <BaoYangPackageBrandPriorityConfig> GetBaoYangPackageBrandPriorityConfigList(string brand, string vehicle, string data, int pageSize, int pageIndex, out int recordCount, int startPrice = 0, int endPrice = 0)
 {
     try
     {
         return(DALBaoYangPackageBrandPriorityConfig.GetBaoYangPackageBrandPriorityConfigList(brand, vehicle, data, pageSize, pageIndex, out recordCount, startPrice, endPrice));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new BaoYangPackageBrandPriorityConfigException(1, "GetBaoYangPackageBrandPriorityConfigList", ex);
         Logger.Log(Level.Error, exception, "GetBaoYangPackageBrandPriorityConfigList");
         throw ex;
     }
 }