-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1092 from DFE-Digital/feature/169468-amend-adviso…
…ry-board-date advisory board dates
- Loading branch information
Showing
46 changed files
with
1,214 additions
and
710 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...e.PrepareConversions.Data/Models/AcademyConversion/ConversionDateReasonForChangeFuture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.ComponentModel; | ||
|
||
namespace Dfe.PrepareConversions.Data.Models.AcademyConversion; | ||
|
||
public enum ConversionDateReasonForChangeFuture | ||
{ | ||
[Description("Incoming trust")] IncomingTrust = 1, | ||
[Description("School")] School = 2, | ||
[Description("LA (local authority)")] LA = 3, | ||
[Description("Diocese")] Diocese = 4, | ||
[Description("TuPE (Transfer of Undertakings Protection of Employments rights)")] TuPE = 5, | ||
[Description("Pensions")] Pensions = 6, | ||
[Description("Union")] Union = 7, | ||
[Description("Negative press coverage")] NegativePressCoverage = 8, | ||
[Description("Governance")] Governance = 9, | ||
[Description("Finance")] Finance = 10, | ||
[Description("Viability")] Viability = 11, | ||
[Description("Land")] Land = 12, | ||
[Description("Buildings")] Buildings = 13, | ||
[Description("Legal documents")] LegalDocuments = 14, | ||
[Description("Correcting an error")] CorrectingAnError = 15, | ||
[Description("Voluntary deferral")] VoluntaryDeferral = 16, | ||
[Description("In a federation")] InAFederation = 17, | ||
} |
9 changes: 9 additions & 0 deletions
9
...Dfe.PrepareConversions.Data/Models/AcademyConversion/ConversionDateReasonForChangePast.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System.ComponentModel; | ||
|
||
namespace Dfe.PrepareConversions.Data.Models.AcademyConversion; | ||
|
||
public enum ConversionDateReasonForChangePast | ||
{ | ||
[Description("Conversion is progressing faster than expected")] ProgressingFaster = 1, | ||
[Description("Correcting an error")] CorrectingAnError = 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Models/OpeningDateHistoryDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Dfe.PrepareConversions.Data.Models | ||
{ | ||
public class OpeningDateHistoryDto | ||
{ | ||
public DateTime ChangedAt { get; set; } | ||
public string ChangedBy { get; set; } | ||
public DateTime? OldDate { get; set; } | ||
public DateTime? NewDate { get; set; } | ||
public List<ReasonChange> ReasonsChanged { get; set; } | ||
} | ||
|
||
|
||
public class ReasonChange | ||
{ | ||
public ReasonChange(string heading, string details) | ||
{ | ||
Heading = heading; | ||
Details = details; | ||
} | ||
|
||
public string Heading { get; set; } | ||
public string Details { get; set; } | ||
|
||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Models/SetProjectDatesModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Dfe.PrepareConversions.Data.Models | ||
{ | ||
public class SetProjectDatesModel | ||
{ | ||
public int Id { get; set; } | ||
public DateTime? AdvisoryBoardDate { get; set; } | ||
public DateTime? PreviousAdvisoryBoard { get; set; } | ||
public DateTime? ProposedConversionDate { get; set; } | ||
public bool? ProjectDatesSectionComplete { get; set; } | ||
public IEnumerable<ReasonChange>? ReasonsChanged { get; set; } | ||
public string? ChangedBy { get; set; } | ||
|
||
public SetProjectDatesModel() { } | ||
|
||
public SetProjectDatesModel(int id, DateTime? advisoryBoardDate, DateTime? previousAdvisoryBoard, DateTime? proposedConversionDate, bool? projectDatesSectionComplete, string? changedBy = default, IEnumerable<ReasonChange>? reasonsChanged = default) | ||
{ | ||
Id = id; | ||
AdvisoryBoardDate = advisoryBoardDate; | ||
PreviousAdvisoryBoard = previousAdvisoryBoard; | ||
ProposedConversionDate = proposedConversionDate; | ||
ProjectDatesSectionComplete = projectDatesSectionComplete; | ||
ChangedBy = changedBy; | ||
ReasonsChanged = reasonsChanged; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.