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.Treatment.Entity
{
[Serializable]
///
/// 数据库表HTT_ENTRUST_APPLYMEMO所对应的实体类(生成工具:代码生成工具3.0)
/// 作者:朱少波 时间:2019-03-28
///
public class HttEntrustApplymemoEntity
{
[Description("选择")]
public bool Chk { get; set; }
///
/// 项目代码
///
private string projectCode = "";
///
/// 项目名称
///
private string projectName = "";
///
/// 项目备注
///
private string projectMemo = "";
///
/// 优先级
///
private decimal? seq = null;
///
/// 项目代码
///
[Description("项目代码")]
[Nullable(false)]
[DataLength(20)]
public string ProjectCode
{
get { return projectCode; }
set { projectCode = value; }
}
///
/// 项目名称
///
[Description("项目名称")]
[Nullable(true)]
[DataLength(100)]
public string ProjectName
{
get { return projectName; }
set { projectName = value; }
}
///
/// 项目备注
///
[Description("项目备注")]
[Nullable(true)]
[DataLength(1000)]
public string ProjectMemo
{
get { return projectMemo; }
set { projectMemo = value; }
}
///
/// 优先级
///
[Description("顺序号")]
[Nullable(true)]
[DataLength(22)]
public decimal? Seq
{
get { return seq; }
set { seq = value; }
}
public HttEntrustApplymemoEntity 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 HttEntrustApplymemoEntity;
}
}
}
}