From 6f756f33d025643082e85ac234e3e15c58d63eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96ZT=C3=9CRK?= <76204082+iamsedatozturk@users.noreply.github.com> Date: Fri, 4 Sep 2026 14:44:50 +0300 Subject: [PATCH] seed/data Seeder Reports --- .../ListFormSeeder_Administration.cs | 8 +++ .../Seeds/TenantData.json | 40 ------------- .../Seeds/TenantDataSeeder.cs | 58 ------------------- .../host/data/App.Reports.Categories.json | 26 +++++++++ .../data/App.Reports.ReportTemplates.json | 32 ++++++++++ 5 files changed, 66 insertions(+), 98 deletions(-) create mode 100644 configs/seeds/host/data/App.Reports.Categories.json create mode 100644 configs/seeds/host/data/App.Reports.ReportTemplates.json diff --git a/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Administration.cs b/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Administration.cs index c18ae0cf..ba7984b0 100644 --- a/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Administration.cs +++ b/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Administration.cs @@ -1540,6 +1540,10 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep Description = $"{listFormName}.Description", SelectCommandType = SelectCommandTypeEnum.Table, SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.ReportCategory)), + SeedFilePath = SeedPathResolver.GetDataFilePath(listFormName), + SeedSyncInsert = false, + SeedSyncUpdate = false, + SeedSyncDelete = false, KeyFieldName = "Id", DefaultFilter = DefaultFilterJson, KeyFieldDbSourceType = DbType.Guid, @@ -1674,6 +1678,10 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep Description = $"{listFormName}.Description", SelectCommandType = SelectCommandTypeEnum.Table, SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.ReportTemplate)), + SeedFilePath = SeedPathResolver.GetDataFilePath(listFormName), + SeedSyncInsert = false, + SeedSyncUpdate = false, + SeedSyncDelete = false, KeyFieldName = "Id", KeyFieldDbSourceType = DbType.Guid, DefaultFilter = DefaultFilterJson, diff --git a/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantData.json b/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantData.json index 24e858d0..a6700879 100644 --- a/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantData.json +++ b/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantData.json @@ -391,46 +391,6 @@ } } ], - "ReportCategories": [ - { - "name": "Raporlar", - "description": "Şirket içi genel tüm raporlar", - "icon": "📊" - }, - { - "name": "Listeler", - "description": "Tüm listelerin raporları", - "icon": "📜" - }, - { - "name": "Formlar", - "description": "Tüm single formların raporları", - "icon": "📜" - } - ], - "ReportTemplates": [ - { - "name": "Standard Taahhütname", - "description": "Standard Taahhütname", - "categoryName": "Raporlar", - "htmlContent": "
http://localhost:3000/admin/reports/DynamicReport/view/ede12de7-0e94-4b84-a953-6c359606478b
", - "status": "active" - }, - { - "name": "App.Languages.LanguageText", - "description": "Liste Raporları", - "categoryName": "Listeler", - "htmlContent": "http://localhost:3000/admin/reports/DynamicGridReport/view/App.Languages.LanguageText?filter=[%22CultureName%22,%22=%22,%22en%22]
", - "status": "active" - }, - { - "name": "App.Languages.Language", - "description": "Form Raporları", - "categoryName": "Formlar", - "htmlContent": "http://localhost:3000/admin/reports/DynamicFormReport/view/e2c8a2e0-af22-f7bb-5d88-3a21e3079997/App.Languages.Language
", - "status": "active" - } - ], "WorkHours": [ { "Name": "00:00-23:59", diff --git a/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantDataSeeder.cs b/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantDataSeeder.cs index 49610786..c8b82e6d 100644 --- a/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantDataSeeder.cs +++ b/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantDataSeeder.cs @@ -34,9 +34,6 @@ public class TenantSeederDto public Listhttp://localhost:3000/admin/reports/DynamicReport/view/ede12de7-0e94-4b84-a953-6c359606478b
" + }, + { + "Id": "ff3130f0-9ef5-5caf-ad41-6a0d61fd2396", + "Name": "App.Languages.LanguageText", + "Description": "Liste Raporları", + "CategoryId": "d70ac341-c730-5d27-b29e-7bedd09f1802", + "Status": "active", + "HtmlContent": "http://localhost:3000/admin/reports/DynamicGridReport/view/App.Languages.LanguageText?filter=[%22CultureName%22,%22=%22,%22en%22]
" + }, + { + "Id": "ec9baa4d-7009-5049-b317-aae26296fa84", + "Name": "App.Languages.Language", + "Description": "Form Raporları", + "CategoryId": "49d0d0af-2613-5124-bd1c-19a84a20973a", + "Status": "active", + "HtmlContent": "http://localhost:3000/admin/reports/DynamicFormReport/view/e2c8a2e0-af22-f7bb-5d88-3a21e3079997/App.Languages.Language
" + } + ] +}