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;
namespace com.steering.mes.mcp.entity
{
///
/// 数据库表HTT_QUENCHING_RESULT所对应的实体类(生成工具:代码生成工具3.0)
/// 作者:PC-20160918TFRG 时间:2018-06-08
///
[Serializable]
public class HttQuenchingResultEntity
{
///
/// 实绩编号(机组+工序点代码+年月日+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 quenchWay = "";
///
/// 流量
///
private decimal? traffic = null;
///
/// 时长
///
private decimal? lengthTime = null;
///
/// 淬火支数
///
private decimal? passNum = null;
///
/// 采集/录入时间
///
private string colTime = "";
///
/// 操作人
///
private string colUser = "";
///
/// 操作班次
///
private string colShift = "";
///
/// 操作班组
///
private string colGroup = "";
///
/// 操作时间
///
private string createTime = "";
///
/// 修改时间
///
private string updateTime = "";
///
/// 修改人
///
private string updateName = "";
///
/// 采集方式(0-接口采集,1-人工录入)
///
private string colMode = "";
///
/// 生产(年月日)
///
private string proYearMonthDay = "";
///
/// 结算日期(年月)
///
private string balYearMonth = "";
///
/// 热处理次数
///
private decimal? processSeq = null;
///
/// 废品支数
///
private decimal? failNum = null;
///
/// 废品重量
///
private decimal? failWt = null;
///
/// 作业支数(有效生产数量)
///
private decimal? proNum = null;
///
/// 作业重量
///
private decimal? proWt = 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 ZyBatchId
{
get { return zyBatchId; }
set { zyBatchId = value; }
}
///
/// 热处理生产批次号序号
///
[Description("热处理生产批次号序号")]
[Nullable(true)]
[DataLength(20)]
public string ProdIndex
{
get { return prodIndex; }
set { prodIndex = value; }
}
///
/// 热处理订单编号
///
[Description("热处理订单编号")]
[Nullable(true)]
[DataLength(20)]
public string ProPlanId
{
get { return proPlanId; }
set { proPlanId = value; }
}
///
/// 热处理订单排产序号
///
[Description("热处理订单排产序号")]
[Nullable(true)]
[DataLength(10)]
public string GxPlanNo
{
get { return gxPlanNo; }
set { gxPlanNo = value; }
}
///
/// 产线代码
///
[Description("产线代码")]
[Nullable(true)]
[DataLength(20)]
public string PlineCode
{
get { return plineCode; }
set { plineCode = value; }
}
///
/// 产线描述
///
[Description("产线描述")]
[Nullable(true)]
[DataLength(40)]
public string PlineName
{
get { return plineName; }
set { plineName = value; }
}
///
/// 淬火方式
///
[Description("淬火方式")]
[Nullable(true)]
[DataLength(20)]
public string QuenchWay
{
get { return quenchWay; }
set { quenchWay = value; }
}
///
/// 流量
///
[Description("流量")]
[Nullable(true)]
[DataLength(6)]
public decimal? Traffic
{
get { return traffic; }
set { traffic = value; }
}
///
/// 时长
///
[Description("时长")]
[Nullable(true)]
[DataLength(6)]
public decimal? LengthTime
{
get { return lengthTime; }
set { lengthTime = value; }
}
///
/// 淬火支数
///
[Description("支数")]
[Nullable(true)]
[DataLength(6)]
public decimal? PassNum
{
get { return passNum; }
set { passNum = value; }
}
///
/// 采集/录入时间
///
[Description("操作时间")]
[Nullable(true)]
public string ColTime
{
get { return colTime; }
set { colTime = value; }
}
///
/// 操作人
///
[Description("操作人")]
[Nullable(true)]
[DataLength(20)]
public string ColUser
{
get { return colUser; }
set { colUser = value; }
}
///
/// 操作班次
///
[Description("操作班次")]
[Nullable(true)]
[DataLength(1)]
public string ColShift
{
get { return colShift; }
set { colShift = value; }
}
///
/// 操作班组
///
[Description("操作班组")]
[Nullable(true)]
[DataLength(1)]
public string ColGroup
{
get { return colGroup; }
set { colGroup = value; }
}
///
/// 操作时间
///
[Description("操作时间")]
[Nullable(true)]
public string CreateTime
{
get { return createTime; }
set { createTime = value; }
}
///
/// 修改时间
///
[Description("修改时间")]
[Nullable(true)]
public string UpdateTime
{
get { return updateTime; }
set { updateTime = value; }
}
///
/// 修改人
///
[Description("修改人")]
[Nullable(true)]
[DataLength(20)]
public string UpdateName
{
get { return updateName; }
set { updateName = value; }
}
///
/// 采集方式(0-接口采集,1-人工录入)
///
[Description("采集方式(0-接口采集,1-人工录入)")]
[Nullable(true)]
[DataLength(1)]
public string ColMode
{
get { return colMode; }
set { colMode = 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(22)]
public decimal? ProcessSeq
{
get { return processSeq; }
set { processSeq = 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; }
}
public HttQuenchingResultEntity 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 HttQuenchingResultEntity;
}
}
}
}