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; } using (var rel = new RelatorioSolucaoEducacionalFormaAquisicao()) { ListBoxesFormaDeAquisicao.PreencherItens(rel.ObterFormaAquisicaoTodos(), "ID", "Nome"); ListBoxesUFResponsavel.PreencherItens(rel.ObterUFTodos(), "ID", "Nome"); } ucCategorias1.PreencherCategorias(false); }
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"); } }