Ejemplo n.º 1
0
        private void btnAll_Click(object sender, EventArgs e)
        {
            ClearForm1();

            List <ProjetoDTO> lista = new ProjetoBLL().GetAllData(false);

            Grid.GridViewDataBind(lista.ToDataTable(), gridMessage);
        }
Ejemplo n.º 2
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            var param = new ProjetoDTO();

            if (cmbSearchType.SelectedItem.ToString() == "Nome do Projeto")
            {
                param.nomeProjeto = txtSearch.Text;
            }
            else if (cmbSearchType.SelectedItem.ToString() == "Código do Projeto")
            {
                if (txtSearch.Text != string.Empty)
                {
                    param.idProjeto = Convert.ToInt32(txtSearch.Text);
                }
            }

            List <ProjetoDTO> lista = new ProjetoBLL().GetDataWithParam(param);

            Grid.GridViewDataBind(lista.ToDataTable(), gridMessage);
        }
Ejemplo n.º 3
0
        public void CarregaGrid()
        {
            List <ProjetoDTO> lista = new ProjetoBLL().GetAllData(false);

            Grid.GridViewDataBind(lista.ToDataTable(), gridMessage);
        }