Supporto per aste chiuse e miglioramenti UI

- Aggiornamento alla versione Microsoft.EntityFrameworkCore.Sqlite 8.0.0.
- Aggiornamento alla versione Microsoft.Windows.SDK.BuildTools 10.0.26100.6584.
- Migliorata l'interfaccia per l'inserimento di più URL/ID di aste.
- Aggiunti pulsanti per "Aste Chiuse" e "Esporta" in MainWindow.
- Creata finestra "Aste Chiuse" per visualizzare e gestire aste chiuse.
- Implementato scraper per estrarre dati da aste chiuse.
- Aggiunto supporto per esportazione dati in CSV, JSON e XML.
- Introdotto contesto Entity Framework per statistiche delle aste.
- Aggiunto servizio per calcolo e gestione delle statistiche.
- Gestite preferenze di esportazione con salvataggio in file JSON.
This commit is contained in:
Alberto Balbo
2025-11-03 14:24:19 +01:00
parent 59d7e0c41f
commit 967005b96a
13 changed files with 1128 additions and 42 deletions

View File

@@ -0,0 +1,15 @@
using System;
namespace AutoBidder.Models
{
public class ClosedAuctionRecord
{
public string? AuctionUrl { get; set; }
public string? ProductName { get; set; }
public double? FinalPrice { get; set; }
public string? Winner { get; set; }
public int? BidsUsed { get; set; }
public DateTime ScrapedAt { get; set; }
public string? Notes { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using System;
namespace AutoBidder.Models
{
public class ProductStat
{
public int Id { get; set; }
public string ProductKey { get; set; } = string.Empty;
public string ProductName { get; set; } = string.Empty;
public int TotalAuctions { get; set; }
public long TotalBidsUsed { get; set; }
public long TotalFinalPriceCents { get; set; }
public DateTime LastSeen { get; set; }
// Helper properties (not mapped)
public double AverageBidsUsed => TotalAuctions > 0 ? (double)TotalBidsUsed / TotalAuctions : 0.0;
public double AverageFinalPrice => TotalAuctions > 0 ? (double)TotalFinalPriceCents / 100.0 / TotalAuctions : 0.0;
}
}