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;
namespace Core.StlMes.Client.Mcp.Control.Entity
{
[Serializable]
///
/// 数据库表MCH_REMANENCE_RESULT_D所对应的实体类(生成工具:代码生成工具3.0)
/// 作者:朱少波 时间:2021-04-19
///
public class MchRemanenceResultDEntity
{
[Description("选择")]
public bool chk { get; set; }
///
/// 实绩编号
///
private string resultNo = "";
///
/// 炉计划ID
///
private string heatPlanNo = "";
///
/// 批号
///
private string batchNo = "";
///
/// 产线代码
///
private string plineCode = "";
///
/// 产线描述
///
private string plineName = "";
///
/// 判定炉号
///
private string judgeStoveNo = "";
///
/// 检测序号
///
private decimal? seq = null;
///
/// 测量时间
///
private string measurement = "";
///
/// 管号
///
private string matNo = "";
///
/// A端0°值
///
private string measurementValueA0 = "";
///
/// A端90°值
///
private string measurementValueA90 = "";
///
/// A端180°值
///
private string measurementValueA180 = "";
///
/// A端270°值
///
private string measurementValueA270 = "";
///
/// A端平均值
///
private string measurementValueAavg = "";
///
/// B端0°值
///
private string measurementValueB0 = "";
///
/// B端90°值
///
private string measurementValueB90 = "";
///
/// B端180°值
///
private string measurementValueB180 = "";
///
/// B端270°值
///
private string measurementValueB270 = "";
///
/// B端平均值
///
private string measurementValueBavg = "";
///
/// 实绩编号
///
[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 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 JudgeStoveNo
{
get { return judgeStoveNo; }
set { judgeStoveNo = value; }
}
///
/// 检测序号
///
[Description("检测序号")]
[Nullable(false)]
[DataLength(6)]
public decimal? Seq
{
get { return seq; }
set { seq = value; }
}
///
/// 测量时间
///
[Description("测量时间")]
[Nullable(true)]
public string Measurement
{
get { return measurement; }
set { measurement = value; }
}
///
/// 管号
///
[Description("管号")]
[Nullable(true)]
[DataLength(20)]
public string MatNo
{
get { return matNo; }
set { matNo = value; }
}
///
/// A端0°值
///
[Description("0°值")]
[Nullable(true)]
[DataLength(20)]
public string MeasurementValueA0
{
get { return measurementValueA0; }
set { measurementValueA0 = value; }
}
///
/// A端90°值
///
[Description("90°值")]
[Nullable(true)]
[DataLength(20)]
public string MeasurementValueA90
{
get { return measurementValueA90; }
set { measurementValueA90 = value; }
}
///
/// A端180°值
///
[Description("180°值")]
[Nullable(true)]
[DataLength(20)]
public string MeasurementValueA180
{
get { return measurementValueA180; }
set { measurementValueA180 = value; }
}
///
/// A端270°值
///
[Description("270°值")]
[Nullable(true)]
[DataLength(20)]
public string MeasurementValueA270
{
get { return measurementValueA270; }
set { measurementValueA270 = value; }
}
///
/// A端平均值
///
[Description("平均值")]
[Nullable(true)]
[DataLength(20)]
public string MeasurementValueAavg
{
get { return measurementValueAavg; }
set { measurementValueAavg = value; }
}
///
/// B端0°值
///
[Description("0°值")]
[Nullable(true)]
[DataLength(20)]
public string MeasurementValueB0
{
get { return measurementValueB0; }
set { measurementValueB0 = value; }
}
///
/// B端90°值
///
[Description("90°值")]
[Nullable(true)]
[DataLength(20)]
public string MeasurementValueB90
{
get { return measurementValueB90; }
set { measurementValueB90 = value; }
}
///
/// B端180°值
///
[Description("180°值")]
[Nullable(true)]
[DataLength(20)]
public string MeasurementValueB180
{
get { return measurementValueB180; }
set { measurementValueB180 = value; }
}
///
/// B端270°值
///
[Description("270°值")]
[Nullable(true)]
[DataLength(20)]
public string MeasurementValueB270
{
get { return measurementValueB270; }
set { measurementValueB270 = value; }
}
///
/// B端平均值
///
[Description("平均值")]
[Nullable(true)]
[DataLength(20)]
public string MeasurementValueBavg
{
get { return measurementValueBavg; }
set { measurementValueBavg = value; }
}
public MchRemanenceResultDEntity 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 MchRemanenceResultDEntity;
}
}
}
}