예제 #1
0
 private static NotificacionesLog GetFromEntityFromViewModel(NotificacionesLogModel notiLog)
 {
     return(new NotificacionesLog
     {
         IdNotificacionLog = notiLog.IdNotificacionLog,
         IdNotificacion = notiLog.IdNotificacion,
         Usuario = notiLog.Usuario,
         Titulo = notiLog.Titulo,
         Nota = notiLog.Nota,
         Intervalo = notiLog.Intervalo,
         Link = notiLog.Link,
         Vigencia = notiLog.Vigencia,
         Contador = notiLog.Contador,
         Activo = notiLog.Activo,
         AplicacionId = notiLog.AplicacionId,
         Aplicacion = notiLog.Aplicacion,
         IdTipo = notiLog.IdTipo,
         Tipo = notiLog.Tipo,
         IdTipoVigencia = notiLog.IdTipoVigencia,
         TipoVigencia = notiLog.TipoVigencia,
         FechaCierre = notiLog.FechaCierre,
         FechaCreacion = notiLog.FechaCreacion,
         Mostrado = notiLog.Mostrado,
         MostradoPrimeraVez = notiLog.MostradoPrimeraVez,
         MostradoUltimaVez = notiLog.MostradoUltimaVez
     });
 }
예제 #2
0
 private void RecibirNotifciacionDelServidor(NotificacionesLogModel objNotification)
 {
     if (OnRecibirNotificaciones != null)
     {
         OnRecibirNotificaciones(objNotification);
     }
 }
예제 #3
0
 static void _signalCliente_OnRecibirNotificaciones(NotificacionesLogModel notiModel)
 {
     if (notiModel.Usuario.Equals(_CurrentUser))
     {
         _Scv.SettingDlg.OnShowNotification(notiModel);
     }
 }
예제 #4
0
 private void ClienteOnOnRecibirNotificaciones(NotificacionesLogModel notiModel)
 {
     if (OnShowNotification != null)
     {
         OnShowNotification(notiModel);
     }
 }
예제 #5
0
 private void showNotificaciones(NotificacionesLogModel notiModel)
 {
     if (OnShowNotification != null)
     {
         OnShowNotification(notiModel);
         //cliente.RegistrarLecturaNotificacion(notiModel.IdNotificacionLog, notiModel.Usuario, "");
     }
 }
예제 #6
0
        public void OnShowNotification(NotificacionesLogModel notifCliente)
        {
            PopupNotify p = new PopupNotify();

            p.WaitTime             = 0;
            p.Title                = string.Format("[{0}] {1}", notifCliente.Aplicacion, notifCliente.Titulo);
            p.Message              = notifCliente.Nota;
            p.Link                 = notifCliente.Link;
            p.ShowForever          = true;
            p.NotiLogId            = notifCliente.IdNotificacionLog;
            p.OnCloseNotification += p_OnCloseNotification;
            p.OnNotificationShown += p_OnNotificationShown;
            p.WaitOnMouseOver      = true;
            this.Invoke(new MethodInvoker(() =>
            {
                p.Show();
            }));
        }
예제 #7
0
 public void DispachNotification(NotificacionesLogModel objNotificacion)
 {
     // HubContext.Clients.Group(objNotificacion.Usuario).OnDispachNotification(objNotificacion);
     HubContext.Clients.All.OnDispachNotification(objNotificacion);
 }