示例#1
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     this.role = SinGooCMS.BLL.Role.GetDataById(base.OpID);
     if (this.role == null)
     {
         base.ShowMsg("角色不存在");
     }
     else if (this.role.RoleName == "超级管理员")
     {
         base.ShowMsgAndRdirect("不能设置超级管理员", string.Concat(new string[]
         {
             "Role.aspx?CatalogID=",
             base.CurrentModuleCode,
             "&Module=",
             base.CurrentModuleCode,
             "&action=View"
         }));
     }
     else
     {
         this.listCurrentRolePruview = Purview.GetListByRoleID(this.role.AutoID);
         if (!base.IsPostBack)
         {
             this.BindPurview();
         }
     }
 }