using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static IStation.Model.Product; using static IStation.Model.SimCard; namespace IStation.Application { /// /// SIM卡dto /// public class SimCardDto { /// /// /// public SimCardDto() { } /// /// /// public SimCardDto(Model.Product pro) { var rhs = new Model.Product(pro); this.ID = rhs.ID; this.CorpID = rhs.CorpID; this.BelongType = rhs.BelongType; this.BelongID = rhs.BelongID; this.GroupID = rhs.GroupID; this.ProductTypeID = rhs.ProductTypeID; this.ParentIds = rhs.ParentIds; this.NO = rhs.NO; this.Code = rhs.Code; this.ManufacturerID = rhs.ManufacturerID; this.CardNO = rhs.RatedParas.CardNO; this.RechargeMode = rhs.RatedParas.RechargeMode; this.RechargeInfo = rhs.RatedParas.RechargeInfo; this.PropsParas = rhs.PropsParas; this.InspectionSchedule = rhs.InspectionSchedule; this.TerminalId = rhs.TerminalId; this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.UseStatus = rhs.UseStatus; this.Description = rhs.Description; } /// /// /// public SimCardDto(Model.Product rhs) { this.ID = rhs.ID; this.CorpID = rhs.CorpID; this.BelongType = rhs.BelongType; this.BelongID = rhs.BelongID; this.GroupID = rhs.GroupID; this.ProductTypeID = rhs.ProductTypeID; this.ParentIds = rhs.ParentIds; this.NO = rhs.NO; this.Code = rhs.Code; this.ManufacturerID = rhs.ManufacturerID; this.CardNO = rhs.RatedParas.CardNO; this.RechargeMode = rhs.RatedParas.RechargeMode; this.RechargeInfo = rhs.RatedParas.RechargeInfo; this.PropsParas = rhs.PropsParas; this.InspectionSchedule = rhs.InspectionSchedule; this.TerminalId = rhs.TerminalId; this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.UseStatus = rhs.UseStatus; this.Description = rhs.Description; } /// /// 标识 /// public long ID { get; set; } /// /// 客户标识 /// public long CorpID { get; set; } /// /// 所属类型 /// public string BelongType { get; set; } /// /// 所属标识 /// public long BelongID { get; set; } /// /// 组标识 /// public long GroupID { get; set; } /// /// 设备类型标识 /// public long ProductTypeID { get; set; } /// /// 父节点标识列表 /// public List ParentIds { get; set; } /// /// 编号 /// public string NO { get; set; } /// /// 型号 /// public string Code { get; set; } /// /// 厂商 /// public long ManufacturerID { get; set; } /// /// SMI卡号 /// public string CardNO { get; set; } /// /// 充值方式 /// public eRechargeMode RechargeMode { get; set; } /// /// 充值信息 /// public string RechargeInfo { get; set; } /// /// 附加属性 /// public Dictionary PropsParas { get; set; } /// /// 巡检周期 /// public eInspectionSchedule InspectionSchedule { get; set; } /// /// 终端标识 /// public string TerminalId { get; set; } /// /// 标签 /// public string TagName { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 使用状态 /// public eUseStatus UseStatus { get; set; } /// /// 说明 /// public string Description { get; set; } } }