feat: add Stato field to CertificateInfo model and map from SP
This commit is contained in:
@@ -75,6 +75,10 @@ public class CertificateInfo
|
|||||||
public string TriggerOneStar { get; set; } = string.Empty;
|
public string TriggerOneStar { get; set; } = string.Empty;
|
||||||
public string Note { get; set; } = string.Empty;
|
public string Note { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
// Stato quotazione (da SP rpt_Master_CFT_ISIN)
|
||||||
|
// Valori: "Quotazione" | "Revocato" | "Scaduto" | "Rimborsato"
|
||||||
|
public string Stato { get; set; } = string.Empty;
|
||||||
|
|
||||||
// Sottostanti (da SP separata: rpt_Details_UL_ISIN)
|
// Sottostanti (da SP separata: rpt_Details_UL_ISIN)
|
||||||
public List<Sottostante> Sottostanti { get; set; } = new();
|
public List<Sottostante> Sottostanti { get; set; } = new();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ public class CertificateDataService : ICertificateDataService
|
|||||||
info.CpnDaPagare = r.GetNullableDecimal("CpnDaPagare");
|
info.CpnDaPagare = r.GetNullableDecimal("CpnDaPagare");
|
||||||
info.CpnPagati = r.GetNullableDecimal("CpnPagati");
|
info.CpnPagati = r.GetNullableDecimal("CpnPagati");
|
||||||
info.RendimentoAttuale = r.GetStringSafe("RendimentoAttuale");
|
info.RendimentoAttuale = r.GetStringSafe("RendimentoAttuale");
|
||||||
|
info.Stato = r.GetStringSafe("Stato");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user