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 Core.StlMes.Client.PlnSaleOrd.炼钢计划.entity
{
///
/// 数据库表CRAFT_LG2_TEMPERATURE所对应的实体类(生成工具:代码生成工具3.0)
/// 作者:PC-20160925CXYF 时间:2017-08-21
///
[Serializable]
public class CraftLg2TemperatureEntity
{
///
/// 温度工艺ID(TEP+工艺卡号+6位流水)
///
private string tepGid = "";
///
/// 工序点(EAF,LF,VD,RH,CCM) CCM=液相线温度
///
private string stationCode = "";
///
/// 连浇1 温度(下限值)
///
private string tepVal1Min = "";
///
/// 连浇1 温度(上限值)
///
private string tepVal1Max = "";
///
/// 连浇2 温度(下限值)
///
private string tepVal2Min = "";
///
/// 连浇2 温度(上限值)
///
private string tepVal2Max = "";
///
/// 目标温度(对应只有一个单一值的存储,CCM=液相线温度)
///
private string tepVal = "";
///
/// 温度工艺ID(TEP+工艺卡号+6位流水)
///
[Description("温度工艺ID")]
[Nullable(true)]
[DataLength(16)]
public string TepGid
{
get { return tepGid; }
set { tepGid = value; }
}
///
/// 工序点(EAF,LF,VD,RH,CCM) CCM=液相线温度
///
[Description("工序点")]
[Nullable(true)]
[DataLength(5)]
public string StationCode
{
get { return stationCode; }
set { stationCode = value; }
}
///
/// 连浇1 温度(下限值)
///
[Description("温度1下限值")]
[Nullable(true)]
[DataLength(8)]
public string TepVal1Min
{
get { return tepVal1Min; }
set { tepVal1Min = value; }
}
///
/// 连浇1 温度(上限值)
///
[Description("温度1上限值")]
[Nullable(true)]
[DataLength(8)]
public string TepVal1Max
{
get { return tepVal1Max; }
set { tepVal1Max = value; }
}
///
/// 连浇2 温度(下限值)
///
[Description("温度2下限值")]
[Nullable(true)]
[DataLength(8)]
public string TepVal2Min
{
get { return tepVal2Min; }
set { tepVal2Min = value; }
}
///
/// 连浇2 温度(上限值)
///
[Description("温度2上限值")]
[Nullable(true)]
[DataLength(8)]
public string TepVal2Max
{
get { return tepVal2Max; }
set { tepVal2Max = value; }
}
///
/// 目标温度(对应只有一个单一值的存储,CCM=液相线温度)
///
[Description("目标温度")]
[Nullable(true)]
[DataLength(8)]
public string TepVal
{
get { return tepVal; }
set { tepVal = value; }
}
///
/// 序号
///
private string xh = "";
[Description("序号")]
public string Xh
{
get { return xh; }
set { xh = value; }
}
public CraftLg2TemperatureEntity Clone()
{
using (MemoryStream ms = new MemoryStream(1000))
{
object CloneObject;
BinaryFormatter bf = new BinaryFormatter(null, new StreamingContext(StreamingContextStates.Clone));
bf.Serialize(ms, this);
ms.Seek(0, SeekOrigin.Begin);
// 反序列化至另一个对象(即创建了一个原对象的深表副本)
CloneObject = bf.Deserialize(ms);
// 关闭流
ms.Close();
return CloneObject as CraftLg2TemperatureEntity;
}
}
}
}