namespace PBS.WinFrmUI
{
///
/// 地图项目
///
public class MapProjectViewModel
{
///
///
///
public MapProjectViewModel()
{ }
///
///
///
public MapProjectViewModel(Vmo.FacilityVmo project, Yw.Vmo.MapInfoVmo mapInfo)
{
this.Id = project.ID.ToString();
this.Name = project.Name;
//this.NO = project.NO;
this.Description = project.Description;
var marker = Yw.Model.Map.Marker.ToModel(mapInfo.Position);
this.Point = marker?.Point;
//this.Customer = project.Customer;
}
///
/// 项目id
///
public string Id { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 编号
///
public string NO { get; set; }
///
/// 说明
///
public string Description { get; set; }
///
/// 客户
///
public string Customer { get; set; }
///
/// 坐标
///
public Yw.Model.Map.Point Point { get; set; }
}
}