public int GetPermidByActID(int ActionID) { Actions actions = new Actions(); object obj2 = actions.GetHashListByCache()[ActionID.ToString()]; if (obj2 != null) { return Convert.ToInt32(obj2); } return -1; }
/// <summary> /// 根据功能行为编号得到所属权限编号 /// </summary> /// <returns></returns> public int GetPermidByActID(int ActionID) { Actions bllAction = new Actions(); Hashtable ActHashtab=bllAction.GetHashListByCache(); object obj = ActHashtab[ActionID.ToString()]; if (obj != null) { return Convert.ToInt32(obj); } else { return -1; } }
protected override void OnInit(EventArgs e) { InitializeComponent(); base.OnInit(e); this.Error += new System.EventHandler(PageBase_Error); Actions bllAction = new Actions(); ActHashtab = bllAction.GetHashListByCache(); }
protected override void OnInit(EventArgs e) { InitializeComponent(); base.OnInit(e); this.Error += new System.EventHandler(PageBase_Error); SingleLogin slogin = new SingleLogin(); if (slogin.ValidateForceLogin()) { Response.Write("<script defer>window.alert('" + Resources.Site.TooltipForceLogin + "');parent.location='" + defaullogin + "';</script>"); } Actions bllAction = new Actions(); ActHashtab = bllAction.GetHashListByCache(); }