Пример #1
0
        private void ReadStaffRoleInfo(object RoleID)
        {
            ORGStaffHelper oRGStaffHelper = new ORGStaffHelper();
            List <string>  staffIDs       = (new ORGStaffRoleHelper()).GetStaffIDs(RoleID.ToString());

            string[] realName = new string[2];
            foreach (string staffID in staffIDs)
            {
                Staff staff = oRGStaffHelper.Load(staffID);
                if (staff != null)
                {
                    realName[0] = staff.RealName;
                    realName[1] = staff.LoginName;
                    ListViewItem listViewItem = new ListViewItem(realName)
                    {
                        Tag = staff
                    };
                    this.lvStaffRole.Items.Add(listViewItem);
                }
            }
        }