Files
HC_APTBS/Services/IPdfService.cs
LucianoDev 0280a2fad1 feat: page-based navigation shell + Tests page wizard
Replace the monolithic MainWindow with a SelectedPage-driven shell
(Dashboard / Pump / Bench / Tests / Results / Settings). The Tests
page gets the Plan -> Preconditions -> Running -> Done wizard from
ui-structure.md \u00a74, backed by a 7-item precondition gate and
shared sub-views (PhaseCardView / TestSectionView / GraphicIndicatorView)
extracted from the now-deleted monolithic TestPanelView.

New VMs / views:
- Tests wizard: TestPreconditions, PhaseCard, GraphicIndicator,
  TestSection, TestPlan, TestRunning, TestDone
- Dashboard panels: DashboardConnection, DashboardReadings,
  DashboardAlarms, InterlockBanner, ResultHistory
- Pump / bench panels: PumpIdentificationPanel, PumpLiveData,
  UnlockPanel, BenchDriveControl, BenchReadings, RelayBank,
  TemperatureControl, DtcList, AuthGate
- Dialogs: generic ConfirmDialog, UserManageDialog, UserPromptDialog

Supporting changes:
- IsOilPumpOn exposed on MainViewModel for precondition evaluation
- RequiresAuth added to TestDefinition (XML round-trip)
- BipStatusDefinition + CompletedTestRun models
- ~35 new Test.* localization keys (en + es)
- Settings moved from modal dialog to full page
- Pause / Retry / Skip stubs in TestRunningView; full spec in
  docs/gap-test-running-controls.md for follow-up implementation
- docs/ui-structure.md captures the wizard design

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-18 13:11:34 +02:00

30 lines
1.3 KiB
C#

using HC_APTBS.Models;
namespace HC_APTBS.Services
{
/// <summary>
/// Generates PDF test reports from completed pump test data.
/// The implementation uses QuestPDF.
/// </summary>
public interface IPdfService
{
/// <summary>
/// Generates a PDF report for the completed test and saves it to <paramref name="outputFolder"/>.
/// </summary>
/// <param name="pump">Pump definition with populated test results.</param>
/// <param name="operatorName">Name of the operator to appear in the report header.</param>
/// <param name="clientName">Client/customer name to appear in the report header.</param>
/// <param name="outputFolder">Directory where the PDF file will be saved.</param>
/// <param name="clientInfo">Optional multi-line client address/contact info shown under the client name in the header.</param>
/// <param name="observations">Optional free-text operator observations rendered in a dedicated section near the bottom of the report.</param>
/// <returns>Full path to the generated PDF file.</returns>
string GenerateReport(
PumpDefinition pump,
string operatorName,
string clientName,
string outputFolder,
string? clientInfo = null,
string? observations = null);
}
}