ListFormSeeder
This commit is contained in:
parent
38b2fbe136
commit
45926f391c
27 changed files with 3776 additions and 1920 deletions
|
|
@ -119,12 +119,12 @@ public static class LookupQueryValues
|
||||||
$"\"Name\" AS \"Name\" " +
|
$"\"Name\" AS \"Name\" " +
|
||||||
$"FROM \"{defaultDomain}\".\"dbo\".\"{FullNameTable(TableNameEnum.Branch)}\" " +
|
$"FROM \"{defaultDomain}\".\"dbo\".\"{FullNameTable(TableNameEnum.Branch)}\" " +
|
||||||
$"WHERE " +
|
$"WHERE " +
|
||||||
$"\"TenantId\" = '@TENANTID' " + // 🔹 Bu form doğru — Replace hedefi bu.
|
$"\"TenantId\" = '@TENANTID' " + // 🔹 Bu form doğru — Replace hedefi bu.
|
||||||
$"AND \"IsDeleted\" = 'false' " +
|
$"AND \"IsDeleted\" = 'false' " +
|
||||||
$"AND \"Id\" IN ( " +
|
$"AND \"Id\" IN ( " +
|
||||||
$"SELECT \"BranchId\" " +
|
$"SELECT \"BranchId\" " +
|
||||||
$"FROM \"{FullNameTable(TableNameEnum.BranchUsers)}\" " +
|
$"FROM \"{FullNameTable(TableNameEnum.BranchUsers)}\" " +
|
||||||
$"WHERE \"UserId\" = '@USERID' " + // 🔹 Bu da doğru.
|
$"WHERE \"UserId\" = '@USERID' " + // 🔹 Bu da doğru.
|
||||||
$") " +
|
$") " +
|
||||||
$"ORDER BY \"Name\";";
|
$"ORDER BY \"Name\";";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1163,19 +1163,19 @@
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "Abp.Identity.OrganizationUnits",
|
"key": "Abp.Identity.OrganizationUnits",
|
||||||
"en": "Organization Units",
|
"en": "Organization Units",
|
||||||
"tr": "Organizasyon Şeması"
|
"tr": "Organizasyon Birimleri"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "Abp.Identity.OrganizationUnit.NewOrganizationUnit",
|
"key": "Abp.Identity.OrganizationUnit.NewOrganizationUnit",
|
||||||
"en": "New Organization Unit",
|
"en": "New Organization Unit",
|
||||||
"tr": "Yeni Organizasyon Şeması"
|
"tr": "Yeni Organizasyon Birimi"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "Abp.Identity.OrganizationUnit.CurrentOrganizationUnit",
|
"key": "Abp.Identity.OrganizationUnit.CurrentOrganizationUnit",
|
||||||
"en": "Current Organization Unit",
|
"en": "Current Organization Unit",
|
||||||
"tr": "Güncel Organizasyon Şeması"
|
"tr": "Güncel Organizasyon Birimi"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
|
|
@ -1264,8 +1264,8 @@
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "Abp.Identity.OrganizationUnit.Parent",
|
"key": "Abp.Identity.OrganizationUnit.Parent",
|
||||||
"en": "Parent",
|
"en": "Parent Organization Unit",
|
||||||
"tr": "Üst"
|
"tr": "Üst Organizasyon Birimi"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
|
|
@ -3929,7 +3929,7 @@
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "ListForms.ListFormEdit.IsOrganizationUnit",
|
"key": "ListForms.ListFormEdit.IsOrganizationUnit",
|
||||||
"en": "Is Organization Unit",
|
"en": "Is Organization Unit",
|
||||||
"tr": "Organizasyon Şeması mı?"
|
"tr": "Organizasyon Birimi mi?"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
|
|
@ -9442,7 +9442,7 @@
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Hr.Organization",
|
"key": "App.Hr.Organization",
|
||||||
"tr": "Organizasyon Şeması",
|
"tr": "Organizasyon Birimleri",
|
||||||
"en": "Organization Units"
|
"en": "Organization Units"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -9487,6 +9487,18 @@
|
||||||
"tr": "360° Performance",
|
"tr": "360° Performance",
|
||||||
"en": "360° Performans"
|
"en": "360° Performans"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Crm.CustomerType",
|
||||||
|
"tr": "Müşteri Türleri",
|
||||||
|
"en": "Customer Types"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Crm.CustomerSegment",
|
||||||
|
"tr": "Müşteri Segmentleri",
|
||||||
|
"en": "Customer Segments"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.Crm.Customer",
|
"key": "App.Crm.Customer",
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
#region Bank
|
#region Bank
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Bank))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Bank))
|
||||||
{
|
{
|
||||||
var listFormBank = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -116,7 +116,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
#region Bank Fields
|
#region Bank Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync([
|
await _listFormFieldRepository.InsertManyAsync([
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBank.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -128,13 +128,13 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.Bank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// BranchId
|
// BranchId
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormBank.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "BranchId",
|
FieldName = "BranchId",
|
||||||
|
|
@ -150,11 +150,11 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
LookupQuery = LookupQueryValues.BranchValues,
|
LookupQuery = LookupQueryValues.BranchValues,
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.Bank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBank.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Name",
|
FieldName = "Name",
|
||||||
|
|
@ -168,11 +168,11 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.Bank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBank.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "IdentifierCode",
|
FieldName = "IdentifierCode",
|
||||||
|
|
@ -184,11 +184,11 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.Bank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBank.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Address1",
|
FieldName = "Address1",
|
||||||
|
|
@ -199,11 +199,11 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.Bank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBank.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Address2",
|
FieldName = "Address2",
|
||||||
|
|
@ -214,11 +214,11 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.Bank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBank.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Country",
|
FieldName = "Country",
|
||||||
|
|
@ -237,11 +237,11 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
CascadeEmptyFields = "City,District,Street"
|
CascadeEmptyFields = "City,District,Street"
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.Bank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBank.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "City",
|
FieldName = "City",
|
||||||
|
|
@ -263,11 +263,11 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
CascadeEmptyFields = "District,Street"
|
CascadeEmptyFields = "District,Street"
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.Bank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBank.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "District",
|
FieldName = "District",
|
||||||
|
|
@ -289,11 +289,11 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
CascadeEmptyFields = "Street",
|
CascadeEmptyFields = "Street",
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.Bank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBank.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "PostalCode",
|
FieldName = "PostalCode",
|
||||||
|
|
@ -304,11 +304,11 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.Bank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBank.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "PhoneNumber",
|
FieldName = "PhoneNumber",
|
||||||
|
|
@ -320,11 +320,11 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
EditorOptions = EditorOptionValues.PhoneEditorOptions,
|
EditorOptions = EditorOptionValues.PhoneEditorOptions,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.Bank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBank.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Email",
|
FieldName = "Email",
|
||||||
|
|
@ -336,7 +336,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleEmailJson,
|
ValidationRuleJson = DefaultValidationRuleEmailJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.Bank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
], autoSave: true);
|
], autoSave: true);
|
||||||
|
|
@ -346,7 +346,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
await utils.CloneListFormWithFieldsAsync(
|
await utils.CloneListFormWithFieldsAsync(
|
||||||
_listFormRepository,
|
_listFormRepository,
|
||||||
_listFormFieldRepository,
|
_listFormFieldRepository,
|
||||||
ListFormCodes.Lists.Bank,
|
listForm.ListFormCode,
|
||||||
JsonSerializer.Serialize(new List<dynamic>() {
|
JsonSerializer.Serialize(new List<dynamic>() {
|
||||||
new {
|
new {
|
||||||
TabTitle = "Bank Accounts",
|
TabTitle = "Bank Accounts",
|
||||||
|
|
@ -371,7 +371,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
#region BankAccount
|
#region BankAccount
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.BankAccount))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.BankAccount))
|
||||||
{
|
{
|
||||||
var listFormBankAccount = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -424,7 +424,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
#region Bank Account Fields
|
#region Bank Account Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBankAccount.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -436,11 +436,11 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.BankAccount),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBankAccount.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "BankId",
|
FieldName = "BankId",
|
||||||
|
|
@ -452,11 +452,11 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Bank), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Bank), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.BankAccount),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBankAccount.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "AccountNumber",
|
FieldName = "AccountNumber",
|
||||||
|
|
@ -470,11 +470,11 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.BankAccount),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBankAccount.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "AccountOwner",
|
FieldName = "AccountOwner",
|
||||||
|
|
@ -487,11 +487,11 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.BankAccount),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBankAccount.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "CurrencyId",
|
FieldName = "CurrencyId",
|
||||||
|
|
@ -503,11 +503,11 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.BankAccount),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormBankAccount.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Boolean,
|
SourceDbType = DbType.Boolean,
|
||||||
FieldName = "CanTransferMoney",
|
FieldName = "CanTransferMoney",
|
||||||
|
|
@ -518,7 +518,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Accounting.BankAccount),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -46,7 +46,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region EventType
|
#region EventType
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.EventType))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.EventType))
|
||||||
{
|
{
|
||||||
var listFormEventType = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -90,7 +90,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region EventType Fields
|
#region EventType Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormEventType.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -101,11 +101,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.EventType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormEventType.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Name",
|
FieldName = "Name",
|
||||||
|
|
@ -119,7 +119,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.EventType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -130,7 +130,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region EventCategory
|
#region EventCategory
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.EventCategory))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.EventCategory))
|
||||||
{
|
{
|
||||||
var listFormEventCategory = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -174,7 +174,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region EventCategory Fields
|
#region EventCategory Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormEventCategory.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -185,11 +185,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.EventCategory),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormEventCategory.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Name",
|
FieldName = "Name",
|
||||||
|
|
@ -203,7 +203,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.EventCategory),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -214,7 +214,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region Event
|
#region Event
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Event))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Event))
|
||||||
{
|
{
|
||||||
var listFormEvent = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -275,7 +275,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
// Id
|
// Id
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormEvent.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -287,13 +287,13 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Event),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// CategoryId
|
// CategoryId
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormEvent.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "CategoryId",
|
FieldName = "CategoryId",
|
||||||
|
|
@ -305,13 +305,13 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.EventCategory), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.EventCategory), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Event),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// TypeId
|
// TypeId
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormEvent.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "TypeId",
|
FieldName = "TypeId",
|
||||||
|
|
@ -323,13 +323,13 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.EventType), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.EventType), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Event),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// Name
|
// Name
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormEvent.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Name",
|
FieldName = "Name",
|
||||||
|
|
@ -343,13 +343,13 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Event),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// Place
|
// Place
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormEvent.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Place",
|
FieldName = "Place",
|
||||||
|
|
@ -359,13 +359,13 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Event),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// Description
|
// Description
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormEvent.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Description",
|
FieldName = "Description",
|
||||||
|
|
@ -375,13 +375,13 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Event),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// OrganizerId
|
// OrganizerId
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormEvent.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "EmployeeId",
|
FieldName = "EmployeeId",
|
||||||
|
|
@ -392,13 +392,13 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Event),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// ParticipantsCount
|
// ParticipantsCount
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormEvent.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Int32,
|
SourceDbType = DbType.Int32,
|
||||||
FieldName = "ParticipantsCount",
|
FieldName = "ParticipantsCount",
|
||||||
|
|
@ -408,13 +408,13 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Event),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// ParticipantsCount
|
// ParticipantsCount
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormEvent.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Int32,
|
SourceDbType = DbType.Int32,
|
||||||
FieldName = "Likes",
|
FieldName = "Likes",
|
||||||
|
|
@ -424,13 +424,13 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Event),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// Status
|
// Status
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormEvent.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Status",
|
FieldName = "Status",
|
||||||
|
|
@ -450,7 +450,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Event),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -461,7 +461,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region Meal
|
#region Meal
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Meal))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Meal))
|
||||||
{
|
{
|
||||||
var listFormMeal = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -513,7 +513,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
// Id
|
// Id
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormMeal.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -524,13 +524,13 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Meal),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// BranchId
|
// BranchId
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormMeal.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "BranchId",
|
FieldName = "BranchId",
|
||||||
|
|
@ -547,13 +547,13 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
}),
|
}),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Meal),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// Date
|
// Date
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormMeal.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Date,
|
SourceDbType = DbType.Date,
|
||||||
FieldName = "Date",
|
FieldName = "Date",
|
||||||
|
|
@ -567,13 +567,13 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Meal),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// Type
|
// Type
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormMeal.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Type",
|
FieldName = "Type",
|
||||||
|
|
@ -595,13 +595,13 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
}),
|
}),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Meal),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// Materials
|
// Materials
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormMeal.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Materials",
|
FieldName = "Materials",
|
||||||
|
|
@ -638,7 +638,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
}),
|
}),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Meal),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -649,7 +649,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region Reservations
|
#region Reservations
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Reservation))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Reservation))
|
||||||
{
|
{
|
||||||
var listFormReservation = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -708,7 +708,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region Reservation Fields
|
#region Reservation Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync([
|
await _listFormFieldRepository.InsertManyAsync([
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormReservation.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -720,11 +720,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormReservation.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Type",
|
FieldName = "Type",
|
||||||
|
|
@ -747,11 +747,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
}),
|
}),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormReservation.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "ResourceName",
|
FieldName = "ResourceName",
|
||||||
|
|
@ -763,11 +763,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormReservation.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "EmployeeId",
|
FieldName = "EmployeeId",
|
||||||
|
|
@ -780,11 +780,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormReservation.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.DateTime,
|
SourceDbType = DbType.DateTime,
|
||||||
FieldName = "StartDate",
|
FieldName = "StartDate",
|
||||||
|
|
@ -796,11 +796,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormReservation.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.DateTime,
|
SourceDbType = DbType.DateTime,
|
||||||
FieldName = "EndDate",
|
FieldName = "EndDate",
|
||||||
|
|
@ -812,11 +812,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormReservation.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Purpose",
|
FieldName = "Purpose",
|
||||||
|
|
@ -828,11 +828,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormReservation.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Int32,
|
SourceDbType = DbType.Int32,
|
||||||
FieldName = "Participants",
|
FieldName = "Participants",
|
||||||
|
|
@ -843,11 +843,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormReservation.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Notes",
|
FieldName = "Notes",
|
||||||
|
|
@ -858,11 +858,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormReservation.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Status",
|
FieldName = "Status",
|
||||||
|
|
@ -886,7 +886,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
}),
|
}),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Reservation),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
@ -897,7 +897,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region Shuttle Routes
|
#region Shuttle Routes
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.ShuttleRoute))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.ShuttleRoute))
|
||||||
{
|
{
|
||||||
var listFormShuttleRoute = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -956,7 +956,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region Shuttle Route Fields
|
#region Shuttle Route Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync([
|
await _listFormFieldRepository.InsertManyAsync([
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormShuttleRoute.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -968,11 +968,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.ShuttleRoute),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormShuttleRoute.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Name",
|
FieldName = "Name",
|
||||||
|
|
@ -984,11 +984,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.ShuttleRoute),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormShuttleRoute.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Type",
|
FieldName = "Type",
|
||||||
|
|
@ -1010,11 +1010,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
}),
|
}),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.ShuttleRoute),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormShuttleRoute.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Date,
|
SourceDbType = DbType.Date,
|
||||||
FieldName = "DepartureTime",
|
FieldName = "DepartureTime",
|
||||||
|
|
@ -1026,12 +1026,12 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.ShuttleRoute),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson,
|
PivotSettingsJson = DefaultPivotSettingsJson,
|
||||||
EditorOptions = EditorOptionValues.TimeSpanOptions
|
EditorOptions = EditorOptionValues.TimeSpanOptions
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormShuttleRoute.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Date,
|
SourceDbType = DbType.Date,
|
||||||
FieldName = "ArrivalTime",
|
FieldName = "ArrivalTime",
|
||||||
|
|
@ -1043,12 +1043,12 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.ShuttleRoute),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson,
|
PivotSettingsJson = DefaultPivotSettingsJson,
|
||||||
EditorOptions = EditorOptionValues.TimeSpanOptions
|
EditorOptions = EditorOptionValues.TimeSpanOptions
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormShuttleRoute.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Int32,
|
SourceDbType = DbType.Int32,
|
||||||
FieldName = "Capacity",
|
FieldName = "Capacity",
|
||||||
|
|
@ -1061,11 +1061,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.ShuttleRoute),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormShuttleRoute.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Int32,
|
SourceDbType = DbType.Int32,
|
||||||
FieldName = "Available",
|
FieldName = "Available",
|
||||||
|
|
@ -1078,11 +1078,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.ShuttleRoute),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormShuttleRoute.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Route",
|
FieldName = "Route",
|
||||||
|
|
@ -1111,7 +1111,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
}),
|
}),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.ShuttleRoute),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
@ -1122,7 +1122,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region Announncements
|
#region Announncements
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Announcement))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Announcement))
|
||||||
{
|
{
|
||||||
var listFormAnnouncement = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -1183,7 +1183,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region Announcement Fields
|
#region Announcement Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync([
|
await _listFormFieldRepository.InsertManyAsync([
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormAnnouncement.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -1195,11 +1195,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Announcement),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormAnnouncement.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Title",
|
FieldName = "Title",
|
||||||
|
|
@ -1211,11 +1211,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Announcement),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormAnnouncement.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Excerpt",
|
FieldName = "Excerpt",
|
||||||
|
|
@ -1227,11 +1227,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Announcement),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormAnnouncement.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Content",
|
FieldName = "Content",
|
||||||
|
|
@ -1243,11 +1243,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Announcement),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormAnnouncement.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "ImageUrl",
|
FieldName = "ImageUrl",
|
||||||
|
|
@ -1258,11 +1258,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Announcement),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormAnnouncement.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Category",
|
FieldName = "Category",
|
||||||
|
|
@ -1286,11 +1286,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
}),
|
}),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Announcement),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormAnnouncement.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "EmployeeId",
|
FieldName = "EmployeeId",
|
||||||
|
|
@ -1303,11 +1303,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Announcement),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormAnnouncement.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.DateTime,
|
SourceDbType = DbType.DateTime,
|
||||||
FieldName = "PublishDate",
|
FieldName = "PublishDate",
|
||||||
|
|
@ -1319,11 +1319,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Announcement),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormAnnouncement.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.DateTime,
|
SourceDbType = DbType.DateTime,
|
||||||
FieldName = "ExpiryDate",
|
FieldName = "ExpiryDate",
|
||||||
|
|
@ -1334,11 +1334,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Announcement),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormAnnouncement.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Boolean,
|
SourceDbType = DbType.Boolean,
|
||||||
FieldName = "IsPinned",
|
FieldName = "IsPinned",
|
||||||
|
|
@ -1349,11 +1349,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Announcement),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormAnnouncement.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Departments",
|
FieldName = "Departments",
|
||||||
|
|
@ -1365,11 +1365,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Department), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Department), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Announcement),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormAnnouncement.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Attachments",
|
FieldName = "Attachments",
|
||||||
|
|
@ -1380,7 +1380,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Announcement),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
@ -1391,7 +1391,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region Visitors
|
#region Visitors
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Visitor))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Visitor))
|
||||||
{
|
{
|
||||||
var listFormVisitor = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -1452,7 +1452,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region Visitor Fields
|
#region Visitor Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync([
|
await _listFormFieldRepository.InsertManyAsync([
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormVisitor.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -1464,11 +1464,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Visitor),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormVisitor.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "FullName",
|
FieldName = "FullName",
|
||||||
|
|
@ -1480,11 +1480,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Visitor),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormVisitor.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "CompanyName",
|
FieldName = "CompanyName",
|
||||||
|
|
@ -1496,11 +1496,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Visitor),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormVisitor.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Email",
|
FieldName = "Email",
|
||||||
|
|
@ -1512,11 +1512,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleEmailJson,
|
ValidationRuleJson = DefaultValidationRuleEmailJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Visitor),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormVisitor.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "PhoneNumber",
|
FieldName = "PhoneNumber",
|
||||||
|
|
@ -1529,11 +1529,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
EditorOptions = EditorOptionValues.PhoneEditorOptions,
|
EditorOptions = EditorOptionValues.PhoneEditorOptions,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Visitor),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormVisitor.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Purpose",
|
FieldName = "Purpose",
|
||||||
|
|
@ -1545,11 +1545,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Visitor),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormVisitor.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.DateTime,
|
SourceDbType = DbType.DateTime,
|
||||||
FieldName = "VisitDate",
|
FieldName = "VisitDate",
|
||||||
|
|
@ -1561,11 +1561,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Visitor),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormVisitor.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.DateTime,
|
SourceDbType = DbType.DateTime,
|
||||||
FieldName = "CheckIn",
|
FieldName = "CheckIn",
|
||||||
|
|
@ -1576,11 +1576,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Visitor),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormVisitor.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.DateTime,
|
SourceDbType = DbType.DateTime,
|
||||||
FieldName = "CheckOut",
|
FieldName = "CheckOut",
|
||||||
|
|
@ -1591,11 +1591,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Visitor),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormVisitor.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "EmployeeId",
|
FieldName = "EmployeeId",
|
||||||
|
|
@ -1607,11 +1607,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Visitor),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormVisitor.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Status",
|
FieldName = "Status",
|
||||||
|
|
@ -1633,7 +1633,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.Visitor),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
@ -1644,7 +1644,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region Social Post
|
#region Social Post
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.SocialPost))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.SocialPost))
|
||||||
{
|
{
|
||||||
var listFormSocialPost = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -1709,7 +1709,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
#region Social Post Fields
|
#region Social Post Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync([
|
await _listFormFieldRepository.InsertManyAsync([
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormSocialPost.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -1721,11 +1721,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.SocialPost),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormSocialPost.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "EmployeeId",
|
FieldName = "EmployeeId",
|
||||||
|
|
@ -1738,11 +1738,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.SocialPost),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormSocialPost.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Content",
|
FieldName = "Content",
|
||||||
|
|
@ -1754,11 +1754,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.SocialPost),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormSocialPost.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Int32,
|
SourceDbType = DbType.Int32,
|
||||||
FieldName = "LikeCount",
|
FieldName = "LikeCount",
|
||||||
|
|
@ -1769,11 +1769,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.SocialPost),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormSocialPost.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Boolean,
|
SourceDbType = DbType.Boolean,
|
||||||
FieldName = "IsLiked",
|
FieldName = "IsLiked",
|
||||||
|
|
@ -1784,11 +1784,11 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.SocialPost),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormSocialPost.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Boolean,
|
SourceDbType = DbType.Boolean,
|
||||||
FieldName = "IsOwnPost",
|
FieldName = "IsOwnPost",
|
||||||
|
|
@ -1799,7 +1799,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Intranet.SocialPost),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
#region MeetingMethod
|
#region MeetingMethod
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.MeetingMethod))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.MeetingMethod))
|
||||||
{
|
{
|
||||||
var listFormMeetingMethod = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -95,7 +95,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
#region MeetingMethod Fields
|
#region MeetingMethod Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormMeetingMethod.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -106,11 +106,11 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.MeetingMethod),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormMeetingMethod.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Name",
|
FieldName = "Name",
|
||||||
|
|
@ -124,11 +124,11 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.MeetingMethod),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormMeetingMethod.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Type",
|
FieldName = "Type",
|
||||||
|
|
@ -151,13 +151,13 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.MeetingMethod),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// Status
|
// Status
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormMeetingMethod.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Status",
|
FieldName = "Status",
|
||||||
|
|
@ -177,7 +177,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.MeetingMethod),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -188,7 +188,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
#region MeetingResult
|
#region MeetingResult
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.MeetingResult))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.MeetingResult))
|
||||||
{
|
{
|
||||||
var listFormMeetingResult = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -237,7 +237,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
#region MeetingResult Fields
|
#region MeetingResult Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormMeetingResult.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -248,11 +248,11 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.MeetingResult),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormMeetingResult.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Name",
|
FieldName = "Name",
|
||||||
|
|
@ -264,11 +264,11 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.MeetingResult),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormMeetingResult.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Order",
|
FieldName = "Order",
|
||||||
|
|
@ -282,13 +282,13 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
SortDirection = GridColumnOptions.SortOrderAsc,
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.MeetingResult),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// Status
|
// Status
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormMeetingResult.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Status",
|
FieldName = "Status",
|
||||||
|
|
@ -308,7 +308,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.MeetingResult),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -319,7 +319,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
#region Source
|
#region Source
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Source))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Source))
|
||||||
{
|
{
|
||||||
var listFormSource = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -367,7 +367,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
#region Source Fields
|
#region Source Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormSource.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -378,11 +378,11 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.Source),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormSource.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Name",
|
FieldName = "Name",
|
||||||
|
|
@ -396,11 +396,11 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.Source),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormSource.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Status",
|
FieldName = "Status",
|
||||||
|
|
@ -421,7 +421,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.Source),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -432,7 +432,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
#region Interesting
|
#region Interesting
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Interesting))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Interesting))
|
||||||
{
|
{
|
||||||
var listFormInteresting = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -480,7 +480,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
#region Interesting Fields
|
#region Interesting Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormInteresting.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -491,11 +491,11 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.Interesting),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormInteresting.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Name",
|
FieldName = "Name",
|
||||||
|
|
@ -509,11 +509,11 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.Interesting),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormInteresting.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Status",
|
FieldName = "Status",
|
||||||
|
|
@ -534,7 +534,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.Interesting),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -545,7 +545,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
#region SalesRejectionReason
|
#region SalesRejectionReason
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.SalesRejectionReason))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.SalesRejectionReason))
|
||||||
{
|
{
|
||||||
var listFormSalesRejectionReason = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -594,7 +594,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
#region SalesRejectionReason Fields
|
#region SalesRejectionReason Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormSalesRejectionReason.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -606,11 +606,11 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.SalesRejectionReason),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormSalesRejectionReason.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Name",
|
FieldName = "Name",
|
||||||
|
|
@ -624,13 +624,13 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.SalesRejectionReason),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
// Status
|
// Status
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
ListFormCode = listFormSalesRejectionReason.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Category",
|
FieldName = "Category",
|
||||||
|
|
@ -654,11 +654,11 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.SalesRejectionReason),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormSalesRejectionReason.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Status",
|
FieldName = "Status",
|
||||||
|
|
@ -679,7 +679,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.SalesRejectionReason),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -690,7 +690,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
#region NoteType
|
#region NoteType
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.NoteType))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.NoteType))
|
||||||
{
|
{
|
||||||
var listFormNoteType = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
{
|
{
|
||||||
ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
|
|
@ -735,7 +735,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
#region NoteType Fields
|
#region NoteType Fields
|
||||||
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormNoteType.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
FieldName = "Id",
|
FieldName = "Id",
|
||||||
|
|
@ -747,11 +747,11 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.NoteType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
ListFormCode = listFormNoteType.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
FieldName = "Name",
|
FieldName = "Name",
|
||||||
|
|
@ -765,7 +765,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.Definitions.NoteType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -110,7 +110,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.MaterialType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -126,7 +126,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.MaterialType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -144,7 +144,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.MaterialType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -159,7 +159,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.MaterialType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -175,7 +175,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.MaterialType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
@ -248,7 +248,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.MaterialGroup),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -264,7 +264,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.MaterialGroup),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -280,7 +280,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.MaterialGroup),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -295,7 +295,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.MaterialGroup),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -310,7 +310,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.MaterialGroup),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -326,7 +326,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.MaterialGroup), "Id", "HierarchyPath", false),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.MaterialGroup), "Id", "HierarchyPath", false),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.MaterialGroup),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -441,7 +441,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Material),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -458,7 +458,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Material),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -477,7 +477,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
SortDirection = GridColumnOptions.SortOrderAsc,
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Material),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -492,7 +492,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Material),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -509,7 +509,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Material),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -526,7 +526,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Material),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -542,7 +542,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Material),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -558,7 +558,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.MaterialType), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.MaterialType), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Material),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -574,7 +574,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.MaterialGroup), "Id", "HierarchyPath", false),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.MaterialGroup), "Id", "HierarchyPath", false),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Material),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -600,7 +600,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Material),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -617,7 +617,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Material),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -633,7 +633,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Uom), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Uom), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Material),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -648,7 +648,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Material),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -664,7 +664,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
SortIndex = 4,
|
SortIndex = 4,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Material),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
@ -737,7 +737,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PaymentTerm),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -753,7 +753,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PaymentTerm),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -769,7 +769,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PaymentTerm),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -785,7 +785,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PaymentTerm),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
@ -859,7 +859,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.SupplyType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -875,7 +875,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.SupplyType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -891,7 +891,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.SupplyType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -907,7 +907,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.SupplyType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
@ -981,7 +981,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.SupplyCardType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -997,7 +997,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.SupplyCardType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1013,7 +1013,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.SupplyCardType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1029,7 +1029,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.SupplyCardType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
@ -1070,7 +1070,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Partner)),
|
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Partner)),
|
||||||
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson,
|
||||||
PagerOptionJson = DefaultPagerOptionJson,
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
EditingOptionJson = DefaultEditingOptionJson(AppCodes.SupplyChain.Supply, 1000, 700, true, true, true, true, false),
|
EditingOptionJson = DefaultEditingOptionJson(AppCodes.SupplyChain.Supply, 1000, 600, true, true, true, true, false),
|
||||||
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>()
|
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>()
|
||||||
{
|
{
|
||||||
new()
|
new()
|
||||||
|
|
@ -1136,7 +1136,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
Hint = "Manage",
|
Hint = "Manage",
|
||||||
Text ="Manage",
|
Text ="Manage",
|
||||||
UrlTarget="_blank",
|
UrlTarget="_blank",
|
||||||
AuthName = AppCodes.SupplyChain.Supply,
|
AuthName = AppCodes.SupplyChain.Supply + ".Update",
|
||||||
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Supply)}/@Id"
|
Url=$"/admin/form/{utils.GetDefaultFormCodes(ListFormCodes.Lists.Supply)}/@Id"
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
@ -1158,7 +1158,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -1175,7 +1175,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -1194,7 +1194,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
SortDirection = GridColumnOptions.SortOrderAsc,
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -1221,7 +1221,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -1237,7 +1237,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Sector), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Sector), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -1252,7 +1252,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -1267,7 +1267,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -1283,7 +1283,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -1299,7 +1299,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.PaymentTerm), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.PaymentTerm), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
|
|
@ -1308,13 +1308,15 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Decimal,
|
SourceDbType = DbType.Decimal,
|
||||||
FieldName = "CreditLimit",
|
FieldName = "CreditLimit",
|
||||||
|
Format = "fixedPoint",
|
||||||
|
Alignment = "right",
|
||||||
Width = 100,
|
Width = 100,
|
||||||
ListOrderNo = 10,
|
ListOrderNo = 10,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
IsActive = true,
|
IsActive = true,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -1338,7 +1340,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
CascadeEmptyFields = "City,District,Street"
|
CascadeEmptyFields = "City,District,Street"
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1364,7 +1366,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
CascadeEmptyFields = "District,Street"
|
CascadeEmptyFields = "District,Street"
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1390,7 +1392,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
CascadeEmptyFields = "Street",
|
CascadeEmptyFields = "Street",
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1415,7 +1417,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
CascadeParentFields = "Country,City,District",
|
CascadeParentFields = "Country,City,District",
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1430,7 +1432,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1445,7 +1447,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1460,7 +1462,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1475,7 +1477,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson,
|
PivotSettingsJson = DefaultPivotSettingsJson,
|
||||||
EditorOptions = EditorOptionValues.PhoneEditorOptions
|
EditorOptions = EditorOptionValues.PhoneEditorOptions
|
||||||
},
|
},
|
||||||
|
|
@ -1491,7 +1493,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson,
|
PivotSettingsJson = DefaultPivotSettingsJson,
|
||||||
EditorOptions = EditorOptionValues.PhoneEditorOptions
|
EditorOptions = EditorOptionValues.PhoneEditorOptions
|
||||||
},
|
},
|
||||||
|
|
@ -1507,7 +1509,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1523,7 +1525,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleEmailRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleEmailRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1538,7 +1540,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1554,7 +1556,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.SupplyType), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.SupplyType), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1570,7 +1572,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.SupplyCardType), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.SupplyCardType), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1597,7 +1599,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1612,7 +1614,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1627,7 +1629,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1642,7 +1644,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1650,6 +1652,8 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Decimal,
|
SourceDbType = DbType.Decimal,
|
||||||
FieldName = "CurrentBalance",
|
FieldName = "CurrentBalance",
|
||||||
|
Format = "fixedPoint",
|
||||||
|
Alignment = "right",
|
||||||
Width = 100,
|
Width = 100,
|
||||||
ListOrderNo = 29,
|
ListOrderNo = 29,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
|
|
@ -1657,7 +1661,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1665,6 +1669,8 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Decimal,
|
SourceDbType = DbType.Decimal,
|
||||||
FieldName = "DiscountRate",
|
FieldName = "DiscountRate",
|
||||||
|
Format = "fixedPoint",
|
||||||
|
Alignment = "right",
|
||||||
Width = 100,
|
Width = 100,
|
||||||
ListOrderNo = 30,
|
ListOrderNo = 30,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
|
|
@ -1672,7 +1678,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Supply),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
], autoSave: true);
|
], autoSave: true);
|
||||||
|
|
@ -1681,12 +1687,12 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
await utils.CloneListFormWithFieldsAsync(
|
await utils.CloneListFormWithFieldsAsync(
|
||||||
_listFormRepository,
|
_listFormRepository,
|
||||||
_listFormFieldRepository,
|
_listFormFieldRepository,
|
||||||
ListFormCodes.Lists.Supply,
|
listForm.ListFormCode,
|
||||||
JsonSerializer.Serialize(new List<dynamic>() {
|
JsonSerializer.Serialize(new List<dynamic>() {
|
||||||
new {
|
new {
|
||||||
TabTitle = "Banks",
|
TabTitle = "Banks",
|
||||||
TabType = ListFormTabTypeEnum.List,
|
TabType = ListFormTabTypeEnum.List,
|
||||||
Code = ListFormCodes.Lists.SupplyBank,
|
Code = ListFormCodes.Lists.PartnerBank,
|
||||||
Relation = new List<dynamic>() {
|
Relation = new List<dynamic>() {
|
||||||
new {
|
new {
|
||||||
ParentFieldName = "Id",
|
ParentFieldName = "Id",
|
||||||
|
|
@ -1697,7 +1703,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
new {
|
new {
|
||||||
TabTitle = "Certificates",
|
TabTitle = "Certificates",
|
||||||
TabType = ListFormTabTypeEnum.List,
|
TabType = ListFormTabTypeEnum.List,
|
||||||
Code = ListFormCodes.Lists.SupplyCertificate,
|
Code = ListFormCodes.Lists.PartnerCertificate,
|
||||||
Relation = new List<dynamic>() {
|
Relation = new List<dynamic>() {
|
||||||
new {
|
new {
|
||||||
ParentFieldName = "Id",
|
ParentFieldName = "Id",
|
||||||
|
|
@ -1708,7 +1714,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
new {
|
new {
|
||||||
TabTitle = "Contacts",
|
TabTitle = "Contacts",
|
||||||
TabType = ListFormTabTypeEnum.List,
|
TabType = ListFormTabTypeEnum.List,
|
||||||
Code = ListFormCodes.Lists.SupplyContact,
|
Code = ListFormCodes.Lists.PartnerContact,
|
||||||
Relation = new List<dynamic>() {
|
Relation = new List<dynamic>() {
|
||||||
new {
|
new {
|
||||||
ParentFieldName = "Id",
|
ParentFieldName = "Id",
|
||||||
|
|
@ -1722,7 +1728,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Supplier Bank
|
#region Supplier Bank
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.SupplyBank))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.PartnerBank))
|
||||||
{
|
{
|
||||||
var listForm = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
|
|
@ -1731,7 +1737,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsSubForm = true,
|
IsSubForm = true,
|
||||||
LayoutJson = DefaultLayoutJson,
|
LayoutJson = DefaultLayoutJson,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
ListFormCode = ListFormCodes.Lists.SupplyBank,
|
ListFormCode = ListFormCodes.Lists.PartnerBank,
|
||||||
Name = AppCodes.SupplyChain.PartnerBank,
|
Name = AppCodes.SupplyChain.PartnerBank,
|
||||||
Title = AppCodes.SupplyChain.PartnerBank,
|
Title = AppCodes.SupplyChain.PartnerBank,
|
||||||
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
||||||
|
|
@ -1802,7 +1808,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1818,7 +1824,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1834,7 +1840,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1850,7 +1856,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1865,7 +1871,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1880,7 +1886,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1895,7 +1901,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1923,7 +1929,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
}),
|
}),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1940,7 +1946,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Currency), "Id", "Name"),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1948,6 +1954,8 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Decimal,
|
SourceDbType = DbType.Decimal,
|
||||||
FieldName = "Balance",
|
FieldName = "Balance",
|
||||||
|
Format = "fixedPoint",
|
||||||
|
Alignment = "right",
|
||||||
Width = 100,
|
Width = 100,
|
||||||
ListOrderNo = 10,
|
ListOrderNo = 10,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
|
|
@ -1955,7 +1963,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1963,6 +1971,8 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Decimal,
|
SourceDbType = DbType.Decimal,
|
||||||
FieldName = "OverdraftLimit",
|
FieldName = "OverdraftLimit",
|
||||||
|
Format = "fixedPoint",
|
||||||
|
Alignment = "right",
|
||||||
Width = 100,
|
Width = 100,
|
||||||
ListOrderNo = 11,
|
ListOrderNo = 11,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
|
|
@ -1970,7 +1980,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -1978,6 +1988,8 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
SourceDbType = DbType.Decimal,
|
SourceDbType = DbType.Decimal,
|
||||||
FieldName = "DailyTransferLimit",
|
FieldName = "DailyTransferLimit",
|
||||||
|
Format = "fixedPoint",
|
||||||
|
Alignment = "right",
|
||||||
Width = 100,
|
Width = 100,
|
||||||
ListOrderNo = 12,
|
ListOrderNo = 12,
|
||||||
Visible = true,
|
Visible = true,
|
||||||
|
|
@ -1985,7 +1997,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2000,7 +2012,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2015,7 +2027,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2031,7 +2043,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Partner), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Partner), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
@ -2040,7 +2052,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Supplier Certificate
|
#region Supplier Certificate
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.SupplyCertificate))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.PartnerCertificate))
|
||||||
{
|
{
|
||||||
var listForm = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
|
|
@ -2049,7 +2061,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsSubForm = true,
|
IsSubForm = true,
|
||||||
LayoutJson = DefaultLayoutJson,
|
LayoutJson = DefaultLayoutJson,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
ListFormCode = ListFormCodes.Lists.SupplyCertificate,
|
ListFormCode = ListFormCodes.Lists.PartnerCertificate,
|
||||||
Name = AppCodes.SupplyChain.PartnerCertificate,
|
Name = AppCodes.SupplyChain.PartnerCertificate,
|
||||||
Title = AppCodes.SupplyChain.PartnerCertificate,
|
Title = AppCodes.SupplyChain.PartnerCertificate,
|
||||||
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
||||||
|
|
@ -2104,7 +2116,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.SupplyCardType),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2184,7 +2196,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Partner), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Partner), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
@ -2193,7 +2205,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Supplier Contact
|
#region Supplier Contact
|
||||||
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.SupplyContact))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.PartnerContact))
|
||||||
{
|
{
|
||||||
var listForm = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
new ListForm()
|
new ListForm()
|
||||||
|
|
@ -2202,7 +2214,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsSubForm = true,
|
IsSubForm = true,
|
||||||
LayoutJson = DefaultLayoutJson,
|
LayoutJson = DefaultLayoutJson,
|
||||||
CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
ListFormCode = ListFormCodes.Lists.SupplyContact,
|
ListFormCode = ListFormCodes.Lists.PartnerContact,
|
||||||
Name = AppCodes.SupplyChain.PartnerContact,
|
Name = AppCodes.SupplyChain.PartnerContact,
|
||||||
Title = AppCodes.SupplyChain.PartnerContact,
|
Title = AppCodes.SupplyChain.PartnerContact,
|
||||||
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
||||||
|
|
@ -2265,7 +2277,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
SortIndex = 0,
|
SortIndex = 0,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerContact),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2281,7 +2293,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerContact),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2297,7 +2309,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerContact),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2312,7 +2324,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerContact),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2328,7 +2340,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleEmailRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleEmailRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerContact),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2344,7 +2356,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerContact),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson,
|
PivotSettingsJson = DefaultPivotSettingsJson,
|
||||||
EditorOptions = EditorOptionValues.PhoneEditorOptions
|
EditorOptions = EditorOptionValues.PhoneEditorOptions
|
||||||
},
|
},
|
||||||
|
|
@ -2360,7 +2372,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerContact),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson,
|
PivotSettingsJson = DefaultPivotSettingsJson,
|
||||||
EditorOptions = EditorOptionValues.PhoneEditorOptions
|
EditorOptions = EditorOptionValues.PhoneEditorOptions
|
||||||
},
|
},
|
||||||
|
|
@ -2376,7 +2388,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerContact),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2391,7 +2403,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerContact),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2407,7 +2419,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Partner), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Partner), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.PartnerBank),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
@ -2490,7 +2502,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Approval),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2508,7 +2520,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
SortDirection = GridColumnOptions.SortOrderAsc,
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Approval),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2525,7 +2537,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Department), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Department), "Id", "Name"),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Approval),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2541,7 +2553,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.MaterialType), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.MaterialType), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Approval),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2558,7 +2570,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Approval),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2573,7 +2585,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Approval),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
}
|
}
|
||||||
], autoSave: true);
|
], autoSave: true);
|
||||||
|
|
@ -2671,7 +2683,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.Approval),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2689,7 +2701,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
SortDirection = GridColumnOptions.SortOrderAsc,
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.ApprovalStep),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2706,7 +2718,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Employee), "Id", "FullName"),
|
||||||
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.ApprovalStep),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2721,7 +2733,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.ApprovalStep),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2736,7 +2748,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.ApprovalStep),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2751,7 +2763,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.ApprovalStep),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
},
|
},
|
||||||
new() {
|
new() {
|
||||||
|
|
@ -2767,7 +2779,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend
|
||||||
AllowSearch = true,
|
AllowSearch = true,
|
||||||
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Approval), "Id", "Name"),
|
LookupJson = LookupQueryValues.DefaultLookupQueryJson(nameof(TableNameEnum.Approval), "Id", "Name"),
|
||||||
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
PermissionJson = DefaultFieldPermissionJson(AppCodes.SupplyChain.ApprovalStep),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
|
|
@ -2212,32 +2212,42 @@
|
||||||
"RequiredPermissionName": null,
|
"RequiredPermissionName": null,
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Crm",
|
||||||
|
"Code": "App.Crm.CustomerType",
|
||||||
|
"DisplayName": "App.Crm.CustomerType",
|
||||||
|
"Order": 1,
|
||||||
|
"Url": "/admin/list/list-customertype",
|
||||||
|
"Icon": "FcMultipleInputs",
|
||||||
|
"RequiredPermissionName": "App.Crm.CustomerType",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Crm",
|
||||||
|
"Code": "App.Crm.CustomerSegment",
|
||||||
|
"DisplayName": "App.Crm.CustomerSegment",
|
||||||
|
"Order": 2,
|
||||||
|
"Url": "/admin/list/list-customersegment",
|
||||||
|
"Icon": "FcComboChart",
|
||||||
|
"RequiredPermissionName": "App.Crm.CustomerSegment",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Crm",
|
"ParentCode": "App.Crm",
|
||||||
"Code": "App.Crm.Customer",
|
"Code": "App.Crm.Customer",
|
||||||
"DisplayName": "App.Crm.Customer",
|
"DisplayName": "App.Crm.Customer",
|
||||||
"Order": 2,
|
"Order": 3,
|
||||||
"Url": "/admin/crm/customers",
|
"Url": "/admin/list/list-customer",
|
||||||
"Icon": "FcBusinessman",
|
"Icon": "FcBusinessman",
|
||||||
"RequiredPermissionName": "App.Crm.Customer",
|
"RequiredPermissionName": "App.Crm.Customer",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"ParentCode": "App.Crm",
|
|
||||||
"Code": "App.Crm.SalesTeam",
|
|
||||||
"DisplayName": "App.Crm.SalesTeam",
|
|
||||||
"Order": 3,
|
|
||||||
"Url": "/admin/crm/sales-teams",
|
|
||||||
"Icon": "FcCollaboration",
|
|
||||||
"RequiredPermissionName": "App.Crm.SalesTeam",
|
|
||||||
"IsDisabled": false
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Crm",
|
"ParentCode": "App.Crm",
|
||||||
"Code": "App.Crm.LossReason",
|
"Code": "App.Crm.LossReason",
|
||||||
"DisplayName": "App.Crm.LossReason",
|
"DisplayName": "App.Crm.LossReason",
|
||||||
"Order": 4,
|
"Order": 5,
|
||||||
"Url": "/admin/crm/loss-reasons",
|
"Url": "/admin/list/list-lossreason",
|
||||||
"Icon": "FcHighPriority",
|
"Icon": "FcHighPriority",
|
||||||
"RequiredPermissionName": "App.Crm.LossReason",
|
"RequiredPermissionName": "App.Crm.LossReason",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
|
|
@ -2246,7 +2256,7 @@
|
||||||
"ParentCode": "App.Crm",
|
"ParentCode": "App.Crm",
|
||||||
"Code": "App.Crm.Opportunity",
|
"Code": "App.Crm.Opportunity",
|
||||||
"DisplayName": "App.Crm.Opportunity",
|
"DisplayName": "App.Crm.Opportunity",
|
||||||
"Order": 5,
|
"Order": 6,
|
||||||
"Url": "/admin/crm/opportunities",
|
"Url": "/admin/crm/opportunities",
|
||||||
"Icon": "FcIdea",
|
"Icon": "FcIdea",
|
||||||
"RequiredPermissionName": "App.Crm.Opportunity",
|
"RequiredPermissionName": "App.Crm.Opportunity",
|
||||||
|
|
@ -2256,7 +2266,7 @@
|
||||||
"ParentCode": "App.Crm",
|
"ParentCode": "App.Crm",
|
||||||
"Code": "App.Crm.Activities",
|
"Code": "App.Crm.Activities",
|
||||||
"DisplayName": "App.Crm.Activities",
|
"DisplayName": "App.Crm.Activities",
|
||||||
"Order": 6,
|
"Order": 7,
|
||||||
"Url": "/admin/crm/activities",
|
"Url": "/admin/crm/activities",
|
||||||
"Icon": "FcCalendar",
|
"Icon": "FcCalendar",
|
||||||
"RequiredPermissionName": "App.Crm.Activities",
|
"RequiredPermissionName": "App.Crm.Activities",
|
||||||
|
|
@ -2266,7 +2276,7 @@
|
||||||
"ParentCode": "App.Crm",
|
"ParentCode": "App.Crm",
|
||||||
"Code": "App.Crm.SalesOrder",
|
"Code": "App.Crm.SalesOrder",
|
||||||
"DisplayName": "App.Crm.SalesOrder",
|
"DisplayName": "App.Crm.SalesOrder",
|
||||||
"Order": 7,
|
"Order": 8,
|
||||||
"Url": "/admin/crm/sales-orders",
|
"Url": "/admin/crm/sales-orders",
|
||||||
"Icon": "FcShop",
|
"Icon": "FcShop",
|
||||||
"RequiredPermissionName": "App.Crm.SalesOrder",
|
"RequiredPermissionName": "App.Crm.SalesOrder",
|
||||||
|
|
|
||||||
|
|
@ -5620,7 +5620,6 @@
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Erp"
|
"MenuGroup": "Erp"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"GroupName": "App.SupplyChain",
|
"GroupName": "App.SupplyChain",
|
||||||
"Name": "App.SupplyChain.PartnerBank",
|
"Name": "App.SupplyChain.PartnerBank",
|
||||||
|
|
@ -5684,7 +5683,6 @@
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Erp"
|
"MenuGroup": "Erp"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"GroupName": "App.SupplyChain",
|
"GroupName": "App.SupplyChain",
|
||||||
"Name": "App.SupplyChain.PartnerCertificate",
|
"Name": "App.SupplyChain.PartnerCertificate",
|
||||||
|
|
@ -5748,7 +5746,6 @@
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Erp"
|
"MenuGroup": "Erp"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"GroupName": "App.SupplyChain",
|
"GroupName": "App.SupplyChain",
|
||||||
"Name": "App.SupplyChain.PartnerContact",
|
"Name": "App.SupplyChain.PartnerContact",
|
||||||
|
|
@ -5812,7 +5809,6 @@
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Erp"
|
"MenuGroup": "Erp"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"GroupName": "App.SupplyChain",
|
"GroupName": "App.SupplyChain",
|
||||||
"Name": "App.SupplyChain.MaterialType",
|
"Name": "App.SupplyChain.MaterialType",
|
||||||
|
|
@ -5876,7 +5872,6 @@
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Erp"
|
"MenuGroup": "Erp"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"GroupName": "App.SupplyChain",
|
"GroupName": "App.SupplyChain",
|
||||||
"Name": "App.SupplyChain.MaterialGroup",
|
"Name": "App.SupplyChain.MaterialGroup",
|
||||||
|
|
@ -6255,7 +6250,6 @@
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Erp"
|
"MenuGroup": "Erp"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"GroupName": "App.SupplyChain",
|
"GroupName": "App.SupplyChain",
|
||||||
"Name": "App.SupplyChain.ApprovalStep",
|
"Name": "App.SupplyChain.ApprovalStep",
|
||||||
|
|
@ -6319,7 +6313,6 @@
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Erp"
|
"MenuGroup": "Erp"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"GroupName": "App.SupplyChain",
|
"GroupName": "App.SupplyChain",
|
||||||
"Name": "App.SupplyChain.Order",
|
"Name": "App.SupplyChain.Order",
|
||||||
|
|
@ -9524,7 +9517,6 @@
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Kurs"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"GroupName": "App.Intranet",
|
"GroupName": "App.Intranet",
|
||||||
"Name": "App.Intranet.SocialPost",
|
"Name": "App.Intranet.SocialPost",
|
||||||
|
|
@ -9597,7 +9589,132 @@
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Kurs"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Crm",
|
||||||
|
"Name": "App.Crm.CustomerType",
|
||||||
|
"ParentName": null,
|
||||||
|
"DisplayName": "App.Crm.CustomerType",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Crm",
|
||||||
|
"Name": "App.Crm.CustomerType.Create",
|
||||||
|
"ParentName": "App.Crm.CustomerType",
|
||||||
|
"DisplayName": "Create",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Crm",
|
||||||
|
"Name": "App.Crm.CustomerType.Update",
|
||||||
|
"ParentName": "App.Crm.CustomerType",
|
||||||
|
"DisplayName": "Update",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Crm",
|
||||||
|
"Name": "App.Crm.CustomerType.Delete",
|
||||||
|
"ParentName": "App.Crm.CustomerType",
|
||||||
|
"DisplayName": "Delete",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Crm",
|
||||||
|
"Name": "App.Crm.CustomerType.Export",
|
||||||
|
"ParentName": "App.Crm.CustomerType",
|
||||||
|
"DisplayName": "Export",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Crm",
|
||||||
|
"Name": "App.Crm.CustomerType.Import",
|
||||||
|
"ParentName": "App.Crm.CustomerType",
|
||||||
|
"DisplayName": "Import",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Crm",
|
||||||
|
"Name": "App.Crm.CustomerType.Activity",
|
||||||
|
"ParentName": "App.Crm.CustomerType",
|
||||||
|
"DisplayName": "Activity",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Crm",
|
||||||
|
"Name": "App.Crm.CustomerSegment",
|
||||||
|
"ParentName": null,
|
||||||
|
"DisplayName": "App.Crm.CustomerSegment",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Crm",
|
||||||
|
"Name": "App.Crm.CustomerSegment.Create",
|
||||||
|
"ParentName": "App.Crm.CustomerSegment",
|
||||||
|
"DisplayName": "Create",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Crm",
|
||||||
|
"Name": "App.Crm.CustomerSegment.Update",
|
||||||
|
"ParentName": "App.Crm.CustomerSegment",
|
||||||
|
"DisplayName": "Update",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Crm",
|
||||||
|
"Name": "App.Crm.CustomerSegment.Delete",
|
||||||
|
"ParentName": "App.Crm.CustomerSegment",
|
||||||
|
"DisplayName": "Delete",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Crm",
|
||||||
|
"Name": "App.Crm.CustomerSegment.Export",
|
||||||
|
"ParentName": "App.Crm.CustomerSegment",
|
||||||
|
"DisplayName": "Export",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Crm",
|
||||||
|
"Name": "App.Crm.CustomerSegment.Import",
|
||||||
|
"ParentName": "App.Crm.CustomerSegment",
|
||||||
|
"DisplayName": "Import",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Crm",
|
||||||
|
"Name": "App.Crm.CustomerSegment.Activity",
|
||||||
|
"ParentName": "App.Crm.CustomerSegment",
|
||||||
|
"DisplayName": "Activity",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3,
|
||||||
|
"MenuGroup": "Erp"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Crm",
|
"GroupName": "App.Crm",
|
||||||
"Name": "App.Crm.Customer",
|
"Name": "App.Crm.Customer",
|
||||||
|
|
|
||||||
|
|
@ -151,4 +151,5 @@ public enum TableNameEnum
|
||||||
MaterialSpecification,
|
MaterialSpecification,
|
||||||
Approval,
|
Approval,
|
||||||
ApprovalStep,
|
ApprovalStep,
|
||||||
|
LossReason
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -512,11 +512,19 @@ public static class PlatformConsts
|
||||||
public const string PaymentTerm = "list-paymentterm";
|
public const string PaymentTerm = "list-paymentterm";
|
||||||
public const string SupplyType = "list-supplytype";
|
public const string SupplyType = "list-supplytype";
|
||||||
public const string SupplyCardType = "list-supplycardtype";
|
public const string SupplyCardType = "list-supplycardtype";
|
||||||
public const string SupplyBank = "list-supplybank";
|
|
||||||
public const string SupplyCertificate = "list-supplycertificate";
|
|
||||||
public const string SupplyContact = "list-supplycontact";
|
|
||||||
public const string Approval = "list-approval";
|
public const string Approval = "list-approval";
|
||||||
public const string ApprovalStep = "list-approvalstep";
|
public const string ApprovalStep = "list-approvalstep";
|
||||||
|
|
||||||
|
public const string PartnerBank = "list-partnerbank";
|
||||||
|
public const string PartnerCertificate = "list-partnercertificate";
|
||||||
|
public const string PartnerContact = "list-partnercontact";
|
||||||
|
|
||||||
|
//Crm
|
||||||
|
public const string CustomerType = "list-customertype";
|
||||||
|
public const string CustomerSegment = "list-customersegment";
|
||||||
|
public const string Customer = "list-customer";
|
||||||
|
public const string LossReason = "list-lossreason";
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ public static class TableNameResolver
|
||||||
private static readonly Dictionary<string, (Func<MenuPrefix, TableNameEnum, string> Method, MenuPrefix PrefixGroup)>
|
private static readonly Dictionary<string, (Func<MenuPrefix, TableNameEnum, string> Method, MenuPrefix PrefixGroup)>
|
||||||
_map = new(StringComparer.OrdinalIgnoreCase)
|
_map = new(StringComparer.OrdinalIgnoreCase)
|
||||||
{
|
{
|
||||||
// 🔹 MODULE TABLOLARI
|
// 🔹 MODULE TABLOLARI
|
||||||
{ nameof(TableNameEnum.LogEntry), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
{ nameof(TableNameEnum.LogEntry), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||||
{ nameof(TableNameEnum.Language), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
{ nameof(TableNameEnum.Language), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||||
{ nameof(TableNameEnum.LanguageKey), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
{ nameof(TableNameEnum.LanguageKey), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||||
|
|
@ -24,7 +24,7 @@ public static class TableNameResolver
|
||||||
{ nameof(TableNameEnum.BackgroundWorker_MailQueueTableFormat), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
{ nameof(TableNameEnum.BackgroundWorker_MailQueueTableFormat), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||||
{ nameof(TableNameEnum.AiBot), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
{ nameof(TableNameEnum.AiBot), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||||
|
|
||||||
// 🔹 PLATFORM TABLOLARI
|
// 🔹 PLATFORM TABLOLARI
|
||||||
{ nameof(TableNameEnum.Route), (TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
{ nameof(TableNameEnum.Route), (TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||||
{ nameof(TableNameEnum.Menu), (TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
{ nameof(TableNameEnum.Menu), (TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||||
{ nameof(TableNameEnum.DataSource), (TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
{ nameof(TableNameEnum.DataSource), (TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||||
|
|
@ -45,7 +45,7 @@ public static class TableNameResolver
|
||||||
{ nameof(TableNameEnum.ForumTopic), (TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
{ nameof(TableNameEnum.ForumTopic), (TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||||
{ nameof(TableNameEnum.ForumPost), (TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
{ nameof(TableNameEnum.ForumPost), (TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||||
|
|
||||||
// 🔹 TENANT TABLOLARI (GENEL)
|
// 🔹 TENANT TABLOLARI (GENEL)
|
||||||
{ nameof(TableNameEnum.Activity), (TablePrefix.TenantByName, MenuPrefix.Saas) },
|
{ nameof(TableNameEnum.Activity), (TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||||
{ nameof(TableNameEnum.Branch), (TablePrefix.TenantByName, MenuPrefix.Saas) },
|
{ nameof(TableNameEnum.Branch), (TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||||
{ nameof(TableNameEnum.BranchUsers), (TablePrefix.TenantByName, MenuPrefix.Saas) },
|
{ nameof(TableNameEnum.BranchUsers), (TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||||
|
|
@ -64,7 +64,7 @@ public static class TableNameResolver
|
||||||
{ nameof(TableNameEnum.IpRestriction), (TablePrefix.TenantByName, MenuPrefix.Saas) },
|
{ nameof(TableNameEnum.IpRestriction), (TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||||
{ nameof(TableNameEnum.Sector), (TablePrefix.TenantByName, MenuPrefix.Saas) },
|
{ nameof(TableNameEnum.Sector), (TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||||
|
|
||||||
// 🔹 ADMINISTRATION
|
// 🔹 ADMINISTRATION
|
||||||
{ nameof(TableNameEnum.SkillType), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
{ nameof(TableNameEnum.SkillType), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||||
{ nameof(TableNameEnum.Skill), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
{ nameof(TableNameEnum.Skill), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||||
{ nameof(TableNameEnum.SkillLevel), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
{ nameof(TableNameEnum.SkillLevel), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||||
|
|
@ -95,7 +95,7 @@ public static class TableNameResolver
|
||||||
{ nameof(TableNameEnum.PartnerCertificate), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
{ nameof(TableNameEnum.PartnerCertificate), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||||
{ nameof(TableNameEnum.PartnerContact), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
{ nameof(TableNameEnum.PartnerContact), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||||
|
|
||||||
// 🔹 PARTICIPANT
|
// 🔹 PARTICIPANT
|
||||||
{ nameof(TableNameEnum.Interesting), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
{ nameof(TableNameEnum.Interesting), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
||||||
{ nameof(TableNameEnum.Source), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
{ nameof(TableNameEnum.Source), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
||||||
{ nameof(TableNameEnum.NoteType), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
{ nameof(TableNameEnum.NoteType), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
||||||
|
|
@ -103,7 +103,7 @@ public static class TableNameResolver
|
||||||
{ nameof(TableNameEnum.MeetingMethod), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
{ nameof(TableNameEnum.MeetingMethod), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
||||||
{ nameof(TableNameEnum.MeetingResult), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
{ nameof(TableNameEnum.MeetingResult), (TablePrefix.TenantByName, MenuPrefix.Participant) },
|
||||||
|
|
||||||
// 🔹 COORDINATOR
|
// 🔹 COORDINATOR
|
||||||
{ nameof(TableNameEnum.Schedule), (TablePrefix.BranchByName, MenuPrefix.Coordinator) },
|
{ nameof(TableNameEnum.Schedule), (TablePrefix.BranchByName, MenuPrefix.Coordinator) },
|
||||||
{ nameof(TableNameEnum.ScheduleLesson), (TablePrefix.BranchByName, MenuPrefix.Coordinator) },
|
{ nameof(TableNameEnum.ScheduleLesson), (TablePrefix.BranchByName, MenuPrefix.Coordinator) },
|
||||||
{ nameof(TableNameEnum.RegistrationType), (TablePrefix.BranchByName, MenuPrefix.Coordinator) },
|
{ nameof(TableNameEnum.RegistrationType), (TablePrefix.BranchByName, MenuPrefix.Coordinator) },
|
||||||
|
|
@ -123,7 +123,7 @@ public static class TableNameResolver
|
||||||
{ nameof(TableNameEnum.Question), (TablePrefix.TenantByName, MenuPrefix.Coordinator) },
|
{ nameof(TableNameEnum.Question), (TablePrefix.TenantByName, MenuPrefix.Coordinator) },
|
||||||
{ nameof(TableNameEnum.QuestionOption), (TablePrefix.TenantByName, MenuPrefix.Coordinator) },
|
{ nameof(TableNameEnum.QuestionOption), (TablePrefix.TenantByName, MenuPrefix.Coordinator) },
|
||||||
|
|
||||||
// 🔹 HR
|
// 🔹 HR
|
||||||
{ nameof(TableNameEnum.Department), (TablePrefix.TenantByName, MenuPrefix.Hr) },
|
{ nameof(TableNameEnum.Department), (TablePrefix.TenantByName, MenuPrefix.Hr) },
|
||||||
{ nameof(TableNameEnum.EmploymentType), (TablePrefix.TenantByName, MenuPrefix.Hr) },
|
{ nameof(TableNameEnum.EmploymentType), (TablePrefix.TenantByName, MenuPrefix.Hr) },
|
||||||
{ nameof(TableNameEnum.JobPosition), (TablePrefix.TenantByName, MenuPrefix.Hr) },
|
{ nameof(TableNameEnum.JobPosition), (TablePrefix.TenantByName, MenuPrefix.Hr) },
|
||||||
|
|
@ -143,7 +143,7 @@ public static class TableNameResolver
|
||||||
{ nameof(TableNameEnum.SurveyAnswer), (TablePrefix.TenantByName, MenuPrefix.Hr) },
|
{ nameof(TableNameEnum.SurveyAnswer), (TablePrefix.TenantByName, MenuPrefix.Hr) },
|
||||||
{ nameof(TableNameEnum.SurveyResponse), (TablePrefix.TenantByName, MenuPrefix.Hr) },
|
{ nameof(TableNameEnum.SurveyResponse), (TablePrefix.TenantByName, MenuPrefix.Hr) },
|
||||||
|
|
||||||
// Intranet
|
// 🔹 Intranet
|
||||||
{ nameof(TableNameEnum.EventCategory), (TablePrefix.TenantByName, MenuPrefix.Intranet) },
|
{ nameof(TableNameEnum.EventCategory), (TablePrefix.TenantByName, MenuPrefix.Intranet) },
|
||||||
{ nameof(TableNameEnum.EventType), (TablePrefix.TenantByName, MenuPrefix.Intranet) },
|
{ nameof(TableNameEnum.EventType), (TablePrefix.TenantByName, MenuPrefix.Intranet) },
|
||||||
{ nameof(TableNameEnum.Event), (TablePrefix.TenantByName, MenuPrefix.Intranet) },
|
{ nameof(TableNameEnum.Event), (TablePrefix.TenantByName, MenuPrefix.Intranet) },
|
||||||
|
|
@ -163,7 +163,7 @@ public static class TableNameResolver
|
||||||
{ nameof(TableNameEnum.SocialComment), (TablePrefix.TenantByName, MenuPrefix.Intranet) },
|
{ nameof(TableNameEnum.SocialComment), (TablePrefix.TenantByName, MenuPrefix.Intranet) },
|
||||||
{ nameof(TableNameEnum.SocialLike), (TablePrefix.TenantByName, MenuPrefix.Intranet) },
|
{ nameof(TableNameEnum.SocialLike), (TablePrefix.TenantByName, MenuPrefix.Intranet) },
|
||||||
|
|
||||||
//Supply Chain
|
// 🔹 Supply Chain
|
||||||
{ nameof(TableNameEnum.MaterialType), (TablePrefix.TenantByName, MenuPrefix.SupplyChain) },
|
{ nameof(TableNameEnum.MaterialType), (TablePrefix.TenantByName, MenuPrefix.SupplyChain) },
|
||||||
{ nameof(TableNameEnum.MaterialGroup), (TablePrefix.TenantByName, MenuPrefix.SupplyChain) },
|
{ nameof(TableNameEnum.MaterialGroup), (TablePrefix.TenantByName, MenuPrefix.SupplyChain) },
|
||||||
{ nameof(TableNameEnum.Material), (TablePrefix.TenantByName, MenuPrefix.SupplyChain) },
|
{ nameof(TableNameEnum.Material), (TablePrefix.TenantByName, MenuPrefix.SupplyChain) },
|
||||||
|
|
@ -177,8 +177,9 @@ public static class TableNameResolver
|
||||||
//Crm
|
//Crm
|
||||||
{ nameof(TableNameEnum.CustomerSegment), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
{ nameof(TableNameEnum.CustomerSegment), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
||||||
{ nameof(TableNameEnum.CustomerType), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
{ nameof(TableNameEnum.CustomerType), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
||||||
|
{ nameof(TableNameEnum.LossReason), (TablePrefix.TenantByName, MenuPrefix.Crm) },
|
||||||
|
|
||||||
// 🔹 ACCOUNTING
|
// 🔹 ACCOUNTING
|
||||||
{ nameof(TableNameEnum.Bank), (TablePrefix.TenantByName, MenuPrefix.Accounting) },
|
{ nameof(TableNameEnum.Bank), (TablePrefix.TenantByName, MenuPrefix.Accounting) },
|
||||||
{ nameof(TableNameEnum.BankAccount), (TablePrefix.TenantByName, MenuPrefix.Accounting) },
|
{ nameof(TableNameEnum.BankAccount), (TablePrefix.TenantByName, MenuPrefix.Accounting) },
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -487,6 +487,15 @@ public static class SeedConsts
|
||||||
public const string SurveyResponse = Default + ".SurveyResponse";
|
public const string SurveyResponse = Default + ".SurveyResponse";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static class Crm
|
||||||
|
{
|
||||||
|
public const string Default = Prefix.App + ".Crm";
|
||||||
|
public const string CustomerType = Default + ".CustomerType";
|
||||||
|
public const string CustomerSegment = Default + ".CustomerSegment";
|
||||||
|
public const string Customer = Default + ".Customer";
|
||||||
|
public const string LossReason = Default + ".LossReason";
|
||||||
|
}
|
||||||
|
|
||||||
public static class SupplyChain
|
public static class SupplyChain
|
||||||
{
|
{
|
||||||
public const string Default = Prefix.App + ".SupplyChain";
|
public const string Default = Prefix.App + ".SupplyChain";
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
using System;
|
||||||
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
|
namespace Erp.Platform.Entities;
|
||||||
|
|
||||||
|
public class LossReason : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
|
{
|
||||||
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
|
public string Code { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Description { get; set; }
|
||||||
|
public string Category { get; set; }
|
||||||
|
public bool IsActive { get; set; }
|
||||||
|
}
|
||||||
|
|
@ -57,8 +57,8 @@ public class Partner : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
public Guid? CustomerSegmentId { get; set; }
|
public Guid? CustomerSegmentId { get; set; }
|
||||||
public CustomerSegment? CustomerSegment { get; set; }
|
public CustomerSegment? CustomerSegment { get; set; }
|
||||||
|
|
||||||
public Guid? AssignedEmployeeId { get; set; }
|
public Guid? EmployeeId { get; set; }
|
||||||
public Employee? AssignedEmployee { get; set; }
|
public Employee? Employee { get; set; }
|
||||||
|
|
||||||
public string? TeamCode { get; set; } // Organization Unit Code
|
public string? TeamCode { get; set; } // Organization Unit Code
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ public class DefaultValueHelper : ITransientDependency
|
||||||
.Replace(PlatformConsts.DefaultValues.Month, now.Month.ToString(CultureInfo.InvariantCulture))
|
.Replace(PlatformConsts.DefaultValues.Month, now.Month.ToString(CultureInfo.InvariantCulture))
|
||||||
.Replace(PlatformConsts.DefaultValues.Year, now.Year.ToString(CultureInfo.InvariantCulture));
|
.Replace(PlatformConsts.DefaultValues.Year, now.Year.ToString(CultureInfo.InvariantCulture));
|
||||||
|
|
||||||
// 🔹 TenantId özel durumu: NULL => IS NULL, varsa => = 'GUID'
|
// 🔹 TenantId özel durumu: NULL => IS NULL, varsa => = 'GUID'
|
||||||
if (_currentTenant?.Id.HasValue == true)
|
if (_currentTenant?.Id.HasValue == true)
|
||||||
{
|
{
|
||||||
result = result.Replace(
|
result = result.Replace(
|
||||||
|
|
|
||||||
|
|
@ -216,6 +216,10 @@ public class PlatformDbContext :
|
||||||
public DbSet<ApprovalStep> ApprovalSteps { get; set; }
|
public DbSet<ApprovalStep> ApprovalSteps { get; set; }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Crm
|
||||||
|
public DbSet<LossReason> LostReasons { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region Accounting
|
#region Accounting
|
||||||
public DbSet<Bank> Banks { get; set; }
|
public DbSet<Bank> Banks { get; set; }
|
||||||
public DbSet<BankAccount> BankAccounts { get; set; }
|
public DbSet<BankAccount> BankAccounts { get; set; }
|
||||||
|
|
@ -2340,7 +2344,6 @@ public class PlatformDbContext :
|
||||||
b.Property(p => p.SectorId).IsRequired();
|
b.Property(p => p.SectorId).IsRequired();
|
||||||
b.Property(p => p.TaxNumber).IsRequired();
|
b.Property(p => p.TaxNumber).IsRequired();
|
||||||
b.Property(p => p.TaxOffice).HasMaxLength(128);
|
b.Property(p => p.TaxOffice).HasMaxLength(128);
|
||||||
b.Property(p => p.CurrencyId).IsRequired();
|
|
||||||
b.Property(p => p.PaymentTermId).IsRequired();
|
b.Property(p => p.PaymentTermId).IsRequired();
|
||||||
b.Property(p => p.Country).IsRequired().HasMaxLength(64);
|
b.Property(p => p.Country).IsRequired().HasMaxLength(64);
|
||||||
b.Property(p => p.City).IsRequired().HasMaxLength(64);
|
b.Property(p => p.City).IsRequired().HasMaxLength(64);
|
||||||
|
|
@ -2390,9 +2393,9 @@ public class PlatformDbContext :
|
||||||
.HasForeignKey(x => x.CustomerSegmentId)
|
.HasForeignKey(x => x.CustomerSegmentId)
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
b.HasOne(x => x.AssignedEmployee)
|
b.HasOne(x => x.Employee)
|
||||||
.WithMany(x => x.Partners)
|
.WithMany(x => x.Partners)
|
||||||
.HasForeignKey(x => x.AssignedEmployeeId)
|
.HasForeignKey(x => x.EmployeeId)
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -2560,6 +2563,17 @@ public class PlatformDbContext :
|
||||||
.HasForeignKey(x => x.ApprovalId)
|
.HasForeignKey(x => x.ApprovalId)
|
||||||
.OnDelete(DeleteBehavior.Cascade);
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
builder.Entity<LossReason>(b =>
|
||||||
|
{
|
||||||
|
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.LossReason)), Prefix.DbSchema);
|
||||||
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(x => x.Code).IsRequired().HasMaxLength(100);
|
||||||
|
b.Property(x => x.Name).IsRequired().HasMaxLength(200);
|
||||||
|
b.Property(x => x.Description).HasMaxLength(500);
|
||||||
|
b.Property(x => x.Category).HasMaxLength(50).IsRequired();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
||||||
namespace Erp.Platform.Migrations
|
namespace Erp.Platform.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(PlatformDbContext))]
|
[DbContext(typeof(PlatformDbContext))]
|
||||||
[Migration("20251113092739_Initial")]
|
[Migration("20251113203111_Initial")]
|
||||||
partial class Initial
|
partial class Initial
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
@ -895,6 +895,7 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("EmployeeIds")
|
b.Property<string>("EmployeeIds")
|
||||||
|
.IsRequired()
|
||||||
.HasMaxLength(1000)
|
.HasMaxLength(1000)
|
||||||
.HasColumnType("nvarchar(1000)");
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
|
|
@ -5774,6 +5775,72 @@ namespace Erp.Platform.Migrations
|
||||||
b.ToTable("Plat_H_LogEntry", (string)null);
|
b.ToTable("Plat_H_LogEntry", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.LossReason", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<string>("Category")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
|
b.Property<string>("Code")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("CreationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("CreatorId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
|
b.Property<Guid?>("DeleterId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("DeleterId");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DeletionTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(500)
|
||||||
|
.HasColumnType("nvarchar(500)");
|
||||||
|
|
||||||
|
b.Property<bool>("IsActive")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<bool>("IsDeleted")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false)
|
||||||
|
.HasColumnName("IsDeleted");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastModificationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("LastModificationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("LastModifierId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("nvarchar(200)");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Crm_T_LossReason", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Material", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Material", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
|
|
@ -6711,9 +6778,6 @@ namespace Erp.Platform.Migrations
|
||||||
.HasMaxLength(256)
|
.HasMaxLength(256)
|
||||||
.HasColumnType("nvarchar(256)");
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<Guid?>("AssignedEmployeeId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<decimal>("AverageOrderValue")
|
b.Property<decimal>("AverageOrderValue")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasPrecision(18, 2)
|
.HasPrecision(18, 2)
|
||||||
|
|
@ -6753,7 +6817,7 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("decimal(18,2)")
|
.HasColumnType("decimal(18,2)")
|
||||||
.HasDefaultValue(0m);
|
.HasDefaultValue(0m);
|
||||||
|
|
||||||
b.Property<Guid>("CurrencyId")
|
b.Property<Guid?>("CurrencyId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<decimal>("CurrentBalance")
|
b.Property<decimal>("CurrentBalance")
|
||||||
|
|
@ -6791,6 +6855,9 @@ namespace Erp.Platform.Migrations
|
||||||
.HasMaxLength(128)
|
.HasMaxLength(128)
|
||||||
.HasColumnType("nvarchar(128)");
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
|
b.Property<Guid?>("EmployeeId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("FaxNumber")
|
b.Property<string>("FaxNumber")
|
||||||
.HasMaxLength(20)
|
.HasMaxLength(20)
|
||||||
.HasColumnType("nvarchar(20)");
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
@ -6901,14 +6968,14 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("AssignedEmployeeId");
|
|
||||||
|
|
||||||
b.HasIndex("CurrencyId");
|
b.HasIndex("CurrencyId");
|
||||||
|
|
||||||
b.HasIndex("CustomerSegmentId");
|
b.HasIndex("CustomerSegmentId");
|
||||||
|
|
||||||
b.HasIndex("CustomerTypeId");
|
b.HasIndex("CustomerTypeId");
|
||||||
|
|
||||||
|
b.HasIndex("EmployeeId");
|
||||||
|
|
||||||
b.HasIndex("MaterialId");
|
b.HasIndex("MaterialId");
|
||||||
|
|
||||||
b.HasIndex("PaymentTermId");
|
b.HasIndex("PaymentTermId");
|
||||||
|
|
@ -13371,16 +13438,9 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Partner", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Partner", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Erp.Platform.Entities.Employee", "AssignedEmployee")
|
|
||||||
.WithMany("Partners")
|
|
||||||
.HasForeignKey("AssignedEmployeeId")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.Currency", "Currency")
|
b.HasOne("Erp.Platform.Entities.Currency", "Currency")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("CurrencyId")
|
.HasForeignKey("CurrencyId");
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.CustomerSegment", "CustomerSegment")
|
b.HasOne("Erp.Platform.Entities.CustomerSegment", "CustomerSegment")
|
||||||
.WithMany("Partners")
|
.WithMany("Partners")
|
||||||
|
|
@ -13392,6 +13452,11 @@ namespace Erp.Platform.Migrations
|
||||||
.HasForeignKey("CustomerTypeId")
|
.HasForeignKey("CustomerTypeId")
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
|
b.HasOne("Erp.Platform.Entities.Employee", "Employee")
|
||||||
|
.WithMany("Partners")
|
||||||
|
.HasForeignKey("EmployeeId")
|
||||||
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.Material", null)
|
b.HasOne("Erp.Platform.Entities.Material", null)
|
||||||
.WithMany("Suppliers")
|
.WithMany("Suppliers")
|
||||||
.HasForeignKey("MaterialId");
|
.HasForeignKey("MaterialId");
|
||||||
|
|
@ -13418,14 +13483,14 @@ namespace Erp.Platform.Migrations
|
||||||
.HasForeignKey("SupplyCardTypeId")
|
.HasForeignKey("SupplyCardTypeId")
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
b.Navigation("AssignedEmployee");
|
|
||||||
|
|
||||||
b.Navigation("Currency");
|
b.Navigation("Currency");
|
||||||
|
|
||||||
b.Navigation("CustomerSegment");
|
b.Navigation("CustomerSegment");
|
||||||
|
|
||||||
b.Navigation("CustomerType");
|
b.Navigation("CustomerType");
|
||||||
|
|
||||||
|
b.Navigation("Employee");
|
||||||
|
|
||||||
b.Navigation("PaymentTerm");
|
b.Navigation("PaymentTerm");
|
||||||
|
|
||||||
b.Navigation("Sector");
|
b.Navigation("Sector");
|
||||||
|
|
@ -1122,6 +1122,30 @@ namespace Erp.Platform.Migrations
|
||||||
table.PrimaryKey("PK_Crm_T_CustomerType", x => x.Id);
|
table.PrimaryKey("PK_Crm_T_CustomerType", x => x.Id);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Crm_T_LossReason",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
Code = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
|
||||||
|
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
|
||||||
|
Description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||||
|
Category = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||||
|
IsActive = table.Column<bool>(type: "bit", nullable: false),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
||||||
|
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_Crm_T_LossReason", x => x.Id);
|
||||||
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "Hr_T_Badge",
|
name: "Hr_T_Badge",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
|
|
@ -4109,14 +4133,14 @@ namespace Erp.Platform.Migrations
|
||||||
FaxNumber = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
FaxNumber = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
||||||
Email = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
Email = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
||||||
Website = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
Website = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
|
||||||
CurrencyId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
CurrencyId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
PaymentTermId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
PaymentTermId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
CreditLimit = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
CreditLimit = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||||
LastOrderDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
LastOrderDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
Status = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: false),
|
Status = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: false),
|
||||||
CustomerTypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CustomerTypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
CustomerSegmentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
CustomerSegmentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
AssignedEmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
EmployeeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
TeamCode = table.Column<string>(type: "nvarchar(95)", maxLength: 95, nullable: true),
|
TeamCode = table.Column<string>(type: "nvarchar(95)", maxLength: 95, nullable: true),
|
||||||
TotalRevenue = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
TotalRevenue = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||||
AverageOrderValue = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
AverageOrderValue = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false, defaultValue: 0m),
|
||||||
|
|
@ -4157,8 +4181,7 @@ namespace Erp.Platform.Migrations
|
||||||
name: "FK_Adm_T_Partner_Sas_H_Currency_CurrencyId",
|
name: "FK_Adm_T_Partner_Sas_H_Currency_CurrencyId",
|
||||||
column: x => x.CurrencyId,
|
column: x => x.CurrencyId,
|
||||||
principalTable: "Sas_H_Currency",
|
principalTable: "Sas_H_Currency",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id");
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_Adm_T_Partner_Sas_T_Sector_SectorId",
|
name: "FK_Adm_T_Partner_Sas_T_Sector_SectorId",
|
||||||
column: x => x.SectorId,
|
column: x => x.SectorId,
|
||||||
|
|
@ -4694,7 +4717,7 @@ namespace Erp.Platform.Migrations
|
||||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
ApprovalId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
ApprovalId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
Level = table.Column<int>(type: "int", nullable: false),
|
Level = table.Column<int>(type: "int", nullable: false),
|
||||||
EmployeeIds = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
EmployeeIds = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
||||||
TimeoutDays = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
TimeoutDays = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
||||||
IsRequired = table.Column<bool>(type: "bit", nullable: false),
|
IsRequired = table.Column<bool>(type: "bit", nullable: false),
|
||||||
IsParallel = table.Column<bool>(type: "bit", nullable: false),
|
IsParallel = table.Column<bool>(type: "bit", nullable: false),
|
||||||
|
|
@ -5595,11 +5618,6 @@ namespace Erp.Platform.Migrations
|
||||||
table: "Adm_T_OrderItem",
|
table: "Adm_T_OrderItem",
|
||||||
column: "OrderId");
|
column: "OrderId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_Adm_T_Partner_AssignedEmployeeId",
|
|
||||||
table: "Adm_T_Partner",
|
|
||||||
column: "AssignedEmployeeId");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Adm_T_Partner_CurrencyId",
|
name: "IX_Adm_T_Partner_CurrencyId",
|
||||||
table: "Adm_T_Partner",
|
table: "Adm_T_Partner",
|
||||||
|
|
@ -5615,6 +5633,11 @@ namespace Erp.Platform.Migrations
|
||||||
table: "Adm_T_Partner",
|
table: "Adm_T_Partner",
|
||||||
column: "CustomerTypeId");
|
column: "CustomerTypeId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_Adm_T_Partner_EmployeeId",
|
||||||
|
table: "Adm_T_Partner",
|
||||||
|
column: "EmployeeId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Adm_T_Partner_MaterialId",
|
name: "IX_Adm_T_Partner_MaterialId",
|
||||||
table: "Adm_T_Partner",
|
table: "Adm_T_Partner",
|
||||||
|
|
@ -6292,9 +6315,9 @@ namespace Erp.Platform.Migrations
|
||||||
onDelete: ReferentialAction.Restrict);
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
migrationBuilder.AddForeignKey(
|
||||||
name: "FK_Adm_T_Partner_Hr_T_Employee_AssignedEmployeeId",
|
name: "FK_Adm_T_Partner_Hr_T_Employee_EmployeeId",
|
||||||
table: "Adm_T_Partner",
|
table: "Adm_T_Partner",
|
||||||
column: "AssignedEmployeeId",
|
column: "EmployeeId",
|
||||||
principalTable: "Hr_T_Employee",
|
principalTable: "Hr_T_Employee",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Restrict);
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
|
@ -6540,6 +6563,9 @@ namespace Erp.Platform.Migrations
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Crd_T_QuestionTag");
|
name: "Crd_T_QuestionTag");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Crm_T_LossReason");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Hr_T_Expense");
|
name: "Hr_T_Expense");
|
||||||
|
|
||||||
|
|
@ -892,6 +892,7 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnName("DeletionTime");
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
b.Property<string>("EmployeeIds")
|
b.Property<string>("EmployeeIds")
|
||||||
|
.IsRequired()
|
||||||
.HasMaxLength(1000)
|
.HasMaxLength(1000)
|
||||||
.HasColumnType("nvarchar(1000)");
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
|
|
@ -5771,6 +5772,72 @@ namespace Erp.Platform.Migrations
|
||||||
b.ToTable("Plat_H_LogEntry", (string)null);
|
b.ToTable("Plat_H_LogEntry", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Erp.Platform.Entities.LossReason", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<string>("Category")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
|
b.Property<string>("Code")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("nvarchar(100)");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("CreationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("CreatorId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
|
b.Property<Guid?>("DeleterId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("DeleterId");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DeletionTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(500)
|
||||||
|
.HasColumnType("nvarchar(500)");
|
||||||
|
|
||||||
|
b.Property<bool>("IsActive")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<bool>("IsDeleted")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false)
|
||||||
|
.HasColumnName("IsDeleted");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastModificationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("LastModificationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("LastModifierId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("nvarchar(200)");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Crm_T_LossReason", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Material", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Material", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
|
|
@ -6708,9 +6775,6 @@ namespace Erp.Platform.Migrations
|
||||||
.HasMaxLength(256)
|
.HasMaxLength(256)
|
||||||
.HasColumnType("nvarchar(256)");
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
b.Property<Guid?>("AssignedEmployeeId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<decimal>("AverageOrderValue")
|
b.Property<decimal>("AverageOrderValue")
|
||||||
.ValueGeneratedOnAdd()
|
.ValueGeneratedOnAdd()
|
||||||
.HasPrecision(18, 2)
|
.HasPrecision(18, 2)
|
||||||
|
|
@ -6750,7 +6814,7 @@ namespace Erp.Platform.Migrations
|
||||||
.HasColumnType("decimal(18,2)")
|
.HasColumnType("decimal(18,2)")
|
||||||
.HasDefaultValue(0m);
|
.HasDefaultValue(0m);
|
||||||
|
|
||||||
b.Property<Guid>("CurrencyId")
|
b.Property<Guid?>("CurrencyId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<decimal>("CurrentBalance")
|
b.Property<decimal>("CurrentBalance")
|
||||||
|
|
@ -6788,6 +6852,9 @@ namespace Erp.Platform.Migrations
|
||||||
.HasMaxLength(128)
|
.HasMaxLength(128)
|
||||||
.HasColumnType("nvarchar(128)");
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
|
b.Property<Guid?>("EmployeeId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("FaxNumber")
|
b.Property<string>("FaxNumber")
|
||||||
.HasMaxLength(20)
|
.HasMaxLength(20)
|
||||||
.HasColumnType("nvarchar(20)");
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
@ -6898,14 +6965,14 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("AssignedEmployeeId");
|
|
||||||
|
|
||||||
b.HasIndex("CurrencyId");
|
b.HasIndex("CurrencyId");
|
||||||
|
|
||||||
b.HasIndex("CustomerSegmentId");
|
b.HasIndex("CustomerSegmentId");
|
||||||
|
|
||||||
b.HasIndex("CustomerTypeId");
|
b.HasIndex("CustomerTypeId");
|
||||||
|
|
||||||
|
b.HasIndex("EmployeeId");
|
||||||
|
|
||||||
b.HasIndex("MaterialId");
|
b.HasIndex("MaterialId");
|
||||||
|
|
||||||
b.HasIndex("PaymentTermId");
|
b.HasIndex("PaymentTermId");
|
||||||
|
|
@ -13368,16 +13435,9 @@ namespace Erp.Platform.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("Erp.Platform.Entities.Partner", b =>
|
modelBuilder.Entity("Erp.Platform.Entities.Partner", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Erp.Platform.Entities.Employee", "AssignedEmployee")
|
|
||||||
.WithMany("Partners")
|
|
||||||
.HasForeignKey("AssignedEmployeeId")
|
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.Currency", "Currency")
|
b.HasOne("Erp.Platform.Entities.Currency", "Currency")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("CurrencyId")
|
.HasForeignKey("CurrencyId");
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.CustomerSegment", "CustomerSegment")
|
b.HasOne("Erp.Platform.Entities.CustomerSegment", "CustomerSegment")
|
||||||
.WithMany("Partners")
|
.WithMany("Partners")
|
||||||
|
|
@ -13389,6 +13449,11 @@ namespace Erp.Platform.Migrations
|
||||||
.HasForeignKey("CustomerTypeId")
|
.HasForeignKey("CustomerTypeId")
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
|
b.HasOne("Erp.Platform.Entities.Employee", "Employee")
|
||||||
|
.WithMany("Partners")
|
||||||
|
.HasForeignKey("EmployeeId")
|
||||||
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
b.HasOne("Erp.Platform.Entities.Material", null)
|
b.HasOne("Erp.Platform.Entities.Material", null)
|
||||||
.WithMany("Suppliers")
|
.WithMany("Suppliers")
|
||||||
.HasForeignKey("MaterialId");
|
.HasForeignKey("MaterialId");
|
||||||
|
|
@ -13415,14 +13480,14 @@ namespace Erp.Platform.Migrations
|
||||||
.HasForeignKey("SupplyCardTypeId")
|
.HasForeignKey("SupplyCardTypeId")
|
||||||
.OnDelete(DeleteBehavior.Restrict);
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
b.Navigation("AssignedEmployee");
|
|
||||||
|
|
||||||
b.Navigation("Currency");
|
b.Navigation("Currency");
|
||||||
|
|
||||||
b.Navigation("CustomerSegment");
|
b.Navigation("CustomerSegment");
|
||||||
|
|
||||||
b.Navigation("CustomerType");
|
b.Navigation("CustomerType");
|
||||||
|
|
||||||
|
b.Navigation("Employee");
|
||||||
|
|
||||||
b.Navigation("PaymentTerm");
|
b.Navigation("PaymentTerm");
|
||||||
|
|
||||||
b.Navigation("Sector");
|
b.Navigation("Sector");
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,9 @@
|
||||||
"props": null,
|
"props": null,
|
||||||
"description": null,
|
"description": null,
|
||||||
"isActive": true,
|
"isActive": true,
|
||||||
"dependencies": ["DynamicEntityComponent"]
|
"dependencies": [
|
||||||
|
"DynamicEntityComponent"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ReportCategories": [
|
"ReportCategories": [
|
||||||
|
|
@ -2406,7 +2408,12 @@
|
||||||
"minSalary": 80000,
|
"minSalary": 80000,
|
||||||
"maxSalary": 120000,
|
"maxSalary": 120000,
|
||||||
"currencyCode": "USD",
|
"currencyCode": "USD",
|
||||||
"requiredSkills": ["JavaScript", "TypeScript", "React", "Node.js"],
|
"requiredSkills": [
|
||||||
|
"JavaScript",
|
||||||
|
"TypeScript",
|
||||||
|
"React",
|
||||||
|
"Node.js"
|
||||||
|
],
|
||||||
"responsibilities": [
|
"responsibilities": [
|
||||||
"Develop frontend and backend applications",
|
"Develop frontend and backend applications",
|
||||||
"Write clean and maintainable code",
|
"Write clean and maintainable code",
|
||||||
|
|
@ -4101,7 +4108,9 @@
|
||||||
{
|
{
|
||||||
"postContent": "CI/CD pipeline güncellememiz tamamlandı! Deployment süremiz %40 azaldı. Otomasyonun gücü 💪",
|
"postContent": "CI/CD pipeline güncellememiz tamamlandı! Deployment süremiz %40 azaldı. Otomasyonun gücü 💪",
|
||||||
"type": "video",
|
"type": "video",
|
||||||
"urls": ["https://www.w3schools.com/html/mov_bbb.mp4"]
|
"urls": [
|
||||||
|
"https://www.w3schools.com/html/mov_bbb.mp4"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"SocialPollOptions": [
|
"SocialPollOptions": [
|
||||||
|
|
@ -4433,5 +4442,331 @@
|
||||||
"description": "Tercih edilen tedarikçi kartı",
|
"description": "Tercih edilen tedarikçi kartı",
|
||||||
"isActive": true
|
"isActive": true
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"CustomerTypes": [
|
||||||
|
{
|
||||||
|
"code": "Individual",
|
||||||
|
"name": "Bireysel",
|
||||||
|
"description": "Bireysel müşteriler",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "Company",
|
||||||
|
"name": "Şirket",
|
||||||
|
"description": "Kurumsal müşteriler",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "Government",
|
||||||
|
"name": "Devlet",
|
||||||
|
"description": "Kamu kurumları ve devlet daireleri",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "NonProfit",
|
||||||
|
"name": "Kar Amacı Gütmeyen",
|
||||||
|
"description": "STK ve kar amacı gütmeyen kuruluşlar",
|
||||||
|
"isActive": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"CustomerSegments": [
|
||||||
|
{
|
||||||
|
"code": "SMB",
|
||||||
|
"name": "KOBİ",
|
||||||
|
"description": "Küçük ve Orta Büyüklükteki İşletmeler",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "Enterprise",
|
||||||
|
"name": "Kurumsal",
|
||||||
|
"description": "Büyük ölçekli işletmeler ve kurumlar",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "Startup",
|
||||||
|
"name": "Yeni Kuruluş",
|
||||||
|
"description": "Yeni kurulan işletmeler",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "Government",
|
||||||
|
"name": "Devlet",
|
||||||
|
"description": "Kamu kurumları ve devlet daireleri",
|
||||||
|
"isActive": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Partners": [
|
||||||
|
{
|
||||||
|
"Code": "SUP001",
|
||||||
|
"Name": "ABC Malzeme Ltd.",
|
||||||
|
"PartyType": "Supplier",
|
||||||
|
"SectorName": "Ambalaj",
|
||||||
|
"TaxNumber": 1234567890,
|
||||||
|
"TaxOffice": "İstanbul Vergi Dairesi",
|
||||||
|
"Country": "Türkiye",
|
||||||
|
"City": "İstanbul",
|
||||||
|
"District": "İstanbul",
|
||||||
|
"Street": "Atatürk Cad. No:10",
|
||||||
|
"Address1": null,
|
||||||
|
"Address2": null,
|
||||||
|
"PostalCode": "34000",
|
||||||
|
"MobileNumber": null,
|
||||||
|
"PhoneNumber": "2125551234",
|
||||||
|
"FaxNumber": null,
|
||||||
|
"Email": "aliveli@gmail.com",
|
||||||
|
"Website": "www.abcmalzeme.com",
|
||||||
|
"CurrencyCode": "TRY",
|
||||||
|
"PaymentTermName": "Net30",
|
||||||
|
"CreditLimit": 500000,
|
||||||
|
"Status": "Active",
|
||||||
|
"CustomerTypeName": null,
|
||||||
|
"CustomerSegmentName": null,
|
||||||
|
"EmployeeCode": null,
|
||||||
|
"TeamCode": null,
|
||||||
|
"TotalRevenue": 0,
|
||||||
|
"AverageOrderValue": 0,
|
||||||
|
"LifetimeValue": 0,
|
||||||
|
"SupplyTypeName": "Manufacturer",
|
||||||
|
"SupplyCardTypeName": "Standard",
|
||||||
|
"CardNumber": "SC-2024-001",
|
||||||
|
"ValidFrom": "2024-01-01T00:00:00.000Z",
|
||||||
|
"ValidTo": "2024-12-31T00:00:00.000Z",
|
||||||
|
"CurrentBalance": 120000,
|
||||||
|
"DiscountRate": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Code": "SUP002",
|
||||||
|
"Name": "XYZ Teknoloji A.Ş.",
|
||||||
|
"PartyType": "Supplier",
|
||||||
|
"SectorName": "Cam, Çimento ve Toprak",
|
||||||
|
"TaxNumber": 987654321,
|
||||||
|
"TaxOffice": null,
|
||||||
|
"Country": "Türkiye",
|
||||||
|
"City": "İstanbul",
|
||||||
|
"District": "İstanbul",
|
||||||
|
"Street": "Barbaros Bulv. No:20",
|
||||||
|
"Address1": null,
|
||||||
|
"Address2": null,
|
||||||
|
"PostalCode": "34746",
|
||||||
|
"MobileNumber": null,
|
||||||
|
"PhoneNumber": "+90 216 555 5678",
|
||||||
|
"FaxNumber": null,
|
||||||
|
"Email": "aysedemir@gmail.com",
|
||||||
|
"Website": null,
|
||||||
|
"CurrencyCode": "TRY",
|
||||||
|
"PaymentTermName": "Net15",
|
||||||
|
"CreditLimit": 250000,
|
||||||
|
"Status": "Active",
|
||||||
|
"CustomerTypeName": null,
|
||||||
|
"CustomerSegmentName": null,
|
||||||
|
"EmployeeCode": null,
|
||||||
|
"TeamCode": null,
|
||||||
|
"TotalRevenue": 0,
|
||||||
|
"AverageOrderValue": 0,
|
||||||
|
"LifetimeValue": 0,
|
||||||
|
"SupplyTypeName": "ServiceProvider",
|
||||||
|
"SupplyCardTypeName": "Premium",
|
||||||
|
"CardNumber": "SC-2024-002",
|
||||||
|
"ValidFrom": "2024-02-01T00:00:00.000Z",
|
||||||
|
"ValidTo": "2024-12-31T00:00:00.000Z",
|
||||||
|
"CurrentBalance": 75000,
|
||||||
|
"DiscountRate": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Code": "SUP003",
|
||||||
|
"Name": "LMN Endüstri A.Ş.",
|
||||||
|
"PartyType": "Supplier",
|
||||||
|
"SectorName": "Bilişim Teknolojileri",
|
||||||
|
"TaxNumber": 1122334455,
|
||||||
|
"TaxOffice": null,
|
||||||
|
"Country": "Türkiye",
|
||||||
|
"City": "İzmir",
|
||||||
|
"District": "İzmir",
|
||||||
|
"Street": "Atatürk Cad. No:5",
|
||||||
|
"Address1": null,
|
||||||
|
"Address2": null,
|
||||||
|
"PostalCode": "35210",
|
||||||
|
"MobileNumber": null,
|
||||||
|
"PhoneNumber": "+90 232 555 7890",
|
||||||
|
"FaxNumber": null,
|
||||||
|
"Email": "mehmetyilmaz@gmail.com",
|
||||||
|
"Website": null,
|
||||||
|
"CurrencyCode": "TRY",
|
||||||
|
"PaymentTermName": "Net45",
|
||||||
|
"CreditLimit": 150000,
|
||||||
|
"Status": "Active",
|
||||||
|
"CustomerTypeName": null,
|
||||||
|
"CustomerSegmentName": null,
|
||||||
|
"EmployeeCode": null,
|
||||||
|
"TeamCode": null,
|
||||||
|
"TotalRevenue": 0,
|
||||||
|
"AverageOrderValue": 0,
|
||||||
|
"LifetimeValue": 0,
|
||||||
|
"SupplyTypeName": "Manufacturer",
|
||||||
|
"SupplyCardTypeName": "Preferred",
|
||||||
|
"CardNumber": "SC-2024-003",
|
||||||
|
"ValidFrom": "2024-03-01T00:00:00.000Z",
|
||||||
|
"ValidTo": "2024-12-31T00:00:00.000Z",
|
||||||
|
"CurrentBalance": 45000,
|
||||||
|
"DiscountRate": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Code": "SUP004",
|
||||||
|
"Name": "OPQ Ticaret Ltd.",
|
||||||
|
"PartyType": "Supplier",
|
||||||
|
"SectorName": "Ambalaj",
|
||||||
|
"TaxNumber": 6677889900,
|
||||||
|
"TaxOffice": null,
|
||||||
|
"Country": "Türkiye",
|
||||||
|
"City": "Ankara",
|
||||||
|
"District": "Ankara",
|
||||||
|
"Street": "Kızılay Meydanı No:15",
|
||||||
|
"Address1": null,
|
||||||
|
"Address2": null,
|
||||||
|
"PostalCode": "06690",
|
||||||
|
"MobileNumber": null,
|
||||||
|
"PhoneNumber": "+90 312 555 3456",
|
||||||
|
"FaxNumber": null,
|
||||||
|
"Email": "fatmacelik@gmail.com",
|
||||||
|
"Website": null,
|
||||||
|
"CurrencyCode": "TRY",
|
||||||
|
"PaymentTermName": "Net30",
|
||||||
|
"CreditLimit": 100000,
|
||||||
|
"Status": "Inactive",
|
||||||
|
"CustomerTypeName": null,
|
||||||
|
"CustomerSegmentName": null,
|
||||||
|
"EmployeeCode": null,
|
||||||
|
"TeamCode": null,
|
||||||
|
"TotalRevenue": 0,
|
||||||
|
"AverageOrderValue": 0,
|
||||||
|
"LifetimeValue": 0,
|
||||||
|
"SupplyTypeName": "Distributor",
|
||||||
|
"SupplyCardTypeName": "Standard",
|
||||||
|
"CardNumber": "SC-2024-004",
|
||||||
|
"ValidFrom": "2024-04-01T00:00:00.000Z",
|
||||||
|
"ValidTo": "2024-12-31T00:00:00.000Z",
|
||||||
|
"CurrentBalance": 30000,
|
||||||
|
"DiscountRate": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Code": "CUST-002",
|
||||||
|
"Name": "Üretim Ltd.",
|
||||||
|
"PartyType": "Customer",
|
||||||
|
"SectorName": "Bilişim Teknolojileri",
|
||||||
|
"TaxNumber": 987654321,
|
||||||
|
"TaxOffice": null,
|
||||||
|
"Country": "Türkiye",
|
||||||
|
"City": "Ankara",
|
||||||
|
"District": "Ankara",
|
||||||
|
"Street": "Sanayi Sitesi 5. Cadde No:25",
|
||||||
|
"Address1": null,
|
||||||
|
"Address2": null,
|
||||||
|
"PostalCode": "06000",
|
||||||
|
"MobileNumber": null,
|
||||||
|
"PhoneNumber": null,
|
||||||
|
"FaxNumber": null,
|
||||||
|
"Email": null,
|
||||||
|
"Website": "www.uretim.com",
|
||||||
|
"CurrencyCode": "TRY",
|
||||||
|
"PaymentTermName": "Net60",
|
||||||
|
"CreditLimit": 500000,
|
||||||
|
"Status": "Active",
|
||||||
|
"CustomerTypeName": "Company",
|
||||||
|
"CustomerSegmentName": "SMB",
|
||||||
|
"EmployeeCode": "REP-002",
|
||||||
|
"TeamCode": "TEAM-001",
|
||||||
|
"TotalRevenue": 850000,
|
||||||
|
"AverageOrderValue": 42500,
|
||||||
|
"LifetimeValue": 1700000,
|
||||||
|
"SupplyTypeName": null,
|
||||||
|
"SupplyCardTypeName": null,
|
||||||
|
"CardNumber": null,
|
||||||
|
"ValidFrom": null,
|
||||||
|
"ValidTo": null,
|
||||||
|
"CurrentBalance": 0,
|
||||||
|
"DiscountRate": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Code": "CUST-001",
|
||||||
|
"Name": "Teknoloji A.Ş.",
|
||||||
|
"PartyType": "Customer",
|
||||||
|
"SectorName": "Bilişim Teknolojileri",
|
||||||
|
"TaxNumber": 1234567890,
|
||||||
|
"TaxOffice": null,
|
||||||
|
"Country": "Türkiye",
|
||||||
|
"City": "İstanbul",
|
||||||
|
"District": "İstanbul",
|
||||||
|
"Street": "Teknoloji Caddesi No:100",
|
||||||
|
"Address1": null,
|
||||||
|
"Address2": null,
|
||||||
|
"PostalCode": "34000",
|
||||||
|
"MobileNumber": null,
|
||||||
|
"PhoneNumber": null,
|
||||||
|
"FaxNumber": null,
|
||||||
|
"Email": null,
|
||||||
|
"Website": "www.teknoloji.com",
|
||||||
|
"CurrencyCode": "TRY",
|
||||||
|
"PaymentTermName": "Net30",
|
||||||
|
"CreditLimit": 1000000,
|
||||||
|
"Status": "Active",
|
||||||
|
"CustomerTypeName": "Company",
|
||||||
|
"CustomerSegmentName": "Enterprise",
|
||||||
|
"EmployeeCode": "REP-001",
|
||||||
|
"TeamCode": "TEAM-001",
|
||||||
|
"TotalRevenue": 2500000,
|
||||||
|
"AverageOrderValue": 125000,
|
||||||
|
"LifetimeValue": 5000000,
|
||||||
|
"SupplyTypeName": null,
|
||||||
|
"SupplyCardTypeName": null,
|
||||||
|
"CardNumber": null,
|
||||||
|
"ValidFrom": null,
|
||||||
|
"ValidTo": null,
|
||||||
|
"CurrentBalance": 0,
|
||||||
|
"DiscountRate": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"LossReasons": [
|
||||||
|
{
|
||||||
|
"code": "LR001",
|
||||||
|
"name": "Fiyat Rekabetsizliği",
|
||||||
|
"description": "Müşteri daha uygun fiyatlı alternatif buldu",
|
||||||
|
"category": "Price",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "LR002",
|
||||||
|
"name": "Ürün Özellik Eksikliği",
|
||||||
|
"description": "Ürünümüzde müşterinin istediği özellik bulunmuyor",
|
||||||
|
"category": "Product",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "LR003",
|
||||||
|
"name": "Destek Kalitesi",
|
||||||
|
"description": "Müşteri destek kalitemizden memnun değil",
|
||||||
|
"category": "Service",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "LR004",
|
||||||
|
"name": "Rakip Avantajı",
|
||||||
|
"description": "Rakip daha iyi şartlar sundu",
|
||||||
|
"category": "Competitor",
|
||||||
|
"isActive": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "LR005",
|
||||||
|
"name": "Yanlış Zamanlama",
|
||||||
|
"description": "Müşteri zamanlaması uygun değil",
|
||||||
|
"category": "Timing",
|
||||||
|
"isActive": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "LR006",
|
||||||
|
"name": "Bütçe Kısıtlaması",
|
||||||
|
"description": "Müşteri bütçesi yetersiz",
|
||||||
|
"category": "Budget",
|
||||||
|
"isActive": true
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -98,6 +98,10 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
private readonly IRepository<PaymentTerm, Guid> _paymentTermRepository;
|
private readonly IRepository<PaymentTerm, Guid> _paymentTermRepository;
|
||||||
private readonly IRepository<SupplyType, Guid> _supplyTypeRepository;
|
private readonly IRepository<SupplyType, Guid> _supplyTypeRepository;
|
||||||
private readonly IRepository<SupplyCardType, Guid> _supplyCardTypeRepository;
|
private readonly IRepository<SupplyCardType, Guid> _supplyCardTypeRepository;
|
||||||
|
private readonly IRepository<CustomerType, Guid> _customerTypeRepository;
|
||||||
|
private readonly IRepository<CustomerSegment, Guid> _customerSegmentRepository;
|
||||||
|
private readonly IRepository<Partner, Guid> _partnerRepository;
|
||||||
|
private readonly IRepository<LossReason, Guid> _lossReasonRepository;
|
||||||
|
|
||||||
public TenantDataSeeder(
|
public TenantDataSeeder(
|
||||||
IClock clock,
|
IClock clock,
|
||||||
|
|
@ -178,7 +182,11 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
IRepository<Material, Guid> materialRepository,
|
IRepository<Material, Guid> materialRepository,
|
||||||
IRepository<PaymentTerm, Guid> paymentTermRepository,
|
IRepository<PaymentTerm, Guid> paymentTermRepository,
|
||||||
IRepository<SupplyType, Guid> supplyTypeRepository,
|
IRepository<SupplyType, Guid> supplyTypeRepository,
|
||||||
IRepository<SupplyCardType, Guid> supplyCardTypeRepository
|
IRepository<SupplyCardType, Guid> supplyCardTypeRepository,
|
||||||
|
IRepository<CustomerType, Guid> customerTypeRepository,
|
||||||
|
IRepository<CustomerSegment, Guid> customerSegmentRepository,
|
||||||
|
IRepository<Partner, Guid> partnerRepository,
|
||||||
|
IRepository<LossReason, Guid> lossReasonRepository
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
_clock = clock;
|
_clock = clock;
|
||||||
|
|
@ -261,6 +269,10 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
_paymentTermRepository = paymentTermRepository;
|
_paymentTermRepository = paymentTermRepository;
|
||||||
_supplyTypeRepository = supplyTypeRepository;
|
_supplyTypeRepository = supplyTypeRepository;
|
||||||
_supplyCardTypeRepository = supplyCardTypeRepository;
|
_supplyCardTypeRepository = supplyCardTypeRepository;
|
||||||
|
_customerTypeRepository = customerTypeRepository;
|
||||||
|
_customerSegmentRepository = customerSegmentRepository;
|
||||||
|
_lossReasonRepository = lossReasonRepository;
|
||||||
|
_partnerRepository = partnerRepository;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static IConfigurationRoot BuildConfiguration()
|
private static IConfigurationRoot BuildConfiguration()
|
||||||
|
|
@ -312,7 +324,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
await _sectorRepository.InsertAsync(new Sector
|
await _sectorRepository.InsertAsync(new Sector
|
||||||
{
|
{
|
||||||
Name = item.Name,
|
Name = item.Name,
|
||||||
});
|
}, autoSave: true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1727,6 +1739,121 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
IsActive = item.IsActive
|
IsActive = item.IsActive
|
||||||
}, autoSave: true);
|
}, autoSave: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach (var item in items.CustomerTypes)
|
||||||
|
{
|
||||||
|
var exists = await _customerTypeRepository.AnyAsync(x => x.Name == item.Name);
|
||||||
|
if (exists)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
await _customerTypeRepository.InsertAsync(new CustomerType
|
||||||
|
{
|
||||||
|
Name = item.Name,
|
||||||
|
Description = item.Description,
|
||||||
|
IsActive = item.IsActive
|
||||||
|
}, autoSave: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var item in items.CustomerSegments)
|
||||||
|
{
|
||||||
|
var exists = await _customerSegmentRepository.AnyAsync(x => x.Name == item.Name);
|
||||||
|
if (exists)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
await _customerSegmentRepository.InsertAsync(new CustomerSegment
|
||||||
|
{
|
||||||
|
Name = item.Name,
|
||||||
|
Description = item.Description,
|
||||||
|
IsActive = item.IsActive
|
||||||
|
}, autoSave: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var item in items.CustomerSegments)
|
||||||
|
{
|
||||||
|
var exists = await _customerSegmentRepository.AnyAsync(x => x.Name == item.Name);
|
||||||
|
if (exists)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
await _customerSegmentRepository.InsertAsync(new CustomerSegment
|
||||||
|
{
|
||||||
|
Name = item.Name,
|
||||||
|
Description = item.Description,
|
||||||
|
IsActive = item.IsActive
|
||||||
|
}, autoSave: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var item in items.LossReasons)
|
||||||
|
{
|
||||||
|
var exists = await _lossReasonRepository.AnyAsync(x => x.Name == item.Name);
|
||||||
|
if (exists)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
await _lossReasonRepository.InsertAsync(new LossReason
|
||||||
|
{
|
||||||
|
Code = item.Code,
|
||||||
|
Name = item.Name,
|
||||||
|
Category = item.Category,
|
||||||
|
Description = item.Description,
|
||||||
|
IsActive = item.IsActive
|
||||||
|
}, autoSave: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var item in items.Partners)
|
||||||
|
{
|
||||||
|
var exists = await _partnerRepository.AnyAsync(x => x.Name == item.Name);
|
||||||
|
if (exists)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
var currency = await _currencyRepository.FirstOrDefaultAsync(x => x.Code == item.CurrencyCode);
|
||||||
|
var sector = await _sectorRepository.FirstOrDefaultAsync(x => x.Name == item.SectorName);
|
||||||
|
var paymentTerm = await _paymentTermRepository.FirstOrDefaultAsync(x => x.Name == item.PaymentTermName);
|
||||||
|
var customerType = await _customerTypeRepository.FirstOrDefaultAsync(x => x.Name == item.CustomerTypeName);
|
||||||
|
var customerSegment = await _customerSegmentRepository.FirstOrDefaultAsync(x => x.Name == item.CustomerSegmentName);
|
||||||
|
var employee = await _employeeRepository.FirstOrDefaultAsync(x => x.Code == item.EmployeeCode);
|
||||||
|
var supplyType = await _supplyTypeRepository.FirstOrDefaultAsync(x => x.Name == item.SupplyTypeName);
|
||||||
|
var supplyCardType = await _supplyCardTypeRepository.FirstOrDefaultAsync(x => x.Name == item.SupplyCardTypeName);
|
||||||
|
|
||||||
|
await _partnerRepository.InsertAsync(new Partner
|
||||||
|
{
|
||||||
|
Code = item.Code,
|
||||||
|
Name = item.Name,
|
||||||
|
PartyType = item.PartyType,
|
||||||
|
SectorId = sector?.Id,
|
||||||
|
TaxNumber = item.TaxNumber,
|
||||||
|
TaxOffice = item.TaxOffice,
|
||||||
|
Country = item.Country,
|
||||||
|
City = item.City,
|
||||||
|
District = item.District,
|
||||||
|
Street = item.Street,
|
||||||
|
Address1 = item.Address1,
|
||||||
|
Address2 = item.Address2,
|
||||||
|
PostalCode = item.PostalCode,
|
||||||
|
PhoneNumber = item.PhoneNumber,
|
||||||
|
FaxNumber = item.FaxNumber,
|
||||||
|
Email = item.Email,
|
||||||
|
Website = item.Website,
|
||||||
|
CurrencyId = currency?.Id,
|
||||||
|
PaymentTermId = paymentTerm?.Id,
|
||||||
|
CreditLimit = item.CreditLimit,
|
||||||
|
Status = item.Status,
|
||||||
|
|
||||||
|
CustomerTypeId = customerType?.Id,
|
||||||
|
CustomerSegmentId = customerSegment?.Id,
|
||||||
|
EmployeeId = employee?.Id,
|
||||||
|
TeamCode = item.TeamCode,
|
||||||
|
TotalRevenue = item.TotalRevenue,
|
||||||
|
AverageOrderValue = item.AverageOrderValue,
|
||||||
|
LifetimeValue = item.LifetimeValue,
|
||||||
|
|
||||||
|
SupplierTypeId = supplyType?.Id,
|
||||||
|
SupplyCardTypeId = supplyCardType?.Id,
|
||||||
|
CardNumber = item.CardNumber,
|
||||||
|
ValidFrom = item.ValidFrom,
|
||||||
|
ValidTo = item.ValidTo,
|
||||||
|
CurrentBalance = item.CurrentBalance,
|
||||||
|
DiscountRate = item.DiscountRate
|
||||||
|
}, autoSave: true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,79 @@ public class TenantSeederDto
|
||||||
public List<PaymentTermSeedDto> PaymentTerms { get; set; }
|
public List<PaymentTermSeedDto> PaymentTerms { get; set; }
|
||||||
public List<SupplyTypeSeedDto> SupplyTypes { get; set; }
|
public List<SupplyTypeSeedDto> SupplyTypes { get; set; }
|
||||||
public List<SupplyCardTypeSeedDto> SupplyCardTypes { get; set; }
|
public List<SupplyCardTypeSeedDto> SupplyCardTypes { get; set; }
|
||||||
|
|
||||||
|
//Crm
|
||||||
|
public List<PartnerSeedDto> Partners { get; set; }
|
||||||
|
public List<CustomerTypeSeedDto> CustomerTypes { get; set; }
|
||||||
|
public List<CustomerSegmentSeedDto> CustomerSegments { get; set; }
|
||||||
|
public List<LossReasonSeedDto> LossReasons { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class PartnerSeedDto
|
||||||
|
{
|
||||||
|
public string Code { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string PartyType { get; set; }
|
||||||
|
public string SectorName { get; set; }
|
||||||
|
public long TaxNumber { get; set; }
|
||||||
|
public string TaxOffice { get; set; }
|
||||||
|
public string Country { get; set; }
|
||||||
|
public string City { get; set; }
|
||||||
|
public string District { get; set; }
|
||||||
|
public string Street { get; set; }
|
||||||
|
public string Address1 { get; set; }
|
||||||
|
public string Address2 { get; set; }
|
||||||
|
public string PostalCode { get; set; }
|
||||||
|
public string MobileNumber { get; set; }
|
||||||
|
public string PhoneNumber { get; set; }
|
||||||
|
public string FaxNumber { get; set; }
|
||||||
|
public string Email { get; set; }
|
||||||
|
public string Website { get; set; }
|
||||||
|
public string CurrencyCode { get; set; }
|
||||||
|
public string PaymentTermName { get; set; }
|
||||||
|
public decimal CreditLimit { get; set; }
|
||||||
|
public string Status { get; set; }
|
||||||
|
|
||||||
|
//Customer ile ilgil bilgiler
|
||||||
|
public string CustomerTypeName { get; set; }
|
||||||
|
public string CustomerSegmentName { get; set; }
|
||||||
|
public string EmployeeCode { get; set; }
|
||||||
|
public string TeamCode { get; set; } // Organization Unit Code
|
||||||
|
public decimal TotalRevenue { get; set; } // Toplam Gelir
|
||||||
|
public decimal AverageOrderValue { get; set; } // Ortalama Sipariş Değeri
|
||||||
|
public decimal LifetimeValue { get; set; } // Müşteri Ömrü Değeri
|
||||||
|
|
||||||
|
//Supplier ile ilgili bilgiler
|
||||||
|
public string SupplyTypeName { get; set; }
|
||||||
|
public string SupplyCardTypeName { get; set; }
|
||||||
|
public string CardNumber { get; set; }
|
||||||
|
public DateTime ValidFrom { get; set; }
|
||||||
|
public DateTime ValidTo { get; set; }
|
||||||
|
public decimal CurrentBalance { get; set; }
|
||||||
|
public decimal DiscountRate { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class LossReasonSeedDto
|
||||||
|
{
|
||||||
|
public string Code { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Category { get; set; }
|
||||||
|
public string Description { get; set; }
|
||||||
|
public bool IsActive { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class CustomerTypeSeedDto
|
||||||
|
{
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Description { get; set; }
|
||||||
|
public bool IsActive { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class CustomerSegmentSeedDto
|
||||||
|
{
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Description { get; set; }
|
||||||
|
public bool IsActive { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SupplyTypeSeedDto
|
public class SupplyTypeSeedDto
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue