Пример #1
0
        public StaffInfo[] GetStaff()
        {
            StaffInfo[] staff = new StaffInfo[m_StaffInfo.Count];
            int         index = 0;

            foreach (StaffInfo staffInfo in m_StaffInfo.Values)
            {
                staff[index++] = staffInfo;
            }

            return(staff);
        }
Пример #2
0
        public StaffInfo GetStaffInfo(string account)
        {
            lock (RenderLock)
            {
                if (account == null || account.Length == 0)
                {
                    return(null);
                }

                StaffInfo info = m_StaffInfo[account] as StaffInfo;

                if (info == null)
                {
                    m_StaffInfo[account] = info = new StaffInfo(account);
                }

                return(info);
            }
        }
Пример #3
0
 private BarGraph GraphHourlyPages(StaffInfo staff)
 {
     return(GraphHourlyPages(staff.Pages, PageResolution.Handled, "Average pages handled by " + staff.Display, "graphs_" + staff.Account.ToLower() + "_avg"));
 }
Пример #4
0
 public static int GetPageCount(StaffInfo staff, DateTime min, DateTime max)
 {
     return(GetPageCount(staff.Pages, PageResolution.Handled, min, max));
 }