/// <summary> /// 得到人员列表 /// </summary> /// <param name="roleList"></param> protected DataTable GetUsers(IList <Role> roleList) { DataTable dt = new DataTable(); int i = 0; StringBuilder sb = new StringBuilder(""); foreach (var role in roleList) { if (i > 0) { sb.Append(","); } sb.Append(role.ID); i++; } string roleIdList = sb.ToString(); if (!string.IsNullOrEmpty(roleIdList)) { dt = WorkFlows.GetSysUserByRoleIdList(roleIdList); } return(dt); }