/// <summary> /// Obtiene una lista para la impresion de la distribucion de alimento /// </summary> /// <returns></returns> internal IList <ImpresionDistribucionAlimentoModel> ObtenerImpresionDistribucionAlimento(FiltroImpresionDistribucionAlimento filtro) { try { Logger.Info(); Dictionary <string, object> parameters = AuxLoteDistribucionAlimentoDAL.ObtenerParametrosImpresionDistribucionAlimento(filtro); DataSet ds = Retrieve("LoteDistribucionAlimento_ObtenerImpresion", parameters); IList <ImpresionDistribucionAlimentoModel> result = null; if (ValidateDataSet(ds)) { result = MapLoteDistribucionAlimentoDAL.ObtenerImpresionDistribucionAlimento(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); } }
/// <summary> /// Obtiene una lista de LoteDistribucionAlimento /// </summary> /// <returns></returns> internal IList <LoteDistribucionAlimentoInfo> ObtenerTodos() { try { Logger.Info(); DataSet ds = Retrieve("LoteDistribucionAlimento_ObtenerTodos"); IList <LoteDistribucionAlimentoInfo> result = null; if (ValidateDataSet(ds)) { result = MapLoteDistribucionAlimentoDAL.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); } }
/// <summary> /// Obtiene un registro de LoteDistribucionAlimento /// </summary> /// <param name="loteDistribucionAlimentoID">Identificador de la LoteDistribucionAlimento</param> /// <returns></returns> internal LoteDistribucionAlimentoInfo ObtenerPorID(int loteDistribucionAlimentoID) { try { Logger.Info(); Dictionary <string, object> parameters = AuxLoteDistribucionAlimentoDAL.ObtenerParametrosPorID(loteDistribucionAlimentoID); DataSet ds = Retrieve("LoteDistribucionAlimento_ObtenerPorID", parameters); LoteDistribucionAlimentoInfo result = null; if (ValidateDataSet(ds)) { result = MapLoteDistribucionAlimentoDAL.ObtenerPorID(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); } }