Ejemplo n.º 1
0
 private void bgwNotificaciones_DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         NotificacionesSistemas NS = new NotificacionesSistemas();
         NS.Conexion   = Comun.Conexion;
         NS.IDSucursal = Comun.IDSucursalCaja;
         NotificacionesSistemas_Negocio NSN = new NotificacionesSistemas_Negocio();
         NSN.ObtenerNotificaciones(NS);
         Comun.TablaNotificaciones = NS.TablaNotificaciones;
     }
     catch (Exception ex)
     {
         LogError.AddExcFileTxt(ex, "frmMenuInicio ~ bgwNotificaciones_DoWork");
     }
 }
 private void ActualizarVisto()
 {
     try
     {
         NotificacionesSistemas         NS  = new NotificacionesSistemas();
         NotificacionesSistemas_Negocio NSN = new NotificacionesSistemas_Negocio();
         NS.Conexion           = Comun.Conexion;
         NS.IDSucursal         = Comun.IDSucursalCaja;
         NS.Visto              = true;
         NS.IDTipoNotificacion = 2;
         NS.IDUsuario          = Comun.IDUsuario;
         NSN.ActualizarNotificacionVisto(NS);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }