Card ve CardItem güncellemeleri

This commit is contained in:
Sedat Öztürk 2025-11-30 19:56:36 +03:00
parent 2e1dc8db3a
commit 16c187489c
17 changed files with 631 additions and 172 deletions

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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<GridExtraFilterState[]>([])
// Selection features - gridDto değiştiğinde güncellenmeli
const [selectedKeys, setSelectedKeys] = useState<Set<any>>(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<string | null>(null)
const [sortOrder, setSortOrder] = useState<'asc' | 'desc'>('asc')
// Focus and keyboard navigation
const [focusedCardIndex, setFocusedCardIndex] = useState<number>(-1)
const cardRefs = useRef<(HTMLDivElement | null)[]>([])
const containerRef = useRef<HTMLDivElement>(null)
// Hover state
const [hoveredCardKey, setHoveredCardKey] = useState<any>(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<URLSearchParams>(
searchParams ? new URLSearchParams(searchParams) : new URLSearchParams(),
)
const [urlSearchParams, setUrlSearchParams] = useState<URLSearchParams>(() => {
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) => {
<WidgetGroup widgetGroups={gridDto.widgets || []} />
<Container>
<div>
<div className="flex justify-end items-center">
<div className="relative py-1 flex gap-1 border-b-1">
<div
ref={containerRef}
onKeyDown={handleKeyDown}
tabIndex={0}
className="outline-none"
>
<div className="flex justify-between items-center mb-2">
<div className="flex items-center gap-4">
{selectionMode === 'multiple' && gridDto?.gridOptions?.selectionDto?.allowSelectAll && (
<div className="flex items-center">
<Checkbox
checked={selectedKeys.size > 0 && selectedKeys.size === data.length}
onChange={(checked: boolean) => handleSelectAll(checked)}
className="cursor-pointer"
/>
<span className="text-sm text-gray-600 dark:text-gray-300">
{selectedKeys.size > 0 ? `${selectedKeys.size} seçili` : 'Tümünü Seç'}
</span>
</div>
)}
{selectionMode !== 'none' && selectedKeys.size > 0 && !gridDto?.gridOptions?.selectionDto?.allowSelectAll && (
<div className="flex items-center gap-2">
<span className="text-sm text-gray-600 dark:text-gray-300">
{selectedKeys.size} seçili
</span>
</div>
)}
</div>
<div className="flex justify-end items-center gap-2">
{/* Export Buttons */}
{gridDto?.gridOptions?.exportDto?.enabled && (
<div className="flex items-center gap-1">
<Button
size="xs"
variant="default"
onClick={() => handleExport('xlsx', selectionMode !== 'none' && selectedKeys.size > 0)}
title={selectionMode !== 'none' && selectedKeys.size > 0 ? `Seçilenleri Excel'e Aktar (${selectedKeys.size})` : "Tümünü Excel'e Aktar"}
>
📊 {selectionMode !== 'none' && selectedKeys.size > 0 ? `Seçilenleri Excel'e Aktar (${selectedKeys.size})` : `Tümünü Excel'e Aktar`}
</Button>
</div>
)}
{/* Sort Dropdown */}
{gridDto && gridDto.columnFormats && gridDto.columnFormats.length > 0 && (
<div className="flex items-center gap-1">
<select
className="text-xs border rounded px-2 py-1 dark:bg-neutral-700 dark:text-white dark:border-neutral-600"
onChange={(e) => {
if (e.target.value) {
toggleSort(e.target.value)
} else {
// "Sıralama Yok" seçildiğinde temizle
const newParams = new URLSearchParams(urlSearchParams.toString())
newParams.delete('sort')
setUrlSearchParams(newParams)
setSortColumn(null)
setSortOrder('asc')
}
}}
value={sortColumn || ''}
>
<option value="">Sıralama Yok</option>
{gridDto.columnFormats
.filter((col) => col.visible && col.dataType !== 'buttons')
.map((col) => (
<option key={col.fieldName} value={col.fieldName}>
{col.fieldName}
</option>
))}
</select>
{sortColumn && (
<button
onClick={() => toggleSort(sortColumn)}
className="text-gray-600 dark:text-gray-300 hover:text-blue-500 p-1"
title="Sıralama yönünü değiştir"
>
{sortOrder === 'asc' ? <FaSortAmountUp className="w-3 h-3" /> : <FaSortAmountDown className="w-3 h-3" />}
</button>
)}
</div>
)}
<div className="relative py-1 flex gap-1 border-b-1">
<FaSearch className="absolute left-2 top-1/2 -translate-y-1/2 text-gray-400 text-sm" />
<input
type="text"
@ -297,6 +634,7 @@ const Card = (props: CardProps) => {
<FaCog className="w-3 h-3" />
</Button>
)}
</div>
</div>
</div>
@ -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 (
<CardItem
ref={(el) => (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}
/>
)
})}

View file

@ -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<HTMLDivElement, CardItemProps>((
{
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<FormRef>(null)
const navigate = useNavigate()
@ -130,11 +164,49 @@ const CardItem = ({
}
return (
<div className="bg-white dark:bg-neutral-800 border dark:border-neutral-700 flex flex-col">
<div
ref={ref}
tabIndex={tabIndex}
onClick={onClick}
onDoubleClick={onDoubleClick}
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}
className={classNames(
"bg-white dark:bg-neutral-800 border flex flex-col transition-all duration-200 outline-none",
{
"border-blue-500 shadow-lg ring-2 ring-blue-300": isSelected,
"border-blue-400 shadow-md": isFocused && !isSelected,
"border-gray-300 dark:border-neutral-600": !isSelected && !isFocused,
"shadow-md transform scale-[1.02]": isHovered,
"cursor-pointer": selectionMode !== 'none',
}
)}
role="article"
aria-selected={isSelected}
aria-label={`Card ${rowId}`}
>
<div
className={`flex items-center pt-2 px-2 ${isSubForm ? 'justify-end' : 'justify-between'}`}
className={`flex items-center pt-2 px-2 gap-2 ${isSubForm ? 'justify-between' : 'justify-between'}`}
>
{!isSubForm && <h3>{translate('::' + gridDto?.gridOptions.title)}</h3>}
<div className="flex items-center gap-2">
{selectionMode !== 'none' && onSelectionChange && (
<div onClick={(e) => e.stopPropagation()}>
<Checkbox
checked={isSelected}
onChange={(checked: boolean) => {
onSelectionChange(checked)
}}
className="cursor-pointer"
aria-label="Select card"
/>
</div>
)}
{!isSubForm && (
<h3>{translate('::' + gridDto?.gridOptions.title)}</h3>
)}
</div>
{permissionResults && (
<FormButtons
isSubForm={true}
@ -167,6 +239,8 @@ const CardItem = ({
</div>
</div>
)
}
})
CardItem.displayName = 'CardItem'
export default CardItem

View file

@ -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: '',