Event Type, Category ve Events
This commit is contained in:
parent
bc192a584b
commit
ab656ba070
27 changed files with 2001 additions and 483 deletions
|
|
@ -0,0 +1,14 @@
|
||||||
|
using System;
|
||||||
|
using Sozsoft.Platform.Identity.Dto;
|
||||||
|
|
||||||
|
namespace Sozsoft.Platform.Intranet;
|
||||||
|
|
||||||
|
public class EventCommentDto
|
||||||
|
{
|
||||||
|
public string Id { get; set; }
|
||||||
|
public UserInfoViewModel User { get; set; }
|
||||||
|
public string Content { get; set; }
|
||||||
|
public DateTime CreationTime { get; set; }
|
||||||
|
public int Likes { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Sozsoft.Platform.Identity.Dto;
|
||||||
|
|
||||||
|
namespace Sozsoft.Platform.Intranet;
|
||||||
|
|
||||||
|
public class EventDto
|
||||||
|
{
|
||||||
|
public string Id { get; set; }
|
||||||
|
public string CategoryName { get; set; }
|
||||||
|
public string TypeName { get; set; }
|
||||||
|
public DateTime Date { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Description { get; set; }
|
||||||
|
public string Place { get; set; }
|
||||||
|
public UserInfoViewModel Organizer { get; set; }
|
||||||
|
public int Participants { get; set; }
|
||||||
|
public List<string> Photos { get; set; } = new();
|
||||||
|
public List<EventCommentDto> Comments { get; set; } = new();
|
||||||
|
public int Likes { get; set; }
|
||||||
|
public bool IsPublished { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -6,6 +6,7 @@ namespace Sozsoft.Platform.Intranet;
|
||||||
|
|
||||||
public class IntranetDashboardDto
|
public class IntranetDashboardDto
|
||||||
{
|
{
|
||||||
|
public List<EventDto> Events { get; set; } = [];
|
||||||
public List<UserInfoViewModel> Birthdays { get; set; } = [];
|
public List<UserInfoViewModel> Birthdays { get; set; } = [];
|
||||||
public List<FileItemDto> Documents { get; set; } = [];
|
public List<FileItemDto> Documents { get; set; } = [];
|
||||||
public List<AnnouncementDto> Announcements { get; set; } = [];
|
public List<AnnouncementDto> Announcements { get; set; } = [];
|
||||||
|
|
|
||||||
|
|
@ -3948,436 +3948,436 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
// #region EventType
|
#region EventType
|
||||||
// listFormName = AppCodes.Intranet.EventType;
|
listFormName = AppCodes.Intranet.EventType;
|
||||||
// if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
||||||
// {
|
{
|
||||||
// var listForm = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
// new ListForm()
|
new ListForm()
|
||||||
// {
|
{
|
||||||
// ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
// PageSize = 10,
|
PageSize = 10,
|
||||||
// ExportJson = DefaultExportJson,
|
ExportJson = DefaultExportJson,
|
||||||
// IsSubForm = false,
|
IsSubForm = false,
|
||||||
// ShowNote = true,
|
ShowNote = true,
|
||||||
// LayoutJson = DefaultLayoutJson(),
|
LayoutJson = DefaultLayoutJson(),
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// ListFormCode = listFormName,
|
ListFormCode = listFormName,
|
||||||
// Name = listFormName,
|
Name = listFormName,
|
||||||
// Title = listFormName,
|
Title = listFormName,
|
||||||
// DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
||||||
// IsTenant = true,
|
IsTenant = true,
|
||||||
// IsBranch = false,
|
IsBranch = false,
|
||||||
// IsOrganizationUnit = false,
|
IsOrganizationUnit = false,
|
||||||
// Description = listFormName,
|
Description = listFormName,
|
||||||
// SelectCommandType = SelectCommandTypeEnum.Table,
|
SelectCommandType = SelectCommandTypeEnum.Table,
|
||||||
// SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.EventType)),
|
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.EventType)),
|
||||||
// KeyFieldName = "Id",
|
KeyFieldName = "Id",
|
||||||
// KeyFieldDbSourceType = DbType.Guid,
|
KeyFieldDbSourceType = DbType.Guid,
|
||||||
// DefaultFilter = DefaultFilterJson,
|
DefaultFilter = DefaultFilterJson,
|
||||||
// SortMode = GridOptions.SortModeSingle,
|
SortMode = GridOptions.SortModeSingle,
|
||||||
// FilterRowJson = DefaultFilterRowJson,
|
FilterRowJson = DefaultFilterRowJson,
|
||||||
// HeaderFilterJson = DefaultHeaderFilterJson,
|
HeaderFilterJson = DefaultHeaderFilterJson,
|
||||||
// SearchPanelJson = DefaultSearchPanelJson,
|
SearchPanelJson = DefaultSearchPanelJson,
|
||||||
// GroupPanelJson = DefaultGroupPanelJson,
|
GroupPanelJson = DefaultGroupPanelJson,
|
||||||
// SelectionJson = DefaultSelectionSingleJson,
|
SelectionJson = DefaultSelectionSingleJson,
|
||||||
// ColumnOptionJson = DefaultColumnOptionJson(),
|
ColumnOptionJson = DefaultColumnOptionJson(),
|
||||||
// PermissionJson = DefaultPermissionJson(listFormName),
|
PermissionJson = DefaultPermissionJson(listFormName),
|
||||||
// DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.EventType)),
|
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.EventType)),
|
||||||
// DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(),
|
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(),
|
||||||
// PagerOptionJson = DefaultPagerOptionJson,
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
// EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false),
|
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false),
|
||||||
// EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
|
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
|
||||||
// new() { Order=1, ColCount=1, ColSpan=1, ItemType="group", Items=[
|
new() { Order=1, ColCount=1, ColSpan=1, ItemType="group", Items=[
|
||||||
// new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
|
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
|
||||||
// ]}
|
]}
|
||||||
// }),
|
}),
|
||||||
// InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
|
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
|
||||||
// }
|
}
|
||||||
// );
|
);
|
||||||
|
|
||||||
// #region EventType Fields
|
#region EventType Fields
|
||||||
// await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
||||||
// new() {
|
new() {
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
// FieldName = "Id",
|
FieldName = "Id",
|
||||||
// CaptionName = "App.Listform.ListformField.Id",
|
CaptionName = "App.Listform.ListformField.Id",
|
||||||
// Width = 100,
|
Width = 100,
|
||||||
// ListOrderNo = 1,
|
ListOrderNo = 1,
|
||||||
// Visible = false,
|
Visible = false,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// },
|
},
|
||||||
// new() {
|
new() {
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
// FieldName = "Name",
|
FieldName = "Name",
|
||||||
// CaptionName = "App.Listform.ListformField.Name",
|
CaptionName = "App.Listform.ListformField.Name",
|
||||||
// Width = 500,
|
Width = 500,
|
||||||
// ListOrderNo = 2,
|
ListOrderNo = 2,
|
||||||
// Visible = true,
|
Visible = true,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// SortIndex = 1,
|
SortIndex = 1,
|
||||||
// SortDirection = GridColumnOptions.SortOrderAsc,
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
// AllowSearch = true,
|
AllowSearch = true,
|
||||||
// ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
// #endregion
|
#endregion
|
||||||
// }
|
}
|
||||||
// #endregion
|
#endregion
|
||||||
|
|
||||||
// #region EventCategory
|
#region EventCategory
|
||||||
// listFormName = AppCodes.Intranet.EventCategory;
|
listFormName = AppCodes.Intranet.EventCategory;
|
||||||
// if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
||||||
// {
|
{
|
||||||
// var listForm = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
// new ListForm()
|
new ListForm()
|
||||||
// {
|
{
|
||||||
// ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
// PageSize = 10,
|
PageSize = 10,
|
||||||
// ExportJson = DefaultExportJson,
|
ExportJson = DefaultExportJson,
|
||||||
// IsSubForm = false,
|
IsSubForm = false,
|
||||||
// ShowNote = true,
|
ShowNote = true,
|
||||||
// LayoutJson = DefaultLayoutJson(),
|
LayoutJson = DefaultLayoutJson(),
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// ListFormCode = listFormName,
|
ListFormCode = listFormName,
|
||||||
// Name = listFormName,
|
Name = listFormName,
|
||||||
// Title = listFormName,
|
Title = listFormName,
|
||||||
// DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
||||||
// IsTenant = true,
|
IsTenant = true,
|
||||||
// IsBranch = false,
|
IsBranch = false,
|
||||||
// IsOrganizationUnit = false,
|
IsOrganizationUnit = false,
|
||||||
// Description = listFormName,
|
Description = listFormName,
|
||||||
// SelectCommandType = SelectCommandTypeEnum.Table,
|
SelectCommandType = SelectCommandTypeEnum.Table,
|
||||||
// SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.EventCategory)),
|
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.EventCategory)),
|
||||||
// KeyFieldName = "Id",
|
KeyFieldName = "Id",
|
||||||
// KeyFieldDbSourceType = DbType.Guid,
|
KeyFieldDbSourceType = DbType.Guid,
|
||||||
// DefaultFilter = DefaultFilterJson,
|
DefaultFilter = DefaultFilterJson,
|
||||||
// SortMode = GridOptions.SortModeSingle,
|
SortMode = GridOptions.SortModeSingle,
|
||||||
// FilterRowJson = DefaultFilterRowJson,
|
FilterRowJson = DefaultFilterRowJson,
|
||||||
// HeaderFilterJson = DefaultHeaderFilterJson,
|
HeaderFilterJson = DefaultHeaderFilterJson,
|
||||||
// SearchPanelJson = DefaultSearchPanelJson,
|
SearchPanelJson = DefaultSearchPanelJson,
|
||||||
// GroupPanelJson = DefaultGroupPanelJson,
|
GroupPanelJson = DefaultGroupPanelJson,
|
||||||
// SelectionJson = DefaultSelectionSingleJson,
|
SelectionJson = DefaultSelectionSingleJson,
|
||||||
// ColumnOptionJson = DefaultColumnOptionJson(),
|
ColumnOptionJson = DefaultColumnOptionJson(),
|
||||||
// PermissionJson = DefaultPermissionJson(listFormName),
|
PermissionJson = DefaultPermissionJson(listFormName),
|
||||||
// DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.EventCategory)),
|
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.EventCategory)),
|
||||||
// DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(),
|
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(),
|
||||||
// PagerOptionJson = DefaultPagerOptionJson,
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
// EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false),
|
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false),
|
||||||
// EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
|
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
|
||||||
// new() { Order=1, ColCount=1, ColSpan=1,ItemType="group", Items=[
|
new() { Order=1, ColCount=1, ColSpan=1,ItemType="group", Items=[
|
||||||
// new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
|
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
|
||||||
// ]}
|
]}
|
||||||
// }),
|
}),
|
||||||
// InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
|
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
|
||||||
// }
|
}
|
||||||
// );
|
);
|
||||||
|
|
||||||
// #region EventCategory Fields
|
#region EventCategory Fields
|
||||||
// await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
await _listFormFieldRepository.InsertManyAsync(new ListFormField[] {
|
||||||
// new() {
|
new() {
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
// FieldName = "Id",
|
FieldName = "Id",
|
||||||
// CaptionName = "App.Listform.ListformField.Id",
|
CaptionName = "App.Listform.ListformField.Id",
|
||||||
// Width = 100,
|
Width = 100,
|
||||||
// ListOrderNo = 1,
|
ListOrderNo = 1,
|
||||||
// Visible = false,
|
Visible = false,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// },
|
},
|
||||||
// new() {
|
new() {
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
// FieldName = "Name",
|
FieldName = "Name",
|
||||||
// CaptionName = "App.Listform.ListformField.Name",
|
CaptionName = "App.Listform.ListformField.Name",
|
||||||
// Width = 500,
|
Width = 500,
|
||||||
// ListOrderNo = 2,
|
ListOrderNo = 2,
|
||||||
// Visible = true,
|
Visible = true,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// SortIndex = 1,
|
SortIndex = 1,
|
||||||
// SortDirection = GridColumnOptions.SortOrderAsc,
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
// AllowSearch = true,
|
AllowSearch = true,
|
||||||
// ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
// #endregion
|
#endregion
|
||||||
// }
|
}
|
||||||
// #endregion
|
#endregion
|
||||||
|
|
||||||
// #region Event
|
#region Event
|
||||||
// listFormName = AppCodes.Intranet.Event;
|
listFormName = AppCodes.Intranet.Event;
|
||||||
// if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == listFormName))
|
||||||
// {
|
{
|
||||||
// var listForm = await _listFormRepository.InsertAsync(
|
var listForm = await _listFormRepository.InsertAsync(
|
||||||
// new ListForm()
|
new ListForm()
|
||||||
// {
|
{
|
||||||
// ListFormType = ListFormTypeEnum.List,
|
ListFormType = ListFormTypeEnum.List,
|
||||||
// PageSize = 10,
|
PageSize = 10,
|
||||||
// ExportJson = DefaultExportJson,
|
ExportJson = DefaultExportJson,
|
||||||
// IsSubForm = false,
|
IsSubForm = false,
|
||||||
// ShowNote = true,
|
ShowNote = true,
|
||||||
// LayoutJson = DefaultLayoutJson(),
|
LayoutJson = DefaultLayoutJson(),
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// ListFormCode = listFormName,
|
ListFormCode = listFormName,
|
||||||
// Name = listFormName,
|
Name = listFormName,
|
||||||
// Title = listFormName,
|
Title = listFormName,
|
||||||
// DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
DataSourceCode = SeedConsts.DataSources.DefaultCode,
|
||||||
// IsTenant = true,
|
IsTenant = true,
|
||||||
// IsBranch = false,
|
IsBranch = false,
|
||||||
// IsOrganizationUnit = false,
|
IsOrganizationUnit = false,
|
||||||
// Description = listFormName,
|
Description = listFormName,
|
||||||
// SelectCommandType = SelectCommandTypeEnum.Table,
|
SelectCommandType = SelectCommandTypeEnum.Table,
|
||||||
// SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Event)),
|
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Event)),
|
||||||
// KeyFieldName = "Id",
|
KeyFieldName = "Id",
|
||||||
// KeyFieldDbSourceType = DbType.Guid,
|
KeyFieldDbSourceType = DbType.Guid,
|
||||||
// DefaultFilter = DefaultFilterJson,
|
DefaultFilter = DefaultFilterJson,
|
||||||
// SortMode = GridOptions.SortModeSingle,
|
SortMode = GridOptions.SortModeSingle,
|
||||||
// FilterRowJson = DefaultFilterRowJson,
|
FilterRowJson = DefaultFilterRowJson,
|
||||||
// HeaderFilterJson = DefaultHeaderFilterJson,
|
HeaderFilterJson = DefaultHeaderFilterJson,
|
||||||
// SearchPanelJson = DefaultSearchPanelJson,
|
SearchPanelJson = DefaultSearchPanelJson,
|
||||||
// GroupPanelJson = DefaultGroupPanelJson,
|
GroupPanelJson = DefaultGroupPanelJson,
|
||||||
// SelectionJson = DefaultSelectionSingleJson,
|
SelectionJson = DefaultSelectionSingleJson,
|
||||||
// ColumnOptionJson = DefaultColumnOptionJson(),
|
ColumnOptionJson = DefaultColumnOptionJson(),
|
||||||
// PermissionJson = DefaultPermissionJson(listFormName),
|
PermissionJson = DefaultPermissionJson(listFormName),
|
||||||
// DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Event)),
|
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Event)),
|
||||||
// DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(),
|
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(),
|
||||||
// PagerOptionJson = DefaultPagerOptionJson,
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
// EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 400, true, true, true, true, false),
|
EditingOptionJson = DefaultEditingOptionJson(listFormName, 750, 400, true, true, true, true, false),
|
||||||
// EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>()
|
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>()
|
||||||
// {
|
{
|
||||||
// new() {
|
new() {
|
||||||
// Order = 1, ColCount = 1, ColSpan = 1, ItemType = "group", Items =
|
Order = 1, ColCount = 2, ColSpan = 1, ItemType = "group", Items =
|
||||||
// [
|
[
|
||||||
// new EditingFormItemDto { Order = 1, DataField = "CategoryId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
|
new EditingFormItemDto { Order = 1, DataField = "CategoryId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
|
||||||
// new EditingFormItemDto { Order = 2, DataField = "TypeId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
|
new EditingFormItemDto { Order = 2, DataField = "TypeId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
|
||||||
// new EditingFormItemDto { Order = 3, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
new EditingFormItemDto { Order = 3, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||||
// new EditingFormItemDto { Order = 4, DataField = "Place", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
new EditingFormItemDto { Order = 4, DataField = "Place", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox },
|
||||||
// new EditingFormItemDto { Order = 5, DataField = "UserId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
|
new EditingFormItemDto { Order = 5, DataField = "UserId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
|
||||||
// new EditingFormItemDto { Order = 6, DataField = "Description", ColSpan = 1, EditorType2 = EditorTypes.dxTextArea },
|
new EditingFormItemDto { Order = 7, DataField = "Status", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
|
||||||
// new EditingFormItemDto { Order = 7, DataField = "Status", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
|
new EditingFormItemDto { Order = 6, DataField = "Description", ColSpan = 2, EditorType2 = EditorTypes.dxTextArea },
|
||||||
// new EditingFormItemDto { Order = 8, DataField = "ParticipantsCount", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox },
|
new EditingFormItemDto { Order = 8, DataField = "ParticipantsCount", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox },
|
||||||
// new EditingFormItemDto { Order = 9, DataField = "Likes", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox },
|
new EditingFormItemDto { Order = 9, DataField = "Likes", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox },
|
||||||
// ]}
|
]}
|
||||||
// }),
|
}),
|
||||||
// InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
|
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
|
||||||
// FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
|
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
|
||||||
// new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Aktif", CustomValueType = FieldCustomValueTypeEnum.Value },
|
new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Aktif", CustomValueType = FieldCustomValueTypeEnum.Value },
|
||||||
// }),
|
}),
|
||||||
// }
|
}
|
||||||
// );
|
);
|
||||||
|
|
||||||
// #region Event Fields
|
#region Event Fields
|
||||||
// await _listFormFieldRepository.InsertManyAsync(new ListFormField[]
|
await _listFormFieldRepository.InsertManyAsync(new ListFormField[]
|
||||||
// {
|
{
|
||||||
// // Id
|
// Id
|
||||||
// new()
|
new()
|
||||||
// {
|
{
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
// FieldName = "Id",
|
FieldName = "Id",
|
||||||
// CaptionName = "App.Listform.ListformField.Id",
|
CaptionName = "App.Listform.ListformField.Id",
|
||||||
// Width = 100,
|
Width = 100,
|
||||||
// ListOrderNo = 1,
|
ListOrderNo = 1,
|
||||||
// Visible = false,
|
Visible = false,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// SortIndex = 0,
|
SortIndex = 0,
|
||||||
// ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// },
|
},
|
||||||
// // CategoryId
|
// CategoryId
|
||||||
// new()
|
new()
|
||||||
// {
|
{
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
// FieldName = "CategoryId",
|
FieldName = "CategoryId",
|
||||||
// CaptionName = "App.Listform.ListformField.CategoryId",
|
CaptionName = "App.Listform.ListformField.CategoryId",
|
||||||
// Width = 150,
|
Width = 150,
|
||||||
// ListOrderNo = 2,
|
ListOrderNo = 2,
|
||||||
// Visible = true,
|
Visible = true,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// 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(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// },
|
},
|
||||||
// // TypeId
|
// TypeId
|
||||||
// new()
|
new()
|
||||||
// {
|
{
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
// FieldName = "TypeId",
|
FieldName = "TypeId",
|
||||||
// CaptionName = "App.Listform.ListformField.TypeId",
|
CaptionName = "App.Listform.ListformField.TypeId",
|
||||||
// Width = 150,
|
Width = 150,
|
||||||
// ListOrderNo = 3,
|
ListOrderNo = 3,
|
||||||
// Visible = true,
|
Visible = true,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// 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(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// },
|
},
|
||||||
// // Name
|
// Name
|
||||||
// new()
|
new()
|
||||||
// {
|
{
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
// FieldName = "Name",
|
FieldName = "Name",
|
||||||
// CaptionName = "App.Listform.ListformField.Name",
|
CaptionName = "App.Listform.ListformField.Name",
|
||||||
// Width = 200,
|
Width = 200,
|
||||||
// ListOrderNo = 4,
|
ListOrderNo = 4,
|
||||||
// Visible = true,
|
Visible = true,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// SortIndex = 1,
|
SortIndex = 1,
|
||||||
// SortDirection = GridColumnOptions.SortOrderAsc,
|
SortDirection = GridColumnOptions.SortOrderAsc,
|
||||||
// AllowSearch = true,
|
AllowSearch = true,
|
||||||
// ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
ValidationRuleJson = DefaultValidationRuleRequiredJson,
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// },
|
},
|
||||||
// // Place
|
// Place
|
||||||
// new()
|
new()
|
||||||
// {
|
{
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
// FieldName = "Place",
|
FieldName = "Place",
|
||||||
// CaptionName = "App.Listform.ListformField.Place",
|
CaptionName = "App.Listform.ListformField.Place",
|
||||||
// Width = 200,
|
Width = 200,
|
||||||
// ListOrderNo = 5,
|
ListOrderNo = 5,
|
||||||
// Visible = true,
|
Visible = true,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// },
|
},
|
||||||
// // Description
|
// Description
|
||||||
// new()
|
new()
|
||||||
// {
|
{
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
// FieldName = "Description",
|
FieldName = "Description",
|
||||||
// CaptionName = "App.Listform.ListformField.Description",
|
CaptionName = "App.Listform.ListformField.Description",
|
||||||
// Width = 500,
|
Width = 500,
|
||||||
// ListOrderNo = 6,
|
ListOrderNo = 6,
|
||||||
// Visible = true,
|
Visible = true,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// },
|
},
|
||||||
// // OrganizerId
|
// OrganizerId
|
||||||
// new()
|
new()
|
||||||
// {
|
{
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.Guid,
|
SourceDbType = DbType.Guid,
|
||||||
// FieldName = "UserId",
|
FieldName = "UserId",
|
||||||
// CaptionName = "App.Listform.ListformField.UserId",
|
CaptionName = "App.Listform.ListformField.UserId",
|
||||||
// Width = 150,
|
Width = 150,
|
||||||
// ListOrderNo = 7,
|
ListOrderNo = 7,
|
||||||
// Visible = true,
|
Visible = true,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// LookupJson = JsonSerializer.Serialize(new LookupDto {
|
LookupJson = JsonSerializer.Serialize(new LookupDto {
|
||||||
// DataSourceType = UiLookupDataSourceTypeEnum.Query,
|
DataSourceType = UiLookupDataSourceTypeEnum.Query,
|
||||||
// DisplayExpr = "Name",
|
DisplayExpr = "Name",
|
||||||
// ValueExpr = "Key",
|
ValueExpr = "Key",
|
||||||
// LookupQuery = LookupQueryValues.UserValues
|
LookupQuery = LookupQueryValues.UserValues
|
||||||
// }),
|
}),
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// },
|
},
|
||||||
// // ParticipantsCount
|
// ParticipantsCount
|
||||||
// new()
|
new()
|
||||||
// {
|
{
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.Int32,
|
SourceDbType = DbType.Int32,
|
||||||
// FieldName = "ParticipantsCount",
|
FieldName = "ParticipantsCount",
|
||||||
// CaptionName = "App.Listform.ListformField.ParticipantsCount",
|
CaptionName = "App.Listform.ListformField.ParticipantsCount",
|
||||||
// Width = 80,
|
Width = 80,
|
||||||
// ListOrderNo = 8,
|
ListOrderNo = 8,
|
||||||
// Visible = true,
|
Visible = true,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// },
|
},
|
||||||
// // ParticipantsCount
|
// ParticipantsCount
|
||||||
// new()
|
new()
|
||||||
// {
|
{
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.Int32,
|
SourceDbType = DbType.Int32,
|
||||||
// FieldName = "Likes",
|
FieldName = "Likes",
|
||||||
// CaptionName = "App.Listform.ListformField.Likes",
|
CaptionName = "App.Listform.ListformField.Likes",
|
||||||
// Width = 80,
|
Width = 80,
|
||||||
// ListOrderNo = 9,
|
ListOrderNo = 9,
|
||||||
// Visible = true,
|
Visible = true,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// },
|
},
|
||||||
// // Status
|
// Status
|
||||||
// new()
|
new()
|
||||||
// {
|
{
|
||||||
// ListFormCode = listForm.ListFormCode,
|
ListFormCode = listForm.ListFormCode,
|
||||||
// CultureName = LanguageCodes.En,
|
CultureName = LanguageCodes.En,
|
||||||
// SourceDbType = DbType.String,
|
SourceDbType = DbType.String,
|
||||||
// FieldName = "Status",
|
FieldName = "Status",
|
||||||
// CaptionName = "App.Listform.ListformField.Status",
|
CaptionName = "App.Listform.ListformField.Status",
|
||||||
// Width = 120,
|
Width = 120,
|
||||||
// ListOrderNo = 10,
|
ListOrderNo = 10,
|
||||||
// Visible = true,
|
Visible = true,
|
||||||
// IsActive = true,
|
IsActive = true,
|
||||||
// LookupJson = JsonSerializer.Serialize(new LookupDto {
|
LookupJson = JsonSerializer.Serialize(new LookupDto {
|
||||||
// DataSourceType = UiLookupDataSourceTypeEnum.StaticData,
|
DataSourceType = UiLookupDataSourceTypeEnum.StaticData,
|
||||||
// DisplayExpr = "name",
|
DisplayExpr = "name",
|
||||||
// ValueExpr = "key",
|
ValueExpr = "key",
|
||||||
// LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] {
|
LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] {
|
||||||
// new () { Key="Published",Name="Yayımlandı" },
|
new () { Key="Published",Name="Yayımlandı" },
|
||||||
// new () { Key="Draft",Name="Taslak" },
|
new () { Key="Draft",Name="Taslak" },
|
||||||
// new () { Key="Cancelled",Name="İptal" },
|
new () { Key="Cancelled",Name="İptal" },
|
||||||
// }),
|
}),
|
||||||
// }),
|
}),
|
||||||
// ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
ColumnCustomizationJson = DefaultColumnCustomizationJson,
|
||||||
// PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
PermissionJson = DefaultFieldPermissionJson(listForm.Name),
|
||||||
// PivotSettingsJson = DefaultPivotSettingsJson
|
PivotSettingsJson = DefaultPivotSettingsJson
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
// #endregion
|
#endregion
|
||||||
// }
|
}
|
||||||
// #endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1066,6 +1066,36 @@
|
||||||
"RequiredPermissionName": "App.Intranet.SocialPost",
|
"RequiredPermissionName": "App.Intranet.SocialPost",
|
||||||
"IsDisabled": false
|
"IsDisabled": false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Administration.Intranet",
|
||||||
|
"Code": "App.Intranet.Events.EventType",
|
||||||
|
"DisplayName": "App.Intranet.Events.EventType",
|
||||||
|
"Order": 4,
|
||||||
|
"Url": "/admin/list/App.Intranet.Events.EventType",
|
||||||
|
"Icon": "FcPlanner",
|
||||||
|
"RequiredPermissionName": "App.Intranet.Events.EventType",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Administration.Intranet",
|
||||||
|
"Code": "App.Intranet.Events.EventCategory",
|
||||||
|
"DisplayName": "App.Intranet.Events.EventCategory",
|
||||||
|
"Order": 5,
|
||||||
|
"Url": "/admin/list/App.Intranet.Events.EventCategory",
|
||||||
|
"Icon": "FcTreeStructure",
|
||||||
|
"RequiredPermissionName": "App.Intranet.Events.EventCategory",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ParentCode": "App.Administration.Intranet",
|
||||||
|
"Code": "App.Intranet.Events.Event",
|
||||||
|
"DisplayName": "App.Intranet.Events.Event",
|
||||||
|
"Order": 6,
|
||||||
|
"Url": "/admin/list/App.Intranet.Events.Event",
|
||||||
|
"Icon": "FcCalendar",
|
||||||
|
"RequiredPermissionName": "App.Intranet.Events.Event",
|
||||||
|
"IsDisabled": false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"ParentCode": "App.Administration",
|
"ParentCode": "App.Administration",
|
||||||
"Code": "App.Administration.Restrictions",
|
"Code": "App.Administration.Restrictions",
|
||||||
|
|
|
||||||
|
|
@ -3347,7 +3347,7 @@
|
||||||
"DisplayName": "App.Intranet.Events.EventType",
|
"DisplayName": "App.Intranet.Events.EventType",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3356,7 +3356,7 @@
|
||||||
"DisplayName": "Create",
|
"DisplayName": "Create",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3365,7 +3365,7 @@
|
||||||
"DisplayName": "Update",
|
"DisplayName": "Update",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3374,7 +3374,7 @@
|
||||||
"DisplayName": "Delete",
|
"DisplayName": "Delete",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3383,7 +3383,7 @@
|
||||||
"DisplayName": "Export",
|
"DisplayName": "Export",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3392,7 +3392,7 @@
|
||||||
"DisplayName": "Import",
|
"DisplayName": "Import",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3401,7 +3401,7 @@
|
||||||
"DisplayName": "Note",
|
"DisplayName": "Note",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3410,7 +3410,7 @@
|
||||||
"DisplayName": "App.Intranet.Events.EventCategory",
|
"DisplayName": "App.Intranet.Events.EventCategory",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3419,7 +3419,7 @@
|
||||||
"DisplayName": "Create",
|
"DisplayName": "Create",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3428,7 +3428,7 @@
|
||||||
"DisplayName": "Update",
|
"DisplayName": "Update",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3437,7 +3437,7 @@
|
||||||
"DisplayName": "Delete",
|
"DisplayName": "Delete",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3446,7 +3446,7 @@
|
||||||
"DisplayName": "Export",
|
"DisplayName": "Export",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3455,7 +3455,7 @@
|
||||||
"DisplayName": "Import",
|
"DisplayName": "Import",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3464,7 +3464,7 @@
|
||||||
"DisplayName": "Note",
|
"DisplayName": "Note",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3473,7 +3473,7 @@
|
||||||
"DisplayName": "App.Intranet.Events.Event",
|
"DisplayName": "App.Intranet.Events.Event",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3482,7 +3482,7 @@
|
||||||
"DisplayName": "Create",
|
"DisplayName": "Create",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3491,7 +3491,7 @@
|
||||||
"DisplayName": "Update",
|
"DisplayName": "Update",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3500,7 +3500,7 @@
|
||||||
"DisplayName": "Delete",
|
"DisplayName": "Delete",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3509,7 +3509,7 @@
|
||||||
"DisplayName": "Export",
|
"DisplayName": "Export",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3518,7 +3518,7 @@
|
||||||
"DisplayName": "Import",
|
"DisplayName": "Import",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3527,7 +3527,7 @@
|
||||||
"DisplayName": "Note",
|
"DisplayName": "Note",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3536,7 +3536,7 @@
|
||||||
"DisplayName": "Widget",
|
"DisplayName": "Widget",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3545,7 +3545,7 @@
|
||||||
"DisplayName": "App.Intranet.Announcement",
|
"DisplayName": "App.Intranet.Announcement",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3554,7 +3554,7 @@
|
||||||
"DisplayName": "Create",
|
"DisplayName": "Create",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3563,7 +3563,7 @@
|
||||||
"DisplayName": "Update",
|
"DisplayName": "Update",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3572,7 +3572,7 @@
|
||||||
"DisplayName": "Delete",
|
"DisplayName": "Delete",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3581,7 +3581,7 @@
|
||||||
"DisplayName": "Export",
|
"DisplayName": "Export",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3590,7 +3590,7 @@
|
||||||
"DisplayName": "Import",
|
"DisplayName": "Import",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3599,7 +3599,7 @@
|
||||||
"DisplayName": "Note",
|
"DisplayName": "Note",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3608,7 +3608,7 @@
|
||||||
"DisplayName": "Widget",
|
"DisplayName": "Widget",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3617,7 +3617,7 @@
|
||||||
"DisplayName": "App.Intranet.SocialPost",
|
"DisplayName": "App.Intranet.SocialPost",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3626,7 +3626,7 @@
|
||||||
"DisplayName": "Create",
|
"DisplayName": "Create",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3635,7 +3635,7 @@
|
||||||
"DisplayName": "Update",
|
"DisplayName": "Update",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3644,7 +3644,7 @@
|
||||||
"DisplayName": "Delete",
|
"DisplayName": "Delete",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3653,7 +3653,7 @@
|
||||||
"DisplayName": "Export",
|
"DisplayName": "Export",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3662,7 +3662,7 @@
|
||||||
"DisplayName": "Import",
|
"DisplayName": "Import",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3671,7 +3671,7 @@
|
||||||
"DisplayName": "Note",
|
"DisplayName": "Note",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3680,7 +3680,7 @@
|
||||||
"DisplayName": "Widget",
|
"DisplayName": "Widget",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3689,7 +3689,7 @@
|
||||||
"DisplayName": "App.Intranet.SocialComment",
|
"DisplayName": "App.Intranet.SocialComment",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3698,7 +3698,7 @@
|
||||||
"DisplayName": "Create",
|
"DisplayName": "Create",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3707,7 +3707,7 @@
|
||||||
"DisplayName": "Update",
|
"DisplayName": "Update",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3716,7 +3716,7 @@
|
||||||
"DisplayName": "Delete",
|
"DisplayName": "Delete",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3725,7 +3725,7 @@
|
||||||
"DisplayName": "Export",
|
"DisplayName": "Export",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3734,7 +3734,7 @@
|
||||||
"DisplayName": "Import",
|
"DisplayName": "Import",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
@ -3743,7 +3743,7 @@
|
||||||
"DisplayName": "Note",
|
"DisplayName": "Note",
|
||||||
"IsEnabled": true,
|
"IsEnabled": true,
|
||||||
"MultiTenancySide": 3,
|
"MultiTenancySide": 3,
|
||||||
"MenuGroup": "Kurs"
|
"MenuGroup": "Erp|Kurs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupName": "App.Administration",
|
"GroupName": "App.Administration",
|
||||||
|
|
|
||||||
|
|
@ -79,4 +79,6 @@ public enum TableNameEnum
|
||||||
EventCategory,
|
EventCategory,
|
||||||
EventType,
|
EventType,
|
||||||
Event,
|
Event,
|
||||||
|
EventPhoto,
|
||||||
|
EventComment
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -358,9 +358,10 @@ public static class PlatformConsts
|
||||||
public const string SocialPost = Default + ".SocialPost";
|
public const string SocialPost = Default + ".SocialPost";
|
||||||
public const string SocialComment = Default + ".SocialComment";
|
public const string SocialComment = Default + ".SocialComment";
|
||||||
|
|
||||||
public const string EventCategory = Default + ".EventCategory";
|
public const string Events = Default + ".Events";
|
||||||
public const string EventType = Default + ".EventType";
|
public const string EventType = Events + ".EventType";
|
||||||
public const string Event = Default + ".Event";
|
public const string EventCategory = Events + ".EventCategory";
|
||||||
|
public const string Event = Events + ".Event";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Definitions
|
public static class Definitions
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,11 @@ public static class TableNameResolver
|
||||||
{ nameof(TableNameEnum.SocialPollOption), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
{ nameof(TableNameEnum.SocialPollOption), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||||
{ nameof(TableNameEnum.SocialComment), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
{ nameof(TableNameEnum.SocialComment), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||||
{ nameof(TableNameEnum.SocialLike), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
{ nameof(TableNameEnum.SocialLike), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||||
|
{ nameof(TableNameEnum.EventCategory), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||||
|
{ nameof(TableNameEnum.EventType), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||||
|
{ nameof(TableNameEnum.Event), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||||
|
{ nameof(TableNameEnum.EventPhoto), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||||
|
{ nameof(TableNameEnum.EventComment), (TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -337,9 +337,10 @@ public static class SeedConsts
|
||||||
public const string SocialPost = Default + ".SocialPost";
|
public const string SocialPost = Default + ".SocialPost";
|
||||||
public const string SocialComment = Default + ".SocialComment";
|
public const string SocialComment = Default + ".SocialComment";
|
||||||
|
|
||||||
public const string EventCategory = Default + ".EventCategory";
|
public const string Events = Default + ".Events";
|
||||||
public const string EventType = Default + ".EventType";
|
public const string EventType = Events + ".EventType";
|
||||||
public const string Event = Default + ".Event";
|
public const string EventCategory = Events + ".EventCategory";
|
||||||
|
public const string Event = Events + ".Event";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Definitions
|
public static class Definitions
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,38 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
|
namespace Sozsoft.Platform.Entities;
|
||||||
|
|
||||||
|
public class Event : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
|
{
|
||||||
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
|
public Guid CategoryId { get; set; }
|
||||||
|
public EventCategory Category { get; set; }
|
||||||
|
|
||||||
|
public Guid TypeId { get; set; }
|
||||||
|
public EventType Type { get; set; }
|
||||||
|
|
||||||
|
public DateTime Date { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Description { get; set; }
|
||||||
|
public string Place { get; set; }
|
||||||
|
public string Status { get; set; }
|
||||||
|
|
||||||
|
public Guid? UserId { get; set; }
|
||||||
|
|
||||||
|
public int ParticipantsCount { get; set; }
|
||||||
|
public int Likes { get; set; }
|
||||||
|
public bool isPublished { get; set; } = false;
|
||||||
|
|
||||||
|
// public ICollection<Employee> Participants { get; set; } = [];
|
||||||
|
public ICollection<EventPhoto> Photos { get; set; } = [];
|
||||||
|
public ICollection<EventComment> Comments { get; set; } = [];
|
||||||
|
|
||||||
|
Guid? IMultiTenant.TenantId => TenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
using System;
|
||||||
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
using Volo.Abp.MultiTenancy;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace Sozsoft.Platform.Entities;
|
||||||
|
|
||||||
|
public class EventCategory : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
|
{
|
||||||
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
// Navigation
|
||||||
|
public ICollection<Event> Events { get; set; }
|
||||||
|
|
||||||
|
Guid? IMultiTenant.TenantId => TenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
using System;
|
||||||
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
|
namespace Sozsoft.Platform.Entities;
|
||||||
|
|
||||||
|
public class EventComment : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
|
{
|
||||||
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
|
public Guid EventId { get; set; }
|
||||||
|
public Guid? UserId { get; set; }
|
||||||
|
public string Content { get; set; }
|
||||||
|
public int Likes { get; set; }
|
||||||
|
|
||||||
|
public Event Event { get; set; }
|
||||||
|
|
||||||
|
Guid? IMultiTenant.TenantId => TenantId;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
using System;
|
||||||
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
|
namespace Sozsoft.Platform.Entities;
|
||||||
|
|
||||||
|
public class EventPhoto : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
|
{
|
||||||
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
|
public Guid EventId { get; set; }
|
||||||
|
public string Url { get; set; }
|
||||||
|
|
||||||
|
public Event Event { get; set; }
|
||||||
|
|
||||||
|
Guid? IMultiTenant.TenantId => TenantId;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
using System;
|
||||||
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
using Volo.Abp.MultiTenancy;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace Sozsoft.Platform.Entities;
|
||||||
|
|
||||||
|
public class EventType : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
|
{
|
||||||
|
public Guid? TenantId { get; set; }
|
||||||
|
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
// Navigation
|
||||||
|
public ICollection<Event> Events { get; set; }
|
||||||
|
|
||||||
|
Guid? IMultiTenant.TenantId => TenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -110,6 +110,12 @@ public class PlatformDbContext :
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Intranet
|
#region Intranet
|
||||||
|
public DbSet<Event> Events { get; set; }
|
||||||
|
public DbSet<EventCategory> EventCategories { get; set; }
|
||||||
|
public DbSet<EventType> EventTypes { get; set; }
|
||||||
|
public DbSet<EventPhoto> EventPhotos { get; set; }
|
||||||
|
public DbSet<EventComment> EventComments { get; set; }
|
||||||
|
|
||||||
public DbSet<Announcement> Announcements { get; set; }
|
public DbSet<Announcement> Announcements { get; set; }
|
||||||
|
|
||||||
public DbSet<Survey> Surveys { get; set; }
|
public DbSet<Survey> Surveys { get; set; }
|
||||||
|
|
@ -1207,5 +1213,72 @@ public class PlatformDbContext :
|
||||||
.HasForeignKey(x => x.SocialPostId)
|
.HasForeignKey(x => x.SocialPostId)
|
||||||
.OnDelete(DeleteBehavior.Cascade);
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
builder.Entity<EventCategory>(b =>
|
||||||
|
{
|
||||||
|
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.EventCategory)), Prefix.DbSchema);
|
||||||
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||||
|
});
|
||||||
|
|
||||||
|
builder.Entity<EventType>(b =>
|
||||||
|
{
|
||||||
|
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.EventType)), Prefix.DbSchema);
|
||||||
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||||
|
});
|
||||||
|
|
||||||
|
builder.Entity<Event>(b =>
|
||||||
|
{
|
||||||
|
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Event)), Prefix.DbSchema);
|
||||||
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(x => x.Name).IsRequired().HasMaxLength(256);
|
||||||
|
b.Property(x => x.Place).HasMaxLength(256);
|
||||||
|
b.Property(x => x.Description).HasMaxLength(1024);
|
||||||
|
b.Property(x => x.Status).HasMaxLength(20);
|
||||||
|
b.Property(x => x.isPublished).HasDefaultValue(false);
|
||||||
|
|
||||||
|
b.HasOne(x => x.Category)
|
||||||
|
.WithMany(x => x.Events)
|
||||||
|
.HasForeignKey(x => x.CategoryId)
|
||||||
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
|
|
||||||
|
b.HasOne(x => x.Type)
|
||||||
|
.WithMany(x => x.Events)
|
||||||
|
.HasForeignKey(x => x.TypeId)
|
||||||
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
});
|
||||||
|
|
||||||
|
builder.Entity<EventPhoto>(b =>
|
||||||
|
{
|
||||||
|
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.EventPhoto)), Prefix.DbSchema);
|
||||||
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(x => x.Url).HasMaxLength(512);
|
||||||
|
|
||||||
|
// Event -> EventPhoto (1 - N)
|
||||||
|
b.HasOne(x => x.Event)
|
||||||
|
.WithMany(x => x.Photos)
|
||||||
|
.HasForeignKey(x => x.EventId)
|
||||||
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
builder.Entity<EventComment>(b =>
|
||||||
|
{
|
||||||
|
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.EventComment)), Prefix.DbSchema);
|
||||||
|
b.ConfigureByConvention();
|
||||||
|
|
||||||
|
b.Property(x => x.Content).HasMaxLength(512);
|
||||||
|
b.Property(x => x.Likes).HasDefaultValue(0);
|
||||||
|
|
||||||
|
// Event -> EventComment (1 - N)
|
||||||
|
b.HasOne(x => x.Event)
|
||||||
|
.WithMany(x => x.Comments)
|
||||||
|
.HasForeignKey(x => x.EventId)
|
||||||
|
.OnDelete(DeleteBehavior.Cascade);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
||||||
namespace Sozsoft.Platform.Migrations
|
namespace Sozsoft.Platform.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(PlatformDbContext))]
|
[DbContext(typeof(PlatformDbContext))]
|
||||||
[Migration("20260506113136_Initial")]
|
[Migration("20260506141749_Initial")]
|
||||||
partial class Initial
|
partial class Initial
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
@ -1945,6 +1945,306 @@ namespace Sozsoft.Platform.Migrations
|
||||||
b.ToTable("Sas_H_DynamicService", (string)null);
|
b.ToTable("Sas_H_DynamicService", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.Event", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<Guid>("CategoryId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("CreationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("CreatorId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
|
b.Property<DateTime>("Date")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<Guid?>("DeleterId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("DeleterId");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DeletionTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(1024)
|
||||||
|
.HasColumnType("nvarchar(1024)");
|
||||||
|
|
||||||
|
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<int>("Likes")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
|
b.Property<int>("ParticipantsCount")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<string>("Place")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
|
b.Property<string>("Status")
|
||||||
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.Property<Guid>("TypeId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<Guid?>("UserId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<bool>("isPublished")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("CategoryId");
|
||||||
|
|
||||||
|
b.HasIndex("TypeId");
|
||||||
|
|
||||||
|
b.ToTable("Adm_T_Event", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventCategory", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
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<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(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Adm_T_EventCategory", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventComment", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<string>("Content")
|
||||||
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
|
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<Guid>("EventId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
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<int>("Likes")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.Property<Guid?>("UserId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("EventId");
|
||||||
|
|
||||||
|
b.ToTable("Adm_T_EventComment", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventPhoto", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
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<Guid>("EventId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
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<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.Property<string>("Url")
|
||||||
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("EventId");
|
||||||
|
|
||||||
|
b.ToTable("Adm_T_EventPhoto", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventType", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
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<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(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Adm_T_EventType", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Sozsoft.Platform.Entities.GlobalSearch", b =>
|
modelBuilder.Entity("Sozsoft.Platform.Entities.GlobalSearch", b =>
|
||||||
{
|
{
|
||||||
b.Property<int>("Id")
|
b.Property<int>("Id")
|
||||||
|
|
@ -7107,6 +7407,47 @@ namespace Sozsoft.Platform.Migrations
|
||||||
.HasForeignKey("CityId");
|
.HasForeignKey("CityId");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.Event", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Sozsoft.Platform.Entities.EventCategory", "Category")
|
||||||
|
.WithMany("Events")
|
||||||
|
.HasForeignKey("CategoryId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("Sozsoft.Platform.Entities.EventType", "Type")
|
||||||
|
.WithMany("Events")
|
||||||
|
.HasForeignKey("TypeId")
|
||||||
|
.OnDelete(DeleteBehavior.Restrict)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Category");
|
||||||
|
|
||||||
|
b.Navigation("Type");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventComment", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Sozsoft.Platform.Entities.Event", "Event")
|
||||||
|
.WithMany("Comments")
|
||||||
|
.HasForeignKey("EventId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Event");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventPhoto", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Sozsoft.Platform.Entities.Event", "Event")
|
||||||
|
.WithMany("Photos")
|
||||||
|
.HasForeignKey("EventId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Event");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Sozsoft.Platform.Entities.JobPosition", b =>
|
modelBuilder.Entity("Sozsoft.Platform.Entities.JobPosition", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Sozsoft.Platform.Entities.Department", "Department")
|
b.HasOne("Sozsoft.Platform.Entities.Department", "Department")
|
||||||
|
|
@ -7535,6 +7876,23 @@ namespace Sozsoft.Platform.Migrations
|
||||||
b.Navigation("JobPositions");
|
b.Navigation("JobPositions");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.Event", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("Comments");
|
||||||
|
|
||||||
|
b.Navigation("Photos");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventCategory", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("Events");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventType", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("Events");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Sozsoft.Platform.Entities.Order", b =>
|
modelBuilder.Entity("Sozsoft.Platform.Entities.Order", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Items");
|
b.Navigation("Items");
|
||||||
|
|
@ -513,6 +513,46 @@ namespace Sozsoft.Platform.Migrations
|
||||||
table.PrimaryKey("PK_Adm_T_Department", x => x.Id);
|
table.PrimaryKey("PK_Adm_T_Department", x => x.Id);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Adm_T_EventCategory",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, 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_Adm_T_EventCategory", x => x.Id);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Adm_T_EventType",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, 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_Adm_T_EventType", x => x.Id);
|
||||||
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "Adm_T_IpRestriction",
|
name: "Adm_T_IpRestriction",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
|
|
@ -1916,6 +1956,48 @@ namespace Sozsoft.Platform.Migrations
|
||||||
onDelete: ReferentialAction.Restrict);
|
onDelete: ReferentialAction.Restrict);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Adm_T_Event",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
CategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
Date = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
||||||
|
Description = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true),
|
||||||
|
Place = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||||
|
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
||||||
|
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
ParticipantsCount = table.Column<int>(type: "int", nullable: false),
|
||||||
|
Likes = table.Column<int>(type: "int", nullable: false),
|
||||||
|
isPublished = table.Column<bool>(type: "bit", nullable: false, defaultValue: 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_Adm_T_Event", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Adm_T_Event_Adm_T_EventCategory_CategoryId",
|
||||||
|
column: x => x.CategoryId,
|
||||||
|
principalTable: "Adm_T_EventCategory",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Adm_T_Event_Adm_T_EventType_TypeId",
|
||||||
|
column: x => x.TypeId,
|
||||||
|
principalTable: "Adm_T_EventType",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Restrict);
|
||||||
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "Adm_T_ReportTemplate",
|
name: "Adm_T_ReportTemplate",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
|
|
@ -2620,6 +2702,62 @@ namespace Sozsoft.Platform.Migrations
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Adm_T_EventComment",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
EventId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
Content = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
|
||||||
|
Likes = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
||||||
|
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_Adm_T_EventComment", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Adm_T_EventComment_Adm_T_Event_EventId",
|
||||||
|
column: x => x.EventId,
|
||||||
|
principalTable: "Adm_T_Event",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Adm_T_EventPhoto",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
EventId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
Url = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
|
||||||
|
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_Adm_T_EventPhoto", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Adm_T_EventPhoto_Adm_T_Event_EventId",
|
||||||
|
column: x => x.EventId,
|
||||||
|
principalTable: "Adm_T_Event",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "Adm_T_SocialPollOption",
|
name: "Adm_T_SocialPollOption",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
|
|
@ -3117,6 +3255,26 @@ namespace Sozsoft.Platform.Migrations
|
||||||
table: "AbpUsers",
|
table: "AbpUsers",
|
||||||
column: "UserName");
|
column: "UserName");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_Adm_T_Event_CategoryId",
|
||||||
|
table: "Adm_T_Event",
|
||||||
|
column: "CategoryId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_Adm_T_Event_TypeId",
|
||||||
|
table: "Adm_T_Event",
|
||||||
|
column: "TypeId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_Adm_T_EventComment_EventId",
|
||||||
|
table: "Adm_T_EventComment",
|
||||||
|
column: "EventId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_Adm_T_EventPhoto_EventId",
|
||||||
|
table: "Adm_T_EventPhoto",
|
||||||
|
column: "EventId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Adm_T_JobPosition_DepartmentId",
|
name: "IX_Adm_T_JobPosition_DepartmentId",
|
||||||
table: "Adm_T_JobPosition",
|
table: "Adm_T_JobPosition",
|
||||||
|
|
@ -3466,6 +3624,12 @@ namespace Sozsoft.Platform.Migrations
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Adm_T_Announcement");
|
name: "Adm_T_Announcement");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Adm_T_EventComment");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Adm_T_EventPhoto");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Adm_T_IpRestriction");
|
name: "Adm_T_IpRestriction");
|
||||||
|
|
||||||
|
|
@ -3634,6 +3798,9 @@ namespace Sozsoft.Platform.Migrations
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "AbpUsers");
|
name: "AbpUsers");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Adm_T_Event");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Adm_T_Department");
|
name: "Adm_T_Department");
|
||||||
|
|
||||||
|
|
@ -3691,6 +3858,12 @@ namespace Sozsoft.Platform.Migrations
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "AbpAuditLogs");
|
name: "AbpAuditLogs");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Adm_T_EventCategory");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Adm_T_EventType");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Adm_T_SocialPost");
|
name: "Adm_T_SocialPost");
|
||||||
|
|
||||||
|
|
@ -1942,6 +1942,306 @@ namespace Sozsoft.Platform.Migrations
|
||||||
b.ToTable("Sas_H_DynamicService", (string)null);
|
b.ToTable("Sas_H_DynamicService", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.Event", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<Guid>("CategoryId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("CreationTime");
|
||||||
|
|
||||||
|
b.Property<Guid?>("CreatorId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("CreatorId");
|
||||||
|
|
||||||
|
b.Property<DateTime>("Date")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<Guid?>("DeleterId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("DeleterId");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DeletionTime")
|
||||||
|
.HasColumnType("datetime2")
|
||||||
|
.HasColumnName("DeletionTime");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(1024)
|
||||||
|
.HasColumnType("nvarchar(1024)");
|
||||||
|
|
||||||
|
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<int>("Likes")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
|
b.Property<int>("ParticipantsCount")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<string>("Place")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("nvarchar(256)");
|
||||||
|
|
||||||
|
b.Property<string>("Status")
|
||||||
|
.HasMaxLength(20)
|
||||||
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.Property<Guid>("TypeId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<Guid?>("UserId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<bool>("isPublished")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("bit")
|
||||||
|
.HasDefaultValue(false);
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("CategoryId");
|
||||||
|
|
||||||
|
b.HasIndex("TypeId");
|
||||||
|
|
||||||
|
b.ToTable("Adm_T_Event", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventCategory", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
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<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(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Adm_T_EventCategory", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventComment", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<string>("Content")
|
||||||
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
|
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<Guid>("EventId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
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<int>("Likes")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasDefaultValue(0);
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.Property<Guid?>("UserId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("EventId");
|
||||||
|
|
||||||
|
b.ToTable("Adm_T_EventComment", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventPhoto", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
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<Guid>("EventId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
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<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.Property<string>("Url")
|
||||||
|
.HasMaxLength(512)
|
||||||
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("EventId");
|
||||||
|
|
||||||
|
b.ToTable("Adm_T_EventPhoto", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventType", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
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<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(128)
|
||||||
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Adm_T_EventType", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Sozsoft.Platform.Entities.GlobalSearch", b =>
|
modelBuilder.Entity("Sozsoft.Platform.Entities.GlobalSearch", b =>
|
||||||
{
|
{
|
||||||
b.Property<int>("Id")
|
b.Property<int>("Id")
|
||||||
|
|
@ -7104,6 +7404,47 @@ namespace Sozsoft.Platform.Migrations
|
||||||
.HasForeignKey("CityId");
|
.HasForeignKey("CityId");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.Event", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Sozsoft.Platform.Entities.EventCategory", "Category")
|
||||||
|
.WithMany("Events")
|
||||||
|
.HasForeignKey("CategoryId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("Sozsoft.Platform.Entities.EventType", "Type")
|
||||||
|
.WithMany("Events")
|
||||||
|
.HasForeignKey("TypeId")
|
||||||
|
.OnDelete(DeleteBehavior.Restrict)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Category");
|
||||||
|
|
||||||
|
b.Navigation("Type");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventComment", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Sozsoft.Platform.Entities.Event", "Event")
|
||||||
|
.WithMany("Comments")
|
||||||
|
.HasForeignKey("EventId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Event");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventPhoto", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Sozsoft.Platform.Entities.Event", "Event")
|
||||||
|
.WithMany("Photos")
|
||||||
|
.HasForeignKey("EventId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Event");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Sozsoft.Platform.Entities.JobPosition", b =>
|
modelBuilder.Entity("Sozsoft.Platform.Entities.JobPosition", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Sozsoft.Platform.Entities.Department", "Department")
|
b.HasOne("Sozsoft.Platform.Entities.Department", "Department")
|
||||||
|
|
@ -7532,6 +7873,23 @@ namespace Sozsoft.Platform.Migrations
|
||||||
b.Navigation("JobPositions");
|
b.Navigation("JobPositions");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.Event", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("Comments");
|
||||||
|
|
||||||
|
b.Navigation("Photos");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventCategory", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("Events");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Sozsoft.Platform.Entities.EventType", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("Events");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Sozsoft.Platform.Entities.Order", b =>
|
modelBuilder.Entity("Sozsoft.Platform.Entities.Order", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Items");
|
b.Navigation("Items");
|
||||||
|
|
|
||||||
|
|
@ -1899,5 +1899,139 @@
|
||||||
"Photos": [],
|
"Photos": [],
|
||||||
"Comments": []
|
"Comments": []
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"EventComments": [
|
||||||
|
{
|
||||||
|
"EventName": "Yaz Futbol Turnuvası 2025",
|
||||||
|
"UserName": "system@sozsoft.com",
|
||||||
|
"Content": "Muhteşem bir gündü! Yılın en güzel etkinliği 🎉",
|
||||||
|
"Likes": 12
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Yaz Futbol Turnuvası 2025",
|
||||||
|
"UserName": "system@sozsoft.com",
|
||||||
|
"Content": "Voleybol turnuvası harikaydı, gelecek yıl yine yapalım!",
|
||||||
|
"Likes": 8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Kültür Gezisi: Kapadokya",
|
||||||
|
"UserName": "system@sozsoft.com",
|
||||||
|
"Content": "Ekibimiz 2. oldu! Çok gurur duydum herkesle 💪",
|
||||||
|
"Likes": 15
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Kültür Gezisi: Kapadokya",
|
||||||
|
"UserName": "system@sozsoft.com",
|
||||||
|
"Content": "Gece boyunca kod yazmak ve pizza yemek priceless! 🍕",
|
||||||
|
"Likes": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Müzik Dinletisi: Jazz Akşamı",
|
||||||
|
"UserName": "system@sozsoft.com",
|
||||||
|
"Content": "İT departmanı şampiyon oldu! Gelecek sene kupayı koruyacağız 🏆",
|
||||||
|
"Likes": 18
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Müzik Dinletisi: Jazz Akşamı",
|
||||||
|
"UserName": "system@sozsoft.com",
|
||||||
|
"Content": "Yılın en şık gecesi! Organizasyon mükemmeldi 👏",
|
||||||
|
"Likes": 25
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Müzik Dinletisi: Jazz Akşamı",
|
||||||
|
"UserName": "system@sozsoft.com",
|
||||||
|
"Content": "Tombala hediyelerim harika, çok teşekkürler! 🎁",
|
||||||
|
"Likes": 14
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Müzik Dinletisi: Jazz Akşamı",
|
||||||
|
"UserName": "system@sozsoft.com",
|
||||||
|
"Content": "Müzik grubunuz süperdi, dans pistinden ayrılamadık! 🎵",
|
||||||
|
"Likes": 19
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Müzik Dinletisi: Jazz Akşamı",
|
||||||
|
"UserName": "system@sozsoft.com",
|
||||||
|
"Content": "İlk defa ebru yaptım, çok huzurlu bir deneyimdi 🎨",
|
||||||
|
"Likes": 11
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"EventPhotos": [
|
||||||
|
{
|
||||||
|
"EventName": "Yaz Futbol Turnuvası 2025",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1530541930197-ff16ac917b0e?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Yaz Futbol Turnuvası 2025",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1527529482837-4698179dc6ce?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Yaz Futbol Turnuvası 2025",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1528605105345-5344ea20e269?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Yaz Futbol Turnuvası 2025",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1504196606672-aef5c9cefc92?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Kültür Gezisi: Kapadokya",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1504384308090-c894fdcc538d?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Kültür Gezisi: Kapadokya",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Kültür Gezisi: Kapadokya",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1531482615713-2afd69097998?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Müzik Dinletisi: Jazz Akşamı",
|
||||||
|
"Url": "hhttps://images.unsplash.com/photo-1579952363873-27f3bade9f55?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Müzik Dinletisi: Jazz Akşamı",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1574629810360-7efbbe195018?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Müzik Dinletisi: Jazz Akşamı",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Müzik Dinletisi: Jazz Akşamı",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1553778263-73a83bab9b0c?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Müzik Dinletisi: Jazz Akşamı",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1511795409834-ef04bbd61622?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Yaz Futbol Turnuvası 2025",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1519167758481-83f29da8c2b9?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Yaz Futbol Turnuvası 2025",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Kültür Gezisi: Kapadokya",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1478147427282-58a87a120781?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Kültür Gezisi: Kapadokya",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1492684223066-81342ee5ff30?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Kültür Gezisi: Kapadokya",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1460661419201-fd4cecdf8a8b?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Kültür Gezisi: Kapadokya",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1513364776144-60967b0f800f?w=800"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"EventName": "Kültür Gezisi: Kapadokya",
|
||||||
|
"Url": "https://images.unsplash.com/photo-1515405295579-ba7b45403062?w=800"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -65,6 +65,11 @@ public class TenantSeederDto
|
||||||
public List<SocialPollOptionSeedDto> SocialPollOptions { get; set; }
|
public List<SocialPollOptionSeedDto> SocialPollOptions { get; set; }
|
||||||
public List<SocialCommentSeedDto> SocialComments { get; set; }
|
public List<SocialCommentSeedDto> SocialComments { get; set; }
|
||||||
public List<SocialLikeSeedDto> SocialLikes { get; set; }
|
public List<SocialLikeSeedDto> SocialLikes { get; set; }
|
||||||
|
public List<EventTypeSeedDto> EventTypes { get; set; }
|
||||||
|
public List<EventCategorySeedDto> EventCategories { get; set; }
|
||||||
|
public List<EventSeedDto> Events { get; set; }
|
||||||
|
public List<EventPhotoSeedDto> EventPhotos { get; set; }
|
||||||
|
public List<EventCommentSeedDto> EventComments { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SocialPostSeedDto
|
public class SocialPostSeedDto
|
||||||
|
|
@ -121,6 +126,47 @@ public class SocialLikeSeedDto
|
||||||
public string UserName { get; set; }
|
public string UserName { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class EventTypeSeedDto
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class EventCategorySeedDto
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class EventSeedDto
|
||||||
|
{
|
||||||
|
public string CategoryName { get; set; }
|
||||||
|
public string TypeName { get; set; }
|
||||||
|
public DateTime Date { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Description { get; set; }
|
||||||
|
public string Place { get; set; }
|
||||||
|
public string Status { get; set; }
|
||||||
|
public string UserName { get; set; }
|
||||||
|
public int ParticipantsCount { get; set; }
|
||||||
|
public int Likes { get; set; }
|
||||||
|
public bool IsPublished { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class EventCommentSeedDto
|
||||||
|
{
|
||||||
|
public string EventName { get; set; }
|
||||||
|
public string UserName { get; set; }
|
||||||
|
public string Content { get; set; }
|
||||||
|
public int Likes { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class EventPhotoSeedDto
|
||||||
|
{
|
||||||
|
public string EventName { get; set; }
|
||||||
|
public string Url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
public class SurveySeedDto
|
public class SurveySeedDto
|
||||||
{
|
{
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
|
|
@ -409,6 +455,13 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
private readonly IRepository<SocialPollOption, Guid> _socialPollOptionRepository;
|
private readonly IRepository<SocialPollOption, Guid> _socialPollOptionRepository;
|
||||||
private readonly IRepository<SocialComment, Guid> _socialCommentRepository;
|
private readonly IRepository<SocialComment, Guid> _socialCommentRepository;
|
||||||
private readonly IRepository<SocialLike, Guid> _socialLikeRepository;
|
private readonly IRepository<SocialLike, Guid> _socialLikeRepository;
|
||||||
|
|
||||||
|
private readonly IRepository<EventType, Guid> _eventTypeRepository;
|
||||||
|
private readonly IRepository<EventCategory, Guid> _eventCategoryRepository;
|
||||||
|
private readonly IRepository<Event, Guid> _eventRepository;
|
||||||
|
private readonly IRepository<EventComment, Guid> _eventCommentRepository;
|
||||||
|
private readonly IRepository<EventPhoto, Guid> _eventPhotoRepository;
|
||||||
|
|
||||||
private readonly ICurrentTenant _currentTenant;
|
private readonly ICurrentTenant _currentTenant;
|
||||||
|
|
||||||
public TenantDataSeeder(
|
public TenantDataSeeder(
|
||||||
|
|
@ -451,6 +504,11 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
IRepository<SocialPollOption, Guid> socialPollOptionRepository,
|
IRepository<SocialPollOption, Guid> socialPollOptionRepository,
|
||||||
IRepository<SocialComment, Guid> socialCommentRepository,
|
IRepository<SocialComment, Guid> socialCommentRepository,
|
||||||
IRepository<SocialLike, Guid> socialLikeRepository,
|
IRepository<SocialLike, Guid> socialLikeRepository,
|
||||||
|
IRepository<EventType, Guid> eventTypeRepository,
|
||||||
|
IRepository<EventCategory, Guid> eventCategoryRepository,
|
||||||
|
IRepository<Event, Guid> eventRepository,
|
||||||
|
IRepository<EventPhoto, Guid> eventPhotoRepository,
|
||||||
|
IRepository<EventComment, Guid> eventCommentRepository,
|
||||||
|
|
||||||
OrganizationUnitManager organizationUnitManager,
|
OrganizationUnitManager organizationUnitManager,
|
||||||
ICurrentTenant currentTenant
|
ICurrentTenant currentTenant
|
||||||
|
|
@ -494,6 +552,11 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
_socialPollOptionRepository = socialPollOptionRepository;
|
_socialPollOptionRepository = socialPollOptionRepository;
|
||||||
_socialCommentRepository = socialCommentRepository;
|
_socialCommentRepository = socialCommentRepository;
|
||||||
_socialLikeRepository = socialLikeRepository;
|
_socialLikeRepository = socialLikeRepository;
|
||||||
|
_eventTypeRepository = eventTypeRepository;
|
||||||
|
_eventCategoryRepository = eventCategoryRepository;
|
||||||
|
_eventRepository = eventRepository;
|
||||||
|
_eventCommentRepository = eventCommentRepository;
|
||||||
|
_eventPhotoRepository = eventPhotoRepository;
|
||||||
_organizationUnitManager = organizationUnitManager;
|
_organizationUnitManager = organizationUnitManager;
|
||||||
_currentTenant = currentTenant;
|
_currentTenant = currentTenant;
|
||||||
}
|
}
|
||||||
|
|
@ -1108,6 +1171,98 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
|
||||||
}, autoSave: true);
|
}, autoSave: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach (var item in items.EventTypes)
|
||||||
|
{
|
||||||
|
var exists = await _eventTypeRepository.AnyAsync(x => x.Name == item.Name);
|
||||||
|
|
||||||
|
if (!exists)
|
||||||
|
{
|
||||||
|
await _eventTypeRepository.InsertAsync(new EventType { Name = item.Name }, autoSave: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var item in items.EventCategories)
|
||||||
|
{
|
||||||
|
var exists = await _eventCategoryRepository.AnyAsync(x => x.Name == item.Name);
|
||||||
|
|
||||||
|
if (!exists)
|
||||||
|
{
|
||||||
|
await _eventCategoryRepository.InsertAsync(
|
||||||
|
new EventCategory
|
||||||
|
{
|
||||||
|
Name = item.Name
|
||||||
|
}, autoSave: true
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var item in items.Events)
|
||||||
|
{
|
||||||
|
var exists = await _eventRepository.AnyAsync(x => x.Name == item.Name);
|
||||||
|
|
||||||
|
if (!exists)
|
||||||
|
{
|
||||||
|
var category = await _eventCategoryRepository.FirstOrDefaultAsync(x => x.Name == item.CategoryName);
|
||||||
|
var type = await _eventTypeRepository.FirstOrDefaultAsync(x => x.Name == item.TypeName);
|
||||||
|
var user = await _repositoryUser.FindByNormalizedUserNameAsync(item.UserName);
|
||||||
|
|
||||||
|
if (category != null && type != null)
|
||||||
|
{
|
||||||
|
await _eventRepository.InsertAsync(new Event
|
||||||
|
{
|
||||||
|
CategoryId = category.Id,
|
||||||
|
TypeId = type.Id,
|
||||||
|
Date = item.Date,
|
||||||
|
Name = item.Name,
|
||||||
|
Place = item.Place,
|
||||||
|
Description = item.Description,
|
||||||
|
UserId = user != null ? user.Id : null,
|
||||||
|
Status = item.Status,
|
||||||
|
ParticipantsCount = item.ParticipantsCount,
|
||||||
|
Likes = item.Likes,
|
||||||
|
isPublished = item.IsPublished,
|
||||||
|
}, autoSave: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var item in items.EventPhotos)
|
||||||
|
{
|
||||||
|
var exists = await _eventPhotoRepository.AnyAsync(x => x.Url == item.Url);
|
||||||
|
if (!exists)
|
||||||
|
{
|
||||||
|
var eventEntity = await _eventRepository.FirstOrDefaultAsync(x => x.Name == item.EventName);
|
||||||
|
|
||||||
|
await _eventPhotoRepository.InsertAsync(new EventPhoto
|
||||||
|
{
|
||||||
|
EventId = eventEntity.Id,
|
||||||
|
Url = item.Url
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var item in items.EventComments)
|
||||||
|
{
|
||||||
|
var eventEntity = await _eventRepository.FirstOrDefaultAsync(x => x.Name == item.EventName);
|
||||||
|
|
||||||
|
if (eventEntity == null)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
var exists = await _eventCommentRepository.AnyAsync(x => x.Content == item.Content);
|
||||||
|
if (!exists)
|
||||||
|
{
|
||||||
|
var user = await _repositoryUser.FindByNormalizedUserNameAsync(item.UserName);
|
||||||
|
|
||||||
|
await _eventCommentRepository.InsertAsync(new EventComment
|
||||||
|
{
|
||||||
|
EventId = eventEntity.Id,
|
||||||
|
Content = item.Content,
|
||||||
|
UserId = user != null ? user.Id : null,
|
||||||
|
Likes = item.Likes
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//admin kullanının departmen ve pozisyonunu default olarak belirliyoruz
|
//admin kullanının departmen ve pozisyonunu default olarak belirliyoruz
|
||||||
var adminUser = await _repositoryUser.FindByNormalizedEmailAsync(PlatformConsts.AbpIdentity.User.AdminEmailDefaultValue);
|
var adminUser = await _repositoryUser.FindByNormalizedEmailAsync(PlatformConsts.AbpIdentity.User.AdminEmailDefaultValue);
|
||||||
if (adminUser != null)
|
if (adminUser != null)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import { UserInfoViewModel } from "../admin/models"
|
import { UserInfoViewModel } from "../admin/models"
|
||||||
|
|
||||||
export interface IntranetDashboardDto {
|
export interface IntranetDashboardDto {
|
||||||
|
events: EventDto[]
|
||||||
birthdays: UserInfoViewModel[]
|
birthdays: UserInfoViewModel[]
|
||||||
documents: DocumentDto[]
|
documents: DocumentDto[]
|
||||||
announcements: AnnouncementDto[]
|
announcements: AnnouncementDto[]
|
||||||
|
|
@ -8,6 +9,31 @@ export interface IntranetDashboardDto {
|
||||||
socialPosts: SocialPostDto[]
|
socialPosts: SocialPostDto[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Etkinlik
|
||||||
|
export interface EventDto {
|
||||||
|
id: string
|
||||||
|
categoryName: string
|
||||||
|
typeName: string
|
||||||
|
date: Date
|
||||||
|
name: string
|
||||||
|
description: string
|
||||||
|
place: string
|
||||||
|
organizer: UserInfoViewModel
|
||||||
|
participants: number
|
||||||
|
photos: string[]
|
||||||
|
comments: EventCommentDto[]
|
||||||
|
likes: number
|
||||||
|
isPublished: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface EventCommentDto {
|
||||||
|
id: string
|
||||||
|
user: UserInfoViewModel
|
||||||
|
content: string
|
||||||
|
creationTime: Date
|
||||||
|
likes: number
|
||||||
|
}
|
||||||
|
|
||||||
// Doküman (FileItemDto ile uyumlu)
|
// Doküman (FileItemDto ile uyumlu)
|
||||||
export interface DocumentDto {
|
export interface DocumentDto {
|
||||||
id: string
|
id: string
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ import { useLocalization } from '@/utils/hooks/useLocalization'
|
||||||
import useLocale from '@/utils/hooks/useLocale'
|
import useLocale from '@/utils/hooks/useLocale'
|
||||||
import { currentLocalDate } from '@/utils/dateUtils'
|
import { currentLocalDate } from '@/utils/dateUtils'
|
||||||
import { useStoreState } from '@/store/store'
|
import { useStoreState } from '@/store/store'
|
||||||
|
import UpcomingEvents from './widgets/UpcomingEvents'
|
||||||
|
|
||||||
dayjs.extend(relativeTime)
|
dayjs.extend(relativeTime)
|
||||||
dayjs.extend(isBetween)
|
dayjs.extend(isBetween)
|
||||||
|
|
@ -110,6 +111,7 @@ const IntranetDashboard: React.FC = () => {
|
||||||
permission: 'App.Intranet.Announcement.Widget',
|
permission: 'App.Intranet.Announcement.Widget',
|
||||||
column: 'right',
|
column: 'right',
|
||||||
},
|
},
|
||||||
|
{ id: 'upcoming-events', permission: 'App.Intranet.Events.Event.Widget', column: 'right' },
|
||||||
]
|
]
|
||||||
|
|
||||||
// If permissions arrive after mount, initialize default order when needed
|
// If permissions arrive after mount, initialize default order when needed
|
||||||
|
|
@ -239,6 +241,8 @@ const IntranetDashboard: React.FC = () => {
|
||||||
// Widget component'ını render et
|
// Widget component'ını render et
|
||||||
const renderWidgetComponent = (widgetId: string) => {
|
const renderWidgetComponent = (widgetId: string) => {
|
||||||
switch (widgetId) {
|
switch (widgetId) {
|
||||||
|
case 'upcoming-events':
|
||||||
|
return <UpcomingEvents events={intranetDashboard?.events || []} />
|
||||||
case 'today-birthdays':
|
case 'today-birthdays':
|
||||||
return <TodayBirthdays employees={intranetDashboard?.birthdays || []} />
|
return <TodayBirthdays employees={intranetDashboard?.birthdays || []} />
|
||||||
case 'documents':
|
case 'documents':
|
||||||
|
|
@ -252,10 +256,7 @@ const IntranetDashboard: React.FC = () => {
|
||||||
)
|
)
|
||||||
case 'active-surveys':
|
case 'active-surveys':
|
||||||
return (
|
return (
|
||||||
<Surveys
|
<Surveys surveys={intranetDashboard?.surveys || []} onTakeSurvey={handleTakeSurvey} />
|
||||||
surveys={intranetDashboard?.surveys || []}
|
|
||||||
onTakeSurvey={handleTakeSurvey}
|
|
||||||
/>
|
|
||||||
)
|
)
|
||||||
case 'social-wall':
|
case 'social-wall':
|
||||||
return <SocialWall posts={intranetDashboard?.socialPosts || []} />
|
return <SocialWall posts={intranetDashboard?.socialPosts || []} />
|
||||||
|
|
|
||||||
51
ui/src/views/intranet/widgets/UpcomingEvents.tsx
Normal file
51
ui/src/views/intranet/widgets/UpcomingEvents.tsx
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
import React from 'react'
|
||||||
|
import { FaCalendarAlt } from 'react-icons/fa'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
|
import { EventDto } from '@/proxy/intranet/models'
|
||||||
|
import useLocale from '@/utils/hooks/useLocale'
|
||||||
|
import { currentLocalDate } from '@/utils/dateUtils'
|
||||||
|
import { useLocalization } from '@/utils/hooks/useLocalization'
|
||||||
|
|
||||||
|
const UpcomingEvents: React.FC<{ events: EventDto[] }> = ({ events }) => {
|
||||||
|
const currentLocale = useLocale()
|
||||||
|
const { translate } = useLocalization();
|
||||||
|
|
||||||
|
const upcomingEvents = events.filter(
|
||||||
|
(event) =>
|
||||||
|
event.isPublished &&
|
||||||
|
dayjs(event.date).isAfter(dayjs()) &&
|
||||||
|
dayjs(event.date).isBefore(dayjs().add(7, 'day')),
|
||||||
|
)
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
|
||||||
|
<div className="p-4 border-b border-gray-200 dark:border-gray-700">
|
||||||
|
<h2 className="text-base font-semibold text-gray-900 dark:text-white flex items-center gap-2">
|
||||||
|
<FaCalendarAlt className="w-5 h-5" />
|
||||||
|
{translate('::App.Platform.Intranet.Widgets.UpcomingEvents.Title')}
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
<div className="p-4 space-y-3">
|
||||||
|
{upcomingEvents.length > 0 ? (
|
||||||
|
upcomingEvents.slice(0, 3).map((event) => (
|
||||||
|
<div
|
||||||
|
key={event.id}
|
||||||
|
className="p-3 rounded-lg border-l-4 bg-gray-50 dark:bg-gray-700/50 border-l-green-500"
|
||||||
|
>
|
||||||
|
<h4 className="text-sm font-medium text-gray-900 dark:text-white">{event.name}</h4>
|
||||||
|
<p className="text-xs text-gray-600 dark:text-gray-400 mt-1">
|
||||||
|
{currentLocalDate(event.date, currentLocale || 'tr')} - {event.place}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
))
|
||||||
|
) : (
|
||||||
|
<p className="text-sm text-gray-500 dark:text-gray-400 text-center py-4">
|
||||||
|
{translate('::App.Platform.Intranet.Widgets.UpcomingEvents.NoEvent')}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default UpcomingEvents
|
||||||
Loading…
Reference in a new issue