Refactor report generation to use async repository access

Replaces obsolete DataTable-based logic in ReportCreator with async repository queries for EnvelopeReport entities. Refactors ReportItem to use explicit header and detail fields, removing legacy Envelope references. Updates report designer bindings to match new ReportItem properties. Improves exception handling and overall type safety.
This commit is contained in:
2026-04-01 10:42:44 +02:00
parent c2ab18e184
commit 53a9a3e3eb
3 changed files with 36 additions and 66 deletions

View File

@@ -257,7 +257,7 @@ public partial class rptEnvelopeHistory : XtraReport
this.XrTableCell17.BorderColor = Color.Empty;
this.XrTableCell17.Borders = BorderSide.None;
this.XrTableCell17.Dpi = 254F;
this.XrTableCell17.ExpressionBindings.AddRange(new ExpressionBinding[] { new ExpressionBinding("BeforePrint", "Text", "[Envelope].[User].[FullName]") });
this.XrTableCell17.ExpressionBindings.AddRange(new ExpressionBinding[] { new ExpressionBinding("BeforePrint", "Text", "[CreatorFullName]") });
this.XrTableCell17.Font = new Font("Arial", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0);
this.XrTableCell17.ForeColor = Color.Black;
this.XrTableCell17.Multiline = true;
@@ -296,7 +296,7 @@ public partial class rptEnvelopeHistory : XtraReport
this.XrTableCell18.BorderColor = Color.Empty;
this.XrTableCell18.Borders = BorderSide.None;
this.XrTableCell18.Dpi = 254F;
this.XrTableCell18.ExpressionBindings.AddRange(new ExpressionBinding[] { new ExpressionBinding("BeforePrint", "Text", "[Envelope].[Title]") });
this.XrTableCell18.ExpressionBindings.AddRange(new ExpressionBinding[] { new ExpressionBinding("BeforePrint", "Text", "[EnvelopeTitle]") });
this.XrTableCell18.Font = new Font("Arial", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0);
this.XrTableCell18.ForeColor = Color.Black;
this.XrTableCell18.Multiline = true;
@@ -342,7 +342,7 @@ public partial class rptEnvelopeHistory : XtraReport
this.XrTableCell20.BorderColor = Color.Empty;
this.XrTableCell20.Borders = BorderSide.None;
this.XrTableCell20.Dpi = 254F;
this.XrTableCell20.ExpressionBindings.AddRange(new ExpressionBinding[] { new ExpressionBinding("BeforePrint", "Text", "[Envelope].[User].[EmailAddress]") });
this.XrTableCell20.ExpressionBindings.AddRange(new ExpressionBinding[] { new ExpressionBinding("BeforePrint", "Text", "[CreatorEmailAddress]") });
this.XrTableCell20.Font = new Font("Arial", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0);
this.XrTableCell20.ForeColor = Color.Black;
this.XrTableCell20.Multiline = true;
@@ -381,7 +381,7 @@ public partial class rptEnvelopeHistory : XtraReport
this.XrTableCell22.BorderColor = Color.Empty;
this.XrTableCell22.Borders = BorderSide.None;
this.XrTableCell22.Dpi = 254F;
this.XrTableCell22.ExpressionBindings.AddRange(new ExpressionBinding[] { new ExpressionBinding("BeforePrint", "Text", "[Envelope].[Uuid]") });
this.XrTableCell22.ExpressionBindings.AddRange(new ExpressionBinding[] { new ExpressionBinding("BeforePrint", "Text", "[EnvelopeUuid]") });
this.XrTableCell22.Font = new Font("Arial", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0);
this.XrTableCell22.ForeColor = Color.Black;
this.XrTableCell22.Multiline = true;
@@ -463,7 +463,7 @@ public partial class rptEnvelopeHistory : XtraReport
this.XrTableCell26.BorderColor = Color.Empty;
this.XrTableCell26.Borders = BorderSide.None;
this.XrTableCell26.Dpi = 254F;
this.XrTableCell26.ExpressionBindings.AddRange(new ExpressionBinding[] { new ExpressionBinding("BeforePrint", "Text", "[Envelope].[CertificationType]") });
this.XrTableCell26.ExpressionBindings.AddRange(new ExpressionBinding[] { new ExpressionBinding("BeforePrint", "Text", "[EnvelopeCertificationType]") });
this.XrTableCell26.Font = new Font("Arial", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0);
this.XrTableCell26.ForeColor = Color.Black;
this.XrTableCell26.Multiline = true;