protected void Page_Load(object sender, EventArgs e)
        {
            ReportViewer1.Reset();
            ReportViewer1.ProcessingMode         = ProcessingMode.Local;
            ReportViewer1.LocalReport.ReportPath = Server.MapPath("CierrePlanPreventivo.rdlc");


            List <ActivoPlanPreventivo> activoPlanPreventivos = activoPlanPreventivoServicios.obtenerTodo();

            ReportDataSource reportDataSource = new ReportDataSource("DataSet1", activoPlanPreventivos);

            ReportViewer1.LocalReport.DataSources.Add(reportDataSource);

            ReportViewer1.DataBind();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //controla los menus q se muestran y las pantallas que se muestras segun el rol que tiene el usuario
            //si no tiene permiso de ver la pagina se redirecciona a login
            int[] rolesPermitidos = { 2 };
            Utilidades.escogerMenu(Page, rolesPermitidos);

            if (!Page.IsPostBack)
            {
                Session["listaPlan"] = null;

                planServicios = new ActivoPlanPreventivoServicios();

                List <ActivoPlanPreventivo> listaPlan;
                listaPlan = planServicios.obtenerTodo();


                Session["listaPlan"]         = listaPlan;
                Session["listaPlanFiltrada"] = listaPlan;

                comprobarEstadoPlanMantenimiento();
                mostrarDatosTabla();
            }
        }