-
Notifications
You must be signed in to change notification settings - Fork 2
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 #759 from bcgov/yj
Yj
- Loading branch information
Showing
12 changed files
with
162 additions
and
16 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
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
13 changes: 13 additions & 0 deletions
13
server/StrDss.Model/OrganizationDtos/JurisdictionUpdateDto.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,13 @@ | ||
namespace StrDss.Model.OrganizationDtos | ||
{ | ||
public class JurisdictionUpdateDto | ||
{ | ||
public long OrganizationId { get; set; } | ||
public long? ManagingOrganizationId { get; set; } | ||
public bool? IsPrincipalResidenceRequired { get; set; } | ||
public bool? IsStrProhibited { get; set; } | ||
public bool? IsBusinessLicenceRequired { get; set; } | ||
public string? EconomicRegionDsc { get; set; } | ||
public DateTime UpdDtm { get; set; } | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using StrDss.Common; | ||
|
||
namespace StrDss.Service | ||
{ | ||
public class JurisdictionValidationRules | ||
{ | ||
public static void LoadJurisdictionValidationRules(List<FieldValidationRule> rules) | ||
{ | ||
rules.Add(new FieldValidationRule | ||
{ | ||
EntityName = Entities.Jurisdiction, | ||
FieldName = JurisdictionFields.IsPrincipalResidenceRequired, | ||
FieldType = FieldTypes.Bool, | ||
Required = true | ||
}); | ||
|
||
rules.Add(new FieldValidationRule | ||
{ | ||
EntityName = Entities.Jurisdiction, | ||
FieldName = JurisdictionFields.IsStrProhibited, | ||
FieldType = FieldTypes.Bool, | ||
Required = true | ||
}); | ||
|
||
rules.Add(new FieldValidationRule | ||
{ | ||
EntityName = Entities.Jurisdiction, | ||
FieldName = JurisdictionFields.IsBusinessLicenceRequired, | ||
FieldType = FieldTypes.Bool, | ||
Required = true | ||
}); | ||
|
||
rules.Add(new FieldValidationRule | ||
{ | ||
EntityName = Entities.Jurisdiction, | ||
FieldName = JurisdictionFields.EconomicRegionDsc, | ||
FieldType = FieldTypes.String, | ||
Required = false, | ||
CodeSet = CodeSet.EconomicRegions, | ||
}); | ||
} | ||
} | ||
} |
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