using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation.Application { /// /// 设备属性 /// public class DemoProductPropertyDto { /// /// /// public DemoProductPropertyDto() { } /// /// /// public DemoProductPropertyDto(Model.ProductTypeProperty rhs, string value = null) { this.ID = rhs.ID; this.ProductTypeID = rhs.ProductTypeID; this.GroupID = rhs.GroupID; this.Name = rhs.Name; this.Value = value; if (string.IsNullOrEmpty(this.Value)) this.Value = rhs.DefaultValue; this.Format = rhs.Format; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// 标识 /// public long ID { get; set; } /// /// 设备类型标识 /// public long ProductTypeID { get; set; } /// /// 属性组标识 /// public long GroupID { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 值 /// public string Value { get; set; } /// /// 格式 /// public Model.ePropertyFormat Format { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// public string Description { get; set; } } }