-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into induction-view-details
- Loading branch information
Showing
85 changed files
with
1,854 additions
and
725 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
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
49 changes: 49 additions & 0 deletions
49
...ingRecordSystem/src/TeachingRecordSystem.Api/V3/Implementation/Dtos/DqtInductionStatus.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,49 @@ | ||
using TeachingRecordSystem.Core.Dqt.Models; | ||
|
||
namespace TeachingRecordSystem.Api.V3.Implementation.Dtos; | ||
|
||
public enum DqtInductionStatus | ||
{ | ||
Exempt = 1, | ||
Fail = 2, | ||
FailedInWales = 3, | ||
InductionExtended = 4, | ||
InProgress = 5, | ||
NotYetCompleted = 6, | ||
Pass = 7, | ||
PassedInWales = 8, | ||
RequiredToComplete = 9, | ||
} | ||
|
||
public static class DqtInductionStatusExtensions | ||
{ | ||
public static DqtInductionStatus ConvertToDqtInductionStatus(this dfeta_InductionStatus input) => input switch | ||
{ | ||
dfeta_InductionStatus.Exempt => DqtInductionStatus.Exempt, | ||
dfeta_InductionStatus.Fail => DqtInductionStatus.Fail, | ||
dfeta_InductionStatus.FailedinWales => DqtInductionStatus.FailedInWales, | ||
dfeta_InductionStatus.InductionExtended => DqtInductionStatus.InductionExtended, | ||
dfeta_InductionStatus.InProgress => DqtInductionStatus.InProgress, | ||
dfeta_InductionStatus.NotYetCompleted => DqtInductionStatus.NotYetCompleted, | ||
dfeta_InductionStatus.Pass => DqtInductionStatus.Pass, | ||
dfeta_InductionStatus.PassedinWales => DqtInductionStatus.PassedInWales, | ||
dfeta_InductionStatus.RequiredtoComplete => DqtInductionStatus.RequiredToComplete, | ||
_ => throw new ArgumentException($"Unknown {nameof(DqtInductionStatus)}: '{input}'.") | ||
}; | ||
|
||
public static string GetDescription(this dfeta_InductionStatus input) => ConvertToDqtInductionStatus(input).GetDescription(); | ||
|
||
public static string GetDescription(this DqtInductionStatus input) => input switch | ||
{ | ||
DqtInductionStatus.Exempt => "Exempt", | ||
DqtInductionStatus.Fail => "Fail", | ||
DqtInductionStatus.FailedInWales => "Failed in Wales", | ||
DqtInductionStatus.InductionExtended => "Extended", | ||
DqtInductionStatus.InProgress => "In progress", | ||
DqtInductionStatus.NotYetCompleted => "Not yet completed", | ||
DqtInductionStatus.Pass => "Pass", | ||
DqtInductionStatus.PassedInWales => "Passed in Wales", | ||
DqtInductionStatus.RequiredToComplete => "Required to complete", | ||
_ => throw new ArgumentException($"Unknown {nameof(DqtInductionStatus)}: '{input}'.") | ||
}; | ||
} |
4 changes: 2 additions & 2 deletions
4
...mplementation/Dtos/InductionStatusInfo.cs → ...ementation/Dtos/DqtInductionStatusInfo.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
namespace TeachingRecordSystem.Api.V3.Implementation.Dtos; | ||
|
||
public record InductionStatusInfo | ||
public record DqtInductionStatusInfo | ||
{ | ||
public required InductionStatus Status { get; init; } | ||
public required DqtInductionStatus Status { get; init; } | ||
public required string StatusDescription { get; init; } | ||
} |
2 changes: 1 addition & 1 deletion
2
TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/Implementation/Dtos/Gender.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
8 changes: 8 additions & 0 deletions
8
TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/Implementation/Dtos/InductionInfo.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,8 @@ | ||
namespace TeachingRecordSystem.Api.V3.Implementation.Dtos; | ||
|
||
public record InductionInfo | ||
{ | ||
public required InductionStatus Status { get; init; } | ||
public required DateOnly? StartDate { get; init; } | ||
public required DateOnly? CompletedDate { get; init; } | ||
} |
49 changes: 0 additions & 49 deletions
49
TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/Implementation/Dtos/InductionStatus.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.