예제 #1
0
        private void PreencherCampos(Funcionario item)
        {
            txtNome.Text        = item.Nome;
            nudIdade.Value      = Convert.ToInt32(item.Idade);
            cbxSexo.Text        = item.Sexo;
            cbxEstadoCivil.Text = item.EstadoCivil;
            maskCPF.Text        = item.CPF;
            nudNR.Value         = item.NR;
            txtEmail.Text       = item.Email;
            nudNumero.Value     = Convert.ToInt32(item.Endereco.Numero);
            txtRua.Text         = item.Endereco.Rua;
            maskCEP.Text        = item.Endereco.Cep;
            txtBairro.Text      = item.Endereco.Bairro;
            txtEstado.Text      = item.Endereco.Estado;
            txtPais.Text        = item.Endereco.Pais;
            txtCidade.Text      = item.Endereco.Cidade;
            maskCelular.Text    = item.Telefone.TelefoneCelular;
            maskTelefone.Text   = item.Telefone.TelefoneFixo;

            var procurarSetor = controleClasse.procurarSetor(item.Setor_id);

            txtSetor.Text = procurarSetor.Tipo;

            var procurarCargo = controleClasse.procurarCargo(item.Cargo_id);

            txtCargo.Text = procurarCargo.Nome;
        }
예제 #2
0
        private void PreencherCampos(Cargo item)
        {
            txtCarga.Value  = item.Carga_horaria;
            txtCodigo.Value = item.Codigo;
            txtNome.Text    = item.Nome;

            var pesquisa = controles.procurarSetor(item.Setor_id);

            txtSetor.Text = pesquisa.Tipo;
        }