protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { using (RelatorioUsuarioCadastrado relUsuarioCadastrado = new RelatorioUsuarioCadastrado()) { WebFormHelper.PreencherLista(relUsuarioCadastrado.ObterPerfilTodos(), cbxPerfil, true, false); WebFormHelper.PreencherLista(relUsuarioCadastrado.ObterNivelOcupacionalTodos(), cbxNivelOcupacional, true, false); WebFormHelper.PreencherLista(relUsuarioCadastrado.ObterStatusMatriculaTodos(), cbxStatus, true, false); WebFormHelper.PreencherLista(relUsuarioCadastrado.ObterUfTodos(), cbxUF, true, false); } } }
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { return; } using (var relUsuarioCadastrado = new RelatorioUsuarioCadastrado()) { ucMultiplosPerfil.PreencherItens(relUsuarioCadastrado.ObterPerfilTodos(), "ID", "Nome"); ucMultiplosNivelOcupacional.PreencherItens(relUsuarioCadastrado.ObterNivelOcupacionalTodos(), "ID", "Nome"); ucMultiplosUF.PreencherItens(new ManterUf().ObterTodosIQueryable(), "ID", "Sigla"); Session["dsRelatorio"] = null; } }