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 com.steering.mes.mcp.entity; using Core.Mes.Client.Comm.Attribute; namespace Core.StlMes.Client.Mcp.Control.Entity { /// /// 数据库表MCH_REMANENCE_RESULT所对应的实体类(生成工具:代码生成工具3.0) /// 作者:朱少波 时间:2021-04-19 /// [Serializable] public class MchRemanenceResultEntity { /// /// 实绩编号(机组+工序点代码+年月日+6位流水) /// private string resultNo = ""; /// /// 炉计划ID /// private string heatPlanNo = ""; /// /// 批号 /// private string batchNo = ""; /// /// 产线代码 /// private string plineCode = ""; /// /// 产线描述 /// private string plineName = ""; /// /// 操作人 /// private string proUser = ""; /// /// 作业支数 /// private decimal? proNum = null; /// /// 作业重量 /// private decimal? proWt = null; /// /// 生产(年月日) /// private string proYearMonthDay = ""; /// /// 结算日期(年月) /// private string balYearMonth = ""; /// /// 操作班次 /// private string proShift = ""; /// /// 操作班组 /// private string proGroup = ""; /// /// 创建时间 /// private string createTime = ""; /// /// 操作时间 /// private string proTime = ""; /// /// 判定炉号 /// private string judgeStoveNo = ""; /// /// 备注 /// private string memo = ""; /// /// 责任人 /// private string responsible = ""; /// /// 报告地址 /// private string reportPath = ""; /// /// 检测记录 /// private decimal? testRecord = null; /// /// 单点最大(GS) /// private decimal? pointMax = null; /// /// 平均最大(GS) /// private decimal? averageMax = null; /// /// 实绩编号(机组+工序点代码+年月日+6位流水) /// [Description("实绩编号")] [Nullable(false)] [DataLength(24)] public string ResultNo { get { return resultNo; } set { resultNo = value; } } /// /// 炉计划ID /// [Description("炉计划ID")] [Nullable(true)] [DataLength(20)] public string HeatPlanNo { get { return heatPlanNo; } set { heatPlanNo = value; } } /// /// 批号 /// [Description("批号")] [Nullable(true)] [DataLength(20)] public string BatchNo { get { return batchNo; } set { batchNo = value; } } /// /// 产线代码 /// [Description("产线代码")] [Nullable(true)] [DataLength(20)] public string PlineCode { get { return plineCode; } set { plineCode = value; } } /// /// 产线描述 /// [Description("产线描述")] [Nullable(true)] [DataLength(100)] public string PlineName { get { return plineName; } set { plineName = value; } } /// /// 操作人 /// [Description("操作人")] [Nullable(true)] [DataLength(20)] public string ProUser { get { return proUser; } set { proUser = value; } } /// /// 作业支数 /// [Description("作业支数")] [Nullable(true)] [DataLength(6)] public decimal? ProNum { get { return proNum; } set { proNum = value; } } /// /// 作业重量 /// [Description("作业重量")] [Nullable(true)] [DataLength(8)] public decimal? ProWt { get { return proWt; } set { proWt = value; } } /// /// 生产(年月日) /// [Description("生产(年月日)")] [Nullable(true)] [DataLength(8)] public string ProYearMonthDay { get { return proYearMonthDay; } set { proYearMonthDay = value; } } /// /// 结算日期(年月) /// [Description("结算日期(年月)")] [Nullable(true)] [DataLength(6)] public string BalYearMonth { get { return balYearMonth; } set { balYearMonth = value; } } /// /// 操作班次 /// [Description("操作班次")] [Nullable(true)] [DataLength(1)] public string ProShift { get { return proShift; } set { proShift = value; } } /// /// 操作班组 /// [Description("操作班组")] [Nullable(true)] [DataLength(1)] public string ProGroup { get { return proGroup; } set { proGroup = value; } } /// /// 创建时间 /// [Description("创建时间")] [Nullable(true)] public string CreateTime { get { return createTime; } set { createTime = value; } } /// /// 操作时间 /// [Description("操作时间")] [Nullable(true)] public string ProTime { get { return proTime; } set { proTime = value; } } /// /// 判定炉号 /// [Description("判定炉号")] [Nullable(true)] [DataLength(20)] public string JudgeStoveNo { get { return judgeStoveNo; } set { judgeStoveNo = value; } } /// /// 备注 /// [Description("备注")] [Nullable(true)] [DataLength(400)] public string Memo { get { return memo; } set { memo = value; } } /// /// 责任人 /// [Description("责任人")] [Nullable(true)] [DataLength(20)] public string Responsible { get { return responsible; } set { responsible = value; } } /// /// 报告地址 /// [Description("报告地址")] [Nullable(true)] [DataLength(200)] public string ReportPath { get { return reportPath; } set { reportPath = value; } } /// /// 检测记录 /// [Description("检测记录")] [Nullable(true)] [DataLength(6)] public decimal? TestRecord { get { return testRecord; } set { testRecord = value; } } /// /// 单点最大(GS) /// [Description("单点最大(GS)")] [Nullable(true)] [DataLength(22)] public decimal? PointMax { get { return pointMax; } set { pointMax = value; } } /// /// 平均最大(GS) /// [Description("平均最大(GS)")] [Nullable(true)] [DataLength(22)] public decimal? AverageMax { get { return averageMax; } set { averageMax = value; } } public MchRemanenceResultEntity 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 MchRemanenceResultEntity; } } } }