Tanımlama listelerin dil, yetki ve list seederları
This commit is contained in:
parent
2255ff21bc
commit
81889b4a58
3 changed files with 1133 additions and 1 deletions
|
|
@ -8612,6 +8612,603 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Sector
|
||||||
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Sector))
|
||||||
|
{
|
||||||
|
var listFormSector = await _listFormRepository.InsertAsync(
|
||||||
|
new ListForm()
|
||||||
|
{
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
ListFormCode = ListFormCodes.Lists.Sector,
|
||||||
|
Name = AppCodes.Definitions.Sector,
|
||||||
|
Title = AppCodes.Definitions.Sector,
|
||||||
|
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
||||||
|
IsTenant = false,
|
||||||
|
IsBranch = false,
|
||||||
|
IsOrganizationUnit = false,
|
||||||
|
Description = AppCodes.Definitions.Sector,
|
||||||
|
SelectCommandType = SelectCommandTypeEnum.Table,
|
||||||
|
SelectCommand = SelectCommandByTableName("Sector"),
|
||||||
|
KeyFieldName = "Id",
|
||||||
|
KeyFieldDbSourceType = DbType.Guid,
|
||||||
|
DefaultFilter = "\"IsDeleted\" = 'false'",
|
||||||
|
SortMode = GridOptions.SortModeSingle,
|
||||||
|
FilterRowJson = JsonSerializer.Serialize(new GridFilterRowDto { Visible = true }),
|
||||||
|
HeaderFilterJson = JsonSerializer.Serialize(new { Visible = true }),
|
||||||
|
SearchPanelJson = JsonSerializer.Serialize(new { Visible = false }),
|
||||||
|
GroupPanelJson = JsonSerializer.Serialize(new { Visible = false }),
|
||||||
|
SelectionJson = JsonSerializer.Serialize(new SelectionDto
|
||||||
|
{
|
||||||
|
Mode = GridOptions.SelectionModeSingle,
|
||||||
|
AllowSelectAll = false
|
||||||
|
}),
|
||||||
|
PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto
|
||||||
|
{
|
||||||
|
C = AppCodes.Definitions.Sector + ".Create",
|
||||||
|
R = AppCodes.Definitions.Sector,
|
||||||
|
U = AppCodes.Definitions.Sector + ".Update",
|
||||||
|
D = AppCodes.Definitions.Sector + ".Delete",
|
||||||
|
E = AppCodes.Definitions.Sector + ".Export",
|
||||||
|
}),
|
||||||
|
DeleteCommand = $"UPDATE \"{DbTablePrefix}Sector\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id",
|
||||||
|
DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[]
|
||||||
|
{
|
||||||
|
new() {
|
||||||
|
FieldName = "DeleterId",
|
||||||
|
FieldDbType = DbType.Guid,
|
||||||
|
Value = "@USERID",
|
||||||
|
CustomValueType = FieldCustomValueTypeEnum.CustomKey
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
FieldName = "Id",
|
||||||
|
FieldDbType = DbType.Guid,
|
||||||
|
Value = "@ID",
|
||||||
|
CustomValueType = FieldCustomValueTypeEnum.CustomKey
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
PagerOptionJson = JsonSerializer.Serialize(new GridPagerOptionDto
|
||||||
|
{
|
||||||
|
Visible = true,
|
||||||
|
AllowedPageSizes = "10,20,50,100",
|
||||||
|
ShowPageSizeSelector = true,
|
||||||
|
ShowNavigationButtons = true,
|
||||||
|
ShowInfo = false,
|
||||||
|
InfoText = "Page {0} of {1} ({2} items)",
|
||||||
|
DisplayMode = GridColumnOptions.PagerDisplayModeAdaptive,
|
||||||
|
ScrollingMode = GridColumnOptions.ScrollingModeStandard,
|
||||||
|
LoadPanelEnabled = "auto",
|
||||||
|
LoadPanelText = "Loading..."
|
||||||
|
}),
|
||||||
|
EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto
|
||||||
|
{
|
||||||
|
Popup = new GridEditingPopupDto
|
||||||
|
{
|
||||||
|
Title = "Sector Form",
|
||||||
|
Width = 400,
|
||||||
|
Height = 150
|
||||||
|
},
|
||||||
|
AllowDeleting = true,
|
||||||
|
AllowAdding = true,
|
||||||
|
AllowUpdating = true,
|
||||||
|
SendOnlyChangedFormValuesUpdate = false
|
||||||
|
}),
|
||||||
|
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>
|
||||||
|
{
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
Order = 1,
|
||||||
|
ColCount = 1,
|
||||||
|
ColSpan = 2,
|
||||||
|
ItemType = "group",
|
||||||
|
Items =
|
||||||
|
[
|
||||||
|
new EditingFormItemDto
|
||||||
|
{
|
||||||
|
Order = 1,
|
||||||
|
DataField = "Name",
|
||||||
|
ColSpan = 2,
|
||||||
|
IsRequired = true,
|
||||||
|
EditorType2 = EditorTypes.dxTextBox
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
InsertFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[]
|
||||||
|
{
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
FieldName = "CreationTime",
|
||||||
|
FieldDbType = DbType.DateTime,
|
||||||
|
Value = "@NOW",
|
||||||
|
CustomValueType = FieldCustomValueTypeEnum.CustomKey
|
||||||
|
},
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
FieldName = "CreatorId",
|
||||||
|
FieldDbType = DbType.Guid,
|
||||||
|
Value = "@USERID",
|
||||||
|
CustomValueType = FieldCustomValueTypeEnum.CustomKey
|
||||||
|
}
|
||||||
|
})
|
||||||
|
});
|
||||||
|
|
||||||
|
#region Sector Fields
|
||||||
|
await _listFormFieldRepository.InsertManyAsync([
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
ListFormCode = listFormSector.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Guid,
|
||||||
|
FieldName = "Id",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 1,
|
||||||
|
Visible = false,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
||||||
|
{
|
||||||
|
C = AppCodes.Definitions.Sector + ".Create",
|
||||||
|
R = AppCodes.Definitions.Sector,
|
||||||
|
U = AppCodes.Definitions.Sector + ".Update",
|
||||||
|
E = true,
|
||||||
|
Deny = false
|
||||||
|
}),
|
||||||
|
PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true })
|
||||||
|
},
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
ListFormCode = listFormSector.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.String,
|
||||||
|
FieldName = "Name",
|
||||||
|
Width = 150,
|
||||||
|
ListOrderNo = 2,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
SortIndex = 1,
|
||||||
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
|
AllowSearch = true,
|
||||||
|
ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[]
|
||||||
|
{
|
||||||
|
new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) }
|
||||||
|
}),
|
||||||
|
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
||||||
|
{
|
||||||
|
C = AppCodes.Definitions.Sector + ".Create",
|
||||||
|
R = AppCodes.Definitions.Sector,
|
||||||
|
U = AppCodes.Definitions.Sector + ".Update",
|
||||||
|
E = true,
|
||||||
|
Deny = false
|
||||||
|
}),
|
||||||
|
PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true })
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region ContactTag
|
||||||
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.ContactTag))
|
||||||
|
{
|
||||||
|
var listFormContactTag = await _listFormRepository.InsertAsync(
|
||||||
|
new ListForm()
|
||||||
|
{
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
ListFormCode = ListFormCodes.Lists.ContactTag,
|
||||||
|
Name = AppCodes.Definitions.ContactTag,
|
||||||
|
Title = AppCodes.Definitions.ContactTag,
|
||||||
|
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
||||||
|
IsTenant = false,
|
||||||
|
IsBranch = false,
|
||||||
|
IsOrganizationUnit = false,
|
||||||
|
Description = AppCodes.Definitions.ContactTag,
|
||||||
|
SelectCommandType = SelectCommandTypeEnum.Table,
|
||||||
|
SelectCommand = SelectCommandByTableName("ContactTag"),
|
||||||
|
KeyFieldName = "Id",
|
||||||
|
KeyFieldDbSourceType = DbType.Guid,
|
||||||
|
DefaultFilter = "\"IsDeleted\" = 'false'",
|
||||||
|
SortMode = GridOptions.SortModeSingle,
|
||||||
|
FilterRowJson = JsonSerializer.Serialize(new GridFilterRowDto { Visible = true }),
|
||||||
|
HeaderFilterJson = JsonSerializer.Serialize(new { Visible = true }),
|
||||||
|
SearchPanelJson = JsonSerializer.Serialize(new { Visible = false }),
|
||||||
|
GroupPanelJson = JsonSerializer.Serialize(new { Visible = false }),
|
||||||
|
SelectionJson = JsonSerializer.Serialize(new SelectionDto
|
||||||
|
{
|
||||||
|
Mode = GridOptions.SelectionModeSingle,
|
||||||
|
AllowSelectAll = false
|
||||||
|
}),
|
||||||
|
PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto
|
||||||
|
{
|
||||||
|
C = AppCodes.Definitions.ContactTag + ".Create",
|
||||||
|
R = AppCodes.Definitions.ContactTag,
|
||||||
|
U = AppCodes.Definitions.ContactTag + ".Update",
|
||||||
|
D = AppCodes.Definitions.ContactTag + ".Delete",
|
||||||
|
E = AppCodes.Definitions.ContactTag + ".Export",
|
||||||
|
}),
|
||||||
|
DeleteCommand = $"UPDATE \"{DbTablePrefix}ContactTag\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id",
|
||||||
|
DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[]
|
||||||
|
{
|
||||||
|
new() {
|
||||||
|
FieldName = "DeleterId",
|
||||||
|
FieldDbType = DbType.Guid,
|
||||||
|
Value = "@USERID",
|
||||||
|
CustomValueType = FieldCustomValueTypeEnum.CustomKey
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
FieldName = "Id",
|
||||||
|
FieldDbType = DbType.Guid,
|
||||||
|
Value = "@ID",
|
||||||
|
CustomValueType = FieldCustomValueTypeEnum.CustomKey
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
PagerOptionJson = JsonSerializer.Serialize(new GridPagerOptionDto
|
||||||
|
{
|
||||||
|
Visible = true,
|
||||||
|
AllowedPageSizes = "10,20,50,100",
|
||||||
|
ShowPageSizeSelector = true,
|
||||||
|
ShowNavigationButtons = true,
|
||||||
|
ShowInfo = false,
|
||||||
|
InfoText = "Page {0} of {1} ({2} items)",
|
||||||
|
DisplayMode = GridColumnOptions.PagerDisplayModeAdaptive,
|
||||||
|
ScrollingMode = GridColumnOptions.ScrollingModeStandard,
|
||||||
|
LoadPanelEnabled = "auto",
|
||||||
|
LoadPanelText = "Loading..."
|
||||||
|
}),
|
||||||
|
EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto
|
||||||
|
{
|
||||||
|
Popup = new GridEditingPopupDto
|
||||||
|
{
|
||||||
|
Title = "Contact Tag Form",
|
||||||
|
Width = 400,
|
||||||
|
Height = 200
|
||||||
|
},
|
||||||
|
AllowDeleting = true,
|
||||||
|
AllowAdding = true,
|
||||||
|
AllowUpdating = true,
|
||||||
|
SendOnlyChangedFormValuesUpdate = false
|
||||||
|
}),
|
||||||
|
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>
|
||||||
|
{
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
Order = 1,
|
||||||
|
ColCount = 1,
|
||||||
|
ColSpan = 2,
|
||||||
|
ItemType = "group",
|
||||||
|
Items =
|
||||||
|
[
|
||||||
|
new EditingFormItemDto
|
||||||
|
{
|
||||||
|
Order = 1,
|
||||||
|
DataField = "Name",
|
||||||
|
ColSpan = 2,
|
||||||
|
IsRequired = true,
|
||||||
|
EditorType2 = EditorTypes.dxTextBox
|
||||||
|
},
|
||||||
|
new EditingFormItemDto
|
||||||
|
{
|
||||||
|
Order = 2,
|
||||||
|
DataField = "Category",
|
||||||
|
ColSpan = 2,
|
||||||
|
IsRequired = true,
|
||||||
|
EditorType2 = EditorTypes.dxTextBox
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
InsertFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[]
|
||||||
|
{
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
FieldName = "CreationTime",
|
||||||
|
FieldDbType = DbType.DateTime,
|
||||||
|
Value = "@NOW",
|
||||||
|
CustomValueType = FieldCustomValueTypeEnum.CustomKey
|
||||||
|
},
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
FieldName = "CreatorId",
|
||||||
|
FieldDbType = DbType.Guid,
|
||||||
|
Value = "@USERID",
|
||||||
|
CustomValueType = FieldCustomValueTypeEnum.CustomKey
|
||||||
|
}
|
||||||
|
})
|
||||||
|
});
|
||||||
|
|
||||||
|
#region ContactTag Fields
|
||||||
|
await _listFormFieldRepository.InsertManyAsync([
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
ListFormCode = listFormContactTag.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Guid,
|
||||||
|
FieldName = "Id",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 1,
|
||||||
|
Visible = false,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
||||||
|
{
|
||||||
|
C = AppCodes.Definitions.ContactTag + ".Create",
|
||||||
|
R = AppCodes.Definitions.ContactTag,
|
||||||
|
U = AppCodes.Definitions.ContactTag + ".Update",
|
||||||
|
E = true,
|
||||||
|
Deny = false
|
||||||
|
}),
|
||||||
|
PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true })
|
||||||
|
},
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
ListFormCode = listFormContactTag.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.String,
|
||||||
|
FieldName = "Name",
|
||||||
|
Width = 150,
|
||||||
|
ListOrderNo = 2,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
SortIndex = 1,
|
||||||
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
|
AllowSearch = true,
|
||||||
|
ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[]
|
||||||
|
{
|
||||||
|
new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) }
|
||||||
|
}),
|
||||||
|
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
||||||
|
{
|
||||||
|
C = AppCodes.Definitions.ContactTag + ".Create",
|
||||||
|
R = AppCodes.Definitions.ContactTag,
|
||||||
|
U = AppCodes.Definitions.ContactTag + ".Update",
|
||||||
|
E = true,
|
||||||
|
Deny = false
|
||||||
|
}),
|
||||||
|
PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true })
|
||||||
|
},
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
ListFormCode = listFormContactTag.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.String,
|
||||||
|
FieldName = "Category",
|
||||||
|
Width = 250,
|
||||||
|
ListOrderNo = 3,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[]
|
||||||
|
{
|
||||||
|
new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) }
|
||||||
|
}),
|
||||||
|
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
||||||
|
{
|
||||||
|
C = AppCodes.Definitions.ContactTag + ".Create",
|
||||||
|
R = AppCodes.Definitions.ContactTag,
|
||||||
|
U = AppCodes.Definitions.ContactTag + ".Update",
|
||||||
|
E = true,
|
||||||
|
Deny = false
|
||||||
|
}),
|
||||||
|
PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true })
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region ContactTitle
|
||||||
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.ContactTitle))
|
||||||
|
{
|
||||||
|
var listFormContactTitle = await _listFormRepository.InsertAsync(
|
||||||
|
new ListForm()
|
||||||
|
{
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
ListFormCode = ListFormCodes.Lists.ContactTitle,
|
||||||
|
Name = AppCodes.Definitions.ContactTitle,
|
||||||
|
Title = AppCodes.Definitions.ContactTitle,
|
||||||
|
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
||||||
|
IsTenant = false,
|
||||||
|
IsBranch = false,
|
||||||
|
IsOrganizationUnit = false,
|
||||||
|
Description = AppCodes.Definitions.ContactTitle,
|
||||||
|
SelectCommandType = SelectCommandTypeEnum.Table,
|
||||||
|
SelectCommand = SelectCommandByTableName("ContactTitle"),
|
||||||
|
KeyFieldName = "Id",
|
||||||
|
KeyFieldDbSourceType = DbType.Guid,
|
||||||
|
DefaultFilter = "\"IsDeleted\" = 'false'",
|
||||||
|
SortMode = GridOptions.SortModeSingle,
|
||||||
|
FilterRowJson = JsonSerializer.Serialize(new GridFilterRowDto { Visible = true }),
|
||||||
|
HeaderFilterJson = JsonSerializer.Serialize(new { Visible = true }),
|
||||||
|
SearchPanelJson = JsonSerializer.Serialize(new { Visible = false }),
|
||||||
|
GroupPanelJson = JsonSerializer.Serialize(new { Visible = false }),
|
||||||
|
SelectionJson = JsonSerializer.Serialize(new SelectionDto
|
||||||
|
{
|
||||||
|
Mode = GridOptions.SelectionModeSingle,
|
||||||
|
AllowSelectAll = false
|
||||||
|
}),
|
||||||
|
PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto
|
||||||
|
{
|
||||||
|
C = AppCodes.Definitions.ContactTitle + ".Create",
|
||||||
|
R = AppCodes.Definitions.ContactTitle,
|
||||||
|
U = AppCodes.Definitions.ContactTitle + ".Update",
|
||||||
|
D = AppCodes.Definitions.ContactTitle + ".Delete",
|
||||||
|
E = AppCodes.Definitions.ContactTitle + ".Export",
|
||||||
|
}),
|
||||||
|
DeleteCommand = $"UPDATE \"{DbTablePrefix}ContactTitle\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id",
|
||||||
|
DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[]
|
||||||
|
{
|
||||||
|
new() {
|
||||||
|
FieldName = "DeleterId",
|
||||||
|
FieldDbType = DbType.Guid,
|
||||||
|
Value = "@USERID",
|
||||||
|
CustomValueType = FieldCustomValueTypeEnum.CustomKey
|
||||||
|
},
|
||||||
|
new() {
|
||||||
|
FieldName = "Id",
|
||||||
|
FieldDbType = DbType.Guid,
|
||||||
|
Value = "@ID",
|
||||||
|
CustomValueType = FieldCustomValueTypeEnum.CustomKey
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
PagerOptionJson = JsonSerializer.Serialize(new GridPagerOptionDto
|
||||||
|
{
|
||||||
|
Visible = true,
|
||||||
|
AllowedPageSizes = "10,20,50,100",
|
||||||
|
ShowPageSizeSelector = true,
|
||||||
|
ShowNavigationButtons = true,
|
||||||
|
ShowInfo = false,
|
||||||
|
InfoText = "Page {0} of {1} ({2} items)",
|
||||||
|
DisplayMode = GridColumnOptions.PagerDisplayModeAdaptive,
|
||||||
|
ScrollingMode = GridColumnOptions.ScrollingModeStandard,
|
||||||
|
LoadPanelEnabled = "auto",
|
||||||
|
LoadPanelText = "Loading..."
|
||||||
|
}),
|
||||||
|
EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto
|
||||||
|
{
|
||||||
|
Popup = new GridEditingPopupDto
|
||||||
|
{
|
||||||
|
Title = "Contact Title Form",
|
||||||
|
Width = 400,
|
||||||
|
Height = 200
|
||||||
|
},
|
||||||
|
AllowDeleting = true,
|
||||||
|
AllowAdding = true,
|
||||||
|
AllowUpdating = true,
|
||||||
|
SendOnlyChangedFormValuesUpdate = false
|
||||||
|
}),
|
||||||
|
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>
|
||||||
|
{
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
Order = 1,
|
||||||
|
ColCount = 1,
|
||||||
|
ColSpan = 2,
|
||||||
|
ItemType = "group",
|
||||||
|
Items =
|
||||||
|
[
|
||||||
|
new EditingFormItemDto
|
||||||
|
{
|
||||||
|
Order = 1,
|
||||||
|
DataField = "Title",
|
||||||
|
ColSpan = 2,
|
||||||
|
IsRequired = true,
|
||||||
|
EditorType2 = EditorTypes.dxTextBox
|
||||||
|
},
|
||||||
|
new EditingFormItemDto
|
||||||
|
{
|
||||||
|
Order = 2,
|
||||||
|
DataField = "Abbreviation",
|
||||||
|
ColSpan = 2,
|
||||||
|
IsRequired = true,
|
||||||
|
EditorType2 = EditorTypes.dxTextBox
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
InsertFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[]
|
||||||
|
{
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
FieldName = "CreationTime",
|
||||||
|
FieldDbType = DbType.DateTime,
|
||||||
|
Value = "@NOW",
|
||||||
|
CustomValueType = FieldCustomValueTypeEnum.CustomKey
|
||||||
|
},
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
FieldName = "CreatorId",
|
||||||
|
FieldDbType = DbType.Guid,
|
||||||
|
Value = "@USERID",
|
||||||
|
CustomValueType = FieldCustomValueTypeEnum.CustomKey
|
||||||
|
}
|
||||||
|
})
|
||||||
|
});
|
||||||
|
|
||||||
|
#region ContactTitle Fields
|
||||||
|
await _listFormFieldRepository.InsertManyAsync([
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
ListFormCode = listFormContactTitle.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.Guid,
|
||||||
|
FieldName = "Id",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 1,
|
||||||
|
Visible = false,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
||||||
|
{
|
||||||
|
C = AppCodes.Definitions.ContactTitle + ".Create",
|
||||||
|
R = AppCodes.Definitions.ContactTitle,
|
||||||
|
U = AppCodes.Definitions.ContactTitle + ".Update",
|
||||||
|
E = true,
|
||||||
|
Deny = false
|
||||||
|
}),
|
||||||
|
PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true })
|
||||||
|
},
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
ListFormCode = listFormContactTitle.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.String,
|
||||||
|
FieldName = "Title",
|
||||||
|
Width = 150,
|
||||||
|
ListOrderNo = 2,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
SortIndex = 1,
|
||||||
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
|
AllowSearch = true,
|
||||||
|
ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[]
|
||||||
|
{
|
||||||
|
new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) }
|
||||||
|
}),
|
||||||
|
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
||||||
|
{
|
||||||
|
C = AppCodes.Definitions.ContactTitle + ".Create",
|
||||||
|
R = AppCodes.Definitions.ContactTitle,
|
||||||
|
U = AppCodes.Definitions.ContactTitle + ".Update",
|
||||||
|
E = true,
|
||||||
|
Deny = false
|
||||||
|
}),
|
||||||
|
PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true })
|
||||||
|
},
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
ListFormCode = listFormContactTitle.ListFormCode,
|
||||||
|
CultureName = LanguageCodes.En,
|
||||||
|
SourceDbType = DbType.String,
|
||||||
|
FieldName = "Abbreviation",
|
||||||
|
Width = 100,
|
||||||
|
ListOrderNo = 3,
|
||||||
|
Visible = true,
|
||||||
|
IsActive = true,
|
||||||
|
IsDeleted = false,
|
||||||
|
AllowSearch = true,
|
||||||
|
ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[]
|
||||||
|
{
|
||||||
|
new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) }
|
||||||
|
}),
|
||||||
|
PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto
|
||||||
|
{
|
||||||
|
C = AppCodes.Definitions.ContactTitle + ".Create",
|
||||||
|
R = AppCodes.Definitions.ContactTitle,
|
||||||
|
U = AppCodes.Definitions.ContactTitle + ".Update",
|
||||||
|
E = true,
|
||||||
|
Deny = false
|
||||||
|
}),
|
||||||
|
PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true })
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4985,6 +4985,72 @@
|
||||||
"key": "blog.categories.digital",
|
"key": "blog.categories.digital",
|
||||||
"tr": "Dijital Pazarlama",
|
"tr": "Dijital Pazarlama",
|
||||||
"en": "Digital Marketing"
|
"en": "Digital Marketing"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Definitions",
|
||||||
|
"tr": "Tanımlamalar",
|
||||||
|
"en": "Definitions"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Definitions.Sector",
|
||||||
|
"tr": "Sektörler",
|
||||||
|
"en": "Sectors"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Definitions.ContactTag",
|
||||||
|
"tr": "İletişim Etiketi",
|
||||||
|
"en": "Contact Tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Definitions.ContactTitle",
|
||||||
|
"tr": "İletişim Başlığı",
|
||||||
|
"en": "Contact Title"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Definitions.Currency",
|
||||||
|
"tr": "Para Birimleri",
|
||||||
|
"en": "Currencies"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Definitions.CountryGroup",
|
||||||
|
"tr": "Ülke Grupları",
|
||||||
|
"en": "Country Groups"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Definitions.Country",
|
||||||
|
"tr": "Ülkeler",
|
||||||
|
"en": "Countries"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Definitions.State",
|
||||||
|
"tr": "Şehirler",
|
||||||
|
"en": "States"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Definitions.SkillType",
|
||||||
|
"tr": "Yetenek Tipleri",
|
||||||
|
"en": "Skill Types"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Definitions.UomCategory",
|
||||||
|
"tr": "Ölçüm Kategorileri",
|
||||||
|
"en": "Measurement Categories"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"resourceName": "Platform",
|
||||||
|
"key": "App.Definitions.Uom",
|
||||||
|
"tr": "Ölçümler",
|
||||||
|
"en": "Measurements"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Settings": [
|
"Settings": [
|
||||||
|
|
@ -6310,7 +6376,7 @@
|
||||||
"DisplayName": "App.BackgroundWorkers",
|
"DisplayName": "App.BackgroundWorkers",
|
||||||
"Order": 8,
|
"Order": 8,
|
||||||
"Url": "/list/list-backgroundworker",
|
"Url": "/list/list-backgroundworker",
|
||||||
"Icon": "FcWorkflow",
|
"Icon": "FcScatterPlot",
|
||||||
"RequiredPermissionName": "App.BackgroundWorkers",
|
"RequiredPermissionName": "App.BackgroundWorkers",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
|
|
@ -6463,6 +6529,106 @@
|
||||||
"Icon": "FcLink",
|
"Icon": "FcLink",
|
||||||
"RequiredPermissionName": "App.ForumManagement.Publish",
|
"RequiredPermissionName": "App.ForumManagement.Publish",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Administration",
|
||||||
|
"Code": "App.Definitions",
|
||||||
|
"DisplayName": "App.Definitions",
|
||||||
|
"Order": 5,
|
||||||
|
"Url": null,
|
||||||
|
"Icon": "FcFilingCabinet",
|
||||||
|
"RequiredPermissionName": null,
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Definitions",
|
||||||
|
"Code": "App.Definitions.Sector",
|
||||||
|
"DisplayName": "App.Definitions.Sector",
|
||||||
|
"Order": 1,
|
||||||
|
"Url": "/list/list-sector",
|
||||||
|
"Icon": "FcBiomass",
|
||||||
|
"RequiredPermissionName": "App.Definitions.Sector",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Definitions",
|
||||||
|
"Code": "App.Definitions.ContactTag",
|
||||||
|
"DisplayName": "App.Definitions.ContactTag",
|
||||||
|
"Order": 2,
|
||||||
|
"Url": "/list/list-contactTag",
|
||||||
|
"Icon": "FcButtingIn",
|
||||||
|
"RequiredPermissionName": "App.Definitions.ContactTag",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Definitions",
|
||||||
|
"Code": "App.Definitions.ContactTitle",
|
||||||
|
"DisplayName": "App.Definitions.ContactTitle",
|
||||||
|
"Order": 3,
|
||||||
|
"Url": "/list/list-contactTitle",
|
||||||
|
"Icon": "FcNeutralDecision",
|
||||||
|
"RequiredPermissionName": "App.Definitions.ContactTitle",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Definitions",
|
||||||
|
"Code": "App.Definitions.Currency",
|
||||||
|
"DisplayName": "App.Definitions.Currency",
|
||||||
|
"Order": 4,
|
||||||
|
"Url": "/list/list-currency",
|
||||||
|
"Icon": "FcCurrencyExchange",
|
||||||
|
"RequiredPermissionName": "App.Definitions.Currency",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Definitions",
|
||||||
|
"Code": "App.Definitions.CountryGroup",
|
||||||
|
"DisplayName": "App.Definitions.CountryGroup",
|
||||||
|
"Order": 5,
|
||||||
|
"Url": "/list/list-countryGroup",
|
||||||
|
"Icon": "FaFlag",
|
||||||
|
"RequiredPermissionName": "App.Definitions.CountryGroup",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Definitions",
|
||||||
|
"Code": "App.Definitions.Country",
|
||||||
|
"DisplayName": "App.Definitions.Country",
|
||||||
|
"Order": 6,
|
||||||
|
"Url": "/list/list-country",
|
||||||
|
"Icon": "FaFlagCheckered",
|
||||||
|
"RequiredPermissionName": "App.Definitions.Country",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Definitions",
|
||||||
|
"Code": "App.Definitions.State",
|
||||||
|
"DisplayName": "App.Definitions.State",
|
||||||
|
"Order": 7,
|
||||||
|
"Url": "/list/list-state",
|
||||||
|
"Icon": "FaFontAwesomeFlag",
|
||||||
|
"RequiredPermissionName": "App.Definitions.State",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Definitions",
|
||||||
|
"Code": "App.Definitions.SkillType",
|
||||||
|
"DisplayName": "App.Definitions.SkillType",
|
||||||
|
"Order": 8,
|
||||||
|
"Url": "/list/list-skillType",
|
||||||
|
"Icon": "FaHollyBerry",
|
||||||
|
"RequiredPermissionName": "App.Definitions.SkillType",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Definitions",
|
||||||
|
"Code": "App.Definitions.UomCategory",
|
||||||
|
"DisplayName": "App.Definitions.UomCategory",
|
||||||
|
"Order": 9,
|
||||||
|
"Url": "/list/list-uomCategory",
|
||||||
|
"Icon": "FaSynagogue",
|
||||||
|
"RequiredPermissionName": "App.Definitions.UomCategory",
|
||||||
|
"IsDisabled": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"PermissionGroupDefinitionRecords": [
|
"PermissionGroupDefinitionRecords": [
|
||||||
|
|
@ -6529,6 +6695,10 @@
|
||||||
{
|
{
|
||||||
"Name": "App.ForumManagement",
|
"Name": "App.ForumManagement",
|
||||||
"DisplayName": "App.ForumManagement"
|
"DisplayName": "App.ForumManagement"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "App.Definitions",
|
||||||
|
"DisplayName": "App.Definitions"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"PermissionDefinitionRecords": [
|
"PermissionDefinitionRecords": [
|
||||||
|
|
@ -7780,6 +7950,366 @@
|
||||||
"DisplayName": "Publish",
|
"DisplayName": "Publish",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.Sector",
|
||||||
|
"ParentName": null,
|
||||||
|
"DisplayName": "App.Definitions.Sector",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.Sector.Create",
|
||||||
|
"ParentName": "App.Definitions.Sector",
|
||||||
|
"DisplayName": "Create",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.Sector.Update",
|
||||||
|
"ParentName": "App.Definitions.Sector",
|
||||||
|
"DisplayName": "Update",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.Sector.Delete",
|
||||||
|
"ParentName": "App.Definitions.Sector",
|
||||||
|
"DisplayName": "Delete",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.Sector.Export",
|
||||||
|
"ParentName": "App.Definitions.Sector",
|
||||||
|
"DisplayName": "Export",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.ContactTag",
|
||||||
|
"ParentName": null,
|
||||||
|
"DisplayName": "App.Definitions.ContactTag",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.ContactTag.Create",
|
||||||
|
"ParentName": "App.Definitions.ContactTag",
|
||||||
|
"DisplayName": "Create",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.ContactTag.Update",
|
||||||
|
"ParentName": "App.Definitions.ContactTag",
|
||||||
|
"DisplayName": "Update",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.ContactTag.Delete",
|
||||||
|
"ParentName": "App.Definitions.ContactTag",
|
||||||
|
"DisplayName": "Delete",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.ContactTag.Export",
|
||||||
|
"ParentName": "App.Definitions.ContactTag",
|
||||||
|
"DisplayName": "Export",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.ContactTitle",
|
||||||
|
"ParentName": null,
|
||||||
|
"DisplayName": "App.Definitions.ContactTitle",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.ContactTitle.Create",
|
||||||
|
"ParentName": "App.Definitions.ContactTitle",
|
||||||
|
"DisplayName": "Create",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.ContactTitle.Update",
|
||||||
|
"ParentName": "App.Definitions.ContactTitle",
|
||||||
|
"DisplayName": "Update",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.ContactTitle.Delete",
|
||||||
|
"ParentName": "App.Definitions.ContactTitle",
|
||||||
|
"DisplayName": "Delete",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.ContactTitle.Export",
|
||||||
|
"ParentName": "App.Definitions.ContactTitle",
|
||||||
|
"DisplayName": "Export",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.Currency",
|
||||||
|
"ParentName": null,
|
||||||
|
"DisplayName": "App.Definitions.Currency",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.Currency.Create",
|
||||||
|
"ParentName": "App.Definitions.Currency",
|
||||||
|
"DisplayName": "Create",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.Currency.Update",
|
||||||
|
"ParentName": "App.Definitions.Currency",
|
||||||
|
"DisplayName": "Update",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.Currency.Delete",
|
||||||
|
"ParentName": "App.Definitions.Currency",
|
||||||
|
"DisplayName": "Delete",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.Currency.Export",
|
||||||
|
"ParentName": "App.Definitions.Currency",
|
||||||
|
"DisplayName": "Export",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.CountryGroup",
|
||||||
|
"ParentName": null,
|
||||||
|
"DisplayName": "App.Definitions.CountryGroup",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.CountryGroup.Create",
|
||||||
|
"ParentName": "App.Definitions.CountryGroup",
|
||||||
|
"DisplayName": "Create",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.CountryGroup.Update",
|
||||||
|
"ParentName": "App.Definitions.CountryGroup",
|
||||||
|
"DisplayName": "Update",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.CountryGroup.Delete",
|
||||||
|
"ParentName": "App.Definitions.CountryGroup",
|
||||||
|
"DisplayName": "Delete",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.CountryGroup.Export",
|
||||||
|
"ParentName": "App.Definitions.CountryGroup",
|
||||||
|
"DisplayName": "Export",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.Country",
|
||||||
|
"ParentName": null,
|
||||||
|
"DisplayName": "App.Definitions.Country",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.Country.Create",
|
||||||
|
"ParentName": "App.Definitions.Country",
|
||||||
|
"DisplayName": "Create",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.Country.Update",
|
||||||
|
"ParentName": "App.Definitions.Country",
|
||||||
|
"DisplayName": "Update",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.Country.Delete",
|
||||||
|
"ParentName": "App.Definitions.Country",
|
||||||
|
"DisplayName": "Delete",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.Country.Export",
|
||||||
|
"ParentName": "App.Definitions.Country",
|
||||||
|
"DisplayName": "Export",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.State",
|
||||||
|
"ParentName": null,
|
||||||
|
"DisplayName": "App.Definitions.State",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.State.Create",
|
||||||
|
"ParentName": "App.Definitions.State",
|
||||||
|
"DisplayName": "Create",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.State.Update",
|
||||||
|
"ParentName": "App.Definitions.State",
|
||||||
|
"DisplayName": "Update",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.State.Delete",
|
||||||
|
"ParentName": "App.Definitions.State",
|
||||||
|
"DisplayName": "Delete",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.State.Export",
|
||||||
|
"ParentName": "App.Definitions.State",
|
||||||
|
"DisplayName": "Export",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.SkillType",
|
||||||
|
"ParentName": null,
|
||||||
|
"DisplayName": "App.Definitions.SkillType",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.SkillType.Create",
|
||||||
|
"ParentName": "App.Definitions.SkillType",
|
||||||
|
"DisplayName": "Create",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.SkillType.Update",
|
||||||
|
"ParentName": "App.Definitions.SkillType",
|
||||||
|
"DisplayName": "Update",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.SkillType.Delete",
|
||||||
|
"ParentName": "App.Definitions.SkillType",
|
||||||
|
"DisplayName": "Delete",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.SkillType.Export",
|
||||||
|
"ParentName": "App.Definitions.SkillType",
|
||||||
|
"DisplayName": "Export",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.UomCategory",
|
||||||
|
"ParentName": null,
|
||||||
|
"DisplayName": "App.Definitions.UomCategory",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.UomCategory.Create",
|
||||||
|
"ParentName": "App.Definitions.UomCategory",
|
||||||
|
"DisplayName": "Create",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.UomCategory.Update",
|
||||||
|
"ParentName": "App.Definitions.UomCategory",
|
||||||
|
"DisplayName": "Update",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.UomCategory.Delete",
|
||||||
|
"ParentName": "App.Definitions.UomCategory",
|
||||||
|
"DisplayName": "Delete",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupName": "App.Definitions",
|
||||||
|
"Name": "App.Definitions.UomCategory.Export",
|
||||||
|
"ParentName": "App.Definitions.UomCategory",
|
||||||
|
"DisplayName": "Export",
|
||||||
|
"IsEnabled": true,
|
||||||
|
"MultiTenancySide": 3
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Sectors": [
|
"Sectors": [
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import { createElement } from 'react'
|
import { createElement } from 'react'
|
||||||
import * as fc from 'react-icons/fc'
|
import * as fc from 'react-icons/fc'
|
||||||
|
import * as fa from 'react-icons/fa'
|
||||||
|
|
||||||
export type NavigationIcons = Record<string, JSX.Element>
|
export type NavigationIcons = Record<string, JSX.Element>
|
||||||
|
|
||||||
|
|
@ -9,4 +10,8 @@ for (const icon of Object.entries(fc)) {
|
||||||
navigationIcon[icon[0]] = createElement(icon[1])
|
navigationIcon[icon[0]] = createElement(icon[1])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (const icon of Object.entries(fa)) {
|
||||||
|
navigationIcon[icon[0]] = createElement(icon[1])
|
||||||
|
}
|
||||||
|
|
||||||
export default navigationIcon
|
export default navigationIcon
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue