From 16c187489c767af95b25cbc5017177022313cfc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96zt=C3=BCrk?= Date: Sun, 30 Nov 2025 19:56:36 +0300 Subject: [PATCH] =?UTF-8?q?Card=20ve=20CardItem=20g=C3=BCncellemeleri?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Seeds/ListFormSeeder_Accounting.cs | 8 +- .../Seeds/ListFormSeeder_Administration.cs | 68 ++-- .../Seeds/ListFormSeeder_Coordinator.cs | 24 +- .../Seeds/ListFormSeeder_Crm.cs | 14 +- .../Seeds/ListFormSeeder_Hr.cs | 18 +- .../Seeds/ListFormSeeder_Intranet.cs | 20 +- .../Seeds/ListFormSeeder_Maintenance.cs | 24 +- .../Seeds/ListFormSeeder_Mrp.cs | 14 +- .../Seeds/ListFormSeeder_Participant.cs | 12 +- .../Seeds/ListFormSeeder_Project.cs | 22 +- .../Seeds/ListFormSeeder_Saas.cs | 40 +- .../Seeds/ListFormSeeder_Store.cs | 16 +- .../Seeds/ListFormSeeder_SupplyChain.cs | 30 +- .../Seeds/SeederDefaults.cs | 8 + ui/src/views/list/Card.tsx | 371 +++++++++++++++++- ui/src/views/list/CardItem.tsx | 104 ++++- .../views/list/useListFormCustomDataSource.ts | 10 + 17 files changed, 631 insertions(+), 172 deletions(-) diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Accounting.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Accounting.cs index a046b518..a49b1286 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Accounting.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Accounting.cs @@ -53,7 +53,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -353,7 +353,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -518,7 +518,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -718,7 +718,7 @@ public class ListFormSeeder_Accounting : IDataSeedContributor, ITransientDepende var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Administration.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Administration.cs index c9013af2..0262710e 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Administration.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Administration.cs @@ -56,7 +56,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -173,7 +173,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -389,7 +389,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -596,7 +596,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -727,7 +727,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -933,7 +933,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1071,7 +1071,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1259,7 +1259,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1477,7 +1477,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1595,7 +1595,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1715,7 +1715,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1890,7 +1890,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2107,7 +2107,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2231,7 +2231,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2355,7 +2355,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2795,7 +2795,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2980,7 +2980,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -3304,7 +3304,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -3516,7 +3516,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -3728,7 +3728,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -3972,7 +3972,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -4062,7 +4062,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -4158,7 +4158,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -4282,7 +4282,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -4400,7 +4400,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -4496,7 +4496,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -4694,7 +4694,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -4781,7 +4781,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -4870,7 +4870,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -4956,7 +4956,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -5060,7 +5060,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -5147,7 +5147,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -5421,7 +5421,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -5598,7 +5598,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Coordinator.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Coordinator.cs index 7feeb0e9..1b6094be 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Coordinator.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Coordinator.cs @@ -53,7 +53,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -168,7 +168,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -563,7 +563,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -710,7 +710,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -884,7 +884,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1093,7 +1093,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1267,7 +1267,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1540,7 +1540,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1655,7 +1655,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1895,7 +1895,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2016,7 +2016,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2147,7 +2147,7 @@ public class ListFormSeeder_Coordinator : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Crm.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Crm.cs index cd47ceaa..5cdb11f2 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Crm.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Crm.cs @@ -54,7 +54,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -176,7 +176,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -297,7 +297,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency { var listForm = await _listFormRepository.InsertAsync(new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -953,7 +953,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1123,7 +1123,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1510,7 +1510,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1795,7 +1795,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Hr.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Hr.cs index 8f0baa4e..4ac42e5d 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Hr.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Hr.cs @@ -55,6 +55,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -145,6 +146,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -434,6 +436,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -644,6 +647,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -951,6 +955,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1247,6 +1252,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1994,6 +2000,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2070,7 +2077,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency AuthName = listFormName + ".Update", Url=$"/admin/list/{AppCodes.Hr.Employee}/@Id", IsVisible=true, - VisibleExpression="(e) => e.row.data.Status === 'Askıda'" + VisibleExpression="(e) => e.row.data.Status === 'Askıda'" }, }), } @@ -2324,6 +2331,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2652,6 +2660,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2939,6 +2948,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -3305,6 +3315,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -3455,6 +3466,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -3687,6 +3699,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -4020,6 +4033,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -4199,6 +4213,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -4363,6 +4378,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency new ListForm() { ListFormType = ListFormTypeEnum.List, + ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Intranet.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Intranet.cs index 71e108ae..5097aee8 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Intranet.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Intranet.cs @@ -53,7 +53,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -139,7 +139,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -225,7 +225,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -474,7 +474,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -664,7 +664,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -914,7 +914,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1141,7 +1141,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1412,7 +1412,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1667,7 +1667,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1836,7 +1836,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Maintenance.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Maintenance.cs index 54c4a60a..fa34d8da 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Maintenance.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Maintenance.cs @@ -53,7 +53,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -175,7 +175,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -297,7 +297,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -669,7 +669,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1018,7 +1018,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1125,7 +1125,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1292,7 +1292,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1591,7 +1591,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1714,7 +1714,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1837,7 +1837,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1960,7 +1960,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2083,7 +2083,7 @@ public class ListFormSeeder_Maintenance : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Mrp.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Mrp.cs index fe01db21..b71c3a80 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Mrp.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Mrp.cs @@ -53,7 +53,7 @@ public class ListFormSeeder_Mrp : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -175,7 +175,7 @@ public class ListFormSeeder_Mrp : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -404,7 +404,7 @@ public class ListFormSeeder_Mrp : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -711,7 +711,7 @@ public class ListFormSeeder_Mrp : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -833,7 +833,7 @@ public class ListFormSeeder_Mrp : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1053,7 +1053,7 @@ public class ListFormSeeder_Mrp : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1295,7 +1295,7 @@ public class ListFormSeeder_Mrp : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Participant.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Participant.cs index 76f0c8ed..2f669174 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Participant.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Participant.cs @@ -52,7 +52,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -196,7 +196,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -329,7 +329,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -444,7 +444,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -559,7 +559,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -706,7 +706,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Project.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Project.cs index 28521195..65da29d2 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Project.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Project.cs @@ -53,7 +53,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -176,7 +176,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -299,7 +299,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -422,7 +422,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -545,7 +545,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -668,7 +668,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -791,7 +791,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1199,7 +1199,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1422,7 +1422,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1774,7 +1774,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2066,7 +2066,7 @@ public class ListFormSeeder_Project : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Saas.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Saas.cs index 67ff9a2f..70b918c8 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Saas.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Saas.cs @@ -56,7 +56,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -528,7 +528,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -989,7 +989,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1361,7 +1361,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1513,7 +1513,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1663,7 +1663,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1843,7 +1843,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2017,7 +2017,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2298,7 +2298,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2429,7 +2429,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2900,7 +2900,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -3131,7 +3131,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -3322,7 +3322,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -3548,7 +3548,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -3656,7 +3656,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -3764,7 +3764,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -3919,7 +3919,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -4005,7 +4005,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -4208,7 +4208,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -4355,7 +4355,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency var listForm = await _listFormRepository.InsertAsync( new ListForm { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Store.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Store.cs index 3b602dc3..0ee46d2d 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Store.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_Store.cs @@ -53,7 +53,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -193,7 +193,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -333,7 +333,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -473,7 +473,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -851,7 +851,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1064,7 +1064,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1337,7 +1337,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1646,7 +1646,7 @@ public class ListFormSeeder_Warehouse : IDataSeedContributor, ITransientDependen var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_SupplyChain.cs b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_SupplyChain.cs index e643cafa..3164cc24 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_SupplyChain.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/ListFormSeeder_SupplyChain.cs @@ -53,7 +53,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -193,7 +193,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -362,7 +362,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend { var listForm = await _listFormRepository.InsertAsync(new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -678,7 +678,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -800,7 +800,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -924,7 +924,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1048,7 +1048,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -1701,7 +1701,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2011,7 +2011,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2149,7 +2149,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2443,7 +2443,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2612,7 +2612,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2789,7 +2789,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -2913,7 +2913,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = false, ShowNote = true, LayoutJson = DefaultLayoutJson, @@ -3181,7 +3181,7 @@ public class ListFormSeeder_SupplyChain : IDataSeedContributor, ITransientDepend var listForm = await _listFormRepository.InsertAsync( new ListForm() { - ListFormType = ListFormTypeEnum.List, + ListFormType = ListFormTypeEnum.List, ExportJson = DefaultExportJson, IsSubForm = true, ShowNote = true, LayoutJson = DefaultLayoutJson, diff --git a/api/src/Erp.Platform.DbMigrator/Seeds/SeederDefaults.cs b/api/src/Erp.Platform.DbMigrator/Seeds/SeederDefaults.cs index f32d8d34..73486157 100644 --- a/api/src/Erp.Platform.DbMigrator/Seeds/SeederDefaults.cs +++ b/api/src/Erp.Platform.DbMigrator/Seeds/SeederDefaults.cs @@ -71,6 +71,14 @@ public static class SeederDefaults DefaultLayout = "grid", CardLayoutColumn = 4 }); + public static readonly string DefaultExportJson = JsonSerializer.Serialize(new ChartExportDto + { + Enabled = true, + AllowExportSelectedData = false, + PrintingEnabled = true, + BackgroundColor = "#FFFFFF", + Margin = 10 + }); public static readonly string DefaultSelectionSingleJson = JsonSerializer.Serialize(new SelectionDto { Mode = GridOptions.SelectionModeNone, diff --git a/ui/src/views/list/Card.tsx b/ui/src/views/list/Card.tsx index 70f290c0..dcc42d71 100644 --- a/ui/src/views/list/Card.tsx +++ b/ui/src/views/list/Card.tsx @@ -1,8 +1,8 @@ -import { useCallback, useEffect, useState } from 'react' +import { useCallback, useEffect, useState, useRef, KeyboardEvent, useMemo } from 'react' import { GridDto } from '@/proxy/form/models' -import { Button, Pagination, Select } from '@/components/ui' +import { Button, Pagination, Select, Checkbox } from '@/components/ui' import classNames from 'classnames' -import { FaCog, FaSearch } from 'react-icons/fa' +import { FaCog, FaSearch, FaSortAmountDown, FaSortAmountUp } from 'react-icons/fa' import { ROUTES_ENUM } from '@/routes/route.constant' import CustomStore from 'devextreme/data/custom_store' import { usePermission } from '@/utils/hooks/usePermission' @@ -47,14 +47,52 @@ const Card = (props: CardProps) => { const { checkPermission } = usePermission() const isPwaMode = usePWA() const [extraFilters, setExtraFilters] = useState([]) + + // Selection features - gridDto değiştiğinde güncellenmeli + const [selectedKeys, setSelectedKeys] = useState>(new Set()) + const selectionMode: 'none' | 'single' | 'multiple' = useMemo(() => { + if (!gridDto?.gridOptions?.selectionDto?.mode) return 'none' + const mode = gridDto.gridOptions.selectionDto.mode.toLowerCase() + if (mode === 'single') return 'single' + if (mode === 'multiple') return 'multiple' + return 'none' + }, [gridDto]) + + // Sorting features + const [sortColumn, setSortColumn] = useState(null) + const [sortOrder, setSortOrder] = useState<'asc' | 'desc'>('asc') + + // Focus and keyboard navigation + const [focusedCardIndex, setFocusedCardIndex] = useState(-1) + const cardRefs = useRef<(HTMLDivElement | null)[]>([]) + const containerRef = useRef(null) + + // Hover state + const [hoveredCardKey, setHoveredCardKey] = useState(null) const { states } = useStoreState((state) => state.admin.lists) const { setStates } = useStoreActions((a) => a.admin.lists) // props.searchParams varsa onunla başlat - const [urlSearchParams, setUrlSearchParams] = useState( - searchParams ? new URLSearchParams(searchParams) : new URLSearchParams(), - ) + const [urlSearchParams, setUrlSearchParams] = useState(() => { + const params = searchParams ? new URLSearchParams(searchParams) : new URLSearchParams() + + // Initialize sort state from URL params + const sortParam = params.get('sort') + if (sortParam) { + try { + const sortArray = JSON.parse(sortParam) + if (sortArray && sortArray.length > 0) { + setSortColumn(sortArray[0].selector) + setSortOrder(sortArray[0].desc ? 'desc' : 'asc') + } + } catch (e) { + console.error('Sort param parse error:', e) + } + } + + return params + }) const onPageSizeSelect = ({ value }: Option) => { setPageSize(value) @@ -65,6 +103,222 @@ const Card = (props: CardProps) => { setCurrentPage(page) } + const toggleSort = (columnName: string) => { + const newParams = new URLSearchParams(urlSearchParams.toString()) + + if (sortColumn === columnName) { + const newOrder = sortOrder === 'asc' ? 'desc' : 'asc' + setSortOrder(newOrder) + newParams.set('sort', JSON.stringify([{ selector: columnName, desc: newOrder === 'desc' }])) + } else { + setSortColumn(columnName) + setSortOrder('asc') + newParams.set('sort', JSON.stringify([{ selector: columnName, desc: false }])) + } + + setUrlSearchParams(newParams) + setCurrentPage(1) // Reset to first page when sorting + } + + const handleSelectAll = (checked: boolean) => { + if (checked) { + const keyField = gridDto?.gridOptions.keyFieldName + if (keyField) { + const allKeys = new Set(data.map(row => row[keyField])) + setSelectedKeys(allKeys) + } + } else { + setSelectedKeys(new Set()) + } + } + + const handleCardSelection = (key: any, checked: boolean) => { + const newSelection = new Set(selectedKeys) + if (checked) { + if (selectionMode === 'single') { + newSelection.clear() + } + newSelection.add(key) + } else { + newSelection.delete(key) + } + setSelectedKeys(newSelection) + } + + const handleCardClick = (key: any, index: number, event: React.MouseEvent) => { + setFocusedCardIndex(index) + if (selectionMode !== 'none' && event.ctrlKey) { + handleCardSelection(key, !selectedKeys.has(key)) + } + } + + const handleCardDoubleClick = (key: any, row: any) => { + // Navigate to edit page on double click + const navigate = window.location + window.open( + ROUTES_ENUM.protected.admin.formEdit + .replace(':listFormCode', listFormCode) + .replace(':id', key), + isPwaMode ? '_self' : '_blank' + ) + } + + const handleExport = async (format: 'xlsx' | 'csv' | 'pdf', selectedOnly: boolean = false) => { + try { + const exportData = selectedOnly + ? data.filter(row => { + const keyField = gridDto?.gridOptions.keyFieldName + return keyField && selectedKeys.has(row[keyField]) + }) + : data + + if (exportData.length === 0) { + return + } + + if (format === 'xlsx' || format === 'csv') { + const [{ Workbook }, { saveAs }] = await Promise.all([ + import('exceljs'), + import('file-saver'), + ]) + + const workbook = new Workbook() + const worksheet = workbook.addWorksheet(`${listFormCode}_sheet`) + + // Header row - visible columns only + const visibleColumns = gridDto?.columnFormats?.filter( + col => col.visible && col.dataType !== 'buttons' + ) || [] + + const headerRow = visibleColumns.map(col => col.fieldName) + worksheet.addRow(headerRow) + worksheet.getRow(1).font = { bold: true } + + // Data rows + exportData.forEach(row => { + const dataRow = visibleColumns.map(col => row[col.fieldName!]) + worksheet.addRow(dataRow) + }) + + // Auto-fit columns + worksheet.columns.forEach((column: any) => { + column.width = 15 + }) + + if (format === 'xlsx') { + const buffer = await workbook.xlsx.writeBuffer() + saveAs( + new Blob([buffer], { type: 'application/octet-stream' }), + `${listFormCode}_export${selectedOnly ? '_selected' : ''}.xlsx`, + ) + } else { + const buffer = await workbook.csv.writeBuffer() + saveAs( + new Blob([buffer], { type: 'application/octet-stream' }), + `${listFormCode}_export${selectedOnly ? '_selected' : ''}.csv`, + ) + } + } else if (format === 'pdf') { + const [jspdfMod] = await Promise.all([ + import('jspdf'), + ]) + + const JsPDFCtor = (jspdfMod as any).default ?? (jspdfMod as any).jsPDF + const doc = new JsPDFCtor({ orientation: 'landscape' }) + + // Header + const visibleColumns = gridDto?.columnFormats?.filter( + col => col.visible && col.dataType !== 'buttons' + ) || [] + + let yPos = 10 + doc.setFontSize(16) + doc.text(gridDto?.gridOptions.title || listFormCode, 10, yPos) + yPos += 10 + + // Table + doc.setFontSize(10) + const headers = visibleColumns.map(col => col.fieldName) + const rows = exportData.map(row => + visibleColumns.map(col => String(row[col.fieldName!] || '')) + ) + + // Simple table rendering + doc.text(headers.join(' | '), 10, yPos) + yPos += 7 + + rows.forEach(row => { + if (yPos > 190) { + doc.addPage() + yPos = 10 + } + doc.text(row.join(' | '), 10, yPos) + yPos += 7 + }) + + doc.save(`${listFormCode}_export${selectedOnly ? '_selected' : ''}.pdf`) + } + } catch (err) { + console.error('Export error:', err) + } + } + + const handleKeyDown = (e: KeyboardEvent) => { + if (data.length === 0) return + + const keyField = gridDto?.gridOptions.keyFieldName + if (!keyField) return + + switch (e.key) { + case 'ArrowRight': + e.preventDefault() + if (focusedCardIndex < data.length - 1) { + const newIndex = focusedCardIndex + 1 + setFocusedCardIndex(newIndex) + cardRefs.current[newIndex]?.focus() + } + break + case 'ArrowLeft': + e.preventDefault() + if (focusedCardIndex > 0) { + const newIndex = focusedCardIndex - 1 + setFocusedCardIndex(newIndex) + cardRefs.current[newIndex]?.focus() + } + break + case 'ArrowDown': + e.preventDefault() + if (focusedCardIndex + layoutCount < data.length) { + const newIndex = focusedCardIndex + layoutCount + setFocusedCardIndex(newIndex) + cardRefs.current[newIndex]?.focus() + } + break + case 'ArrowUp': + e.preventDefault() + if (focusedCardIndex - layoutCount >= 0) { + const newIndex = focusedCardIndex - layoutCount + setFocusedCardIndex(newIndex) + cardRefs.current[newIndex]?.focus() + } + break + case 'Enter': + e.preventDefault() + if (focusedCardIndex >= 0 && focusedCardIndex < data.length) { + const row = data[focusedCardIndex] + handleCardDoubleClick(row[keyField], row) + } + break + case ' ': // Space key for selection + e.preventDefault() + if (selectionMode !== 'none' && focusedCardIndex >= 0) { + const key = data[focusedCardIndex][keyField] + handleCardSelection(key, !selectedKeys.has(key)) + } + break + } + } + const onFilter = useCallback( (value?: string) => { const text = value !== undefined ? value.trim() : searchText.trim() @@ -129,7 +383,7 @@ const Card = (props: CardProps) => { setLayoutCount(gridDto.gridOptions.layoutDto.cardLayoutColumn || 4) } } - }, [gridDto, listFormCode, urlSearchParams, createSelectDataSource]) + }, [gridDto, listFormCode, urlSearchParams, createSelectDataSource, states]) const loadData = useCallback(() => { if (!gridDataSource) return @@ -188,9 +442,92 @@ const Card = (props: CardProps) => { -
-
-
+
+
+
+ {selectionMode === 'multiple' && gridDto?.gridOptions?.selectionDto?.allowSelectAll && ( +
+ 0 && selectedKeys.size === data.length} + onChange={(checked: boolean) => handleSelectAll(checked)} + className="cursor-pointer" + /> + + {selectedKeys.size > 0 ? `${selectedKeys.size} seçili` : 'Tümünü Seç'} + +
+ )} + + {selectionMode !== 'none' && selectedKeys.size > 0 && !gridDto?.gridOptions?.selectionDto?.allowSelectAll && ( +
+ + {selectedKeys.size} seçili + +
+ )} +
+ +
+ {/* Export Buttons */} + {gridDto?.gridOptions?.exportDto?.enabled && ( +
+ +
+ )} + + {/* Sort Dropdown */} + {gridDto && gridDto.columnFormats && gridDto.columnFormats.length > 0 && ( +
+ + {sortColumn && ( + + )} +
+ )} + +
{ )} +
@@ -318,9 +656,13 @@ const Card = (props: CardProps) => { data.map((row, idx) => { const keyField = gridDto.gridOptions.keyFieldName const rowId = row[keyField!] + const isSelected = selectedKeys.has(rowId) + const isFocused = focusedCardIndex === idx + const isHovered = hoveredCardKey === rowId return ( (cardRefs.current[idx] = el)} isSubForm={true} key={rowId || idx} row={row} @@ -329,6 +671,15 @@ const Card = (props: CardProps) => { dataSource={gridDataSource} refreshData={loadData} getCachedLookupDataSource={getLookupDataSource} + isSelected={isSelected} + isFocused={isFocused} + isHovered={isHovered} + onSelectionChange={(checked) => handleCardSelection(rowId, checked)} + onClick={(e) => handleCardClick(rowId, idx, e)} + onDoubleClick={() => handleCardDoubleClick(rowId, row)} + onMouseEnter={() => setHoveredCardKey(rowId)} + onMouseLeave={() => setHoveredCardKey(null)} + tabIndex={isFocused ? 0 : -1} /> ) })} diff --git a/ui/src/views/list/CardItem.tsx b/ui/src/views/list/CardItem.tsx index e8b29222..72ef48bc 100644 --- a/ui/src/views/list/CardItem.tsx +++ b/ui/src/views/list/CardItem.tsx @@ -3,7 +3,7 @@ import { useLocalization } from "@/utils/hooks/useLocalization" import { usePermission } from "@/utils/hooks/usePermission" import { usePWA } from "@/utils/hooks/usePWA" import CustomStore from "devextreme/data/custom_store" -import { useMemo, useRef, useState } from "react" +import { useMemo, useRef, useState, forwardRef } from "react" import { useNavigate } from "react-router-dom" import { GroupItem } from 'devextreme/ui/form' import { PermissionResults, SimpleItemWithColData } from "../form/types" @@ -12,16 +12,10 @@ import { ROUTES_ENUM } from "@/routes/route.constant" import FormButtons from "../form/FormButtons" import FormDevExpress from "../form/FormDevExpress" import { FormRef } from "devextreme-react/cjs/form" +import { Checkbox } from "@/components/ui" +import classNames from "classnames" -const CardItem = ({ - isSubForm, - row, - gridDto, - listFormCode, - dataSource, - refreshData, - getCachedLookupDataSource, -}: { +interface CardItemProps { isSubForm?: boolean row: any gridDto: GridDto @@ -29,7 +23,47 @@ const CardItem = ({ dataSource: CustomStore refreshData: () => void getCachedLookupDataSource: (editorOptions: any, colData: any, row?: any) => any -}) => { + // Selection and interaction props + isSelected?: boolean + isFocused?: boolean + isHovered?: boolean + onSelectionChange?: (checked: boolean) => void + onClick?: (e: React.MouseEvent) => void + onDoubleClick?: () => void + onMouseEnter?: () => void + onMouseLeave?: () => void + tabIndex?: number +} + +const CardItem = forwardRef(( + { + isSubForm, + row, + gridDto, + listFormCode, + dataSource, + refreshData, + getCachedLookupDataSource, + isSelected = false, + isFocused = false, + isHovered = false, + onSelectionChange, + onClick, + onDoubleClick, + onMouseEnter, + onMouseLeave, + tabIndex = -1, + }, + ref +) => { + // Selection mode'u gridDto'dan al + const selectionMode = useMemo(() => { + if (!gridDto?.gridOptions?.selectionDto?.mode) return 'none' + const mode = gridDto.gridOptions.selectionDto.mode.toLowerCase() + if (mode === 'single') return 'single' + if (mode === 'multiple') return 'multiple' + return 'none' + }, [gridDto]) const [formData, setFormData] = useState(row) const refForm = useRef(null) const navigate = useNavigate() @@ -130,11 +164,49 @@ const CardItem = ({ } return ( -
+
- {!isSubForm &&

{translate('::' + gridDto?.gridOptions.title)}

} +
+ {selectionMode !== 'none' && onSelectionChange && ( +
e.stopPropagation()}> + { + onSelectionChange(checked) + }} + className="cursor-pointer" + aria-label="Select card" + /> +
+ )} + + {!isSubForm && ( +

{translate('::' + gridDto?.gridOptions.title)}

+ )} +
+ {permissionResults && (
) -} +}) + +CardItem.displayName = 'CardItem' export default CardItem \ No newline at end of file diff --git a/ui/src/views/list/useListFormCustomDataSource.ts b/ui/src/views/list/useListFormCustomDataSource.ts index 9618e28f..67c171bd 100644 --- a/ui/src/views/list/useListFormCustomDataSource.ts +++ b/ui/src/views/list/useListFormCustomDataSource.ts @@ -35,6 +35,16 @@ const useListFormCustomDataSource = ({ : gridOptions.keyFieldName, useDefaultSearch: true, load: async (loadOptions) => { + // URL'den sort parametresini al ve loadOptions'a ekle + const urlSort = searchParams?.get('sort') + if (urlSort && !loadOptions.sort) { + try { + loadOptions.sort = JSON.parse(urlSort) + } catch (e) { + console.error('Sort parse error:', e) + } + } + const parameters = getLoadOptions(loadOptions, { listFormCode, filter: '',