protected override void Alterar() { base.Alterar(); N_Atributos_PF ntrbtspfNegocio = new N_Atributos_PF(); if (ntrbtspfNegocio.Alterar(Modelo_Atributos_PF.Codigo, txtbxNome.Text, txtbxNomeParametro1.Text, txtbxNomeParametro2.Text, txtbxNomeParametro3.Text, txtbxNomeParametro4.Text, chckbxEstendido.Checked)) { LimparFormulario(); } MessageBox.Show(ntrbtspfNegocio.Mensagem); }
protected override void Excluir() { base.Excluir(); N_Atributos_PF ntrbtspfNegocio = new N_Atributos_PF(); if (ntrbtspfNegocio.Excluir(Modelo_Atributos_PF.Codigo)) { LimparFormulario(); } MessageBox.Show(ntrbtspfNegocio.Mensagem); }
protected override void Procurar(string Nome, bool Parcial) { List <M_Atributos_PF> lstLista; N_Atributos_PF ntrbtspfNegocio = new N_Atributos_PF(); try { lstLista = ntrbtspfNegocio.Selecionar(Nome, Parcial); if (lstLista != null) { dtgrdvwProcura.DataSource = lstLista; } else { MessageBox.Show(ntrbtspfNegocio.Mensagem); } } catch (Exception Ex) { MessageBox.Show(Mensagens.PROCURAR_FALHA + Ex.Message); } }