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);
         }
     }
 }
示例#2
0
        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");
        }
示例#3
0
        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;
            }
        }