protected void Page_Load(object sender, EventArgs e)
        {
            if (!ValidarConexionYUsuarioLogueado(sender))
            {
                return;
            }
            VistaTerminoDeCargar?.Invoke(this, null);

            //ReportViewer();
            var reporte = new Report.ReportSecurity {
                DataSource = Session["DSDISEÑO"]
            };

            UiVisualizarReporte.Report = reporte;
            UiVisualizarReporte.DataBind();
        }
        public void ReportViewer()
        {
            var session = Session["DSsecurity"];

            try
            {
                if (Session["DSsecurity"] == null)
                {
                    var pResult = string.Empty;

                    var dsDiseño    = new dsSecurity();
                    var dsEjecucion = _privilegioServicio.ObtenerPrivilegiosPorRol(HttpContext.Current.Session["connectionString"].ToString(), ref pResult);

                    for (int i = 0; i < dsEjecucion.Tables[0].Rows.Count; i++)
                    {
                        var row = dsDiseño.SWIFT_SECURITY.NewRow();

                        row[0] = dsEjecucion.Tables[0].Rows[i]["NAME"];
                        row[1] = dsEjecucion.Tables[0].Rows[i]["PARENT_ID"];
                        row[2] = dsEjecucion.Tables[0].Rows[i]["DISPLAY_NAME"];

                        /* row[3] = dsEjecucion.Tables[0].Rows[i]["NAME"];
                         * row[4] = dsEjecucion.Tables[0].Rows[i]["PRIVILEGE_TYPE"];
                         * row[5] = dsEjecucion.Tables[0].Rows[i]["DISPLAY_NAME"];
                         * row[6] = dsEjecucion.Tables[0].Rows[i]["IMAGE_URL"];
                         * row[7] = dsEjecucion.Tables[0].Rows[i]["DESCRIPTION"];
                         */
                        dsDiseño.SWIFT_SECURITY.Rows.Add(row);
                    }


                    var reporte = new Report.ReportSecurity {
                        DataSource = dsDiseño
                    };
                    Session["DSDISEÑO"]        = dsDiseño;
                    UiVisualizarReporte.Report = reporte;
                    UiVisualizarReporte.DataBind();
                }
            }
            catch (Exception ex)
            {
                ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
            }
        }