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 Core.Mes.Client.Comm.Attribute; using Newtonsoft.Json; namespace Core.StlMes.Client.Mcp.Control.Entity { [Serializable] /// /// 数据库表MCH_TWISTINGLY_RESULT_D所对应的实体类(生成工具:代码生成工具4.0 访问地址:http://172.16.2.128/tool/) /// 作者:tgcx-test 时间:2018-11-19 /// public class MchTwistinglyResultDEntity { [Description("选择")] public bool Chk { get; set; } /// /// 实绩编号 /// private string resultNo = ""; /// /// 序号 /// private decimal? seq = null; /// /// 接箍炉号 /// private string couplingStoveNo = ""; /// /// 接箍批号 /// private string lotNo = ""; /// /// 接箍个数 /// private decimal? couplingNum = null; /// /// 炉计划ID /// private string heatPlanNo = ""; /// /// 产线代码 /// private string plineCode = ""; /// /// 产线描述 /// private string plineName = ""; /// /// 批号 /// private string batchNo = ""; /// /// 判定炉号 /// private string judgeStoveNo = ""; /// /// 交易单号 /// [Description("接箍领用出库单号")] [Nullable(true)] [DataLength(40)] public string DealOrde { get { return dealOrde; } set { dealOrde = value; } } /// /// 工单号 /// [Description("工单号")] [Nullable(true)] [DataLength(40)] public string WoId { get { return woId; } set { woId = value; } } /// /// 实绩编号 /// [Description("实绩编号")] [JsonProperty("resultNo")] public string ResultNo { get { return resultNo; } set { resultNo = value; } } /// /// 序号 /// [Description("序号")] [JsonProperty("seq")] public decimal? Seq { get { return seq; } set { seq = value; } } /// /// 接箍炉号 /// [Description("接箍炉号")] [JsonProperty("couplingStoveNo")] public string CouplingStoveNo { get { return couplingStoveNo; } set { couplingStoveNo = value; } } /// /// 接箍批号 /// [Description("接箍批号")] [JsonProperty("lotNo")] public string LotNo { get { return lotNo; } set { lotNo = value; } } /// /// 接箍个数 /// [Description("接箍个数")] [JsonProperty("couplingNum")] public decimal? CouplingNum { get { return couplingNum; } set { couplingNum = 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; } } /// /// 接箍重量 /// private decimal? couplingWt = null; /// /// 交易单号 /// private string dealOrde = ""; /// /// 工单号 /// private string woId = ""; /// /// 接箍废品个数 /// private decimal? couplingFailNum = null; /// /// 接箍废品重量 /// private decimal? couplingFailWt = null; /// /// 接箍重量 /// [Description("接箍重量")] [Nullable(true)] [DataLength(8)] public decimal? CouplingWt { get { return couplingWt; } set { couplingWt = value; } } /// /// 接箍废品个数 /// [Description("接箍废品个数")] [Nullable(true)] [DataLength(6)] public decimal? CouplingFailNum { get { return couplingFailNum; } set { couplingFailNum = value; } } /// /// 接箍废品重量 /// [Description("接箍废品重量")] [Nullable(true)] [DataLength(6)] public decimal? CouplingFailWt { get { return couplingFailWt; } set { couplingFailWt = value; } } public MchTwistinglyResultDEntity 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 MchTwistinglyResultDEntity; } } } }