Exemple #1
0
        public void determinarPrioridadTest()
        {
            CapaNegocio.notificaciones.Index obj = new CapaNegocio.notificaciones.Index();
            string res = obj.determinarPrioridad("09-11-2020", "04-12-2020");

            Console.WriteLine(res);
        }
        private void btnClose_Click(object sender, EventArgs e)
        {
            CapaNegocio.notificaciones.Index obj = new CapaNegocio.notificaciones.Index();
            bool result = obj.markAsRead(idnotificacion);

            //MessageBox.Show(perfil.ToString());
            //MessageBox.Show(result.ToString());

            timer1.Interval = 1;
            accion          = enmAcciones.eliminar;
        }
Exemple #3
0
        //Trabajando las notificaciones
        public void obtenerNotificaciones()
        {
            CapaNegocio.notificaciones.Index obj = new CapaNegocio.notificaciones.Index();
            //COMENTADO TEMPORALMENTE
            obj.main();
            var notificaciones = obj.notificaciones();

            foreach (var item in notificaciones)
            {
                FrmNotificaciones frmNotif = new FrmNotificaciones();
                frmNotif.mostrarNotificaciones(item.Id, item.Titulo, item.Mensaje, item.Prioridad, item.Tipo, item.Hora, item.Fecha, item.Id_perfil);
            }
        }
        private void btnVerPerfil_Click(object sender, EventArgs e)
        {
            CapaNegocio.notificaciones.Index obj = new CapaNegocio.notificaciones.Index();
            bool result = obj.markAsRead(idnotificacion);

            if (result)
            {
                FrmRevisiones frm = new FrmRevisiones(perfil);
                frm.Show();
                timer1.Interval = 1;
                accion          = enmAcciones.eliminar;
            }
            //MessageBox.Show(perfil.ToString());
            //MessageBox.Show(result.ToString());
        }