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 Core.Mes.Client.Comm.Attribute; using Newtonsoft.Json; namespace Core.StlMes.Client.Mcp.Control.Entity { [Serializable] /// /// 数据库表MCH_BUNDLING_RESULT所对应的实体类(生成工具:代码生成工具4.0 访问地址:http://172.16.2.128/tool/) /// 作者:tgcx-test 时间:2018-11-06 /// public class MchBundlingResultEntity { /// /// 实绩编号(机组+工序点代码+年月日+6位流水) /// private string resultNo = ""; /// /// 炉计划ID /// private string heatPlanNo = ""; /// /// 批号 /// private string batchNo = ""; /// /// 产线代码 /// private string plineCode = ""; /// /// 产线描述 /// private string plineName = ""; /// /// 是否热处理监制 /// private string ifMonitorRcl = ""; /// /// 监制编号 /// private string prdcrNo = ""; /// /// 监制人 /// private string producer = ""; /// /// 监制到场时间 /// private string producerTime = ""; /// /// 捆数 /// private decimal? bundlingNum = null; /// /// 作业支数(有效生产数量) /// 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 proUser = ""; /// /// 操作时间 /// private string proTime = ""; /// /// 判定炉号 /// private string judgeStoveNo = ""; /// /// 备注 /// private string memo = ""; /// /// 打捆类型 /// private string bundingTypeCode = ""; /// /// 打捆类型 /// private string bundingTypeName = ""; /// /// 每捆个数 /// private decimal? bundingPerNum = null; /// /// 是否包含短尺 0-否 1-是 /// private string includeShort = ""; /// /// 实绩编号(机组+工序点代码+年月日+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(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(1)] public string IfMonitorRcl { get { return ifMonitorRcl; } set { ifMonitorRcl = value; } } /// /// 监制编号 /// [Description("监制编号")] [Nullable(true)] [DataLength(40)] public string PrdcrNo { get { return prdcrNo; } set { prdcrNo = value; } } /// /// 监制人 /// [Description("监制人")] [Nullable(true)] [DataLength(40)] public string Producer { get { return producer; } set { producer = value; } } /// /// 监制到场时间 /// [Description("监制到场时间")] [Nullable(true)] public string ProducerTime { get { return producerTime; } set { producerTime = value; } } /// /// 捆数 /// [Description("捆数")] [Nullable(true)] [DataLength(4)] public decimal? BundlingNum { get { return bundlingNum; } set { bundlingNum = 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)] [DataLength(20)] public string ProUser { get { return proUser; } set { proUser = 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(4000)] public string Memo { get { return memo; } set { memo = value; } } /// /// 打捆类型 /// [Description("打捆类型")] [Nullable(true)] [DataLength(20)] public string BundingTypeCode { get { return bundingTypeCode; } set { bundingTypeCode = value; } } /// /// 打捆类型 /// [Description("打捆类型")] [Nullable(true)] [DataLength(20)] public string BundingTypeName { get { return bundingTypeName; } set { bundingTypeName = value; } } /// /// 每捆个数 /// [Description("每捆支数")] [Nullable(true)] [DataLength(4)] public decimal? BundingPerNum { get { return bundingPerNum; } set { bundingPerNum = value; } } /// /// 是否包含短尺 0-否 1-是 /// [Description("是否短尺")] [Nullable(true)] [DataLength(1)] public string IncludeShort { get { return includeShort; } set { includeShort = value; } } [Description("合同号")] public string OrderNo { get; set; } public MchBundlingResultEntity 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 MchBundlingResultEntity; } } } }