Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ServiceGestorMantto = new GestorMantenimiento();

            Ref_GestorMantenimiento.EstadoClienteMantenimiento[] listaTifx = ServiceGestorMantto.GetEstadoElementosSubsistema(Tipo_Elemento_HW.TEH_TIFX);

            LBPasarelas.Items.Clear();
            foreach (EstadoClienteMantenimiento estado in listaTifx)
            {
                LBPasarelas.Items.Add(estado.IdEh);
            }

            ListaPresencias  = ServiceGestorMantto.GetEstadoElementosSubsistema(Tipo_Elemento_HW.TEH_TIFX);
            ListaIncidencias = new System.Collections.Generic.Dictionary <string, uint>();
            GeneraDiccionarioIncidencias(ServiceGestorMantto.GetTodasIncidencias());

            Timer t = new Timer(5000);
            t.Elapsed += new ElapsedEventHandler(PresenciaElementosHardware);
            t.Start();

            //GC.KeepAlive(t);
        }
    }