/// <summary> /// Initializes a new instance of the <see cref="Inspection" /> class. /// </summary> /// <param name="Id">Primary Key make this match the Inspection Details page (required).</param> /// <param name="SchoolBus">SchoolBus.</param> /// <param name="Inspector">Defaults for a new inspection to the current user, but can be changed as needed..</param> /// <param name="InspectionDate">The date the inspection was conducted..</param> /// <param name="InspectionType">The type of the inspection - enumerated type of Annual or Re-inspection, pulled from the School Bus record at the time the inspection record is created.</param> /// <param name="InspectionResult">The result of the inspection - enumerated type of Passed or Failed. The detailed results of the inspection are in RIP and not duplicated here..</param> /// <param name="Notes">A note about the inspection independent of what goes into the RIP inspection - this is just for the School Bus application..</param> /// <param name="Restrictions">The \"Restrictions\" text from the School Bus record. This is visible on the Inspections screen as a convenience for adjusting it prior to printing the Permit Page..</param> /// <param name="RIPInspectionId">The ID of the RIP inspection. The expectation is that the user will manually enter a RIP ID such that an external URL can be formed to allow the user to open the RIP inspection and see the inspection details..</param> public Inspection(int Id, SchoolBus SchoolBus = null, User Inspector = null, DateTime?InspectionDate = null, string InspectionType = null, string InspectionResult = null, string Notes = null, string Restrictions = null, string RIPInspectionId = null) { this.Id = Id; this.SchoolBus = SchoolBus; this.Inspector = Inspector; this.InspectionDate = InspectionDate; this.InspectionType = InspectionType; this.InspectionResult = InspectionResult; this.Notes = Notes; this.Restrictions = Restrictions; this.RIPInspectionId = RIPInspectionId; }
/// <summary> /// Initializes a new instance of the <see cref="NotificationEvent" /> class. /// </summary> /// <param name="Id">Primary Key (required).</param> /// <param name="EventTime">EventTime.</param> /// <param name="EventTypeCode">EventTypeCode.</param> /// <param name="EventSubTypeCode">EventSubTypeCode.</param> /// <param name="Notes">Notes.</param> /// <param name="NotificationGenerated">NotificationGenerated.</param> /// <param name="SchoolBus">SchoolBus.</param> public NotificationEvent(int Id, string EventTime = null, string EventTypeCode = null, string EventSubTypeCode = null, string Notes = null, bool?NotificationGenerated = null, SchoolBus SchoolBus = null) { this.Id = Id; this.EventTime = EventTime; this.EventTypeCode = EventTypeCode; this.EventSubTypeCode = EventSubTypeCode; this.Notes = Notes; this.NotificationGenerated = NotificationGenerated; this.SchoolBus = SchoolBus; }
/// <summary> /// Initializes a new instance of the <see cref="SchoolBusAttachment" /> class. /// </summary> /// <param name="Id">Primary Key (required).</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> /// <param name="SchoolBus">SchoolBus.</param> public SchoolBusAttachment(int Id, string InternalFileName = null, string ExternalFileName = null, string Description = null, SchoolBus SchoolBus = null) { this.Id = Id; this.InternalFileName = InternalFileName; this.ExternalFileName = ExternalFileName; this.Description = Description; this.SchoolBus = SchoolBus; }
/// <summary> /// Initializes a new instance of the <see cref="SchoolBusHistory" /> class. /// </summary> /// <param name="Id">Primary Key (required).</param> /// <param name="SchoolBus">SchoolBus.</param> public SchoolBusHistory(int Id, SchoolBus SchoolBus = null) { this.Id = Id; this.SchoolBus = SchoolBus; }
/// <summary> /// Initializes a new instance of the <see cref="Inspection" /> class. /// </summary> /// <param name="Id">A system-generated unique identifier for an Inspection (required).</param> /// <param name="InspectionDate">The date and time the inspection was conducted. (required).</param> /// <param name="InspectionTypeCode">The type of the inspection - enumerated type of Annual or Re-inspection, pulled from the School Bus record at the time the inspection record is created (required).</param> /// <param name="InspectionResultCode">The result of the inspection - enumerated type of Passed or Failed. The detailed results of the inspection are in RIP and not duplicated here. (required).</param> /// <param name="CreatedDate">Record creation date and time (required).</param> /// <param name="SchoolBus">A foreign key reference to the system-generated unique identifier for a School Bus.</param> /// <param name="Inspector">Defaults for a new inspection to the current user, but can be changed as needed..</param> /// <param name="Notes">A note about the inspection independent of what goes into the RIP inspection - this is just for the School Bus application..</param> /// <param name="RIPInspectionId">The ID of the RIP inspection. The expectation is that the user will manually enter a RIP ID such that an external URL can be formed to allow the user to open the RIP inspection and see the inspection details..</param> /// <param name="PreviousNextInspectionDate">The next inspection date for the related School Bus prior to the creation of this record.</param> /// <param name="PreviousNextInspectionTypeCode">The next inspection type code for the related School Bus prior to the creation of this record.</param> public Inspection(int Id, DateTime InspectionDate, string InspectionTypeCode, string InspectionResultCode, DateTime CreatedDate, SchoolBus SchoolBus = null, User Inspector = null, string Notes = null, string RIPInspectionId = null, DateTime?PreviousNextInspectionDate = null, string PreviousNextInspectionTypeCode = null) { this.Id = Id; this.InspectionDate = InspectionDate; this.InspectionTypeCode = InspectionTypeCode; this.InspectionResultCode = InspectionResultCode; this.CreatedDate = CreatedDate; this.SchoolBus = SchoolBus; this.Inspector = Inspector; this.Notes = Notes; this.RIPInspectionId = RIPInspectionId; this.PreviousNextInspectionDate = PreviousNextInspectionDate; this.PreviousNextInspectionTypeCode = PreviousNextInspectionTypeCode; }
/// <summary> /// Initializes a new instance of the <see cref="SchoolBusNote" /> class. /// </summary> /// <param name="Id">Primary Key (required).</param> /// <param name="Note">The contents of the note..</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="SchoolBus">SchoolBus.</param> public SchoolBusNote(int Id, string Note = null, bool?IsNoLongerRelevant = null, SchoolBus SchoolBus = null) { this.Id = Id; this.Note = Note; this.IsNoLongerRelevant = IsNoLongerRelevant; this.SchoolBus = SchoolBus; }