Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SchoolBusOwnerAttachment" /> class.
 /// </summary>
 /// <param name="Id">Primary Key (required).</param>
 /// <param name="SchoolBusOwner">SchoolBusOwner.</param>
 /// <param name="InternalFileName">The physical location of the attachment on the file system..</param>
 /// <param name="ExternalFileName">The name of the attachment as defined by the user in uploading the document..</param>
 /// <param name="Description">A note about the attachment, optionally maintained by the user..</param>
 public SchoolBusOwnerAttachment(int Id, SchoolBusOwner SchoolBusOwner = null, string InternalFileName = null, string ExternalFileName = null, string Description = null)
 {
     this.Id               = Id;
     this.SchoolBusOwner   = SchoolBusOwner;
     this.InternalFileName = InternalFileName;
     this.ExternalFileName = ExternalFileName;
     this.Description      = Description;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SchoolBusOwnerNote" /> class.
 /// </summary>
 /// <param name="Id">Primary Key (required).</param>
 /// <param name="IsNoLongerRelevant">A user set flag that the note is no longer relevant. Allows the note to be retained for historical reasons, but identified to the user as no longer relevant..</param>
 /// <param name="Note">The contents of the note..</param>
 /// <param name="SchoolBusOwner">SchoolBusOwner.</param>
 public SchoolBusOwnerNote(int Id, bool?IsNoLongerRelevant = null, string Note = null, SchoolBusOwner SchoolBusOwner = null)
 {
     this.Id = Id;
     this.IsNoLongerRelevant = IsNoLongerRelevant;
     this.Note           = Note;
     this.SchoolBusOwner = SchoolBusOwner;
 }
Example #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Contact" /> class.
        /// </summary>
        /// <param name="Id">A system-generated unique identifier for a Contact (required).</param>
        /// <param name="GivenName">The given name of the contact..</param>
        /// <param name="Surname">The surname of the contact..</param>
        /// <param name="OrganizationName">The organization name of the contact..</param>
        /// <param name="Role">The role of the contact. UI controlled as to whether it is free form or selected from an enumerated list - for initial implementation, the field is freeform..</param>
        /// <param name="Notes">A note about the contact maintained by the users..</param>
        /// <param name="EmailAddress">The email address for the contact..</param>
        /// <param name="WorkPhoneNumber">The work phone number for the contact..</param>
        /// <param name="MobilePhoneNumber">The mobile phone number for the contact..</param>
        /// <param name="FaxPhoneNumber">The fax phone number for the contact..</param>
        /// <param name="Address1">Address 1 line of the address..</param>
        /// <param name="Address2">Address 2 line of the address..</param>
        /// <param name="City">The City of the address..</param>
        /// <param name="Province">The Province of the address..</param>
        /// <param name="PostalCode">The postal code of the address..</param>
        /// <param name="SchoolBusOwner">A foreign key reference to a system-generated unique identifier for a school bus owner</param>
        public Contact(int Id, string GivenName = null, string Surname = null, string OrganizationName = null, string Role = null, string Notes = null, string EmailAddress = null, string WorkPhoneNumber = null, string MobilePhoneNumber = null, string FaxPhoneNumber = null, string Address1 = null, string Address2 = null, string City = null, string Province = null, string PostalCode = null, SchoolBusOwner SchoolBusOwner = null)
        {
            this.Id                = Id;
            this.GivenName         = GivenName;
            this.Surname           = Surname;
            this.OrganizationName  = OrganizationName;
            this.Role              = Role;
            this.Notes             = Notes;
            this.EmailAddress      = EmailAddress;
            this.WorkPhoneNumber   = WorkPhoneNumber;
            this.MobilePhoneNumber = MobilePhoneNumber;
            this.FaxPhoneNumber    = FaxPhoneNumber;
            this.Address1          = Address1;
            this.Address2          = Address2;
            this.City              = City;
            this.Province          = Province;
            this.PostalCode        = PostalCode;

            this.SchoolBusOwner = SchoolBusOwner;
        }
Example #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SchoolBus" /> class.
        /// </summary>
        /// <param name="Id">A system-generated unique identifier for a SchoolBus (required).</param>
        /// <param name="Status">Status of the school bus record - current values are Inactive, Active, Archived (required).</param>
        /// <param name="PermitClassCode">The enumerated class of School Bus from drop down (required).</param>
        /// <param name="BodyTypeCode">The enumerated body type of the School Bus from drop down (required).</param>
        /// <param name="SchoolBusSeatingCapacity">The maximum number of passengers in the bus based on the specific use of the bus including the driver. For example,  the same 2-per seat &amp;#x2F; 24-passenger model might have a seating capacity of 36 if the specific bus is to be used for small children,  3 per seat. (required).</param>
        /// <param name="ICBCRegistrationNumber">The registration number of the vehicle as entered by the user and confirmed by the CCW Web Services.</param>
        /// <param name="LicencePlateNumber">The License Plate Number for the vehicle.</param>
        /// <param name="VehicleIdentificationNumber">A code used by the automotive industry to uniquely identify individual motor vehicles. A vehicle identification number is frequently referred to using the acronym VIN and it is occasionally referred to as a chassis number..</param>
        /// <param name="SchoolBusOwner">A foreign key reference to the system-generated unique identifier for School Bus Owner.</param>
        /// <param name="PermitNumber">The (generated) permit number for the School Bus. The number is set by the system when the inspector generates a permit based on a business rule permit number format..</param>
        /// <param name="PermitIssueDate">The date a permit number was established for this School Bus..</param>
        /// <param name="IsOutOfProvince">True if the School Bus is registered outside of BC..</param>
        /// <param name="CCWJurisdiction">The Jurisdication of an Out Of Province Bus. Needed for querying CCW..</param>
        /// <param name="District">A foreign key reference to the system-generated unique identifier for a.</param>
        /// <param name="HomeTerminalAddress1">Address Line 1 of physical location of the School Bus..</param>
        /// <param name="HomeTerminalAddress2">Address Line 2 of physical location of the School Bus..</param>
        /// <param name="HomeTerminalCity">City of physical location of the School Bus..</param>
        /// <param name="HomeTerminalProvince">Province of physical location of the School Bus - free form..</param>
        /// <param name="HomeTerminalPostalCode">Postal Code of physical location of the School Bus..</param>
        /// <param name="HomeTerminalComment">A comment about the physical location of the bus so that the Inspector can more easily find it for an inspection..</param>
        /// <param name="RestrictionsText">Text of any restrictions to be printed on the school bus permit. Standard comments are associated with the Permit Class but the inspector can enter free form text..</param>
        /// <param name="NextInspectionDate">The next inspection date for this School Bus which is set when inspection results are saved.</param>
        /// <param name="NextInspectionTypeCode">Annual or Re-inspection based on the Pass&amp;#x2F;Fail status of the most recent inspection - An enumerated type (by the UI) to indicate the type of the next inspection.</param>
        /// <param name="SchoolDistrict">The School District in which the School Bus operates. The school bus may or may not be associated with the School District itself - we just track where it is regardless..</param>
        /// <param name="IsIndependentSchool">True if the School Bus is associated with an Independent School. If true,  the name of the Independent School should be in the companion field..</param>
        /// <param name="IndependentSchoolName">The name of the Independent School to which the School Bus is associated. Should be null if the companion isIndependentSchool is false..</param>
        /// <param name="UnitNumber">The unit number of the Bus as defined by the School Bus owner - freeform text..</param>
        /// <param name="MobilityAidCapacity">The number of mobility aid passenger seats in the bus..</param>
        /// <param name="Inspector">The inspector assigned to this schoolbus.</param>
        /// <param name="Notes">The set of notes about the school bus entered by users..</param>
        /// <param name="Attachments">The set of attachments about the school bus uploaded by the users..</param>
        /// <param name="History">The history of updates made to the School Bus..</param>
        /// <param name="CCWData">CCWData for this School Bus.</param>
        public SchoolBus(int Id, string Status, string PermitClassCode, string BodyTypeCode, int SchoolBusSeatingCapacity, string ICBCRegistrationNumber = null, string LicencePlateNumber = null, string VehicleIdentificationNumber = null, SchoolBusOwner SchoolBusOwner = null, int?PermitNumber = null, DateTime?PermitIssueDate = null, bool?IsOutOfProvince = null, CCWJurisdiction CCWJurisdiction = null, District District = null, string HomeTerminalAddress1 = null, string HomeTerminalAddress2 = null, City HomeTerminalCity = null, string HomeTerminalProvince = null, string HomeTerminalPostalCode = null, string HomeTerminalComment = null, string RestrictionsText = null, DateTime?NextInspectionDate = null, string NextInspectionTypeCode = null, SchoolDistrict SchoolDistrict = null, bool?IsIndependentSchool = null, string IndependentSchoolName = null, string UnitNumber = null, int?MobilityAidCapacity = null, User Inspector = null, List <Note> Notes = null, List <Attachment> Attachments = null, List <History> History = null, CCWData CCWData = null)
        {
            this.Id                       = Id;
            this.Status                   = Status;
            this.PermitClassCode          = PermitClassCode;
            this.BodyTypeCode             = BodyTypeCode;
            this.SchoolBusSeatingCapacity = SchoolBusSeatingCapacity;



            this.ICBCRegistrationNumber      = ICBCRegistrationNumber;
            this.LicencePlateNumber          = LicencePlateNumber;
            this.VehicleIdentificationNumber = VehicleIdentificationNumber;
            this.SchoolBusOwner         = SchoolBusOwner;
            this.PermitNumber           = PermitNumber;
            this.PermitIssueDate        = PermitIssueDate;
            this.IsOutOfProvince        = IsOutOfProvince;
            this.CCWJurisdiction        = CCWJurisdiction;
            this.District               = District;
            this.HomeTerminalAddress1   = HomeTerminalAddress1;
            this.HomeTerminalAddress2   = HomeTerminalAddress2;
            this.HomeTerminalCity       = HomeTerminalCity;
            this.HomeTerminalProvince   = HomeTerminalProvince;
            this.HomeTerminalPostalCode = HomeTerminalPostalCode;
            this.HomeTerminalComment    = HomeTerminalComment;
            this.RestrictionsText       = RestrictionsText;
            this.NextInspectionDate     = NextInspectionDate;
            this.NextInspectionTypeCode = NextInspectionTypeCode;
            this.SchoolDistrict         = SchoolDistrict;
            this.IsIndependentSchool    = IsIndependentSchool;
            this.IndependentSchoolName  = IndependentSchoolName;
            this.UnitNumber             = UnitNumber;
            this.MobilityAidCapacity    = MobilityAidCapacity;
            this.Inspector              = Inspector;
            this.Notes       = Notes;
            this.Attachments = Attachments;
            this.History     = History;
            this.CCWData     = CCWData;
        }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SchoolBus" /> class.
 /// </summary>
 /// <param name="Id">Primary Key (required).</param>
 /// <param name="Regi">The ICBC Registration number for the School Bus.</param>
 /// <param name="Plate">The ICBC Plate Number for the School Bus.</param>
 /// <param name="VIN">The VIN for the School Bus.</param>
 /// <param name="SchoolBusOwner">SchoolBusOwner.</param>
 /// <param name="PermitNumber">The (generated) permit number for the School Bus. This will be added by the Inspector before the School Bus Permit can be printed and the bus can go into service..</param>
 /// <param name="Status">Enumerated type of Status - Inactive, Active, Archived.</param>
 /// <param name="IsOutOfProvince">IsOutOfProvince.</param>
 /// <param name="ServiceArea">ServiceArea.</param>
 /// <param name="HomeTerminalAddr1">Address 1 of physical location of the School Bus..</param>
 /// <param name="HomeTerminalAddr2">Address 2 of physical location of the School Bus..</param>
 /// <param name="HomeTerminalCity">City of physical location of the School Bus..</param>
 /// <param name="HomeTerminalProvince">Province of physical location of the School Bus - free form..</param>
 /// <param name="HomeTerminalPostalCode">Postal Code of physical location of the School Bus..</param>
 /// <param name="HomeTerminalComment">A comment about the physical location of the bus so that the Inspector can more easily find it for an inspection.</param>
 /// <param name="Restrictions">Text of any restrictions to be printed on the school bus permit..</param>
 /// <param name="NextInspectionDate">The next inspection date for this School Bus. Set at the time an inspection is set..</param>
 /// <param name="NextInspectionType">An enumerated type (by the UI) to indicate the type of the next inspection - Annual or Re-inspection based on the Pass/Fail status of the most recent inspection..</param>
 /// <param name="SchoolBusDistrict">The School District in which the School Bus operates. The school bus may or may not be associated with the School District itself - we just track where it is regardless..</param>
 /// <param name="IsIndependentSchool">True if the School Bus is associated with an Independent School. If true, the name of the Independent School should be in the companion field..</param>
 /// <param name="NameOfIndependentSchool">The name of the Independent School to which the School Bus is associated. Should be null if the companion isIndependentSchool is false..</param>
 /// <param name="SchoolBusClass">The enumerated class of School Bus..</param>
 /// <param name="SchoolBusBodyType">The enumerated body type of the School Bus..</param>
 /// <param name="SchoolBusBodyTypeOther">The enumerated body type of the School Bus..</param>
 /// <param name="SchoolBusUnitNumber">The unit number of the Bus as defined by the School Bus owner - freeform text..</param>
 /// <param name="SchoolBusSeatingCapacity">The maximum number of passengers in the bus based on the specific use of the bus. For example, the same 2-per seat / 24-passenger model might have a seating capacity of 36 if the specific bus is to be used for small children, 3 per seat..</param>
 /// <param name="MobilityAidCapacity">The number of mobility aid passenger seats in the bus..</param>
 public SchoolBus(int Id, string Regi = null, string Plate = null, string VIN = null, SchoolBusOwner SchoolBusOwner = null, string PermitNumber = null, string Status = null, bool?IsOutOfProvince = null, ServiceArea ServiceArea = null, string HomeTerminalAddr1 = null, string HomeTerminalAddr2 = null, City HomeTerminalCity = null, string HomeTerminalProvince = null, string HomeTerminalPostalCode = null, string HomeTerminalComment = null, string Restrictions = null, DateTime?NextInspectionDate = null, string NextInspectionType = null, SchoolDistrict SchoolBusDistrict = null, bool?IsIndependentSchool = null, string NameOfIndependentSchool = null, string SchoolBusClass = null, string SchoolBusBodyType = null, string SchoolBusBodyTypeOther = null, string SchoolBusUnitNumber = null, int?SchoolBusSeatingCapacity = null, int?MobilityAidCapacity = null)
 {
     this.Id                       = Id;
     this.Regi                     = Regi;
     this.Plate                    = Plate;
     this.VIN                      = VIN;
     this.SchoolBusOwner           = SchoolBusOwner;
     this.PermitNumber             = PermitNumber;
     this.Status                   = Status;
     this.IsOutOfProvince          = IsOutOfProvince;
     this.ServiceArea              = ServiceArea;
     this.HomeTerminalAddr1        = HomeTerminalAddr1;
     this.HomeTerminalAddr2        = HomeTerminalAddr2;
     this.HomeTerminalCity         = HomeTerminalCity;
     this.HomeTerminalProvince     = HomeTerminalProvince;
     this.HomeTerminalPostalCode   = HomeTerminalPostalCode;
     this.HomeTerminalComment      = HomeTerminalComment;
     this.Restrictions             = Restrictions;
     this.NextInspectionDate       = NextInspectionDate;
     this.NextInspectionType       = NextInspectionType;
     this.SchoolBusDistrict        = SchoolBusDistrict;
     this.IsIndependentSchool      = IsIndependentSchool;
     this.NameOfIndependentSchool  = NameOfIndependentSchool;
     this.SchoolBusClass           = SchoolBusClass;
     this.SchoolBusBodyType        = SchoolBusBodyType;
     this.SchoolBusBodyTypeOther   = SchoolBusBodyTypeOther;
     this.SchoolBusUnitNumber      = SchoolBusUnitNumber;
     this.SchoolBusSeatingCapacity = SchoolBusSeatingCapacity;
     this.MobilityAidCapacity      = MobilityAidCapacity;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SchoolBusOwnerHistory" /> class.
 /// </summary>
 /// <param name="Id">Primary Key (required).</param>
 /// <param name="SchoolBusOwner">SchoolBusOwner.</param>
 public SchoolBusOwnerHistory(int Id, SchoolBusOwner SchoolBusOwner = null)
 {
     this.Id             = Id;
     this.SchoolBusOwner = SchoolBusOwner;
 }