using Yw.Dto; using Yw.Vmo; namespace HStation.WinFrmUI.Basic { public class SysPropMappingViewModel { public SysPropMappingViewModel() { } public SysPropMappingViewModel(SysPropMappingHaveLogicalTreeVmo rhs) { if (rhs.LogicalType == "sys-prop") { Name = rhs.LogicalName; ID = rhs.LogicalID; IsHave = rhs.Have; } else { Name = rhs.LogicalName; ID = rhs.LogicalID; IsHave = rhs.Have; } } public string GroupName { get; set; } public string Name { get; set; } public long ID { get; set; } public long ParentID { get; set; } public bool IsHave { get; set; } public long PropID { get; set; } public string UnitName { get; set; } public bool IsNull { get; set; } public string DefaultValue { get; set; } public bool Inherit { get; set; } public List ChoiceIds { get; set; } public string DisplayChoice { get; set; } public List ChoiceList { get; set; } } }