Beispiel #1
0
 /// <summary>
 /// Obtiene la impresion de la Supervision de Detectores
 /// </summary>
 /// <param name="filtro">filtros de la pantalla</param>
 /// <returns></returns>
 internal List <ImpresionSupervisionDetectoresModel> ObtenerSupervisionDetectoresImpresion(FiltroImpresionSupervisionDetectores filtro)
 {
     try
     {
         Logger.Info();
         Dictionary <string, object> parameters = AuxSupervisionDetectoresDAL.ObtenerParametrosSupervisionDetectoresImpresion(filtro);
         DataSet ds = Retrieve("SupervisionDetectores_ObtenerImpresion", parameters);
         List <ImpresionSupervisionDetectoresModel> result = null;
         if (ValidateDataSet(ds))
         {
             result = MapSupervisionDetectoresDAL.ObtenerSupervisionDetectoresImpresion(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);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Obtiene una lista de SupervisionDetectores
 /// </summary>
 /// <returns></returns>
 internal IList <SupervisionDetectoresInfo> ObtenerTodos()
 {
     try
     {
         Logger.Info();
         DataSet ds = Retrieve("SupervisionDetectores_ObtenerTodos");
         IList <SupervisionDetectoresInfo> result = null;
         if (ValidateDataSet(ds))
         {
             result = MapSupervisionDetectoresDAL.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);
     }
 }
Beispiel #3
0
 /// <summary>
 /// Obtiene un registro de SupervisionDetectores
 /// </summary>
 /// <param name="supervisionDetectoresID">Identificador de la SupervisionDetectores</param>
 /// <returns></returns>
 internal SupervisionDetectoresInfo ObtenerPorID(int supervisionDetectoresID)
 {
     try
     {
         Logger.Info();
         Dictionary <string, object> parameters = AuxSupervisionDetectoresDAL.ObtenerParametrosPorID(supervisionDetectoresID);
         DataSet ds = Retrieve("SupervisionDetectores_ObtenerPorID", parameters);
         SupervisionDetectoresInfo result = null;
         if (ValidateDataSet(ds))
         {
             result = MapSupervisionDetectoresDAL.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);
     }
 }