protected void Page_Load(object sender, EventArgs e) { // Variável para impedir execuções desecessárias da busca de SEs com filtro de categoria. ViewState["buscouCategorias"] = true; if (IsPostBack) { return; } ViewState["_SE"] = null; var manterUsuario = new ManterUsuario(); using (var relDa = new RelatorioDesempenhoAcademico()) { AtualizarComboSolucaoEducacional(null, null); if (ucNacionalizarRelatorio.IsNacionalizado) { ucCategorias1.PreencherCategorias(false, null, null, true); } else { ucCategorias1.PreencherTodasCategorias(false, null); } ListBoxesStatus.PreencherItens(relDa.ObterStatusMatriculaTodos(), "ID", "Nome"); ListBoxesNivelOcupacional.PreencherItens(relDa.GetNivelOcupacionalTodos(), "ID", "Nome"); ListBoxesUF.PreencherItens(relDa.ObterUFTodos(), "ID", "Nome"); ListBoxesUFResponsavel.PreencherItens(relDa.ObterUFTodos(), "ID", "Nome"); ListBoxesPublicoAlvo.PreencherItens(relDa.ObterPublicoAlvoTodos(), "ID", "Nome", true); ListBoxesFormaDeAquisicao.PreencherItens(relDa.ObterFormaDeAquisicaoTodos(), "ID", "Nome"); } }
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { return; } ListBoxesUF.PreencherItens(new ManterUf().ObterTodosIQueryable().Select(x => new { x.ID, x.Nome }), "ID", "Nome"); ListBoxesNivelOcupacional.PreencherItens(new ManterNivelOcupacional().ObterTodosNivelOcupacional().Select(x => new { x.ID, x.Nome }), "ID", "Nome"); var relUsuarioCadastrado = new RelatorioUsuarioCadastrado(); ListBoxesPerfil.PreencherItens(relUsuarioCadastrado.ObterPerfilTodos(), "ID", "Nome"); }
protected void Page_Load(object sender, EventArgs e) { // Persistir o preenchimento das soluções quando o relatório for Consolidado. if (ObterTipoRelatorioSelecionado() == enumTipoRelatorioResposta.Consolidado) { ucCategorias1.TreeNodeCheckChanged += PreencherCombos; } if (IsPostBack) { return; } // No primeiro load, define a página atual como 0. PaginaAtual = 1; using (var rel = new RelatorioQuestionario()) { PreencherCombos(null, null); ucCategorias1.PreencherCategorias(false); if (RelatorioTutor) { divDemandas.Visible = divTipoQuestionario.Visible = divQuestionario.Visible = false; // Relatório de tutor sempre será de pesquisa. ddlTipoQuestionario.SelectedValue = ((int)enumTipoQuestionario.Pesquisa).ToString(); divTutor.Visible = true; WebFormHelper.PreencherLista(rel.ListaProfessor(), cbxProfessor, false, true); txtSolucaoEducacional.Attributes.Add("data-mensagemVazia", "Selecione um tutor"); } ListBoxesUF.PreencherItens(rel.ListaUf(), "ID", "Nome"); ListBoxesNivelOcupacional.PreencherItens(rel.ListaNivelOcupacional(), "ID", "Nome"); var lista = rel.ListaSolucaoEducacional(); ViewState["_SE"] = Helpers.Util.ObterListaAutocomplete(lista); } }
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { return; } using (var relDa = new RelatorioUnificadoSolucaoEducacional()) { ListBoxesFormaDeAquisicao.PreencherItens(relDa.ObterFormasDeAquisicao(), "ID", "Nome"); ListBoxesTiposDeOferta.PreencherItens(relDa.ObterTiposOferta(), "ID", "Nome"); ListBoxesProgramas.PreencherItens(relDa.ObterProgramas(), "ID", "Nome"); ucCategorias1.PreencherCategorias(); ListBoxesPublicosAlvo.PreencherItens(relDa.ObterPublicosAlvo(), "ID", "Nome"); ListBoxesNivelOcupacional.PreencherItens(relDa.ObterNiveisOcupacionais(), "ID", "Nome"); ListBoxesPerfis.PreencherItens(relDa.ObterPerfis(), "ID", "Nome"); ListBoxesUF.PreencherItens(relDa.ObterUFS(), "ID", "Nome"); ListBoxesUFResponsavel.PreencherItens(relDa.ObterUFS(), "ID", "Nome"); } }