コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="bitacora"></param>
 /// <returns></returns>
 internal int GuardarErrorIncidencia(BitacoraIncidenciaInfo bitacora)
 {
     try
     {
         Logger.Info();
         Dictionary <string, object> parameters = AuxBitacoraErroresDAL.ObtenerParametrosGuardarErrorIncidencia(bitacora);
         int result = Create("BitacoraIncidencias_Guardar", parameters);
         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);
     }
 }
コード例 #2
0
        /// <summary>
        /// Obtiene la lista a los usuarios que se les notificara por la accion
        /// </summary>
        /// <param name="accionSiap">Accion siap</param>
        /// <returns></returns>
        internal List <NotificacionesInfo> ObtenerNotificacionesPorAcciones(AccionesSIAPEnum accionSiap)
        {
            List <NotificacionesInfo> resultado = null;

            try
            {
                Logger.Info();
                Dictionary <string, object> parameters = AuxBitacoraErroresDAL.ObtenerParametrosNotificacionesPorAcciones(accionSiap);

                DataSet ds = Retrieve("Notificacion_ObtenerNotificacionesPorAccion", parameters);
                if (ValidateDataSet(ds))
                {
                    resultado = MapBitacoraErroresDAL.ObtnerNotificacionesPorAccion(ds);
                }
                return(resultado);
            }
            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);
            }
        }