private void btnCadastrarUsu_Click(object sender, EventArgs e)
        {
            bool        ret = false;
            Funcionario func = new Funcionario();
            Gerente     grt = new Gerente();
            DataTable   dt = new DataTable();
            string      nome, id;

            usrMsg.BackColor = Color.LightGray;
            if (usrNome.Text == "Ex. Fulano de Tal")
            {
                MessageBox.Show("Por favor Digite o Campo Nome.", "ERRO", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else if (usrSenha.Text == "123456")
            {
                MessageBox.Show("Por favor Digite o Campo Senha.", "ERRO", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else if (usrTelefone.Text == "(99)9999-9999")
            {
                MessageBox.Show("Por favor Digite o Campo Telefone.", "ERRO", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else if (usrEmail.Text == "*****@*****.**")
            {
                MessageBox.Show("Por favor Digite o Campo E-mail.", "ERRO", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else if (usrEndereco.Text == "R. Alameda")
            {
                MessageBox.Show("Por favor Digite o Campo Endereço.", "ERRO", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else if (usrCargo.Text == "")
            {
                MessageBox.Show("Por favor selecione o Cargo.", "ERRO", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                if (usrNome.Text.Trim().Length > 0)
                {
                    func.Nome = usrNome.Text;
                }
                else
                {
                    EscreveMsgUsuario("Nome Invalido"); return;
                }

                if (usrSenha.Text.Trim().Length > 0)
                {
                    func.Senha = usrSenha.Text;
                }
                else
                {
                    EscreveMsgUsuario("Senha Invalida"); return;
                }
                if (usrF.Checked)
                {
                    func.Sexo = "F";
                }
                else
                {
                    func.Sexo = "M";
                }
                func.Telefone = usrTelefone.Text;
                func.Email    = usrEmail.Text;
                func.Endereco = usrEndereco.Text;
                func.Cargo    = usrCargo.Text;
                func.DataNasc = usrDataNasc.Value;
                func.Status   = "A";

                ret = grt.CadastrarFuncionario(func);

                if (ret == false)
                {
                    usrMsg.BackColor = Color.LightSalmon;
                    usrMsg.Text      = "Cadastramento mau sucedido! Por favor Contactar o Admnistrador do Sistema.\r ERRO:" + func.MsgErro;
                }
                else
                {
                    Funcionario f = new Funcionario();
                    dt               = f.lerIDNomeFuncionario(usrEmail.Text);
                    id               = dt.Rows[0]["IDUsuario"].ToString();
                    nome             = dt.Rows[0]["nome"].ToString();
                    usrMsg.BackColor = Color.LightGreen;
                    usrMsg.Text      = "Cadastramento Bem sucedido";
                    MessageBox.Show("Senhor(a): " + nome + "\nseu novo ID: " + id, "Cadastrado", MessageBoxButtons.OK, MessageBoxIcon.Information);


                    usrNome.Clear();
                    usrSenha.Clear();
                    usrTelefone.Clear();
                    usrEmail.Clear();
                    usrEndereco.Clear();
                    usrCargo.ResetText();
                    usrDataNasc.ResetText();
                    usrDataNasc.Text = DateTime.Now.ToShortTimeString();
                    usrF.Checked     = false;
                    usrM.Checked     = false;
                }
            }
        }