protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { return; } using (RelatorioSolucaoEducacionalOferta relSEO = new RelatorioSolucaoEducacionalOferta()) { WebFormHelper.PreencherLista(relSEO.ObterTipoOfertaTodos(), cbxTipoOferta, true, false); WebFormHelper.PreencherLista(relSEO.ObterFormaAquisicaoTodos(), cbxFormaAquisicao, true, false); } }
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); }