void AddMeetingStaffInfo() { if (tmpMeetingMember != null) { ListFbAdmins.Clear(); foreach (var employ in listEmpolyeeView)//可以设置为兼职岗位,组织架构选择谁就是谁岗位信息 { T_SYS_FBADMIN fbadmin = new T_SYS_FBADMIN(); fbadmin.FBADMINID = System.Guid.NewGuid().ToString(); fbadmin.EMPLOYEEID = employ.EMPLOYEEID; fbadmin.SYSUSERID = ""; fbadmin.OWNERCOMPANYID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; fbadmin.OWNERDEPARTMENTID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; fbadmin.OWNERPOSTID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; fbadmin.EMPLOYEECOMPANYID = employ.OWNERCOMPANYID; fbadmin.EMPLOYEEDEPARTMENTID = employ.OWNERDEPARTMENTID; fbadmin.EMPLOYEEPOSTID = employ.OWNERPOSTID; fbadmin.CREATEUSERID = Common.CurrentLoginUserInfo.EmployeeID; fbadmin.ROLENAME = employ.COMPANYNAME + "预算配置员"; fbadmin.ISCOMPANYADMIN = "1"; fbadmin.ISSUPPERADMIN = "0"; fbadmin.ADDUSERNAME = Common.CurrentLoginUserInfo.EmployeeName; ListFbAdmins.Add(fbadmin); } } if (ListFbAdmins.Count() > 0) { PermClient.BatchAddFBAdminsAsync(ListFbAdmins); } }