protected void Page_Load(object sender, EventArgs e)
        {
            if (!System.Web.HttpContext.Current.User.Identity.IsAuthenticated)
            {
                Response.Redirect("~/Account/Login.aspx");
            }

            if (!IsPostBack)
            {
                String cnpj = HttpUtility.HtmlDecode(Request.QueryString["Cnpj"]);
                String nome = HttpUtility.HtmlDecode(Request.QueryString["Nome"]);

                AcompanhaDenuncias denuncias = new AcompanhaDenuncias();
                denuncias.DenunciasParlamentarFornecedor(DropDownListParlamentar, cnpj);

                Object parlamentarSendoPesquisado = Session["ParlamentarQueEstaSendoAuditado"];

                if (parlamentarSendoPesquisado != null)
                {
                    if (DropDownListParlamentar.Items.FindByValue(parlamentarSendoPesquisado.ToString()) != null)
                    {
                        DropDownListParlamentar.SelectedValue = parlamentarSendoPesquisado.ToString();
                    }
                }

                lblCNPJ.InnerText        = cnpj;
                lblrazaoSocial.InnerText = nome;

                CarregaNotas();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!System.Web.HttpContext.Current.User.Identity.IsAuthenticated || !System.Web.HttpContext.Current.User.IsInRole("REVISOR"))
            {
                Response.Redirect("~/Default.aspx");
            }

            if (!IsPostBack)
            {
                AcompanhaDenuncias acompanha = new AcompanhaDenuncias();
                acompanha.DenunciasParlamentarFornecedor(GridViewDenuncias);

                Session["Acompanha0"] = GridViewDenuncias.DataSource;
                Session["AcompanhaSortDirection0"]  = "ASC";
                Session["AcompanhaSortExpression0"] = "Parlamentar";
            }
            GridViewDenuncias.PreRender += GGridViewDenuncias_PreRender;
        }