Exemplo n.º 1
0
        /// <summary>
        /// 创建下一步的执行人员列表
        /// </summary>
        /// <param name="view"></param>
        /// <returns></returns>
        private IDictionary <String, PerformerList> CreateNextActivityPerformers(NodeView view)
        {
            var       nextDict = new Dictionary <String, PerformerList>();
            UserModel um       = new UserModel();

            PerformerList pl = new PerformerList();

            foreach (Role role in view.Roles)
            {
                var a = um.GetUsersByRoleCode(role.RoleCode);      //根据角色代码获取人员
                foreach (var u in a)
                {
                    pl.Add(new Performer(u.UserID, u.UserName));
                }
            }
            nextDict[view.ActivityGUID] = pl;

            return(nextDict);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 创建下一步的执行人员列表
        /// </summary>
        /// <param name="view"></param>
        /// <returns></returns>
        private IDictionary <String, PerformerList> CreateNextActivityPerformers(IList <NodeView> nextStepList)
        {
            var       nextDict = new Dictionary <String, PerformerList>();
            UserModel um       = new UserModel();

            foreach (NodeView view in nextStepList)
            {
                PerformerList pl = new PerformerList();
                foreach (Role role in view.Roles)
                {
                    var a = um.GetUsersByRoleCode(role.RoleCode);      //根据角色代码获取人员
                    foreach (UserEntity u in a)
                    {
                        pl.Add(new Performer(u.ID.ToString(), u.UserName));
                    }
                }
                nextDict[view.ActivityGUID] = pl;
            }

            return(nextDict);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 创建下一步的执行人员列表
        /// </summary>
        /// <param name="view"></param>
        /// <returns></returns>
        private IDictionary<String, PerformerList> CreateNextActivityPerformers(NodeView view)
        {
            var nextDict = new Dictionary<String, PerformerList>();
            UserModel um = new UserModel();

            PerformerList pl = new PerformerList();
            foreach (Role role in view.Roles)
            {
                var a = um.GetUsersByRoleCode(role.RoleCode);      //根据角色代码获取人员
                foreach (UserEntity u in a)
                {
                    pl.Add(new Performer(u.ID.ToString(), u.UserName));
                }
            }
            nextDict[view.ActivityGUID] = pl;

            return nextDict;
        }