internal PlazoCreditoInfo PlazoCredito_ObtenerPorDescripcion(string descripcion) { try { Logger.Info(); Dictionary <string, object> parameters = AuxPlazoCreditoDAL.PlazoCredito_ObtenerParametrosPorDescripcion(descripcion); DataSet ds = Retrieve("PlazoCredito_ObtenerPorDescripcion", parameters); PlazoCreditoInfo result = null; if (ValidateDataSet(ds)) { result = MapPlazoCreditoDAL.PlazoCredito_ObtenerPorDescripcion(ds); } return(result); } catch (SqlException ex) { Logger.Error(ex); throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex); } catch (DataException ex) { Logger.Error(ex); throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex); } catch (Exception ex) { Logger.Error(ex); throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex); } }
internal ResultadoInfo <PlazoCreditoInfo> PlazoCredito_ObtenerPlazosCreditoPorFiltro(PaginacionInfo pagina, PlazoCreditoInfo filtro) { try { Logger.Info(); Dictionary <string, object> parameters = AuxPlazoCreditoDAL.PlazoCredito_ObtenerPlazosCreditoPorFiltro(pagina, filtro); DataSet ds = Retrieve("PlazoCredito_ObtenerPlazoCreditoPorPagina", parameters); ResultadoInfo <PlazoCreditoInfo> result = null; if (ValidateDataSet(ds)) { result = MapPlazoCreditoDAL.PlazoCredito_ObtenerPlazosCreditoPorFiltro(ds); } return(result); } catch (SqlException ex) { Logger.Error(ex); throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex); } catch (DataException ex) { Logger.Error(ex); throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex); } catch (Exception ex) { Logger.Error(ex); throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex); } }
internal List <PlazoCreditoInfo> PlazoCredito_ObtenerTodos() { try { Logger.Info(); DataSet ds = Retrieve("PlazoCredito_ObtenerTodos"); List <PlazoCreditoInfo> result = null; if (ValidateDataSet(ds)) { result = MapPlazoCreditoDAL.PlazoCredito_ObtenerTodos(ds); } return(result); } catch (SqlException ex) { Logger.Error(ex); throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex); } catch (DataException ex) { Logger.Error(ex); throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex); } catch (Exception ex) { Logger.Error(ex); throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex); } }
internal ConfiguracionCreditoInfo PlazoCredito_ValidarConfiguracion(int plazoCredito) { try { Logger.Info(); Dictionary <string, object> parameters = AuxPlazoCreditoDAL.PlazoCredito_ObtenerParametrosValidarConfiguracion(plazoCredito); DataSet ds = Retrieve("ConfiguracionCredito_ObtenerPorPlazoCredito", parameters); var result = new ConfiguracionCreditoInfo(); if (ValidateDataSet(ds)) { result = MapPlazoCreditoDAL.PlazoCredito_ObtenerValidarConfiguracion(ds); } return(result); } catch (SqlException ex) { Logger.Error(ex); throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex); } catch (DataException ex) { Logger.Error(ex); throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex); } catch (Exception ex) { Logger.Error(ex); throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex); } }