Пример #1
0
        private void PreencherUfs(bool exibirVagasPorUf)
        {
            try
            {
                var ufs = new ManterUf().ObterTodosUf();

                rptUFs.DataSource = ufs;
                rptUFs.DataBind();

                for (var i = 0; i < ufs.Count(); i++)
                {
                    var ckUf     = (CheckBox)rptUFs.Items[i].FindControl("ckUF");
                    var lblUf    = (Literal)rptUFs.Items[i].FindControl("lblUF");
                    var txtVagas = (TextBox)rptUFs.Items[i].FindControl("txtVagas");
                    var lblVagas = (Literal)rptUFs.Items[i].FindControl("lblVagas");

                    ckUf.ToolTip = ufs[i].Nome;
                    ckUf.Attributes.Add("ID_UF", ufs[i].ID.ToString());

                    lblUf.Text = ufs[i].Sigla;

                    lblVagas.Visible     =
                        txtVagas.Visible = exibirVagasPorUf;
                }
            }
            catch (AcademicoException ex)
            {
                WebFormHelper.ExibirMensagem(enumTipoMensagem.Erro, ex.Message);
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
            {
                return;
            }

            using (var relHist = new BP.Relatorios.RelatorioUsuarioMatriculadoSEFormaAquisicao())
            {
                var formasDeAquisicao = Session["formasDeAquisicao"] == null
                    ? relHist.ObterFormaAquisicaoTodos()
                    : (IList <FormaAquisicao>)Session["formasDeAquisicao"];

                WebFormHelper.PreencherLista(formasDeAquisicao, cbxPrograma, true);
                WebFormHelper.PreencherListaStatusMatricula(cbxStatusMatricula, true, false);

                ListBoxesUFResponsavel.PreencherItens(relHist.ObterUFTodos(), "ID", "Nome");

                txtDataInicioTurma.Text = string.Empty;
                txtDataFinalTurma.Text  = string.Empty;
            }

            //Task #416 - revisão de regras de visualização das UFs
            var ufs = new ManterUf().ObterTodosUf();

            WebFormHelper.PreencherLista(ufs, cbxUF);

            var tiposFormaAquisicao =
                Enum.GetValues(typeof(enumTipoFormaAquisicao))
                .Cast <enumTipoFormaAquisicao>()
                .Select(t => new { nome = t.GetDescription(), valor = (int)t }).ToList();

            WebFormHelper.PreencherListaCustomizado(tiposFormaAquisicao, cbxFormaAquisicao, "valor", "nome", true);
        }
Пример #3
0
        private void Page_Load(object sender, EventArgs e)
        {
            var manterUf = new ManterUf();

            foreach (var uf in manterUf.ObterTodosUf())
            {
                var row = new TableRow();
                row.TableSection = TableRowSection.TableBody;

                var cellUf = new TableCell();
                cellUf.Text = uf.Nome;

                var btnNacionalizacao = new Button
                {
                    Text            = (uf.IsNacionalizado() ? "Remover" : "Nacionalizar"),
                    CssClass        = "btn btn-block " + (uf.IsNacionalizado() ? "btn-default" : "btn-primary"),
                    CommandArgument = uf.ID.ToString()
                                      //, CommandName = (uf.IsNacionalizado() ? "NAC" : "DESNAC") // NAC = Nacionalizar, DESNAC = Desnacionalizar
                };

                btnNacionalizacao.Click += btnNacionalizacao_OnClick;

                // Performar PostBack no Click.


                var cellBtn = new TableCell();
                cellBtn.Controls.Add(btnNacionalizacao);


                row.Cells.Add(cellUf);
                row.Cells.Add(cellBtn);
                myTable.Rows.Add(row);
            }
        }
Пример #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //Task #416 - revisão de regras de visualização das UFs
     if (!IsPostBack)
     {
         var ufs = new ManterUf().ObterTodosUf();
         WebFormHelper.PreencherLista(ufs, cbxUF);
     }
 }
Пример #5
0
        private void ObterUfsSelecionadas(Dominio.Classes.Pagina pagina)
        {
            var manter = new ManterUf();

            foreach (ListItem item in ckblUfs.Items.Cast <ListItem>().Where(x => x.Selected))
            {
                pagina.AdicionarUf(manter.ObterUfPorID(int.Parse(item.Value)));
            }
        }
Пример #6
0
 private void PreencherComboDeUfs()
 {
     try
     {
         IList <Uf> ListaUF = new ManterUf().ObterTodosUf();
         WebFormHelper.PreencherLista(ListaUF, ddlUF, false, true, true);
     }
     catch (AcademicoException ex)
     {
         WebFormHelper.ExibirMensagem(enumTipoMensagem.Erro, ex.Message);
     }
 }
Пример #7
0
        protected void btnNacionalizacao_OnClick(object sender, EventArgs e)
        {
            Button btn = (Button)sender;

            var idUf = int.Parse(btn.CommandArgument);

            var manterUf = new ManterUf();

            manterUf.Nacionalizar(idUf);

            // Forçar a atualização da página.
            Response.Redirect("/Cadastros/Nacionalizacao/SelecionarUfs.aspx");
        }
Пример #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.IsPostBack == false)
            {
                var usuarioLogado = new ManterUsuario().ObterUsuarioLogado();

                dgvProcesso.Columns[2].Visible = usuarioLogado.IsAdministrador();

                var ufs = new ManterUf().ObterTodosUf();

                WebFormHelper.PreencherLista(ufs, cbxUF, true);
            }
        }
        private void PreencherListaUf()
        {
            var listaUf   = new ManterUf().ObterTodosUf();
            var bmUsuario = new BMUsuario();

            if (!bmUsuario.PerfilAdministrador())
            {
                if (bmUsuario.ObterUfLogadoSeGestor() > 0)
                {
                    ddlUF.SelectedValue = bmUsuario.ObterUfLogadoSeGestor().ToString();
                    ddlUF.Enabled       = false;
                }
            }
            WebFormHelper.PreencherLista(listaUf, ddlUF, false, true);
        }
Пример #10
0
        private void PreencherListaUfs(classes.SolucaoEducacional solucaoEducacional = null)
        {
            var ufsDto = new ManterUf().ObterTodosUf()
                         .Select(x => new DTOUf
            {
                ID            = x.ID,
                Nome          = x.Sigla,
                IsHabilitado  = true,
                IsSelecionado =
                    solucaoEducacional != null &&
                    solucaoEducacional.ListaPermissao.Any(p => p.Uf != null && p.Uf.ID == x.ID)
            }).ToList();

            ucPermissoes1.PreencherUfs(ufsDto, false);
        }
Пример #11
0
        protected void ckbTodasUfs_OnCheckedChanged(object sender, EventArgs e)
        {
            if (!ckbTodasUfs.Checked)
            {
                var ufsListItens = new ManterUf().ObterTodosUf().Select(x => new ListItem(x.Nome, x.ID.ToString())).ToArray();

                ckblUfs.Items.AddRange(ufsListItens);

                divUfs.Visible = true;
            }
            else
            {
                divUfs.Visible = false;
                ckblUfs.Items.Clear();
            }
        }
Пример #12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var usuarioLogado = new ManterUsuario().ObterUsuarioLogado();
                using (var relUserMat = new RelatorioUsuarioMatriculadoPorTurma())
                {
                    WebFormHelper.PreencherLista(relUserMat.ObterFormaAquisicaoTodos(), cbxFormaAquisicao, false, true);

                    ViewState["_SE"] = Helpers.Util.ObterListaAutocomplete(relUserMat.ObterSolucaoEducacionalPorFormaAquisicao());

                    ViewState["_Oferta"] = null;
                    ViewState["_Turma"]  = null;
                }

                //Task #416 - revisão de regras de visualização das UFs
                var ufs = new ManterUf().ObterTodosUf();
                WebFormHelper.PreencherLista(ufs, cbxUF, true);
            }
        }
Пример #13
0
        private void PreencherHierarquiaNivel()
        {
            if (Request["Id"] == null)
            {
                Response.Redirect("ListarHierarquiaNucleo.aspx");
            }
            else
            {
                var ufId = int.Parse(Request["Id"]);

                var uf = new ManterUf().ObterUfPorID(ufId);

                if (uf == null)
                {
                    WebFormHelper.ExibirMensagem(enumTipoMensagem.Erro, "UF não existente.");
                    return;
                }

                UfSelecionada = uf;
                usuarioLogado = new ManterUsuario().ObterUsuarioLogado();

                var hierarquiaCargo = new ManterHierarquiaNucleo().ObterPorUf(UfSelecionada);

                if (!usuarioLogado.IsAdministrador())
                {
                    LupaUsuario.Uf = usuarioLogado.UF;
                }


                btnAdicionarNucleo.Visible = false;
                if (ObterPermissaoUsuario())
                {
                    btnAdicionarNucleo.Visible = true;
                }

                rptDiretoria.DataSource = hierarquiaCargo;
                rptDiretoria.DataBind();
            }
        }
Пример #14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
            {
                HttpCookie filtroCookie = Request.Cookies["activeFiltroGroup"];
                if (filtroCookie != null)
                {
                    Filtros.CssClass = "panel-collapse collapse in";
                }

                return;
            }

            var ufs = new ManterUf().ObterTodosUf();

            ListBoxesUF.PreencherItens(ufs, "ID", "Nome");

            using (var bm = new BMProcesso())
            {
                WebFormHelper.PreencherLista(bm.ObterTodos(), cbxProcesso, true, false);
            }
        }
Пример #15
0
        private void IncluirUFs(ref Dominio.Classes.CategoriaConteudo categoria)
        {
            var manter = new ManterUf();
            var lsIds  = ucUF1.IdsUfsMarcados;
            var lsRmv  =
                categoria.ListaCategoriaConteudoUF.Where(p => !lsIds.Contains(p.UF.ID)).Select(p => p.UF.ID).ToList();

            foreach (var id in lsIds)
            {
                if (categoria.ListaCategoriaConteudoUF.Any(p => p.UF.ID == id))
                {
                    continue;
                }
                categoria.ListaCategoriaConteudoUF.Add(new CategoriaConteudoUF
                {
                    Categoria = categoria,
                    UF        = manter.ObterUfPorID(id)
                });
            }
            foreach (var id in lsRmv)
            {
                categoria.ListaCategoriaConteudoUF.Remove(categoria.ListaCategoriaConteudoUF.First(p => p.UF.ID == id));
            }
        }
Пример #16
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
            {
                return;
            }

            using (var relSeo = new RelatorioSolucaoEducacionalOferta())
            {
                WebFormHelper.PreencherLista(relSeo.ObterTipoOfertaTodos(), cbxTipoOferta, true);
                WebFormHelper.PreencherLista(relSeo.ObterFormaAquisicaoTodos(), cbxFormaAquisicao, true);

                var lista = relSeo.ObterSolucaoEducacionalPorFormaAquisicao();

                ListBoxesUFResponsavel.PreencherItens(relSeo.ObterUFTodos(), "ID", "Nome");

                ViewState["_SE"] = Helpers.Util.ObterListaAutocomplete(lista);
            }

            //Task #416 - revisão de regras de visualização das UFs
            var ufs = new ManterUf().ObterTodosUf();

            WebFormHelper.PreencherLista(ufs, cbxUF);
        }
Пример #17
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.ClientScript.RegisterClientScriptInclude(GetType(), "dynamic-form", "/js/dynamic-form.js");

            var usuarioLogado = new ManterUsuario().ObterUsuarioLogado();

            if (String.IsNullOrEmpty(Request["i"]))
            {
                StartDate = defaultStartDate;
            }
            else
            {
                DateTime.TryParse(Request["i"], out StartDate);
            }

            if (String.IsNullOrEmpty(Request["f"]))
            {
                EndDate = defaultEndDate;
            }
            else
            {
                DateTime.TryParse(Request["f"], out EndDate);
            }

            if (!String.IsNullOrEmpty(Request["uf"]))
            {
                ufQuery = int.Parse(Request["uf"]);
            }
            else
            {
                ufQuery = defaultUf;
            }

            if (!IsPostBack)
            {
                if (Request.Url.AbsolutePath.ToLower() == "/dashboard.aspx")
                {
                    if (usuarioLogado != null && ufQuery == 0 && usuarioLogado.UF.ID != (int)enumUF.NA)
                    {
                        ufQuery = usuarioLogado.UF.ID;
                        if (!usuarioLogado.IsGestor() && !usuarioLogado.IsAdministrador())
                        {
                            cbxUf.Enabled = false;
                        }
                    }

                    if (!ValidarDatas(StartDate, EndDate))
                    {
                        WebFormHelper.ExibirMensagem(enumTipoMensagem.Atencao, "Data Inicial não pode ser maior que a Data Final.", Request.Url.AbsolutePath + "?i=" + (new DateTime(DateTime.Now.Year, 1, 1)).ToShortDateString() + "&f=" + DateTime.Now.ToShortDateString());
                        return;
                    }


                    txtDataInicial.Text = StartDate.ToShortDateString();
                    txtDataFinal.Text   = EndDate.ToShortDateString();

                    var manterUfs = new ManterUf();
                    var listaUfs  = manterUfs.ObterTodosUf();
                    WebFormHelper.PreencherLista(listaUfs, cbxUf, true);

                    if (ufQuery != null)
                    {
                        var idUf = 0;
                        var uf   = int.TryParse(ufQuery.ToString(), out idUf) ? manterUfs.ObterUfPorID(idUf) : manterUfs.ObterUfPorSigla(ufQuery.ToString());
                        if (uf != null)
                        {
                            WebFormHelper.SetarValorNaCombo(uf.ID.ToString(), cbxUf);
                        }
                    }
                }
                else
                {
                    txtDataInicial.Visible = false;
                    txtDataFinal.Visible   = false;
                    cbxUf.Visible          = false;
                    btnFiltrar.Visible     = false;
                }
            }

            if (cbxUf != null && usuarioLogado != null && usuarioLogado.UF.ID != (int)enumUF.NA)
            {
                if (!usuarioLogado.IsGestor() && !usuarioLogado.IsAdministrador())
                {
                    cbxUf.Enabled = false;
                }
            }

            // Seta Start Date e EndDate nos UserControls
            SetParametersUserControls();
        }
Пример #18
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var usuarioLogado = new ManterUsuario().ObterUsuarioLogado();

                // Exibir mensagem de alerta.
                RecuperarMensageSessao();

                if (Request.Url.AbsolutePath.ToLower() == "/dashboard.aspx")
                {
                    var inicio = Request["i"];

                    if (inicio == null)
                    {
                        Response.Redirect(Request.Url.AbsolutePath + "?i=" + (new DateTime(DateTime.Now.Year, 1, 1)).ToShortDateString());
                        return;
                    }

                    var fim = Request["f"];

                    if (fim == null)
                    {
                        Response.Redirect(Request.Url + "&f=" + DateTime.Now.ToShortDateString());
                    }

                    var ufQuery = Request["uf"];

                    if (ufQuery == null && usuarioLogado != null && usuarioLogado.UF.ID != (int)enumUF.NA)
                    {
                        ufQuery = usuarioLogado.UF.ID.ToString();
                        Response.Redirect(Request.Url + "&uf=" + ufQuery);
                    }

                    if (!ValidarDatas(inicio, fim))
                    {
                        WebFormHelper.ExibirMensagem(enumTipoMensagem.Atencao, "Data Inicial não pode ser maior que a Data Final.", Request.Url.AbsolutePath + "?i=" + (new DateTime(DateTime.Now.Year, 1, 1)).ToShortDateString() + "&f=" + DateTime.Now.ToShortDateString());
                        return;
                    }

                    txtDataInicial.Text = inicio;
                    txtDataFinal.Text   = fim;

                    var manterUfs = new ManterUf();
                    var listaUfs  = manterUfs.ObterTodosUf();
                    WebFormHelper.PreencherLista(listaUfs, cbxUf, true);

                    if (ufQuery != null)
                    {
                        var idUf = 0;
                        var uf   = int.TryParse(ufQuery, out idUf) ? manterUfs.ObterUfPorID(idUf) : manterUfs.ObterUfPorSigla(ufQuery);
                        if (uf != null)
                        {
                            WebFormHelper.SetarValorNaCombo(uf.ID.ToString(), cbxUf);
                        }
                    }

                    // Setar datas nos controles responsivos da sub-tela.
                    var txtDataInicialResponsivo = (TextBox)ContentPlaceHolder1.FindControl("txtDataInicial");
                    var txtDataFinalResponsivo   = (TextBox)ContentPlaceHolder1.FindControl("txtDataFinal");

                    if (txtDataInicialResponsivo != null)
                    {
                        txtDataInicialResponsivo.Text = inicio;
                    }

                    if (txtDataFinalResponsivo != null)
                    {
                        txtDataFinalResponsivo.Text = fim;
                    }
                }
                else
                {
                    txtDataInicial.Visible = false;
                    txtDataFinal.Visible   = false;
                    cbxUf.Visible          = false;
                    btnFiltrar.Visible     = false;
                }
            }
        }
        private void InformarPagamento(int idUsuario, String Nome, String Endereco, String Cidade, String Cep, Uf UF)
        {
            //throw new NotImplementedException();
            //Forma de passagem de parametros por "POST"

            {
                string   idconv      = "311620";
                string   qtdPontos   = "0";
                string   tpPagamento = "0";
                DateTime?DataVigencia;
                DateTime?DataMaxVigencia;
                DateTime?DataInicioRenovacao;
                DateTime?DataInicioVigencia;
                DateTime?DataFimVigencia;
                DateTime?DataMaxInadimplencia;
                string   Dia, Mes, Ano;
                int      dia, mes, ano;
                Uf       ufAlfaNumerica;

                string xscript = "document.forms[0].enctype='application/x-www-form-urlencoded'; document.forms[0].action='https://www16.bancodobrasil.com.br/site/mpag/';" + "document.forms[0].target='_blank';" + "document.forms[0].submit();" + "document.forms[0].action='GerenciadorPagamentoCnab643.aspx';" + "document.forms[0].target='_self';";

                ClientScript.RegisterHiddenField("idConv", idconv);
                ClientScript.RegisterHiddenField("refTran", this.ucInformarPagamento1.codInformacao.ToString());
                ClientScript.RegisterHiddenField("valor", this.ucInformarPagamento1.valor.ToString());
                ClientScript.RegisterHiddenField("qtdPontos", qtdPontos);

                DataMaxVigencia      = CommonHelper.TratarData(this.ucInformarPagamento1.DtMaxInadimplencia.ToString(), "Data Máxima de Inadimplência");
                DataInicioRenovacao  = CommonHelper.TratarData(this.ucInformarPagamento1.DtInicioRenovacao.ToString(), "Data Inicio Renovação");
                DataInicioVigencia   = CommonHelper.TratarData(this.ucInformarPagamento1.DtInicioVigencia.ToString(), "Data Início Vigência");
                DataFimVigencia      = CommonHelper.TratarData(this.ucInformarPagamento1.DtFimVigencia.ToString(), "Data Fim Vigência");
                DataMaxInadimplencia = CommonHelper.TratarData(this.ucInformarPagamento1.DtMaxInadimplencia.ToString(), "Data Max Inadimplência");

                DataVigencia = CommonHelper.TratarData(this.ucInformarPagamento1.DtInicioVigencia.ToString(), "Data de Início");
                dia          = Convert.ToDateTime(DataVigencia).Day;
                if (dia <= 9)
                {
                    Dia = "0" + dia;
                }
                else
                {
                    Dia = dia.ToString();
                }
                mes = Convert.ToDateTime(DataVigencia).Month;
                if (mes <= 9)
                {
                    Mes = "0" + mes;
                }
                else
                {
                    Mes = mes.ToString();
                }
                ano = Convert.ToDateTime(DataVigencia).Year;
                Ano = ano.ToString();
                ClientScript.RegisterHiddenField("dtVenc", Dia + Mes + Ano);
                ClientScript.RegisterHiddenField("tpPagamento", tpPagamento);
                ClientScript.RegisterHiddenField("urlRetorno", "http://www5.fgv.br/fgvonline/universidadecorporativasebrae/inicial.aspx");
                ClientScript.RegisterHiddenField("nome", Nome);
                ClientScript.RegisterHiddenField("endereco", Endereco);
                ClientScript.RegisterHiddenField("cidade", Cidade);

                //Pega a UF a partir do código da UF
                ManterUf manterUf = new ManterUf();
                ufAlfaNumerica = manterUf.ObterUfPorID(UF.ID);
                ClientScript.RegisterHiddenField("uf", ufAlfaNumerica.Sigla);

                ClientScript.RegisterHiddenField("cep", Cep);
                ClientScript.RegisterHiddenField("msgLoja", "");
                ClientScript.RegisterStartupScript(this.GetType(), "jsenviar", xscript, true);

                //Inserir aqui a gravação de um registro na tabela TB_UsuarioPagamento campos IN_Pago com 1 e DT_Pagamento
                ManterUsuarioPagamento   manterUsuarioPagamento = new ManterUsuarioPagamento();
                classes.UsuarioPagamento usuarioPagamento       = new UsuarioPagamento();

                //Cadastra dados dos pagamentos
                usuarioPagamento.Usuario = new ManterUsuario().ObterUsuarioPorID(idUsuario);
                usuarioPagamento.ConfiguracaoPagamento = new ManterConfiguracaoPagamento().ObterConfiguracaoPagamentoPorId(int.Parse(this.ddlConfigPagto.SelectedValue));
                usuarioPagamento.DataInicioVigencia    = DateTime.Parse(this.ucInformarPagamento1.DtInicioVigencia);
                usuarioPagamento.DataFimVigencia       = DateTime.Parse(this.ucInformarPagamento1.DtFimVigencia);
                usuarioPagamento.ValorPagamento        = decimal.Parse(this.ucInformarPagamento1.valor.ToString());
                usuarioPagamento.DataInicioRenovacao   = DateTime.Parse(this.ucInformarPagamento1.DtInicioRenovacao);
                usuarioPagamento.DataMaxInadimplencia  = DateTime.Now.AddDays(368);
                usuarioPagamento.NossoNumero           = this.ucInformarPagamento1.codInformacao.ToString();
                usuarioPagamento.PagamentoEfetuado     = false;
                usuarioPagamento.FormaPagamento        = this.ucInformarPagamento1.codFormaPagamento;
                manterUsuarioPagamento.IncluirUsuarioPagamento(usuarioPagamento);
            }
        }
Пример #20
0
        public UsuarioTrilha ObterObjetoUsuarioTrilha(bool buscarDataAlteracaoStatus = false)
        {
            usuarioTrilhaEdicao = null;

            usuarioTrilhaEdicao = !IdUsuarioTrilhaEdit.HasValue ? new UsuarioTrilha() : new ManterMatriculaTrilha().ObterMatriculaTrilhaPorID(IdUsuarioTrilhaEdit.Value);

            var status_matricula_anterior = usuarioTrilhaEdicao.StatusMatricula;

            //Usuario
            usuarioTrilhaEdicao.Usuario = LupaUsuario1.SelectedUser;

            if (usuarioTrilhaEdicao.Usuario == null)
            {
                throw new AcademicoException("Selecione o Usuário que irá ser matriculado na Trilha.");
            }
            usuarioTrilhaEdicao.NivelOcupacional = usuarioTrilhaEdicao.Usuario.NivelOcupacional;


            //Trilha Nivel
            if (this.ddlTrilhaNivel.Items.Count > 0 && !string.IsNullOrWhiteSpace(this.ddlTrilhaNivel.SelectedItem.Value))
            {
                usuarioTrilhaEdicao.TrilhaNivel = new BM.Classes.BMTrilhaNivel().ObterPorID(int.Parse(this.ddlTrilhaNivel.SelectedItem.Value));
            }

            //Status
            var idStatus = int.Parse(this.ddlStatus.SelectedItem.Value);

            if (idStatus != 0)
            {
                usuarioTrilhaEdicao.StatusMatricula = (enumStatusMatricula)idStatus;
            }

            if (buscarDataAlteracaoStatus && usuarioTrilhaEdicao.StatusMatricula != status_matricula_anterior)
            {
                usuarioTrilhaEdicao.DataAlteracaoStatus = DateTime.Now;
            }

            VerificarDatas();

            //Nota da Prova
            decimal notaProva = 0;

            if (!string.IsNullOrWhiteSpace(this.txtNotaProva.Text))
            {
                if (!decimal.TryParse(this.txtNotaProva.Text.Trim(), out notaProva))
                {
                    throw new AcademicoException("Valor Inválido para o Campo Nota Prova.");
                }
                usuarioTrilhaEdicao.NotaProva = notaProva;
            }


            var manterUf = new ManterUf();

            usuarioTrilhaEdicao.Uf = manterUf.ObterUfPorID(usuarioTrilhaEdicao.Usuario.UF.ID);

            usuarioTrilhaEdicao.NovaProvaLiberada = chkLiberarNovaProva.Checked;
            if (chkLiberarNovaProva.Checked == false)
            {
                usuarioTrilhaEdicao.DataLiberacaoNovaProva = null;
            }

            if (usuarioTrilhaEdicao.NovaProvaLiberada)
            {
                usuarioTrilhaEdicao.StatusMatricula = enumStatusMatricula.Inscrito;
            }

            return(usuarioTrilhaEdicao);
        }