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 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); }
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { return; } IList <enumStatusMatricula> lstStatusMatricula; using (var matSol = new RelatorioMatriculaSolucaoEducacional()) { WebFormHelper.PreencherLista(matSol.ObterFormaAquisicaoTodos().OrderBy(x => x.Nome).ToList(), cbxFormaAquisicao, true); lstStatusMatricula = matSol.ObterStatusMatriculaTodos(); ucCategorias.PreencherCategorias(false, null, null, true); var lista = matSol.ObterSolucaoEducacionalPorFormaAquisicao(); ViewState["_SE"] = Helpers.Util.ObterListaAutocomplete(lista); ListBoxesUF.PreencherItens(matSol.ObterUFTodos(), "ID", "Nome"); ListBoxesUFResponsavel.PreencherItens(matSol.ObterUFTodos(), "ID", "Nome"); } cbxStatusMatricula.Items.Add(new ListItem("-- Todos --", "0")); var i = 1; foreach (var s in lstStatusMatricula) { cbxStatusMatricula.Items.Add(new ListItem(s.ToString(), i.ToString())); i++; } }
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { return; } using (var bp = new RelatorioCapacitados()) { WebFormHelper.PreencherLista(bp.ObterPerfilTodos(), cbxPerfil, true); WebFormHelper.PreencherLista(bp.ObterUFTodos(), cbxUf, true); WebFormHelper.PreencherLista(bp.ObterNivelOcupacionalTodos(), cbxNivelOcupacional, true); WebFormHelper.PreencherLista(bp.ObterFormaAquisicaoTodos(), cbxFormaAquisicao, true); WebFormHelper.PreencherLista(bp.ObterStatusMatriculaTodos(), cbxStatusMatricula, true); WebFormHelper.PreencherLista( new ListItemCollection { new ListItem("Todos", ""), new ListItem("Ativo", "ativo"), new ListItem("Inativo", "inativo") }, cbxSituacaoUsuario); ListBoxesUFResponsavel.PreencherItens(bp.ObterUFTodos(), "ID", "Nome"); ViewState["_SE"] = Helpers.Util.ObterListaAutocomplete(bp.ObterSolucaoEducacionalPorFormaAquisicao()); } }
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { return; } ucCategorias1.PreencherCategorias(false, null); var rel = new RelatorioSolucaoEducacionalPorCategoria(); ListBoxesUFResponsavel.PreencherItens(rel.ObterUFTodos(), "ID", "Nome"); }
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { return; } using (var relProg = new RelatorioSolucaoEducacionalPrograma()) { WebFormHelper.PreencherLista(relProg.ObterProgramaTodos(), cbxPrograma, true, false); ListBoxesUFResponsavel.PreencherItens(relProg.ObterUFTodos(), "ID", "Nome"); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { using (var rel = new RelatorioConcluintes()) { WebFormHelper.PreencherLista(rel.ObterListaFormaAquisicao(), cbxTipoCurso, true); WebFormHelper.PreencherLista(rel.ObterListaUf(), cbxUF, true); ListBoxesUFResponsavel.PreencherItens(rel.ObterListaUf(), "ID", "Nome"); } } }
public void PreencherCampos() { var relMonitoramentoTurmas = new RelatorioMonitoramentoTurmas(); ucCategoriasConteudo.PreencherTodasCategorias(false, null, null, false, true); var listaStatus = Enum.GetValues(typeof(enumStatusTurma)).Cast <enumStatusTurma>().Select(e => new { nome = e.GetDescription(), valor = (int)e }); WebFormHelper.PreencherListaCustomizado(listaStatus.ToList(), chkStatus, "valor", "nome"); var listaTurmas = relMonitoramentoTurmas.ObterTodosPorCategoriaConteudo(); ListBoxesUFResponsavel.PreencherItens(relMonitoramentoTurmas.ObterUFTodos(), "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 relSEom = new RelatorioSEOfertaMatricula()) { WebFormHelper.PreencherLista(relSEom.ObterFormaAquisicaoTodos(), cbxFormaAquisicao, true); WebFormHelper.PreencherLista(relSEom.ObterTipoOfertaTodos(), cbxTipoOferta, true); ViewState["_SE"] = Helpers.Util.ObterListaAutocomplete(relSEom.ObterSolucaoEducacional()); ListBoxesUFResponsavel.PreencherItens(relSEom.ObterUFTodos(), "ID", "Nome"); } }
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"); } }
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { return; } using (var bp = new RelatorioInscricoesPorStatusENivel()) { var listaUfs = bp.ObterUFs(); WebFormHelper.PreencherLista(listaUfs, cbxUf, listaUfs.Count > 1); var usuarioLogado = new ManterUsuario().ObterUsuarioLogado(); ViewState["_SE"] = Helpers.Util.ObterListaAutocomplete(bp.ObterSolucaoEducacionalTodos()); CheckboxesStatus.PreencherItens(bp.ObterStatusMatriculaTodos(), "ID", "Nome", true); CheckboxesNiveis.PreencherItens(bp.ObterNivelOcupacionalTodos(), "ID", "Nome", true); ListBoxesUFResponsavel.PreencherItens(listaUfs, "ID", "Nome"); } }
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); }