private void btnSalvar_Click(object sender, EventArgs e)
        {
            FuncionarioController func = new FuncionarioController();

            fun.Id = id;
            MessageBox.Show(Convert.ToString(id));
            fun.RF = mtxtRF.Text;
            MessageBox.Show(fun.RF);
            fun.Nome = txtNome.Text;
            MessageBox.Show(fun.Nome);
            if (cmbStatus.Text == "Ativo")
            {
                MessageBox.Show("1");
                fun.status = true;
            }
            else
            {
                MessageBox.Show("2");
                fun.status = false;
            }



            func.trataRequisicao(btnSalvar.Text, fun);
            this.Close();
        }
Beispiel #2
0
        private void btnSalvar_Click(object sender, EventArgs e)
        {
            FuncionarioController func = new FuncionarioController();
            Funcionario           fun  = new Funcionario();

            fun.RF     = mtxtRF.Text.Replace(".", "").Replace("-", "");
            fun.Nome   = txtNome.Text;
            fun.status = true;
            //fun.Setor = txtSetor.Text;

            func.trataRequisicao(btnSalvar.Text, fun);
            this.Close();
        }