diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Accounting.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Accounting.cs index aad6ccbf..ec3a848b 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Accounting.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Accounting.cs @@ -324,7 +324,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende new() { ListFormCode = formBank.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Int64, + SourceDbType = DbType.String, FieldName = "PhoneNumber", Width = 150, ListOrderNo = 11, @@ -635,7 +635,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende new() { ListFormCode = listFormBank.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Int64, + SourceDbType = DbType.String, FieldName = "PhoneNumber", Width = 150, ListOrderNo = 11, diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Administration.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Administration.cs index 26bfc68d..9152b91b 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Administration.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Administration.cs @@ -1124,7 +1124,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep RoleId = null, UserId = null, CultureName = LanguageCodes.En, - SourceDbType = DbType.Int64, + SourceDbType = DbType.String, FieldName = "PhoneNumber", Width = 150, ListOrderNo = 5, @@ -2979,7 +2979,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep { ListFormCode = listFormPurchaseOrder.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Int64, + SourceDbType = DbType.String, FieldName = "PhoneNumber", Width = 100, ListOrderNo = 11, @@ -2995,7 +2995,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep { ListFormCode = listFormPurchaseOrder.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Int64, + SourceDbType = DbType.String, FieldName = "MobileNumber", Width = 100, ListOrderNo = 12, @@ -3808,7 +3808,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep { ListFormCode = listFormDemo.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Int64, + SourceDbType = DbType.String, FieldName = "PhoneNumber", Width = 100, ListOrderNo = 5, @@ -4001,7 +4001,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep { ListFormCode = listFormContact.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Int64, + SourceDbType = DbType.String, FieldName = "PhoneNumber", Width = 150, ListOrderNo = 3, @@ -6107,7 +6107,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep { ListFormCode = listFormPsychologist.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Int64, + SourceDbType = DbType.String, FieldName = "PhoneNumber", Width = 150, ListOrderNo = 3, @@ -6320,7 +6320,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep { ListFormCode = listFormLawyer.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Int64, + SourceDbType = DbType.String, FieldName = "MobileNumber", Width = 150, ListOrderNo = 4, @@ -6336,7 +6336,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep { ListFormCode = listFormLawyer.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Int64, + SourceDbType = DbType.String, FieldName = "PhoneNumber", Width = 150, ListOrderNo = 5, diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Hr.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Hr.cs index 77432bdb..2e776edf 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Hr.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Hr.cs @@ -1986,7 +1986,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new() { ListFormCode = listFormEmployee.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Int64, + SourceDbType = DbType.String, FieldName = "PhoneNumber", Width = 100, ListOrderNo = 16, diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Intranet.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Intranet.cs index 8957839a..31027a63 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Intranet.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Intranet.cs @@ -1665,7 +1665,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc new() { ListFormCode = listFormVisitor.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Int64, + SourceDbType = DbType.String, FieldName = "PhoneNumber", Width = 100, ListOrderNo = 5, @@ -1674,7 +1674,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc IsDeleted = false, AllowSearch = true, EditorOptions = EditorOptionValues.PhoneEditorOptions, - ValidationRuleJson = DefaultValidationRuleEmailJson, + ValidationRuleJson = DefaultValidationRuleRequiredJson, ColumnCustomizationJson = DefaultColumnCustomizationJson, PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Visitor), PivotSettingsJson = DefaultPivotSettingsJson @@ -1690,7 +1690,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc IsActive = true, IsDeleted = false, AllowSearch = true, - ValidationRuleJson = DefaultValidationRuleEmailJson, + ValidationRuleJson = DefaultValidationRuleRequiredJson, ColumnCustomizationJson = DefaultColumnCustomizationJson, PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Visitor), PivotSettingsJson = DefaultPivotSettingsJson diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Saas.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Saas.cs index 4393d166..e95291cd 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Saas.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Saas.cs @@ -458,7 +458,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency { ListFormCode = formTenant.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Int64, + SourceDbType = DbType.String, FieldName = "PhoneNumber", Width = 100, ListOrderNo = 17, @@ -1081,7 +1081,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency { ListFormCode = listFormTenants.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Int64, + SourceDbType = DbType.String, FieldName = "PhoneNumber", Width = 100, ListOrderNo = 17, @@ -1561,7 +1561,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency { ListFormCode = listFormBranches.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.Int64, + SourceDbType = DbType.String, FieldName = "PhoneNumber", Width = 100, ListOrderNo = 16, diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/SeederDefaults.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/SeederDefaults.cs index a58ec40a..38bc979c 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/SeederDefaults.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/SeederDefaults.cs @@ -73,7 +73,7 @@ public static class SeederDefaults }); public static readonly string DefaultValidationRuleEmailJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.email) } + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.email), Reevaluate = true, IgnoreEmptyValue = true } }); public static string DefaultPermissionJson(string c, string r, string u, string d, string e, string i, string a) {