public void LoadAllStaff(int organizationID)
        {
            SqlDataReader reader = new StaffData().GetStaffByOrganizationID(organizationID);

            while (reader.Read())
            {
                this.Add(new Staff(reader));
            }
            reader.Close();
        }
Exemple #2
0
        public Staff(Guid guid) : base(guid)
        {
            SqlDataReader reader = new StaffData().GetStaffByID(new Person(guid).PersonID);

            if (reader.Read())
            {
                LoadStaff(reader);
            }
            reader.Close();
        }
        public void LoadBySupervisorID(int supervisorID)
        {
            SqlDataReader reader = new StaffData().GetStaffBySupervisorID(supervisorID);

            while (reader.Read())
            {
                this.Add(new Staff(reader));
            }
            reader.Close();
        }
Exemple #4
0
        public Staff(int personID) : base(personID)
        {
            SqlDataReader reader = new StaffData().GetStaffByID(personID);

            if (reader.Read())
            {
                LoadStaff(reader);
            }
            reader.Close();
        }