Refactored `ReportViewer.razor` to improve maintainability and ensure dynamic updates to the `DxReportViewer` component. - Added `@key` attribute bound to `ViewerKey` to trigger re-renders. - Introduced `CreateReportInstance` and `CreateSignedReportInstance` helper methods to encapsulate report creation logic. - Updated `OnInitializedAsync`, `ClearSignatureAsync`, and `ApplySignatureAsync` to use the new helper methods. - Incremented `ViewerKey` in relevant methods to ensure proper re-rendering of the `DxReportViewer` component. - Replaced `ApplySignatureToReport` with `CreateSignedReportInstance`. These changes improve code modularity, readability, and ensure the UI reflects the latest state of the report.
5.8 KiB
5.8 KiB