using System.ComponentModel.DataAnnotations; namespace DW5S.ViewModel { public class XlViewModel : BaseViewModel { [Display(Name = "卫星编号")] public int SatCode { get; set; } [Display(Name = "卫星名称")] public string SatName { get; set; } [Display(Name = "卫星")] public string Sat => $"{SatName}({SatCode})"; [Display(Name = "发布时间(UTC)")] public DateTime TimeUTC { get; set; } [Display(Name = "轨道经度")] public double? Lon { get; set; } [Display(Name = "双行根数1")] public string Line1 { get; set; } [Display(Name = "双行根数2")] public string Line2 { get; set; } [Display(Name = "双行根数")] public string TwoLine => $"{Line1};{Line2}"; } }