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 { [Serializable] /// /// 数据库表MCH_FINAL_CHECK_RESULT所对应的实体类(生成工具:代码生成工具3.0) /// 作者:朱少波 时间:2019-02-15 /// public class MchFinalCheckResultEntity { /// /// 实绩编号 /// 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 decimal? failNum = null; /// /// 废品重量 /// private decimal? failWt = 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 reportPath = ""; /// /// 合格支数 /// private decimal? qualifiedNum = null; /// /// 合格重量 /// private decimal? qualifiedWt = null; /// /// 不合支数 /// private decimal? unqualifiedNum = null; /// /// 不合重量 /// private decimal? unqualifiedWt = null; /// /// 抽查支数 /// private decimal? checkNum = null; /// /// 抽查重量 /// private decimal? checkWt = null; /// /// 实绩编号 /// [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(8)] 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(6)] public decimal? FailNum { get { return failNum; } set { failNum = value; } } /// /// 废品重量 /// [Description("废品重量")] [Nullable(true)] [DataLength(8)] public decimal? FailWt { get { return failWt; } set { failWt = 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(6)] 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(200)] public string ReportPath { get { return reportPath; } set { reportPath = value; } } /// /// 合格支数 /// [Description("合格支数")] [Nullable(true)] [DataLength(6)] public decimal? QualifiedNum { get { return qualifiedNum; } set { qualifiedNum = value; } } /// /// 合格重量 /// [Description("合格重量")] [Nullable(true)] [DataLength(8)] public decimal? QualifiedWt { get { return qualifiedWt; } set { qualifiedWt = value; } } /// /// 不合支数 /// [Description("不合支数")] [Nullable(true)] [DataLength(6)] public decimal? UnqualifiedNum { get { return unqualifiedNum; } set { unqualifiedNum = value; } } /// /// 不合重量 /// [Description("不合重量")] [Nullable(true)] [DataLength(8)] public decimal? UnqualifiedWt { get { return unqualifiedWt; } set { unqualifiedWt = value; } } /// /// 抽查支数 /// [Description("抽查支数")] [Nullable(true)] [DataLength(6)] public decimal? CheckNum { get { return checkNum; } set { checkNum = value; } } /// /// 抽查重量 /// [Description("抽查重量")] [Nullable(true)] [DataLength(8)] public decimal? CheckWt { get { return checkWt; } set { checkWt = value; } } /// /// 检查人部门ID /// private string departid = ""; /// /// 检查人部门 /// private string departname = ""; /// /// 检查人部门ID /// [Description("检查人部门ID")] [Nullable(true)] [DataLength(30)] public string Departid { get { return departid; } set { departid = value; } } /// /// 检查人部门 /// [Description("检查人部门")] [Nullable(true)] [DataLength(50)] public string Departname { get { return departname; } set { departname = value; } } /// /// 针对处理单生成的复检记录 /// private string treatmentNo = ""; /// /// 0-初检 1-复检 /// private string resultType = ""; /// /// 针对处理单生成的复检记录 /// [Description("处理单号")] [Nullable(true)] [DataLength(40)] public string TreatmentNo { get { return treatmentNo; } set { treatmentNo = value; } } /// /// 0-初检 1-复检 /// [Description("状态")] [Nullable(true)] [DataLength(1)] public string ResultType { get { return resultType; } set { resultType = value; } } public MchFinalCheckResultEntity 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 MchFinalCheckResultEntity; } } } }