ListFormSeeder düzenlemeleri

This commit is contained in:
Sedat Öztürk 2025-11-04 21:51:47 +03:00
parent 40a459fefb
commit 56b9ce3a84
4 changed files with 22 additions and 13 deletions

View file

@ -10651,6 +10651,12 @@
"en": "Component Name", "en": "Component Name",
"tr": "Bileşen Adı" "tr": "Bileşen Adı"
}, },
{
"resourceName": "Platform",
"key": "App.DeveloperKit.ComponentEditor.Dependencies",
"en": "Dependencies",
"tr": "Bağımlılıklar"
},
{ {
"resourceName": "Platform", "resourceName": "Platform",
"key": "App.DeveloperKit.ComponentEditor.Description", "key": "App.DeveloperKit.ComponentEditor.Description",

View file

@ -1447,7 +1447,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.DateTime, SourceDbType = DbType.DateTime,
FieldName = "PublishDate", FieldName = "PublishDate",
Width = 100, Width = 125,
ListOrderNo = 8, ListOrderNo = 8,
Visible = true, Visible = true,
IsActive = true, IsActive = true,
@ -1463,7 +1463,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.DateTime, SourceDbType = DbType.DateTime,
FieldName = "ExpiryDate", FieldName = "ExpiryDate",
Width = 100, Width = 125,
ListOrderNo = 9, ListOrderNo = 9,
Visible = true, Visible = true,
IsActive = true, IsActive = true,
@ -1842,7 +1842,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
PagerOptionJson = DefaultPagerOptionJson, PagerOptionJson = DefaultPagerOptionJson,
EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto
{ {
Popup = new GridEditingPopupDto() { Title = AppCodes.Intranet.SocialPost, Width = 500, Height = 400 }, Popup = new GridEditingPopupDto() { Title = AppCodes.Intranet.SocialPost, Width = 700, Height = 600 },
AllowDeleting = true, AllowDeleting = true,
AllowAdding = true, AllowAdding = true,
AllowUpdating = true, AllowUpdating = true,
@ -1858,10 +1858,10 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
new() { new() {
Order=1, ColCount=1, ColSpan=2, ItemType="group", Items = [ Order=1, ColCount=1, ColSpan=2, ItemType="group", Items = [
new EditingFormItemDto { Order = 1, DataField = "EmployeeId", IsRequired = true, EditorType2 = EditorTypes.dxSelectBox }, new EditingFormItemDto { Order = 1, DataField = "EmployeeId", IsRequired = true, EditorType2 = EditorTypes.dxSelectBox },
new EditingFormItemDto { Order = 2, DataField = "Content", IsRequired = true, EditorType2 = EditorTypes.dxTextArea }, new EditingFormItemDto { Order = 2, DataField = "Content", IsRequired = true, EditorType2 = EditorTypes.dxHtmlEditor, EditorOptions = EditorOptionValues.HtmlEditorOptions },
new EditingFormItemDto { Order = 3, DataField = "LikeCount", IsRequired = true, EditorType2 = EditorTypes.dxNumberBox }, new EditingFormItemDto { Order = 3, DataField = "LikeCount", EditorType2 = EditorTypes.dxNumberBox },
new EditingFormItemDto { Order = 4, DataField = "IsLiked", IsRequired = true, EditorType2 = EditorTypes.dxCheckBox }, new EditingFormItemDto { Order = 4, DataField = "IsLiked", EditorType2 = EditorTypes.dxCheckBox },
new EditingFormItemDto { Order = 5, DataField = "IsOwnPost", IsRequired = true, EditorType2 = EditorTypes.dxCheckBox } new EditingFormItemDto { Order = 5, DataField = "IsOwnPost", EditorType2 = EditorTypes.dxCheckBox }
]} ]}
}), }),
CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] { CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] {
@ -1873,6 +1873,12 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
Url="/admin/list/list-employees/@Id" Url="/admin/list/list-employees/@Id"
}, },
}), }),
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[]
{
new() { FieldName = "LikeCount", FieldDbType = DbType.Int32, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value },
new() { FieldName = "IsLiked", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value },
new() { FieldName = "IsOwnPost", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value }
})
} }
); );
@ -1899,7 +1905,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.Guid, SourceDbType = DbType.Guid,
FieldName = "EmployeeId", FieldName = "EmployeeId",
Width = 100, Width = 150,
ListOrderNo = 2, ListOrderNo = 2,
Visible = true, Visible = true,
IsActive = true, IsActive = true,
@ -1922,7 +1928,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.String,
FieldName = "Content", FieldName = "Content",
Width = 800, Width = 900,
ListOrderNo = 3, ListOrderNo = 3,
Visible = true, Visible = true,
IsActive = true, IsActive = true,

View file

@ -13,8 +13,6 @@ using Volo.Abp.Data;
using Volo.Abp.DependencyInjection; using Volo.Abp.DependencyInjection;
using Volo.Abp.Domain.Repositories; using Volo.Abp.Domain.Repositories;
using Volo.Abp.Identity; using Volo.Abp.Identity;
using Volo.Abp.TenantManagement;
using AbpIdentity = Kurs.Platform.Data.Seeds.SeedConsts.AbpIdentity;
using AppCodes = Kurs.Platform.Data.Seeds.SeedConsts.AppCodes; using AppCodes = Kurs.Platform.Data.Seeds.SeedConsts.AppCodes;
using static Kurs.Platform.PlatformConsts; using static Kurs.Platform.PlatformConsts;
using static Kurs.Platform.PlatformSeeder.SeederDefaults; using static Kurs.Platform.PlatformSeeder.SeederDefaults;
@ -430,7 +428,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.String, SourceDbType = DbType.String,
FieldName = "Name", FieldName = "Name",
Width = 250, Width = 500,
ListOrderNo = 2, ListOrderNo = 2,
Visible = true, Visible = true,
IsActive = true, IsActive = true,

View file

@ -1,6 +1,5 @@
import Dropdown from '@/components/ui/Dropdown' import Dropdown from '@/components/ui/Dropdown'
import HorizontalMenuNavLink from './HorizontalMenuNavLink' import HorizontalMenuNavLink from './HorizontalMenuNavLink'
import classNames from 'classnames'
export type HorizontalMenuItemProps = { export type HorizontalMenuItemProps = {
nav: { nav: {