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