Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace DistrictAgent.Model
- {
- public class School
- {
- private int id;
- private Parish parish;
- private SubCounty subCounty;
- private County county;
- private District district;
- private string name;
- private Location location;
- private int establishedYear;
- private string code;
- private OwnerShip ownerShip;
- private SchoolType schoolType;
- private FundingSource fundingSource;
- private BoardingType boardingType;
- private RegistryStatus registryStatus;
- private SchoolGrade schoolGrade;
- private FoundingBody foundingBody;
- private DistanceSchool distanceSchool;
- private DistanceDEO distanceDEO;
- private bool closed;
- private string pobox;
- private string town;
- private string email;
- private string website;
- private string phone;
- private string fax;
- private string uneb;
- private string mps;
- private string address;
- private IList<AttendanceRecord> attendanceRecords;
- /// <summary>
- /// gets or sets the attendance records
- /// </summary>
- public virtual IList<AttendanceRecord> AttendanceRecords
- {
- get { return this.attendanceRecords; }
- set { this.attendanceRecords = value; }
- }
- public virtual void AddAttendanceRecord(AttendanceRecord aRecord)
- {
- if (aRecord == null)
- return;
- if (AttendanceRecords == null)
- AttendanceRecords = new List<AttendanceRecord>();
- AttendanceRecords.Add(aRecord);
- aRecord.School = this;
- }
- public virtual void RemoveAttendanceRecord(AttendanceRecord aRecord)
- {
- if (aRecord == null || AttendanceRecords == null || AttendanceRecords.Count == 0)
- return;
- AttendanceRecords.Remove(aRecord);
- }
- /// <summary>
- /// gets or sets the id of the school
- /// </summary>
- public virtual int Id
- {
- get { return this.id; }
- set { this.id = value; }
- }
- /// <summary>
- /// gets or sets the parish
- /// </summary>
- public virtual Parish Parish
- {
- get { return this.parish; }
- set { this.parish = value; }
- }
- /// <summary>
- /// gets or sets the subcounty
- /// </summary>
- public virtual SubCounty SubCounty
- {
- get { return this.subCounty; }
- set { this.subCounty = value; }
- }
- /// <summary>
- /// gets or sets the county
- /// </summary>
- public virtual County County
- {
- get { return this.county; }
- set { this.county = value; }
- }
- /// <summary>
- /// gets or sets the district
- /// </summary>
- public virtual District District
- {
- get { return this.district; }
- set { this.district = value; }
- }
- /// <summary>
- /// gets or sets the name of the school
- /// </summary>
- public virtual string Name
- {
- get { return this.name; }
- set { this.name = value; }
- }
- /// <summary>
- /// gets or sets the location
- /// </summary>
- public virtual Location Location
- {
- get { return this.location; }
- set { this.location = value; }
- }
- /// <summary>
- /// gets or sets the established year
- /// </summary>
- public virtual int EstablishedYear
- {
- get { return this.establishedYear; }
- set { this.establishedYear = value; }
- }
- /// <summary>
- /// gets or sets the code
- /// </summary>
- public virtual string Code
- {
- get { return this.code; }
- set { this.code = value; }
- }
- /// <summary>
- /// gets or sets the ownership
- /// </summary>
- public virtual OwnerShip OwnerShip
- {
- get { return this.ownerShip; }
- set { this.ownerShip = value; }
- }
- /// <summary>
- /// gets or sets the school type
- /// </summary>
- public virtual SchoolType SchoolType
- {
- get { return this.schoolType; }
- set { this.schoolType = value; }
- }
- /// <summary>
- /// gets or sets the funding source
- /// </summary>
- public virtual FundingSource FundingSource
- {
- get { return this.fundingSource; }
- set { this.fundingSource = value; }
- }
- /// <summary>
- /// gets or sets the boarding type
- /// </summary>
- public virtual BoardingType BoardingType
- {
- get { return this.boardingType; }
- set { this.boardingType = value; }
- }
- /// <summary>
- /// gets or sets the registry status
- /// </summary>
- public virtual RegistryStatus RegistryStatus
- {
- get { return this.registryStatus; }
- set { this.registryStatus = value; }
- }
- /// <summary>
- /// gets or sets the school grade
- /// </summary>
- public virtual SchoolGrade SchoolGrade
- {
- get { return this.schoolGrade; }
- set { this.schoolGrade = value; }
- }
- /// <summary>
- /// gets or sets the founding body
- /// </summary>
- public virtual FoundingBody FoundingBody
- {
- get { return this.foundingBody; }
- set { this.foundingBody = value; }
- }
- /// <summary>
- /// gets or sets the distance school
- /// </summary>
- public virtual DistanceSchool DistanceSchool
- {
- get { return this.distanceSchool; }
- set { this.distanceSchool = value; }
- }
- /// <summary>
- /// gets or sets the distance deo
- /// </summary>
- public virtual DistanceDEO DistanceDEO
- {
- get { return this.distanceDEO; }
- set { this.distanceDEO = value; }
- }
- /// <summary>
- /// gets or sets the closed
- /// </summary>
- public virtual Boolean IsClosed
- {
- get { return this.closed; }
- set { this.closed = value; }
- }
- /// <summary>
- /// gets or sets the pobox
- /// </summary>
- public virtual string POBOX
- {
- get { return this.pobox; }
- set { this.pobox = value; }
- }
- /// <summary>
- /// gets or sets the town
- /// </summary>
- public virtual string Town
- {
- get { return this.town; }
- set { this.town = value; }
- }
- /// <summary>
- /// gets or sets the email
- /// </summary>
- public virtual string Email
- {
- get { return this.email; }
- set { this.email = value; }
- }
- /// <summary>
- /// gets or sets the website
- /// </summary>
- public virtual string Website
- {
- get { return this.website; }
- set { this.website = value; }
- }
- /// <summary>
- /// gets or sets the phone number
- /// </summary>
- public virtual string Phone
- {
- get { return this.phone; }
- set { this.phone = value; }
- }
- /// <summary>
- /// gets or sets the fax
- /// </summary>
- public virtual string Fax
- {
- get { return this.fax; }
- set { this.fax = value; }
- }
- /// <summary>
- /// gets or sets the uneb centre number
- /// </summary>
- public virtual string Uneb
- {
- get { return this.uneb; }
- set { this.uneb = value; }
- }
- /// <summary>
- /// gets or sets the mps
- /// </summary>
- public virtual string MPS
- {
- get { return this.mps; }
- set { this.mps = value; }
- }
- /// <summary>
- /// gets or sets the address
- /// </summary>
- public virtual string Address
- {
- get { return this.address; }
- set { this.address = value; }
- }
- public override string ToString()
- {
- return Name + " - " + Id;
- }
- public override bool Equals(object obj)
- {
- if (obj is School)
- {
- if (this.Id.Equals(((School)obj).Id))
- return true;
- else
- return false;
- }
- else
- return false;
- }
- }
- }
Add Comment
Please, Sign In to add comment