using System.Collections.Generic; using CommunityToolkit.Mvvm.ComponentModel; namespace DeclarationAutomatization.Models; public record RegEntry(string Number, string Date); public partial class DeclarationItem : ObservableObject { public int SequentialNumber { get; set; } public string Description { get; init; } = ""; public string TnVed { get; init; } = ""; public string CountryId { get; init; } = ""; public decimal Quantity { get; init; } public decimal AmountWithVat { get; init; } public decimal GrossWeight { get; init; } public decimal NetWeight { get; init; } // Все рег. номера из СПРАВКИ для данного ТН ВЭД public List RegEntries { get; set; } = new(); [ObservableProperty] private string _declarationCode = ""; [ObservableProperty] private ConfidenceLevel _confidence = ConfidenceLevel.Missing; // Все возможные коды при неоднозначном ТН ВЭД (для выпадающего списка) public List CandidateCodes { get; set; } = new(); }