using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation.Application { /// /// 电机详细 /// public class DemoMotorDetailDto { /// /// /// public DemoMotorDetailDto() { } /// /// /// public DemoMotorDetailDto(Model.Product rhs, List propertyGroupList = null) { this.ID = rhs.ID; this.CorpID = rhs.CorpID; this.Name = rhs.Name; this.Code = rhs.Code; this.Specification = rhs.Specification; this.Material = rhs.Material; this.Size = rhs.Size; this.UnitName = rhs.UnitName; this.Quantity = rhs.Quantity; this.ManufacturerNO = rhs.ManufacturerNO; this.ManufacturerDay = rhs.ManufacturerDay; this.ContractNO = rhs.ContractNO; this.StorageLocation = rhs.StorageLocation; this.StartUseDay = rhs.StartUseDay?.ToString("yyyy-MM-dd"); this.RealImage = rhs.RealImage; this.SiteImage = rhs.SiteImage; this.Model3DViewUrl = rhs.Model3DViewUrl; this.ExplosionImage = rhs.ExplosionImage; this.Address = rhs.Address; this.InspectionSchedule = rhs.InspectionSchedule; this.PropsParas = propertyGroupList?.Select(x => new DemoProductPropertyGroupDto(x, rhs.PropsParas)).ToList(); this.RatedParas = rhs.RatedParas == null ? null : new DemoMotorRatedParasDto(rhs.RatedParas); this.TerminalId = rhs.TerminalId; this.TagName = rhs.TagName; this.UseStatus = rhs.UseStatus; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// 标识 /// public long ID { get; set; } /// /// 客户标识 /// public long CorpID { get; set; } /// /// 编号 /// public string NO { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 型号 /// public string Code { get; set; } /// /// 规格 /// public string Specification { get; set; } /// /// 材质 /// public string Material { get; set; } /// /// 尺寸 /// public string Size { get; set; } /// /// 单位 /// public string UnitName { get; set; } /// /// 数量 /// public double Quantity { get; set; } /// /// 厂商名称 /// public string ManufacturerName { get; set; } /// /// 出厂编号 /// public string ManufacturerNO { get; set; } /// /// 出场日期 /// public string ManufacturerDay { get; set; } /// /// 合同编号 /// public string ContractNO { get; set; } /// /// 存储位置 /// public string StorageLocation { get; set; } /// /// 开始使用日期 /// public string StartUseDay { get; set; } /// /// 实物图 /// public string RealImage { get; set; } /// /// 现场图片 /// public string SiteImage { get; set; } /// /// 三维图 路径 /// public string Model3DViewUrl { get; set; } /// /// 爆炸图 /// public string ExplosionImage { get; set; } /// /// 地址 /// public string Address { get; set; } /// /// 巡检周期 /// public Model.Product.eInspectionSchedule InspectionSchedule { get; set; } /// /// 属性参数 /// public List PropsParas { get; set; } /// /// 额定参数 /// public DemoMotorRatedParasDto RatedParas { get; set; } /// /// 终端标识 /// public string TerminalId { get; set; } /// /// 标签 /// public string TagName { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 使用状态 /// public Model.Product.eUseStatus UseStatus { get; set; } /// /// 说明 /// public string Description { get; set; } } }