From d97268c18cc952dab6dd4cb98b638593c4b486f0 Mon Sep 17 00:00:00 2001 From: TekH Date: Sun, 31 May 2026 11:10:31 +0200 Subject: [PATCH] Refactor AnnotationCreateDto and update appsettings.json Refactored the `AnnotationCreateDto` class: - Changed `ElementId` from `int` to `long` and made it mutable. - Marked `Name`, `Value`, and `Type` as `[Obsolete]` with defaults. - Added `[Obsolete]` attributes to `Width` and `Height`. - Introduced a new `Page` property to replace `SignatureDto`. Updated `appsettings.json`: - Set `Api.BaseUrl` to an empty string. --- .../Common/Dto/AnnotationDto.cs | 24 +++++++++++++++---- .../wwwroot/appsettings.json | 2 +- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/EnvelopeGenerator.Application/Common/Dto/AnnotationDto.cs b/EnvelopeGenerator.Application/Common/Dto/AnnotationDto.cs index 52ec400f..e20769b5 100644 --- a/EnvelopeGenerator.Application/Common/Dto/AnnotationDto.cs +++ b/EnvelopeGenerator.Application/Common/Dto/AnnotationDto.cs @@ -8,22 +8,31 @@ public record AnnotationCreateDto /// /// /// - public int ElementId { get; init; } + public long Id { get; set; } /// /// /// - public string Name { get; init; } = null!; + [Obsolete("Not required for DevExpress")] + public int ElementId { get; init; } = -1; /// /// /// - public string Value { get; init; } = null!; + [Obsolete("Not required for DevExpress")] + public string Name { get; init; } = string.Empty; /// /// /// - public string Type { get; init; } = null!; + [Obsolete("Not required for DevExpress")] + public string Value { get; init; } = string.Empty; + + /// + /// + /// + [Obsolete("Not required for DevExpress")] + public string Type { get; init; } = string.Empty; /// /// @@ -38,12 +47,19 @@ public record AnnotationCreateDto /// /// /// + [Obsolete("Not required for DevExpress")] public double? Width { get; init; } /// /// /// + [Obsolete("Not required for DevExpress")] public double? Height { get; init; } + + /// + /// Added to eliminate the need for SignatureDto in DevExpress + /// + public int? Page { get; init; } } /// diff --git a/EnvelopeGenerator.ReceiverUI/wwwroot/appsettings.json b/EnvelopeGenerator.ReceiverUI/wwwroot/appsettings.json index d81df0c0..54ab39a7 100644 --- a/EnvelopeGenerator.ReceiverUI/wwwroot/appsettings.json +++ b/EnvelopeGenerator.ReceiverUI/wwwroot/appsettings.json @@ -1,6 +1,6 @@ { "Api": { - "BaseUrl": "https://localhost:8088", + "BaseUrl": "", "ForceToUseFakeDocument": true } }