| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Ips.Library.Entity
- {
- public class AntInfo
- {
- public AntInfo()
- {
- }
- public AntInfo(int id, string name, double lon, double lat, double alt)
- {
- Id = id;
- Name = name;
- Lon = lon;
- Lat = lat;
- Alt = alt;
- }
- [Display(Name = "编号")]
- public int Id { get; set; }
- [Display(Name = "名称")]
- public string Name { get; set; }
- [Display(Name = "经度(°)")]
- [DisplayFormat(DataFormatString = "{0}°", ApplyFormatInEditMode = false, ConvertEmptyStringToNull = true, NullDisplayText = "无")]
- public double Lon { get; set; }
- [Display(Name = "纬度(°)")]
- public double Lat { get; set; }
- [Display(Name = "高度(m)")]
- public double Alt { get; set; }
- public override string ToString()
- {
- return Name;
- }
- }
- }
|