Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (!HttpContext.Current.User.Identity.IsAuthenticated)
                {
                    btnAuditar.HRef = System.Web.Security.FormsAuthentication.LoginUrl;
                }

                try
                {
                    rptResumoAuditoria.DataSource = ComandoSQL.ExecutarConsultaSimples(Cache, ComandoSQL.eGrupoComandoSQL.ResumoAuditoria);
                    rptResumoAuditoria.DataBind();
                }
                catch (Exception)
                {
                    rptResumoAuditoria.Visible = false;
                }

                try
                {
                    Parlamentar vo_Parl  = new Parlamentar();
                    DataTable   vdt_Card = vo_Parl.recuperaCards();

                    rptMaioresGastos.DataSource = vdt_Card.Select("tipoCartao='MAIOR'").CopyToDataTable();
                    rptMaioresGastos.DataBind();

                    rptMenoresGastos.DataSource = vdt_Card.Select("tipoCartao='MENOR'").CopyToDataTable();
                    rptMenoresGastos.DataBind();
                }
                catch (Exception)
                { }
            }
        }
Esempio n. 2
0
 public Cliente SelecionarPorId(int id)
 {
     ComandoSQL.Add("select * from tb_leilao where id = " + id);
     return(RetornarConsulta().AsEnumerable().FirstOrDefault().ConverterParaEntidade <Cliente>());
 }
Esempio n. 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     comm = new ComandoSQL();
     cargar();
 }
Esempio n. 4
0
 public IList <Cliente> SelecionarTudo()
 {
     ComandoSQL.Add("select * from tb_leilao");
     return(RetornarConsulta().ConverterParaLista <Cliente>());
 }