Skip to content

Commit 481fb36

Browse files
committed
ECER=5270: ICRA country changes in dynamics added
1 parent c6123ec commit 481fb36

19 files changed

+4081
-2
lines changed

src/ECER.Resources.Documents/ICRA/ICRARepositoryMapper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public ICRARepositoryMapper()
2323
.ForSourceMember(s => s.DeletedFiles, opts => opts.DoNotValidate())
2424
.ForSourceMember(s => s.Files, opts => opts.DoNotValidate())
2525
.ForMember(d => d.ecer_InternationalCertificationId, opts => opts.MapFrom(s => s.Id))
26-
.ForMember(d => d.ecer_Country, opts => opts.MapFrom(s => string.IsNullOrEmpty(s.CountryId) ? null : new EntityReference("ecer_country", Guid.Parse(s.CountryId))))
2726
.ForMember(d => d.ecer_AuthorityName, opts => opts.MapFrom(s => s.NameOfRegulatoryAuthority))
2827
.ForMember(d => d.ecer_AuthorityEmail, opts => opts.MapFrom(s => s.EmailOfRegulatoryAuthority))
2928
.ForMember(d => d.ecer_AuthorityPhone, opts => opts.MapFrom(s => s.PhoneOfRegulatoryAuthority))

src/ECER.Utilities.DataverseSdk/Model/EcerContext.cs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,28 @@ public System.Linq.IQueryable<ECER.Utilities.DataverseSdk.Model.ecer_programappl
953953
}
954954
}
955955

956+
/// <summary>
957+
/// Gets a binding to the set of all <see cref="ECER.Utilities.DataverseSdk.Model.ecer_ProgramApplicationComponent"/> entities.
958+
/// </summary>
959+
public System.Linq.IQueryable<ECER.Utilities.DataverseSdk.Model.ecer_ProgramApplicationComponent> ecer_ProgramApplicationComponentSet
960+
{
961+
get
962+
{
963+
return this.CreateQuery<ECER.Utilities.DataverseSdk.Model.ecer_ProgramApplicationComponent>();
964+
}
965+
}
966+
967+
/// <summary>
968+
/// Gets a binding to the set of all <see cref="ECER.Utilities.DataverseSdk.Model.ecer_ProgramApplicationComponentGroup"/> entities.
969+
/// </summary>
970+
public System.Linq.IQueryable<ECER.Utilities.DataverseSdk.Model.ecer_ProgramApplicationComponentGroup> ecer_ProgramApplicationComponentGroupSet
971+
{
972+
get
973+
{
974+
return this.CreateQuery<ECER.Utilities.DataverseSdk.Model.ecer_ProgramApplicationComponentGroup>();
975+
}
976+
}
977+
956978
/// <summary>
957979
/// Gets a binding to the set of all <see cref="ECER.Utilities.DataverseSdk.Model.ecer_ProgramAreaAssessment"/> entities.
958980
/// </summary>
@@ -986,6 +1008,28 @@ public System.Linq.IQueryable<ECER.Utilities.DataverseSdk.Model.ecer_ProvincialR
9861008
}
9871009
}
9881010

1011+
/// <summary>
1012+
/// Gets a binding to the set of all <see cref="ECER.Utilities.DataverseSdk.Model.ecer_PSPComponent"/> entities.
1013+
/// </summary>
1014+
public System.Linq.IQueryable<ECER.Utilities.DataverseSdk.Model.ecer_PSPComponent> ecer_PSPComponentSet
1015+
{
1016+
get
1017+
{
1018+
return this.CreateQuery<ECER.Utilities.DataverseSdk.Model.ecer_PSPComponent>();
1019+
}
1020+
}
1021+
1022+
/// <summary>
1023+
/// Gets a binding to the set of all <see cref="ECER.Utilities.DataverseSdk.Model.ecer_PSPComponentGroup"/> entities.
1024+
/// </summary>
1025+
public System.Linq.IQueryable<ECER.Utilities.DataverseSdk.Model.ecer_PSPComponentGroup> ecer_PSPComponentGroupSet
1026+
{
1027+
get
1028+
{
1029+
return this.CreateQuery<ECER.Utilities.DataverseSdk.Model.ecer_PSPComponentGroup>();
1030+
}
1031+
}
1032+
9891033
/// <summary>
9901034
/// Gets a binding to the set of all <see cref="ECER.Utilities.DataverseSdk.Model.ecer_PSPInterviewQuestion"/> entities.
9911035
/// </summary>

src/ECER.Utilities.DataverseSdk/Model/Entities/ECER_PostsecondaryInstitute.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public partial class Fields
6363
public const string ecer_Auspice = "ecer_auspice";
6464
public const string ecer_auspiceName = "ecer_auspicename";
6565
public const string ecer_bcgov_documenturl_psiid_ecer_postsecondaryinstitute = "ecer_bcgov_documenturl_psiid_ecer_postsecondaryinstitute";
66+
public const string ecer_BusinessBCeID = "ecer_businessbceid";
6667
public const string ecer_City = "ecer_city";
6768
public const string ecer_contact_representedpsiid_ecer_postsecondaryinstitute = "ecer_contact_representedpsiid_ecer_postsecondaryinstitute";
6869
public const string ecer_Country = "ecer_country";
@@ -318,6 +319,21 @@ public string ecer_auspiceName
318319
}
319320
}
320321

322+
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_businessbceid")]
323+
public string ecer_BusinessBCeID
324+
{
325+
[System.Diagnostics.DebuggerNonUserCode()]
326+
get
327+
{
328+
return this.GetAttributeValue<string>("ecer_businessbceid");
329+
}
330+
[System.Diagnostics.DebuggerNonUserCode()]
331+
set
332+
{
333+
this.SetAttributeValue("ecer_businessbceid", value);
334+
}
335+
}
336+
321337
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_city")]
322338
public string ecer_City
323339
{

src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_Country.cs

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ public partial class Fields
6363
public const string ecer_CountryId = "ecer_countryid";
6464
public const string Id = "ecer_countryid";
6565
public const string ecer_DisplayOrder = "ecer_displayorder";
66+
public const string ecer_EligibleforICRA = "ecer_eligibleforicra";
67+
public const string ecer_eligibleforicraName = "ecer_eligibleforicraname";
6668
public const string ecer_historicaldecision_CountryofStudyId_ecer_country = "ecer_historicaldecision_CountryofStudyId_ecer_country";
69+
public const string ecer_icraeligibilityassessment_CountryId = "ecer_icraeligibilityassessment_CountryId";
6770
public const string ecer_icraregulatedjurisdictions_CountryId = "ecer_icraregulatedjurisdictions_CountryId";
6871
public const string ecer_ID = "ecer_id";
6972
public const string ecer_Name = "ecer_name";
@@ -305,6 +308,38 @@ public string ecer_DisplayOrder
305308
}
306309
}
307310

311+
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_eligibleforicra")]
312+
public System.Nullable<bool> ecer_EligibleforICRA
313+
{
314+
[System.Diagnostics.DebuggerNonUserCode()]
315+
get
316+
{
317+
return this.GetAttributeValue<System.Nullable<bool>>("ecer_eligibleforicra");
318+
}
319+
[System.Diagnostics.DebuggerNonUserCode()]
320+
set
321+
{
322+
this.SetAttributeValue("ecer_eligibleforicra", value);
323+
}
324+
}
325+
326+
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_eligibleforicraname")]
327+
public string ecer_eligibleforicraName
328+
{
329+
[System.Diagnostics.DebuggerNonUserCode()]
330+
get
331+
{
332+
if (this.FormattedValues.Contains("ecer_eligibleforicra"))
333+
{
334+
return this.FormattedValues["ecer_eligibleforicra"];
335+
}
336+
else
337+
{
338+
return default(string);
339+
}
340+
}
341+
}
342+
308343
/// <summary>
309344
/// Legacy ID from Oracle database
310345
/// </summary>
@@ -752,6 +787,24 @@ public System.Collections.Generic.IEnumerable<ECER.Utilities.DataverseSdk.Model.
752787
}
753788
}
754789

790+
/// <summary>
791+
/// 1:N ecer_icraeligibilityassessment_CountryId
792+
/// </summary>
793+
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ecer_icraeligibilityassessment_CountryId")]
794+
public System.Collections.Generic.IEnumerable<ECER.Utilities.DataverseSdk.Model.ecer_ICRAEligibilityAssessment> ecer_icraeligibilityassessment_CountryId
795+
{
796+
[System.Diagnostics.DebuggerNonUserCode()]
797+
get
798+
{
799+
return this.GetRelatedEntities<ECER.Utilities.DataverseSdk.Model.ecer_ICRAEligibilityAssessment>("ecer_icraeligibilityassessment_CountryId", null);
800+
}
801+
[System.Diagnostics.DebuggerNonUserCode()]
802+
set
803+
{
804+
this.SetRelatedEntities<ECER.Utilities.DataverseSdk.Model.ecer_ICRAEligibilityAssessment>("ecer_icraeligibilityassessment_CountryId", null, value);
805+
}
806+
}
807+
755808
/// <summary>
756809
/// 1:N ecer_icraregulatedjurisdictions_CountryId
757810
/// </summary>

src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_ECEProgramRepresentative.cs

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,13 @@ public partial class Fields
7575
public const string Id = "ecer_eceprogramrepresentativeid";
7676
public const string ecer_EmailAddress = "ecer_emailaddress";
7777
public const string ecer_FirstName = "ecer_firstname";
78+
public const string ecer_InvitetoPortal = "ecer_invitetoportal";
79+
public const string ecer_invitetoportalName = "ecer_invitetoportalname";
80+
public const string ecer_LastInviteSentDate = "ecer_lastinvitesentdate";
7881
public const string ecer_LastName = "ecer_lastname";
7982
public const string ecer_Name = "ecer_name";
8083
public const string ecer_PhoneNumber = "ecer_phonenumber";
84+
public const string ecer_portalinvitation_psiprogramrepresentativeid = "ecer_portalinvitation_psiprogramrepresentativeid";
8185
public const string ecer_PostSecondaryInstitute = "ecer_postsecondaryinstitute";
8286
public const string ecer_PostSecondaryInstituteName = "ecer_postsecondaryinstitutename";
8387
public const string ecer_postsecondaryinstituteprogramapplicaiton_PSIProgramRepresentative_ecer_eceprogramrepresentativ = "ecer_postsecondaryinstituteprogramapplicaiton_PSIProgramRepresentative_ecer_eceprogramrepresentativ";
@@ -439,6 +443,53 @@ public string ecer_FirstName
439443
}
440444
}
441445

446+
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_invitetoportal")]
447+
public System.Nullable<bool> ecer_InvitetoPortal
448+
{
449+
[System.Diagnostics.DebuggerNonUserCode()]
450+
get
451+
{
452+
return this.GetAttributeValue<System.Nullable<bool>>("ecer_invitetoportal");
453+
}
454+
[System.Diagnostics.DebuggerNonUserCode()]
455+
set
456+
{
457+
this.SetAttributeValue("ecer_invitetoportal", value);
458+
}
459+
}
460+
461+
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_invitetoportalname")]
462+
public string ecer_invitetoportalName
463+
{
464+
[System.Diagnostics.DebuggerNonUserCode()]
465+
get
466+
{
467+
if (this.FormattedValues.Contains("ecer_invitetoportal"))
468+
{
469+
return this.FormattedValues["ecer_invitetoportal"];
470+
}
471+
else
472+
{
473+
return default(string);
474+
}
475+
}
476+
}
477+
478+
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_lastinvitesentdate")]
479+
public System.Nullable<System.DateTime> ecer_LastInviteSentDate
480+
{
481+
[System.Diagnostics.DebuggerNonUserCode()]
482+
get
483+
{
484+
return this.GetAttributeValue<System.Nullable<System.DateTime>>("ecer_lastinvitesentdate");
485+
}
486+
[System.Diagnostics.DebuggerNonUserCode()]
487+
set
488+
{
489+
this.SetAttributeValue("ecer_lastinvitesentdate", value);
490+
}
491+
}
492+
442493
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_lastname")]
443494
public string ecer_LastName
444495
{
@@ -980,6 +1031,24 @@ public System.Collections.Generic.IEnumerable<ECER.Utilities.DataverseSdk.Model.
9801031
}
9811032
}
9821033

1034+
/// <summary>
1035+
/// 1:N ecer_portalinvitation_psiprogramrepresentativeid
1036+
/// </summary>
1037+
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ecer_portalinvitation_psiprogramrepresentativeid")]
1038+
public System.Collections.Generic.IEnumerable<ECER.Utilities.DataverseSdk.Model.ecer_PortalInvitation> ecer_portalinvitation_psiprogramrepresentativeid
1039+
{
1040+
[System.Diagnostics.DebuggerNonUserCode()]
1041+
get
1042+
{
1043+
return this.GetRelatedEntities<ECER.Utilities.DataverseSdk.Model.ecer_PortalInvitation>("ecer_portalinvitation_psiprogramrepresentativeid", null);
1044+
}
1045+
[System.Diagnostics.DebuggerNonUserCode()]
1046+
set
1047+
{
1048+
this.SetRelatedEntities<ECER.Utilities.DataverseSdk.Model.ecer_PortalInvitation>("ecer_portalinvitation_psiprogramrepresentativeid", null, value);
1049+
}
1050+
}
1051+
9831052
/// <summary>
9841053
/// 1:N ecer_postsecondaryinstituteprogramapplicaiton_PSIProgramRepresentative_ecer_eceprogramrepresentativ
9851054
/// </summary>

src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_HistoricalDecision.cs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ public partial class Fields
8383
public const string ecer_Institution = "ecer_institution";
8484
public const string ecer_Name = "ecer_name";
8585
public const string ecer_nameofcredential = "ecer_nameofcredential";
86+
public const string ecer_NameofCredentialsChoice = "ecer_nameofcredentialschoice";
87+
public const string ecer_nameofcredentialschoiceName = "ecer_nameofcredentialschoicename";
8688
public const string ecer_programname = "ecer_programname";
8789
public const string ecer_province = "ecer_province";
8890
public const string ecer_Type = "ecer_type";
@@ -542,6 +544,38 @@ public string ecer_nameofcredential
542544
}
543545
}
544546

547+
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_nameofcredentialschoice")]
548+
public virtual ecer_NameofCredential? ecer_NameofCredentialsChoice
549+
{
550+
[System.Diagnostics.DebuggerNonUserCode()]
551+
get
552+
{
553+
return ((ecer_NameofCredential?)(EntityOptionSetEnum.GetEnum(this, "ecer_nameofcredentialschoice")));
554+
}
555+
[System.Diagnostics.DebuggerNonUserCode()]
556+
set
557+
{
558+
this.SetAttributeValue("ecer_nameofcredentialschoice", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null);
559+
}
560+
}
561+
562+
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_nameofcredentialschoicename")]
563+
public string ecer_nameofcredentialschoiceName
564+
{
565+
[System.Diagnostics.DebuggerNonUserCode()]
566+
get
567+
{
568+
if (this.FormattedValues.Contains("ecer_nameofcredentialschoice"))
569+
{
570+
return this.FormattedValues["ecer_nameofcredentialschoice"];
571+
}
572+
else
573+
{
574+
return default(string);
575+
}
576+
}
577+
}
578+
545579
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_programname")]
546580
public string ecer_programname
547581
{

src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_ICRAEligibilityAssessment.cs

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,15 @@ public partial class Fields
9393
public const string ecer_CertificateReceivedDate = "ecer_certificatereceiveddate";
9494
public const string ecer_certificatereceivedName = "ecer_certificatereceivedname";
9595
public const string ecer_communication_ICRAEligibilityAssessmentId = "ecer_communication_ICRAEligibilityAssessmentId";
96+
public const string ecer_CountryId = "ecer_countryid";
97+
public const string ecer_CountryIdName = "ecer_countryidname";
9698
public const string ecer_DateSigned = "ecer_datesigned";
9799
public const string ecer_EmploymentReferenceReceived = "ecer_employmentreferencereceived";
98100
public const string ecer_EmploymentReferenceReceivedDate = "ecer_employmentreferencereceiveddate";
99101
public const string ecer_employmentreferencereceivedName = "ecer_employmentreferencereceivedname";
100102
public const string ecer_icraeligibilityassessment_ApplicantId = "ecer_icraeligibilityassessment_ApplicantId";
101103
public const string ecer_icraeligibilityassessment_ApplicationId = "ecer_icraeligibilityassessment_ApplicationId";
104+
public const string ecer_icraeligibilityassessment_CountryId = "ecer_icraeligibilityassessment_CountryId";
102105
public const string ecer_ICRAEligibilityAssessmentId = "ecer_icraeligibilityassessmentid";
103106
public const string Id = "ecer_icraeligibilityassessmentid";
104107
public const string ecer_internationalcertification_EligibilityAssessment_ecer_icraeligibilityassessment = "ecer_internationalcertification_EligibilityAssessment_ecer_icraeligibilityassessment";
@@ -488,6 +491,38 @@ public string ecer_certificatereceivedName
488491
}
489492
}
490493

494+
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_countryid")]
495+
public Microsoft.Xrm.Sdk.EntityReference ecer_CountryId
496+
{
497+
[System.Diagnostics.DebuggerNonUserCode()]
498+
get
499+
{
500+
return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("ecer_countryid");
501+
}
502+
[System.Diagnostics.DebuggerNonUserCode()]
503+
set
504+
{
505+
this.SetAttributeValue("ecer_countryid", value);
506+
}
507+
}
508+
509+
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_countryidname")]
510+
public string ecer_CountryIdName
511+
{
512+
[System.Diagnostics.DebuggerNonUserCode()]
513+
get
514+
{
515+
if (this.FormattedValues.Contains("ecer_countryid"))
516+
{
517+
return this.FormattedValues["ecer_countryid"];
518+
}
519+
else
520+
{
521+
return default(string);
522+
}
523+
}
524+
}
525+
491526
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_datesigned")]
492527
public System.Nullable<System.DateTime> ecer_DateSigned
493528
{
@@ -1150,6 +1185,25 @@ public ECER.Utilities.DataverseSdk.Model.ecer_Application ecer_icraeligibilityas
11501185
}
11511186
}
11521187

1188+
/// <summary>
1189+
/// N:1 ecer_icraeligibilityassessment_CountryId
1190+
/// </summary>
1191+
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_countryid")]
1192+
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ecer_icraeligibilityassessment_CountryId")]
1193+
public ECER.Utilities.DataverseSdk.Model.ecer_Country ecer_icraeligibilityassessment_CountryId
1194+
{
1195+
[System.Diagnostics.DebuggerNonUserCode()]
1196+
get
1197+
{
1198+
return this.GetRelatedEntity<ECER.Utilities.DataverseSdk.Model.ecer_Country>("ecer_icraeligibilityassessment_CountryId", null);
1199+
}
1200+
[System.Diagnostics.DebuggerNonUserCode()]
1201+
set
1202+
{
1203+
this.SetRelatedEntity<ECER.Utilities.DataverseSdk.Model.ecer_Country>("ecer_icraeligibilityassessment_CountryId", null, value);
1204+
}
1205+
}
1206+
11531207
/// <summary>
11541208
/// Constructor for populating via LINQ queries given a LINQ anonymous type
11551209
/// <param name="anonymousType">LINQ anonymous type.</param>

0 commit comments

Comments
 (0)