protected override void Excluir() { base.Excluir(); N_Nivel_Influencia_PF nvlnflncNegocio = new N_Nivel_Influencia_PF(); if (nvlnflncNegocio.Excluir(Modelo_Nivel_Influencia.Codigo)) { LimparFormulario(); } MessageBox.Show(nvlnflncNegocio.Mensagem); }
protected override void Inserir() { base.Inserir(); N_Nivel_Influencia_PF nvlnflncNegocio = new N_Nivel_Influencia_PF(); if (nvlnflncNegocio.Inserir(txtbxDescricao.Text, nmrcpdwnNota.Value)) { LimparFormulario(); } MessageBox.Show(nvlnflncNegocio.Mensagem); }
protected override void Alterar() { base.Alterar(); N_Nivel_Influencia_PF nvlnflncNegocio = new N_Nivel_Influencia_PF(); if (nvlnflncNegocio.Alterar(Modelo_Nivel_Influencia.Codigo, txtbxDescricao.Text, nmrcpdwnNota.Value)) { LimparFormulario(); } MessageBox.Show(nvlnflncNegocio.Mensagem); }
protected override void Procurar(string Nome, bool Parcial) { List <M_Nivel_Influencia_PF> lstLista; N_Nivel_Influencia_PF nnvlnflncNegocio = new N_Nivel_Influencia_PF(); try { lstLista = nnvlnflncNegocio.Selecionar(Nome, Parcial); if (lstLista != null) { dtgrdvwProcura.DataSource = lstLista; } else { MessageBox.Show(nnvlnflncNegocio.Mensagem); } } catch (Exception Ex) { MessageBox.Show(Mensagens.PROCURAR_FALHA + Ex.Message); } }