Esempio n. 1
0
        public override int buscarRegistros()
        {
            pDados.prepararBusca(pDados, ref this.vTP_Busca);
            TDatCondPgto qtb_busca = new TDatCondPgto();

            this.gCadastro.DataSource = qtb_busca.Buscar(this.vTP_Busca, 0);
            UtilPesquisa.CarregarPanel(this.pDados, this.gCadastro, Utils.TTpModo.tm_Standby);
            if (this.gCadastro.DataSource != null)
            {
                this.Tb_relatorio = (gCadastro.DataSource as DataTable);
                return((this.gCadastro.DataSource as DataTable).Rows.Count);
            }
            else
            {
                return(-1);
            }
        }
Esempio n. 2
0
 private void gCadastro_CurrentCellChanged(object sender, EventArgs e)
 {
     UtilPesquisa.CarregarPanel(this.pDados, this.gCadastro, Utils.TTpModo.tm_Standby);
 }