-
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 #755 from bcgov/yj
Yj
- Loading branch information
Showing
15 changed files
with
237 additions
and
7 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace StrDss.Model.OrganizationDtos | ||
{ | ||
public class LocalGovUpdateDto | ||
{ | ||
public long OrganizationId { get; set; } | ||
public string OrganizationNm { get; set; } = ""; | ||
public string LocalGovernmentType { get; set; } = ""; | ||
public string BusinessLicenceFormatTxt { 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,49 @@ | ||
using StrDss.Common; | ||
|
||
namespace StrDss.Service | ||
{ | ||
public class LocalGovValidationRules | ||
{ | ||
public static void LoadLocalGovValidationRules(List<FieldValidationRule> rules) | ||
{ | ||
rules.Add(new FieldValidationRule | ||
{ | ||
EntityName = Entities.LocalGov, | ||
FieldName = LocalGovFields.OrganizationCd, | ||
FieldType = FieldTypes.String, | ||
Required = true, | ||
MaxLength = 25, | ||
MinLength = 1, | ||
}); | ||
|
||
rules.Add(new FieldValidationRule | ||
{ | ||
EntityName = Entities.LocalGov, | ||
FieldName = LocalGovFields.OrganizationNm, | ||
FieldType = FieldTypes.String, | ||
Required = true, | ||
MaxLength = 250, | ||
MinLength = 1, | ||
}); | ||
|
||
rules.Add(new FieldValidationRule | ||
{ | ||
EntityName = Entities.LocalGov, | ||
FieldName = LocalGovFields.LocalGovernmentType, | ||
FieldType = FieldTypes.String, | ||
Required = true, | ||
CodeSet = CodeSet.LocalGovTypes, | ||
}); | ||
|
||
rules.Add(new FieldValidationRule | ||
{ | ||
EntityName = Entities.LocalGov, | ||
FieldName = LocalGovFields.BusinessLicenceFormatTxt, | ||
FieldType = FieldTypes.String, | ||
Required = false, | ||
MaxLength = 50, | ||
MinLength = 1, | ||
}); | ||
} | ||
} | ||
} |
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