using Core.Mes.Client.Comm.Attribute; 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; namespace com.steering.mes.mcp.entity {/// /// 数据库表所对应的实体类(生成工具:代码生成工具3.0) /// 作者:PC-20160925CXYF 时间:2016-11-25 /// [Serializable] public class HttHeatCommEntity { /// /// 上料班次 /// private string loadShift = ""; /// /// 上料班组 /// private string loadGroup = ""; /// /// 操作人 /// private string loadUser = ""; /// /// 操作时间 /// private string createTime = ""; /// /// 上料班次 /// [Description("班次")] [Nullable(true)] [DataLength(1)] public string LoadShift { get { return loadShift; } set { loadShift = value; } } /// /// 上料班组 /// [Description("班组")] [Nullable(true)] [DataLength(1)] public string LoadGroup { get { return loadGroup; } set { loadGroup = value; } } /// /// 操作人 /// [Description("操作人")] [Nullable(true)] [DataLength(20)] public string LoadUser { get { return loadUser; } set { loadUser = value; } } /// private string loadTime = ""; /// /// 上料时间 /// [Description("操作时间")] [Nullable(true)] public string LoadTime { get { return loadTime; } set { loadTime = value; } } /// /// 炉内总时间(分钟) /// private decimal? totalTimeH = null; /// /// 炉内总时间(分钟) /// [Description("高温炉保温时间")] [Nullable(true)] [DataLength(22)] public decimal? TotalTimeH { get { return totalTimeH; } set { totalTimeH = value; } } private decimal? hheatExitTemp = null; /// /// 出口温度 /// [Description("高温炉温度")] [Nullable(true)] [DataLength(6)] public decimal? HheatExitTemp { get { return hheatExitTemp; } set { hheatExitTemp = value; } } /// /// 炉内总时间(分钟) /// private decimal? totalTimeL = null; /// /// 炉内总时间(分钟) /// [Description("低温炉保温时间")] [Nullable(true)] [DataLength(22)] public decimal? TotalTimeL { get { return totalTimeL; } set { totalTimeL = value; } } private decimal? lheatExitTemp = null; /// /// 出口温度 /// [Description("低温炉温度")] [Nullable(true)] [DataLength(6)] public decimal? LheatExitTemp { get { return lheatExitTemp; } set { lheatExitTemp = value; } } /// /// 最低回火温度 /// private decimal? lowTemp = null; /// /// 最低回火温度 /// [Description("最低回火温度")] [Nullable(true)] [DataLength(22)] public decimal? LowTemp { get { return lowTemp; } set { lowTemp = value; } } private string coolingTypeH = ""; /// /// 生产(年月日) /// [Description("冷却方式")] [Nullable(true)] [DataLength(8)] public string CoolingTypeH { get { return coolingTypeH; } set { coolingTypeH = value; } } private string coolingTypeL = ""; /// /// 生产(年月日) /// [Description("冷却方式")] [Nullable(true)] [DataLength(8)] public string CoolingTypeL { get { return coolingTypeL; } set { coolingTypeL = value; } } private string httTypeL = ""; /// /// 生产(年月日) /// [Description("热处理方式")] [Nullable(true)] [DataLength(8)] public string HttTypeL { get { return httTypeL; } set { httTypeL = value; } } private string httTypeH = ""; /// /// 生产(年月日) /// [Description("热处理方式")] [Nullable(true)] [DataLength(8)] public string HttTypeH { get { return httTypeH; } set { httTypeH = value; } } private string httTechnology = ""; /// /// 生产(年月日) /// [Description("热处理制度")] [Nullable(true)] [DataLength(8)] public string HttTechnology { get { return httTechnology; } set { httTechnology = value; } } public string PlineCode { get; set; } public HttHeatCommEntity 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 HttHeatCommEntity; } } } }