protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { CarregarObjetos(Utilitarios.TipoTransacao.Limpar); if (Request.QueryString["Id"] != null) { codigo = Convert.ToInt32(Request.QueryString["Id"]); gobjPerfil = DOPerfil.Obter(codigo); gobjListSecoes = DOSecao.Listar(codigo); gobjListSecoesFuncionalidades = DOSecaoFuncionalidade.Listar(codigo); CarregarObjetos(Utilitarios.TipoTransacao.Carregar); } } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { CarregarObjetos(Utilitarios.TipoTransacao.Limpar); if (Request.QueryString["Id"] != null) { codigo = Convert.ToInt32(Request.QueryString["Id"]); } gobjPerfil = DOPerfil.Obter(codigo); gobjListSecoes = DOSecao.Listar(codigo); gobjListGrupos = (from s in gobjListSecoes select s.Grupo).Distinct().ToList(); //Permissão de edição if (!((Modulos_Modulos)Master).VerificaPermissaoEdicao()) { Response.Redirect("/Manager/Modulos/Default.aspx"); } CarregarObjetos(Utilitarios.TipoTransacao.Carregar); } }