コード例 #1
0
        private void gvListaDeExames_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            int         id = Convert.ToInt32(gvListaDeExames.CurrentRow.Cells["Código do Atendimento"].Value);
            Atendimento a  = new Atendimento();

            a = a.Buscar(id);

            frmAtendimentoAlterar formAlterar = new frmAtendimentoAlterar(a);

            formAlterar.Show();
        }
コード例 #2
0
        private void btnBuscarAtendimento_Click(object sender, EventArgs e)
        {
            Atendimento a = new Atendimento();

            gvListaDeExames.DataSource = a.FormatarParaExibir(a.Buscar(Convert.ToDateTime(dtpDataInicio.Value), Convert.ToDateTime(dtpDataFim.Value)));
        }
コード例 #3
0
        private void btnBuscarTodos_Click(object sender, EventArgs e)
        {
            Atendimento a = new Atendimento();

            gvListaDeExames.DataSource = a.FormatarParaExibir(a.Buscar());
        }