private void ReplaceAssignees(WfAssigneeCollection collection)
        {
            foreach (IUser user in this._OriginalAssignees)
            {
                collection.Remove(a => string.Compare(a.User.ID, user.ID, true) == 0);
            }

            collection.Add(this.TargetAssignees);
        }
示例#2
0
        public WfAssigneeCollection ToAssignees()
        {
            OguDataCollection <IUser> users = ToUsers();

            WfAssigneeCollection result = new WfAssigneeCollection();

            users.ForEach(u => result.Add(u));

            return(result);
        }
        /// <summary>
        /// 过滤出被选择的对象
        /// </summary>
        /// <param name="multiResult">是否允许返回多个结果</param>
        /// <returns></returns>
        public WfAssigneeCollection GetSelectedAssignees()
        {
            WfAssigneeCollection result = new WfAssigneeCollection();

            foreach (WfAssignee assignee in this)
            {
                if (assignee.Selected)
                {
                    result.Add(assignee);
                }
            }

            return(result);
        }