From 8f3932bc6e6407b884f56c5a3e121a6008cb013f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96zt=C3=BCrk?= Date: Sat, 23 May 2026 17:44:40 +0300 Subject: [PATCH] =?UTF-8?q?LisformWorkflow=20=C3=A7al=C4=B1=C5=9Fmas=C4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ListForms/GridOptionsDto/GridOptionsDto.cs | 13 ------------- .../GridOptionsDto/GridOptionsEditDto.cs | 13 +++++++++++++ .../ListForms/GridOptionsDto/WorkflowDto.cs | 2 +- .../Seeds/LanguagesData.json | 6 +++--- ui/src/proxy/form/models.ts | 2 +- .../views/admin/listForm/edit/FormTabWorkflow.tsx | 15 ++++++++------- 6 files changed, 26 insertions(+), 25 deletions(-) diff --git a/api/src/Sozsoft.Platform.Application.Contracts/ListForms/GridOptionsDto/GridOptionsDto.cs b/api/src/Sozsoft.Platform.Application.Contracts/ListForms/GridOptionsDto/GridOptionsDto.cs index d16680d..dba2162 100644 --- a/api/src/Sozsoft.Platform.Application.Contracts/ListForms/GridOptionsDto/GridOptionsDto.cs +++ b/api/src/Sozsoft.Platform.Application.Contracts/ListForms/GridOptionsDto/GridOptionsDto.cs @@ -365,19 +365,6 @@ public class GridOptionsDto : AuditedEntityDto } set { SubFormsJson = JsonSerializer.Serialize(value); } } - - [JsonIgnore] - public string WorkflowJson { get; set; } - public WorkflowDto WorkflowDto - { - get - { - if (!string.IsNullOrEmpty(WorkflowJson)) - return JsonSerializer.Deserialize(WorkflowJson); - return new WorkflowDto(); - } - set { WorkflowJson = JsonSerializer.Serialize(value); } - } [JsonIgnore] public string ExtraFilterJson { get; set; } // Cagrilacak Extra Filters diff --git a/api/src/Sozsoft.Platform.Application.Contracts/ListForms/GridOptionsDto/GridOptionsEditDto.cs b/api/src/Sozsoft.Platform.Application.Contracts/ListForms/GridOptionsDto/GridOptionsEditDto.cs index c0c4e1c..34d94e1 100644 --- a/api/src/Sozsoft.Platform.Application.Contracts/ListForms/GridOptionsDto/GridOptionsEditDto.cs +++ b/api/src/Sozsoft.Platform.Application.Contracts/ListForms/GridOptionsDto/GridOptionsEditDto.cs @@ -123,5 +123,18 @@ public class GridOptionsEditDto : GridOptionsDto } set { ExtraFilterJson = JsonSerializer.Serialize(value); } } + + [JsonIgnore] + public string WorkflowJson { get; set; } + public WorkflowDto WorkflowDto + { + get + { + if (!string.IsNullOrEmpty(WorkflowJson)) + return JsonSerializer.Deserialize(WorkflowJson); + return new WorkflowDto(); + } + set { WorkflowJson = JsonSerializer.Serialize(value); } + } } diff --git a/api/src/Sozsoft.Platform.Application.Contracts/ListForms/GridOptionsDto/WorkflowDto.cs b/api/src/Sozsoft.Platform.Application.Contracts/ListForms/GridOptionsDto/WorkflowDto.cs index 740aedc..bd707aa 100644 --- a/api/src/Sozsoft.Platform.Application.Contracts/ListForms/GridOptionsDto/WorkflowDto.cs +++ b/api/src/Sozsoft.Platform.Application.Contracts/ListForms/GridOptionsDto/WorkflowDto.cs @@ -2,7 +2,7 @@ public class WorkflowDto { - public string ApprovalFieldName { get; set; } + public string ApprovalUserFieldName { get; set; } public string ApprovalDateFieldName { get; set; } public string ApprovalStatusFieldName { get; set; } } diff --git a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json index a0fb216..38910b3 100644 --- a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json +++ b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json @@ -18730,9 +18730,9 @@ }, { "resourceName": "Platform", - "key": "ListForms.ListFormEdit.Workflow.ApprovalFieldName", - "en": "Approval Field Name", - "tr": "Onay Alanı Adı" + "key": "ListForms.ListFormEdit.Workflow.ApprovalUserFieldName", + "en": "Approval User Field Name", + "tr": "Onaylayan Kişi Alanı Adı" }, { "resourceName": "Platform", diff --git a/ui/src/proxy/form/models.ts b/ui/src/proxy/form/models.ts index 99816b8..d15216f 100644 --- a/ui/src/proxy/form/models.ts +++ b/ui/src/proxy/form/models.ts @@ -907,7 +907,7 @@ export interface WidgetEditDto { } export interface WorkflowDto { - approvalFieldName: string + approvalUserFieldName: string approvalDateFieldName: string approvalStatusFieldName: string } diff --git a/ui/src/views/admin/listForm/edit/FormTabWorkflow.tsx b/ui/src/views/admin/listForm/edit/FormTabWorkflow.tsx index 3fb31a9..192a6f7 100644 --- a/ui/src/views/admin/listForm/edit/FormTabWorkflow.tsx +++ b/ui/src/views/admin/listForm/edit/FormTabWorkflow.tsx @@ -296,8 +296,9 @@ export function FormTabWorkflow( } const schema = object().shape({ - approvalFieldName: string(), + approvalUserFieldName: string(), approvalDateFieldName: string(), + approvalStatusFieldName: string(), }) const initialValues = useStoreState((s) => s.admin.lists.values) @@ -320,14 +321,14 @@ export function FormTabWorkflow(
- + {({ field, form }: FieldProps) => (