Exemplo n.º 1
0
        /// <summary>
        /// 得到所有的用户,包括矩阵中的和直接包含的
        /// </summary>
        /// <param name="auCodeName"></param>
        /// <returns></returns>
        public IEnumerable <IUser> GetAllUsers(string auCodeName)
        {
            OguDataCollection <IUser> result = new OguDataCollection <IUser>();

            result.CopyFrom(GetDirectUsers(auCodeName));
            result.CopyFrom(GetObjectsFromMatrix(auCodeName));

            return(result);
        }
 protected internal override void FillUsers(OguDataCollection<IUser> users)
 {
     try
     {
         users.CopyFrom(EvaluateCondition());
     }
     catch (WfDynamicResourceEvaluationException ex)
     {
         ex.WriteToLog();
     }
 }
 protected internal override void FillUsers(OguDataCollection <IUser> users)
 {
     try
     {
         users.CopyFrom(EvaluateCondition());
     }
     catch (WfDynamicResourceEvaluationException ex)
     {
         ex.WriteToLog();
     }
 }
Exemplo n.º 4
0
 public void FillUsers(IWfProcess process, OguDataCollection <IUser> users)
 {
     this.DoCurrentRoleAction(process, (role, auCodeName) =>
                              users.CopyFrom(this.GetAllUsers(auCodeName)));
 }
 public void FillUsers(IWfProcess process, OguDataCollection<IUser> users)
 {
     this.DoCurrentRoleAction(process, (role, auCodeName) =>
             users.CopyFrom(this.GetAllUsers(auCodeName)));
 }
        /// <summary>
        /// 得到所有的用户,包括矩阵中的和直接包含的
        /// </summary>
        /// <param name="auCodeName"></param>
        /// <returns></returns>
        public IEnumerable<IUser> GetAllUsers(string auCodeName)
        {
            OguDataCollection<IUser> result = new OguDataCollection<IUser>();

            result.CopyFrom(GetDirectUsers(auCodeName));
            result.CopyFrom(GetObjectsFromMatrix(auCodeName));

            return result;
        }