-
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.
Added GTCWales job for QTS & Inductions
- Loading branch information
Showing
72 changed files
with
8,409 additions
and
100 deletions.
There are no files selected for viewing
2,065 changes: 1,974 additions & 91 deletions
2,065
TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Models/GeneratedCode.cs
Large diffs are not rendered by default.
Oops, something went wrong.
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
17 changes: 17 additions & 0 deletions
17
...stem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateHeQualificationTransactionalQuery.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,17 @@ | ||
namespace TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
public record CreateHeQualificationTransactionalQuery : ICrmTransactionalQuery<Guid> | ||
{ | ||
public required Guid Id { get; init; } | ||
public required Guid ContactId { get; init; } | ||
public required Guid? HECountryId { get; init; } | ||
public required string? HECourseLength { get; init; } | ||
public required Guid? HEEstablishmentId { get; init; } | ||
public required Guid? HEQualificationId { get; init; } | ||
public required dfeta_classdivision? HEClassDivision { get; init; } | ||
public required Guid? HESubject1id { get; init; } | ||
public required Guid? HESubject2id { get; init; } | ||
public required Guid? HESubject3id { get; init; } | ||
public required dfeta_qualification_dfeta_Type? Type { get; init; } | ||
} | ||
|
10 changes: 10 additions & 0 deletions
10
...stem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateInductionPeriodTransactionalQuery.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,10 @@ | ||
namespace TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
public record CreateInductionPeriodTransactionalQuery : ICrmTransactionalQuery<Guid> | ||
{ | ||
public required Guid Id { get; init; } | ||
public required Guid InductionId { get; init; } | ||
public required Guid? AppropriateBodyId { get; init; } | ||
public required DateTime? InductionStartDate { get; init; } | ||
public required DateTime? InductionEndDate { get; init; } | ||
} |
10 changes: 10 additions & 0 deletions
10
...cordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateInductionTransactionalQuery.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,10 @@ | ||
namespace TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
public record CreateInductionTransactionalQuery : ICrmTransactionalQuery<Guid> | ||
{ | ||
public required Guid Id { get; init; } | ||
public required Guid ContactId { get; init; } | ||
public required DateTime? StartDate { get; init; } | ||
public required DateTime? CompletionDate { get; init; } | ||
public required dfeta_InductionStatus InductionStatus { get; init; } | ||
} |
10 changes: 10 additions & 0 deletions
10
...c/TeachingRecordSystem.Core/Dqt/Queries/CreateInitialTeacherTrainingTransactionalQuery.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,10 @@ | ||
namespace TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
public record CreateInitialTeacherTrainingTransactionalQuery : ICrmTransactionalQuery<Guid> | ||
{ | ||
public Guid Id { get; set; } | ||
public required Guid ContactId { get; init; } | ||
public required Guid? CountryId { get; init; } | ||
public required Guid? ITTQualificationId { get; init; } | ||
public required dfeta_ITTResult Result { get; init; } | ||
} |
8 changes: 8 additions & 0 deletions
8
...cordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateIntegrationTransactionQuery.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.Core.Dqt.Queries; | ||
|
||
public record CreateIntegrationTransactionQuery : ICrmQuery<Guid> | ||
{ | ||
public required int TypeId { get; init; } | ||
public required DateTime StartDate { get; init; } | ||
public required string? FileName { get; init; } | ||
} |
17 changes: 17 additions & 0 deletions
17
...hingRecordSystem.Core/Dqt/Queries/CreateIntegrationTransactionRecordTransactionalQuery.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,17 @@ | ||
namespace TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
public record CreateIntegrationTransactionRecordTransactionalQuery : ICrmTransactionalQuery<Guid> | ||
{ | ||
public required Guid IntegrationTransactionId { get; init; } | ||
public required string? Reference { get; init; } | ||
public required Guid? ContactId { get; init; } | ||
public required Guid? InitialTeacherTrainingId { get; init; } | ||
public required Guid? QualificationId { get; init; } | ||
public required Guid? InductionId { get; init; } | ||
public required Guid? InductionPeriodId { get; init; } | ||
public required dfeta_integrationtransactionrecord_dfeta_DuplicateStatus? DuplicateStatus { get; init; } | ||
public required dfeta_integrationtransactionrecord_StatusCode? StatusCode { get; init; } | ||
public required string? FailureMessage { get; init; } | ||
public required string? RowData { get; init; } | ||
public required string? FileName { get; set; } | ||
} |
9 changes: 9 additions & 0 deletions
9
...stem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateQtsRegistrationTransactionalQuery.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 @@ | ||
namespace TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
public record CreateQtsRegistrationTransactionalQuery : ICrmTransactionalQuery<Guid> | ||
{ | ||
public required Guid Id { get; init; } | ||
public required Guid ContactId { get; init; } | ||
public required Guid TeacherStatusId { get; init; } | ||
public required DateTime? QtsDate { get; init; } | ||
} |
3 changes: 3 additions & 0 deletions
3
...stem/src/TeachingRecordSystem.Core/Dqt/Queries/FindActiveOrganisationsByOrgNumberQuery.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,3 @@ | ||
namespace TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
public record FindActiveOrganisationsByAccountNumberQuery(string AccountNumber) : ICrmQuery<Account[]>; |
4 changes: 4 additions & 0 deletions
4
...TeachingRecordSystem.Core/Dqt/Queries/GetActiveInitialTeacherTrainingsByContactIdQuery.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,4 @@ | ||
namespace TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
public record GetActiveInitialTeacherTrainingsByContactIdQuery(Guid ContactId) : | ||
ICrmQuery<dfeta_initialteachertraining[]>; |
3 changes: 3 additions & 0 deletions
3
...ordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/GetAllActiveIttQualificationsQuery.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,3 @@ | ||
namespace TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
public record GetAllActiveIttQualificationsQuery : ICrmQuery<dfeta_ittqualification[]>; |
3 changes: 3 additions & 0 deletions
3
...ingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/GetAllActiveIttSubjectsQuery.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,3 @@ | ||
using TeachingRecordSystem.Core.Dqt; | ||
|
||
public record GetAllActiveIttSubjectsQuery : ICrmQuery<dfeta_ittsubject[]>; |
3 changes: 3 additions & 0 deletions
3
TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/GetAllCountriesQuery.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,3 @@ | ||
namespace TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
public record GetAllCountriesQuery : ICrmQuery<dfeta_country[]>; |
9 changes: 9 additions & 0 deletions
9
...stem/src/TeachingRecordSystem.Core/Dqt/Queries/UpdateInductionPeriodTransactionalQuery.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 @@ | ||
namespace TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
public record UpdateInductionPeriodTransactionalQuery : ICrmTransactionalQuery<bool> | ||
{ | ||
public required Guid InductionPeriodId { get; init; } | ||
public required Guid? AppropriateBodyId { get; init; } | ||
public required DateTime? InductionStartDate { get; init; } | ||
public required DateTime? InductionEndDate { get; init; } | ||
} |
8 changes: 8 additions & 0 deletions
8
...cordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/UpdateInductionTransactionalQuery.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.Core.Dqt.Queries; | ||
|
||
public record UpdateInductionTransactionalQuery : ICrmTransactionalQuery<bool> | ||
{ | ||
public required Guid InductionId { get; init; } | ||
public required DateTime? CompletionDate { get; init; } | ||
public required dfeta_InductionStatus InductionStatus { get; init; } | ||
} |
17 changes: 17 additions & 0 deletions
17
...hingRecordSystem.Core/Dqt/Queries/UpdateIntegrationTransactionRecordTransactionalQuery.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,17 @@ | ||
namespace TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
public record UpdateIntegrationTransactionRecordTransactionalQuery : ICrmTransactionalQuery<bool> | ||
{ | ||
public required Guid IntegrationTransactionRecordId { get; init; } | ||
public required Guid IntegrationTransactionId { get; init; } | ||
public required string? Reference { get; init; } | ||
public required Guid? PersonId { get; init; } | ||
public required Guid? InitialTeacherTrainingId { get; init; } | ||
public required Guid? QualificationId { get; init; } | ||
public required Guid? InductionId { get; init; } | ||
public required Guid? InductionPeriodId { get; init; } | ||
public required dfeta_integrationtransactionrecord_dfeta_DuplicateStatus? DuplicateStatus { get; init; } | ||
public required dfeta_integrationtransactionrecord_StatusCode? StatusCode { get; init; } | ||
public required string? FailureMessage { get; init; } | ||
public required string? RowData { get; init; } | ||
} |
12 changes: 12 additions & 0 deletions
12
...c/TeachingRecordSystem.Core/Dqt/Queries/UpdateIntegrationTransactionTransactionalQuery.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,12 @@ | ||
namespace TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
public record UpdateIntegrationTransactionTransactionalQuery : ICrmTransactionalQuery<bool> | ||
{ | ||
public required Guid IntegrationTransactionId { get; init; } | ||
public required DateTime? EndDate { get; init; } | ||
public required int? TotalCount { get; init; } | ||
public required int? SuccessCount { get; init; } | ||
public required int? DuplicateCount { get; init; } | ||
public required int? FailureCount { get; init; } | ||
public required string? FailureMessage { get; init; } | ||
} |
28 changes: 28 additions & 0 deletions
28
.../TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateHeQualificationTransactionalHandler.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,28 @@ | ||
using Microsoft.Xrm.Sdk.Messages; | ||
using TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
namespace TeachingRecordSystem.Core.Dqt.QueryHandlers; | ||
|
||
public class CreateHeQualificationTransactionalHandler : ICrmTransactionalQueryHandler<CreateHeQualificationTransactionalQuery, Guid> | ||
{ | ||
public Func<Guid> AppendQuery(CreateHeQualificationTransactionalQuery query, RequestBuilder requestBuilder) | ||
{ | ||
var createResponse = requestBuilder.AddRequest<CreateResponse>(new CreateRequest() | ||
{ | ||
Target = new dfeta_qualification() | ||
{ | ||
Id = query.Id, | ||
dfeta_HE_CountryId = query.HECountryId?.ToEntityReference(dfeta_country.EntityLogicalName), | ||
dfeta_HE_ClassDivision = query.HEClassDivision, | ||
dfeta_HE_HEQualificationId = query.HEQualificationId?.ToEntityReference(dfeta_hequalification.EntityLogicalName), | ||
dfeta_Type = query.Type, | ||
dfeta_PersonId = query.ContactId.ToEntityReference(Contact.EntityLogicalName), | ||
dfeta_HE_EstablishmentId = query.HEEstablishmentId?.ToEntityReference(Account.EntityLogicalName), | ||
dfeta_HE_HESubject1Id = query.HESubject1id?.ToEntityReference(dfeta_hesubject.EntityLogicalName), | ||
dfeta_HE_HESubject2Id = query.HESubject2id?.ToEntityReference(dfeta_hesubject.EntityLogicalName), | ||
dfeta_HE_HESubject3Id = query.HESubject3id?.ToEntityReference(dfeta_hesubject.EntityLogicalName), | ||
} | ||
}); | ||
return () => createResponse.GetResponse().id; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
.../TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateInductionPeriodTransactionalHandler.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 Microsoft.Xrm.Sdk.Messages; | ||
using TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
namespace TeachingRecordSystem.Core.Dqt.QueryHandlers; | ||
|
||
public class CreateInductionPeriodTransactionalHandler : ICrmTransactionalQueryHandler<CreateInductionPeriodTransactionalQuery, Guid> | ||
{ | ||
public Func<Guid> AppendQuery(CreateInductionPeriodTransactionalQuery query, RequestBuilder requestBuilder) | ||
{ | ||
var createResponse = requestBuilder.AddRequest<CreateResponse>(new CreateRequest() | ||
{ | ||
Target = new dfeta_inductionperiod() | ||
{ | ||
Id = query.Id, | ||
dfeta_InductionId = query.InductionId.ToEntityReference(dfeta_induction.EntityLogicalName), | ||
dfeta_AppropriateBodyId = query.AppropriateBodyId?.ToEntityReference(Account.EntityLogicalName), | ||
dfeta_StartDate = query.InductionStartDate, | ||
dfeta_EndDate = query.InductionEndDate, | ||
} | ||
}); | ||
|
||
return () => createResponse.GetResponse().id; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...em/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateInductionTransactionalHandler.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,23 @@ | ||
using Microsoft.Xrm.Sdk.Messages; | ||
using TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
namespace TeachingRecordSystem.Core.Dqt.QueryHandlers; | ||
|
||
public class CreateInductionTransactionalHandler : ICrmTransactionalQueryHandler<CreateInductionTransactionalQuery, Guid> | ||
{ | ||
public Func<Guid> AppendQuery(CreateInductionTransactionalQuery query, RequestBuilder requestBuilder) | ||
{ | ||
var createResponse = requestBuilder.AddRequest<CreateResponse>(new CreateRequest() | ||
{ | ||
Target = new dfeta_induction() | ||
{ | ||
Id = query.Id, | ||
dfeta_PersonId = query.ContactId.ToEntityReference(Contact.EntityLogicalName), | ||
dfeta_StartDate = query.StartDate, | ||
dfeta_CompletionDate = query.CompletionDate, | ||
dfeta_InductionStatus = query.InductionStatus, | ||
} | ||
}); | ||
return () => createResponse.GetResponse().id; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...ngRecordSystem.Core/Dqt/QueryHandlers/CreateInitialTeacherTrainingTransactionalHandler.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,23 @@ | ||
using Microsoft.Xrm.Sdk.Messages; | ||
using TeachingRecordSystem.Core.Dqt.Queries; | ||
|
||
namespace TeachingRecordSystem.Core.Dqt.QueryHandlers; | ||
|
||
public class CreateInitialTeacherTrainingTransactionalHandler : ICrmTransactionalQueryHandler<CreateInitialTeacherTrainingTransactionalQuery, Guid> | ||
{ | ||
public Func<Guid> AppendQuery(CreateInitialTeacherTrainingTransactionalQuery query, RequestBuilder requestBuilder) | ||
{ | ||
var createResponse = requestBuilder.AddRequest<CreateResponse>(new CreateRequest() | ||
{ | ||
Target = new dfeta_initialteachertraining() | ||
{ | ||
Id = query.Id, | ||
dfeta_PersonId = query.ContactId.ToEntityReference(Contact.EntityLogicalName), | ||
dfeta_CountryId = query.CountryId?.ToEntityReference(dfeta_country.EntityLogicalName), | ||
dfeta_ITTQualificationId = query.ITTQualificationId?.ToEntityReference(dfeta_qualification.EntityLogicalName), | ||
dfeta_Result = query.Result | ||
} | ||
}); | ||
return () => createResponse.GetResponse().id; | ||
} | ||
} |
Oops, something went wrong.