From abb85cf097db129f7d6affd71f514c40f30a8d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96zt=C3=BCrk?= Date: Sun, 12 Oct 2025 22:50:01 +0300 Subject: [PATCH] =?UTF-8?q?SubForm=20k=C4=B1sm=C4=B1n=C4=B1=20isRefresh=20?= =?UTF-8?q?yetene=C4=9Fi=20getirildi.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ListForms/GridOptionsDto/SubFormDto.cs | 1 + .../Seeds/HostData.json | 13 +- .../Kurs.Platform.Domain/Queries/SubForm.cs | 2 + ui/src/proxy/admin/list-form/models.ts | 1 - ui/src/proxy/form/models.ts | 1 + .../admin/listForm/edit/FormTabSubForm.tsx | 2 + .../JsonRowOpDialogSubForm.tsx | 16 +- ui/src/views/form/SubForms.tsx | 11 +- ui/src/views/list/Chart.tsx | 4 +- ui/src/views/list/ChartSeriesDialog1.tsx | 278 ------------------ ui/src/views/list/ListPivot.tsx | 25 -- 11 files changed, 36 insertions(+), 318 deletions(-) delete mode 100644 ui/src/views/list/ChartSeriesDialog1.tsx delete mode 100644 ui/src/views/list/ListPivot.tsx diff --git a/api/src/Kurs.Platform.Application.Contracts/ListForms/GridOptionsDto/SubFormDto.cs b/api/src/Kurs.Platform.Application.Contracts/ListForms/GridOptionsDto/SubFormDto.cs index d70476cf..12d7c42c 100644 --- a/api/src/Kurs.Platform.Application.Contracts/ListForms/GridOptionsDto/SubFormDto.cs +++ b/api/src/Kurs.Platform.Application.Contracts/ListForms/GridOptionsDto/SubFormDto.cs @@ -5,6 +5,7 @@ public class SubFormDto public string TabTitle { get; set; } public string TabType { get; set; } public string Code { get; set; } + public bool IsRefresh { get; set; } public SubFormRelationDto[] Relation { get; set; } } diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/HostData.json b/api/src/Kurs.Platform.DbMigrator/Seeds/HostData.json index af2d17af..23b7f4fd 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/HostData.json +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/HostData.json @@ -6007,6 +6007,12 @@ "en": "List Form Code", "tr": "List Form Code" }, + { + "resourceName": "Platform", + "key": "ListForms.ListFormEdit.SubFormsIsRefresh", + "en": "Is Refresh", + "tr": "Yenilensin mi?" + }, { "resourceName": "Platform", "key": "ListForms.ListFormEdit.SubFormsRelation", @@ -12658,13 +12664,6 @@ "routeType": "protected", "authority": [] }, - { - "key": "admin.pivot", - "path": "/admin/pivot/:listFormCode", - "componentPath": "@/views/list/ListPivot", - "routeType": "protected", - "authority": [] - }, { "key": "admin.developerkit", "path": "/admin/developerkit", diff --git a/api/src/Kurs.Platform.Domain/Queries/SubForm.cs b/api/src/Kurs.Platform.Domain/Queries/SubForm.cs index da03eb51..240da14d 100644 --- a/api/src/Kurs.Platform.Domain/Queries/SubForm.cs +++ b/api/src/Kurs.Platform.Domain/Queries/SubForm.cs @@ -8,6 +8,7 @@ public class SubForm : ValueObject public string TabTitle { get; set; } public string TabType { get; set; } public string Code { get; set; } + public bool IsRefresh { get; set; } public SubFormRelation[] Relation { get; set; } protected override IEnumerable GetAtomicValues() @@ -15,6 +16,7 @@ public class SubForm : ValueObject yield return TabTitle; yield return TabType; yield return Code; + yield return IsRefresh; yield return Relation; } } diff --git a/ui/src/proxy/admin/list-form/models.ts b/ui/src/proxy/admin/list-form/models.ts index 638d25f3..db57c912 100644 --- a/ui/src/proxy/admin/list-form/models.ts +++ b/ui/src/proxy/admin/list-form/models.ts @@ -46,7 +46,6 @@ export interface ListFormJsonRowDto { itemSubForm?: SubFormDto itemWidget?: WidgetEditDto itemExtraFilter?: ExtraFilterEditDto - itemChartAnnotation?: ChartAnnotationDto itemChartPanes?: ChartPanesDto itemChartSeries?: ChartSeriesDto diff --git a/ui/src/proxy/form/models.ts b/ui/src/proxy/form/models.ts index b495f0db..67af7a43 100644 --- a/ui/src/proxy/form/models.ts +++ b/ui/src/proxy/form/models.ts @@ -673,6 +673,7 @@ export interface SubFormDto { tabTitle: string tabType: SubFormTabTypeEnum code: string + isRefresh: boolean relation: SubFormRelationDto[] tabMode: RowMode diff --git a/ui/src/views/admin/listForm/edit/FormTabSubForm.tsx b/ui/src/views/admin/listForm/edit/FormTabSubForm.tsx index 9ffccf3c..448747b0 100644 --- a/ui/src/views/admin/listForm/edit/FormTabSubForm.tsx +++ b/ui/src/views/admin/listForm/edit/FormTabSubForm.tsx @@ -57,6 +57,7 @@ function FormTabSubForm() { {translate('::ListForms.ListFormEdit.SubFormsTabTitle')} {translate('::ListForms.ListFormEdit.SubFormsTabType')} {translate('::ListForms.ListFormEdit.SubFormsCode')} + {translate('::ListForms.ListFormEdit.SubFormsIsRefresh')} {translate('::ListForms.ListFormEdit.SubFormsRelation')} @@ -105,6 +106,7 @@ function FormTabSubForm() { {row.tabTitle} {row.tabType} {row.code} + {row.isRefresh ? 'Evet' : 'Hayır'}