Beispiel #1
0
        /// <summary>
        /// 权限检查完成时触发,
        /// 权限校验触发顺序OnPermissionChecking, OnPagePermissionChecking, OnControlPermissionChecking, OnControlPermissionChecked
        /// </summary>
        /// <param name="e"></param>
        protected virtual void OnControlPermissionChecked(ControlPermissionEventArgs e)
        {
            ControlPermissionEventHandler cpEvent = (ControlPermissionEventHandler)base.Events[_ControlPermissionChecked];

            if (cpEvent != null)
            {
                cpEvent(this, e);
            }
        }
Beispiel #2
0
        private bool HandleControlPermissionChecked(PermissionCheckingArgs e)
        {
            if (e.Cancel)
            {
                return(false);
            }
            OnControlPermissionChecking(e.CheckPermissionControls);

            ControlPermissionEventArgs args = new ControlPermissionEventArgs(_CheckedControl);

            OnControlPermissionChecked(args);
            return(true);
        }
Beispiel #3
0
 /// <summary>
 /// 权限校验结束时触发的事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public virtual void HHPage_ControlPermissionChecked(object sender, ControlPermissionEventArgs e)
 {
 }