using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using Newtonsoft.Json; namespace Core.StlMes.Client.Mcp.Control.Entity { [Serializable] /// /// 数据库表MCH_PATH_RESULT_D所对应的实体类(生成工具:代码生成工具4.0 访问地址:http://172.16.2.128/tool/) /// 作者:tgcx-test 时间:2018-11-20 /// public class MchPathResultDEntity { [Description("选择")] public bool Chk { get; set; } /// /// 实绩编号 /// private string resultNo = ""; /// /// 炉计划ID /// private string heatPlanNo = ""; /// /// 产线代码 /// private string plineCode = ""; /// /// 产线描述 /// private string plineName = ""; /// /// 批号 /// private string batchNo = ""; /// /// 判定炉号 /// private string judgeStoveNo = ""; /// /// 序号 /// private decimal? seq = null; /// /// 测量时间 /// private string measurementTime = ""; /// /// 通径头编号 /// private string driftModelNo = ""; /// /// 通径头有效长度 /// private decimal? driftModelLen = null; /// /// 测量-端部 /// private decimal? measuredEndPart = null; /// /// 测量-中部 /// private decimal? measuredMiddlePart = null; /// /// 测量-尾部 /// private decimal? measuredTailPart = null; /// /// 实绩编号 /// [Description("实绩编号")] [JsonProperty("resultNo")] public string ResultNo { get { return resultNo; } set { resultNo = value; } } /// /// 炉计划ID /// [Description("炉计划ID")] [JsonProperty("heatPlanNo")] public string HeatPlanNo { get { return heatPlanNo; } set { heatPlanNo = value; } } /// /// 产线代码 /// [Description("产线代码")] [JsonProperty("plineCode")] public string PlineCode { get { return plineCode; } set { plineCode = value; } } /// /// 产线描述 /// [Description("产线描述")] [JsonProperty("plineName")] public string PlineName { get { return plineName; } set { plineName = value; } } /// /// 批号 /// [Description("批号")] [JsonProperty("batchNo")] public string BatchNo { get { return batchNo; } set { batchNo = value; } } /// /// 判定炉号 /// [Description("判定炉号")] [JsonProperty("judgeStoveNo")] public string JudgeStoveNo { get { return judgeStoveNo; } set { judgeStoveNo = value; } } /// /// 序号 /// [Description("序号")] [JsonProperty("seq")] public decimal? Seq { get { return seq; } set { seq = value; } } /// /// 测量时间 /// [Description("测量时间")] [JsonProperty("measurementTime")] public string MeasurementTime { get { return measurementTime; } set { measurementTime = value; } } /// /// 通径头编号 /// [Description("通径头编号")] [JsonProperty("driftModelNo")] public string DriftModelNo { get { return driftModelNo; } set { driftModelNo = value; } } /// /// 通径头有效长度 /// [Description("有效长度mm")] [JsonProperty("driftModelLen")] public decimal? DriftModelLen { get { return driftModelLen; } set { driftModelLen = value; } } /// /// 测量-端部 /// [Description("端部mm")] [JsonProperty("measuredEndPart")] public decimal? MeasuredEndPart { get { return measuredEndPart; } set { measuredEndPart = value; } } /// /// 测量-中部 /// [Description("中部mm")] [JsonProperty("measuredMiddlePart")] public decimal? MeasuredMiddlePart { get { return measuredMiddlePart; } set { measuredMiddlePart = value; } } /// /// 测量-尾部 /// [Description("尾部mm")] [JsonProperty("measuredTailPart")] public decimal? MeasuredTailPart { get { return measuredTailPart; } set { measuredTailPart = value; } } public MchPathResultDEntity Clone() { using (var memStream = new MemoryStream()) { var binaryFormatter = new BinaryFormatter(null, new StreamingContext(StreamingContextStates.Clone)); binaryFormatter.Serialize(memStream, this); memStream.Seek(0, SeekOrigin.Begin); return binaryFormatter.Deserialize(memStream) as MchPathResultDEntity; } } } }