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; using Newtonsoft.Json; namespace com.steering.mes.mcp.entity { /// [Serializable] /// /// 数据库表MCH_LOADING_RESULT所对应的实体类(生成工具:代码生成工具4.0 访问地址:http://172.16.2.128/tool/) /// 作者:tgcx-test 时间:2018-08-22 /// public class MchLoadingResultEntity { /// /// 实绩编号(机组+工序点代码+年月日+6位流水) /// private string resultNo = ""; /// /// 炉计划ID /// private string heatPlanNo = ""; /// /// 加工生产批次号 /// private string zyBatchId = ""; /// /// 加工生产批次号序号 /// private string prodIndex = ""; /// /// 加工订单编号 /// private string proPlanId = ""; /// /// 加工订单排产序号 /// private string gxPlanNo = ""; /// /// 产线代码 /// private string plineCode = ""; /// /// 产线描述 /// private string plineName = ""; /// /// 是否热处理监制 /// private string ifMonitorRcl = ""; /// /// 监制要求 /// private string monitordemand = ""; /// /// 监制编号 /// private string prdcrNo = ""; /// /// 监制人 /// private string producer = ""; /// /// 监制到场时间 /// private string producerTime = ""; /// /// 作业支数(有效生产数量) /// private decimal? proNum = null; /// /// 作业重量 /// private decimal? proWt = null; /// /// 废品支数 /// private decimal? failNum = null; /// /// 废品重量 /// private decimal? failWt = null; /// /// 离线支数 /// private decimal? offlineNum = null; /// /// 离线重量 /// private decimal? offlineWt = null; /// /// 返线支数 /// private decimal? reNum = null; /// /// 返线重量 /// private decimal? reWt = null; /// /// 上料时间 /// private string loadTime = ""; /// /// 上料班次 /// private string loadShift = ""; /// /// 上料班组 /// private string loadGroup = ""; /// /// 操作人 /// private string createtUser = ""; /// /// 操作时间 /// private string createTime = ""; /// /// 修改时间 /// private string updateTime = ""; /// /// 修改人 /// private string updateName = ""; /// /// 采集方式(0-接口采集,1-人工录入) /// private string colMode = ""; /// /// 生产(年月日) /// private string proYearMonthDay = ""; /// /// 结算日期(年月) /// private string balYearMonth = ""; /// /// 废品缺陷编号 /// private string failBill = ""; /// /// 分切数 /// private decimal? outnumCut = null; /// /// 原料管长度 /// private decimal? lengthIn = null; /// /// 原料管最大长度 /// private decimal? lengthmaxIn = null; /// /// 原料管最小长度 /// private decimal? lengthminIn = null; /// /// 出库单编号 /// private string outstockDoc = ""; /// /// 批号 /// private string batchNo = ""; /// /// 判定炉号 /// private string judgeStoveNo = ""; /// /// 组号 /// private string batchGroudNo = ""; /// /// 实绩编号(机组+工序点代码+年月日+6位流水) /// [Description("实绩编号")] [JsonProperty("resultNo")] public string ResultNo { get { return resultNo; } set { resultNo = value; } } /// /// 批号 /// [Description("批号")] [JsonProperty("batchNo")] public string BatchNo { get { return batchNo; } set { batchNo = value; } } /// /// 炉计划ID /// [Description("炉计划ID")] [JsonProperty("heatPlanNo")] public string HeatPlanNo { get { return heatPlanNo; } set { heatPlanNo = value; } } /// /// 加工生产批次号 /// [Description("加工生产批次号")] [JsonProperty("zyBatchId")] public string ZyBatchId { get { return zyBatchId; } set { zyBatchId = value; } } /// /// 加工生产批次号序号 /// [Description("加工生产批次号序号")] [JsonProperty("prodIndex")] public string ProdIndex { get { return prodIndex; } set { prodIndex = value; } } /// /// 加工订单编号 /// [Description("加工订单编号")] [JsonProperty("proPlanId")] public string ProPlanId { get { return proPlanId; } set { proPlanId = value; } } /// /// 加工订单排产序号 /// [Description("加工订单排产序号")] [JsonProperty("gxPlanNo")] public string GxPlanNo { get { return gxPlanNo; } set { gxPlanNo = 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("monitordemand")] public string Monitordemand { get { return monitordemand; } set { monitordemand = 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; } } /// /// 作业支数(有效生产数量) /// [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("offlineNum")] public decimal? OfflineNum { get { return offlineNum; } set { offlineNum = value; } } /// /// 离线重量 /// [Description("离线重量")] [JsonProperty("offlineWt")] public decimal? OfflineWt { get { return offlineWt; } set { offlineWt = value; } } /// /// 返线支数 /// [Description("返线支数")] [JsonProperty("reNum")] public decimal? ReNum { get { return reNum; } set { reNum = value; } } /// /// 返线重量 /// [Description("返线重量")] [JsonProperty("reWt")] public decimal? ReWt { get { return reWt; } set { reWt = value; } } /// /// 上料时间 /// [Description("操作时间")] [JsonProperty("loadTime")] public string LoadTime { get { return loadTime; } set { loadTime = value; } } /// /// 上料班次 /// [Description("班次")] [JsonProperty("loadShift")] public string LoadShift { get { return loadShift; } set { loadShift = value; } } /// /// 上料班组 /// [Description("班组")] [JsonProperty("loadGroup")] public string LoadGroup { get { return loadGroup; } set { loadGroup = value; } } /// /// 操作人 /// [Description("操作人")] [JsonProperty("createtUser")] public string CreatetUser { get { return createtUser; } set { createtUser = value; } } /// /// 操作时间 /// [Description("操作时间")] [JsonProperty("createTime")] public string CreateTime { get { return createTime; } set { createTime = value; } } /// /// 修改时间 /// [Description("修改时间")] [JsonProperty("updateTime")] public string UpdateTime { get { return updateTime; } set { updateTime = value; } } /// /// 修改人 /// [Description("修改人")] [JsonProperty("updateName")] public string UpdateName { get { return updateName; } set { updateName = value; } } /// /// 采集方式(0-接口采集,1-人工录入) /// [Description("采集方式(0-接口采集,1-人工录入)")] [JsonProperty("colMode")] public string ColMode { get { return colMode; } set { colMode = 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("failBill")] public string FailBill { get { return failBill; } set { failBill = value; } } /// /// 分切数 /// [Description("分切数")] public decimal? OutnumCut { get { return outnumCut; } set { outnumCut = value; } } /// /// 原料管长度 /// [Description("原料管长度")] public decimal? LengthIn { get { return lengthIn; } set { lengthIn = value; } } /// /// 原料管最大长度 /// [Description("原料管最大长度")] public decimal? LengthmaxIn { get { return lengthmaxIn; } set { lengthmaxIn = value; } } /// /// 原料管最小长度 /// [Description("原料管最小长度")] public decimal? LengthminIn { get { return lengthminIn; } set { lengthminIn = value; } } /// /// 出库单编号 /// [Description("出库单编号")] public string OutstockDoc { get { return outstockDoc; } set { outstockDoc = value; } } /// /// 判定炉号 /// [Description("判定炉号")] [JsonProperty("judgeStoveNo")] public string JudgeStoveNo { get { return judgeStoveNo; } set { judgeStoveNo = value; } } /// /// 组号 /// [Description("组号")] [JsonProperty("batchGroudNo")] public string BatchGroudNo { get { return batchGroudNo; } set { batchGroudNo = value; } } /// /// 上料行ID(炉计划ID+2位流水) /// private string heatPlanSqe = ""; /// /// 上料行ID(炉计划ID+2位流水) /// [Description("上料行ID(炉计划ID+2位流水)")] [JsonProperty("heatPlanSqe")] public string HeatPlanSqe { get { return heatPlanSqe; } set { heatPlanSqe = value; } } /// /// 收料来源 0- 生产部 1-中间库 /// private string matSource = ""; /// /// 收料来源 0- 生产部 1-中间库 /// [Description("收料来源")] [Nullable(true)] [DataLength(20)] public string MatSource { get { return matSource; } set { matSource = value; } } public MchLoadingResultEntity 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 MchLoadingResultEntity; } } } }