コード例 #1
0
ファイル: GroupManager.cs プロジェクト: radtek/EMIP
        public static BPMObjectNameCollection AddGroupMembers(IYZDbProvider provider, IDbConnection cn, int groupid, BPMObjectNameCollection uids, string role)
        {
            BPMObjectNameCollection added   = new BPMObjectNameCollection();
            MemberCollection        members = GroupManager.GetGroupMembers(provider, cn, groupid);

            foreach (string uid in uids)
            {
                Member member = new Member();
                member.GroupID = groupid;
                member.UID     = uid;
                member.Role    = role;

                if (!members.Contains(uid))
                {
                    GroupManager.Insert(provider, cn, member);
                    added.Add(uid);
                }
            }

            return(added);
        }
コード例 #2
0
ファイル: GroupManager.cs プロジェクト: radtek/EMIP
 static GroupManager()
 {
     GroupManager._instance = new GroupManager();
 }