From 943e2a716deb3965cbe76b3fd8e71689239bf66d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Szab=C3=B3?= Date: Mon, 10 Mar 2025 09:32:39 +0100 Subject: [PATCH] =?UTF-8?q?Lej=C3=B6nnek=20a=20CheckPointhoz=20tartoz?= =?UTF-8?q?=C3=B3=20sorok?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DataLayer/Entities/CheckPoint.cs | 2 +- .../Mapper/MapperProfile.cs | 2 +- .../CheckPoints/CheckPointEditPage.xaml | 31 ++++++++++++++----- .../CheckPoints/CheckPointEditPage.xaml.cs | 9 ++++++ .../CheckPoints/CheckPointsPage.xaml.cs | 21 +++++++++++-- .../Pages/Security/LoginPage.xaml | 4 +-- .../Resources/Styles/Styles.xaml | 2 +- .../Services/CheckListService.cs | 17 ++++++++++ .../Services/Interfaces/ICheckListService.cs | 1 + 9 files changed, 75 insertions(+), 14 deletions(-) diff --git a/src/WorkFlowCheck.MAUI/DataLayer/Entities/CheckPoint.cs b/src/WorkFlowCheck.MAUI/DataLayer/Entities/CheckPoint.cs index 7c08de5..9113329 100644 --- a/src/WorkFlowCheck.MAUI/DataLayer/Entities/CheckPoint.cs +++ b/src/WorkFlowCheck.MAUI/DataLayer/Entities/CheckPoint.cs @@ -12,6 +12,6 @@ namespace WorkFlowCheck.MAUI.DataLayer.Entities public string ShortName { get; set; } = null!; public string Code { get; set; } = null!; - + public virtual ICollection CheckListTemplateRows { get; set; } = new List(); } } diff --git a/src/WorkFlowCheck.MAUI/Mapper/MapperProfile.cs b/src/WorkFlowCheck.MAUI/Mapper/MapperProfile.cs index 624a391..97505ec 100644 --- a/src/WorkFlowCheck.MAUI/Mapper/MapperProfile.cs +++ b/src/WorkFlowCheck.MAUI/Mapper/MapperProfile.cs @@ -13,7 +13,7 @@ namespace WorkFlowCheck.MAUI.Mapper { public MapperProfile() { - CreateMap(); + CreateMap().ForMember(dest => dest.CheckListTemplateRowDTO, opt => opt.MapFrom(src => src.CheckListTemplateRows)); CreateMap(); CreateMap() diff --git a/src/WorkFlowCheck.MAUI/Pages/BaseStock/CheckPoints/CheckPointEditPage.xaml b/src/WorkFlowCheck.MAUI/Pages/BaseStock/CheckPoints/CheckPointEditPage.xaml index 8291252..80f4b0c 100644 --- a/src/WorkFlowCheck.MAUI/Pages/BaseStock/CheckPoints/CheckPointEditPage.xaml +++ b/src/WorkFlowCheck.MAUI/Pages/BaseStock/CheckPoints/CheckPointEditPage.xaml @@ -2,16 +2,19 @@ + Title="{Binding CheckPointDTO.ShortName}"> -