using System; using System.ComponentModel; using System.IO; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using Core.Mes.Client.Comm.Attribute; using Newtonsoft.Json; namespace com.steering.mes.mcp.entity { /// /// 数据库表MCH_HREAD_RESULT所对应的实体类(生成工具:代码生成工具4.0 访问地址:http://172.16.2.128/tool/) /// 作者:tgcx-test 时间:2018-10-15 /// [Serializable] public class MchHreadResultEntity { /// /// 结算日期(年月) /// private string balYearMonth = ""; /// /// 批号 /// private string batchNo = ""; /// /// 创建时间 /// private string createTime = ""; /// /// 废品支数 /// private decimal? failNum; /// /// 废品重量 /// private decimal? failWt; /// /// 炉计划ID /// private string heatPlanNo = ""; /// /// 是否监制 /// private string ifMonitorRcl = ""; /// /// 判定炉号 /// private string judgeStoveNo = ""; /// /// 分切数 /// private decimal? outnumCut; /// /// 公/母端 0-母端 1-公端 /// private string pipeEndMf = ""; /// /// 产线代码 /// private string plineCode = ""; /// /// 产线描述 /// private string plineName = ""; /// /// 监制编号 /// private string prdcrNo = ""; /// /// 监制人 /// private string producer = ""; /// /// 监制到场时间 /// private string producerTime = ""; /// /// 操作班组 /// private string proGroup = ""; /// /// 作业支数(有效生产数量) /// private decimal? proNum; /// /// 操作班次 /// private string proShift = ""; /// /// 操作时间 /// private string proTime = ""; /// /// 操作人 /// private string proUser = ""; /// /// 作业重量 /// private decimal? proWt; /// /// 生产(年月日) /// private string proYearMonthDay = ""; /// /// 实绩编号(机组+工序点代码+年月日+6位流水) /// private string result = ""; /// /// 实绩编号(机组+工序点代码+年月日+6位流水) /// [Description("结果")] [JsonProperty("resultNo")] public string Result { get { return result; } set { result = value; } } /// /// 实绩编号(机组+工序点代码+年月日+6位流水) /// private string resultNo = ""; /// /// 实绩编号(机组+工序点代码+年月日+6位流水) /// [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("batchNo")] public string BatchNo { get { return batchNo; } set { batchNo = 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("ifMonitorRcl")] public string IfMonitorRcl { get { return ifMonitorRcl; } set { ifMonitorRcl = value; } } /// /// 监制编号 /// [Description("监制编号")] [JsonProperty("prdcrNo")] public string PrdcrNo { get { return prdcrNo; } set { prdcrNo = value; } } /// /// 监制人 /// [Description("监制人")] [JsonProperty("producer")] public string Producer { get { return producer; } set { producer = value; } } /// /// 监制到场时间 /// [Description("监制到场时间")] [JsonProperty("producerTime")] public string ProducerTime { get { return producerTime; } set { producerTime = value; } } /// /// 公/母端 0-母端 1-公端 /// [Description("公/母端")] [JsonProperty("pipeEndMf")] public string PipeEndMf { get { return pipeEndMf; } set { pipeEndMf = value; } } /// /// 分切数 /// [Description("分切数")] [JsonProperty("outnumCut")] public decimal? OutnumCut { get { return outnumCut; } set { outnumCut = value; } } /// /// 作业支数(有效生产数量) /// [Description("作业支数")] [JsonProperty("proNum")] public decimal? ProNum { get { return proNum; } set { proNum = value; } } /// /// 作业重量 /// [Description("作业重量")] [JsonProperty("proWt")] public decimal? ProWt { get { return proWt; } set { proWt = value; } } /// /// 废品支数 /// [Description("废品支数")] [JsonProperty("failNum")] public decimal? FailNum { get { return failNum; } set { failNum = value; } } /// /// 废品重量 /// [Description("废品重量")] [JsonProperty("failWt")] public decimal? FailWt { get { return failWt; } set { failWt = value; } } /// /// 生产(年月日) /// [Description("生产(年月日)")] [JsonProperty("proYearMonthDay")] public string ProYearMonthDay { get { return proYearMonthDay; } set { proYearMonthDay = value; } } /// /// 结算日期(年月) /// [Description("结算日期(年月)")] [JsonProperty("balYearMonth")] public string BalYearMonth { get { return balYearMonth; } set { balYearMonth = value; } } /// /// 操作班次 /// [Description("班次")] [JsonProperty("proShift")] public string ProShift { get { return proShift; } set { proShift = value; } } /// /// 操作班组 /// [Description("班组")] [JsonProperty("proGroup")] public string ProGroup { get { return proGroup; } set { proGroup = value; } } /// /// 创建时间 /// [Description("创建时间")] [JsonProperty("createTime")] public string CreateTime { get { return createTime; } set { createTime = value; } } /// /// 操作人 /// [Description("操作人")] [JsonProperty("proUser")] public string ProUser { get { return proUser; } set { proUser = value; } } /// /// 操作时间 /// [Description("操作时间")] [JsonProperty("proTime")] public string ProTime { get { return proTime; } set { proTime = value; } } /// /// 判定炉号 /// [Description("判定炉号")] [JsonProperty("judgeStoveNo")] public string JudgeStoveNo { get { return judgeStoveNo; } set { judgeStoveNo = value; } } /// /// 返修支 /// private decimal? headCutNum = null; private decimal? machineNo; /// /// 机器编号 /// [Description("机器编号")] [Nullable(true)] [DataLength(2)] public decimal? MachineNo { get { return machineNo; } set { machineNo = value; } } /// /// 返修支 /// [Description("返工支")] [Nullable(true)] [DataLength(2)] public decimal? HeadCutNum { get { return headCutNum; } set { headCutNum = value; } } [Description("合同号")] public string OrderNo { get; set; } public MchHreadResultEntity 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 MchHreadResultEntity; } } } }