HttEntrustApplymemoEntity.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.IO;
  5. using System.Linq;
  6. using System.Runtime.Serialization;
  7. using System.Runtime.Serialization.Formatters.Binary;
  8. using System.Text;
  9. using Core.Mes.Client.Comm.Attribute;
  10. namespace Core.StlMes.Client.Mcp.Treatment.Entity
  11. {
  12. [Serializable]
  13. /// <summary>
  14. /// 数据库表HTT_ENTRUST_APPLYMEMO所对应的实体类(生成工具:代码生成工具3.0)
  15. /// 作者:朱少波 时间:2019-03-28
  16. /// </summary>
  17. public class HttEntrustApplymemoEntity
  18. {
  19. [Description("选择")]
  20. public bool Chk { get; set; }
  21. /// <summary>
  22. /// 项目代码
  23. /// </summary>
  24. private string projectCode = "";
  25. /// <summary>
  26. /// 项目名称
  27. /// </summary>
  28. private string projectName = "";
  29. /// <summary>
  30. /// 项目备注
  31. /// </summary>
  32. private string projectMemo = "";
  33. /// <summary>
  34. /// 优先级
  35. /// </summary>
  36. private decimal? seq = null;
  37. /// <summary>
  38. /// 项目代码
  39. /// </summary>
  40. [Description("项目代码")]
  41. [Nullable(false)]
  42. [DataLength(20)]
  43. public string ProjectCode
  44. {
  45. get { return projectCode; }
  46. set { projectCode = value; }
  47. }
  48. /// <summary>
  49. /// 项目名称
  50. /// </summary>
  51. [Description("项目名称")]
  52. [Nullable(true)]
  53. [DataLength(100)]
  54. public string ProjectName
  55. {
  56. get { return projectName; }
  57. set { projectName = value; }
  58. }
  59. /// <summary>
  60. /// 项目备注
  61. /// </summary>
  62. [Description("项目备注")]
  63. [Nullable(true)]
  64. [DataLength(1000)]
  65. public string ProjectMemo
  66. {
  67. get { return projectMemo; }
  68. set { projectMemo = value; }
  69. }
  70. /// <summary>
  71. /// 优先级
  72. /// </summary>
  73. [Description("顺序号")]
  74. [Nullable(true)]
  75. [DataLength(22)]
  76. public decimal? Seq
  77. {
  78. get { return seq; }
  79. set { seq = value; }
  80. }
  81. public HttEntrustApplymemoEntity Clone()
  82. {
  83. using (var memStream = new MemoryStream())
  84. {
  85. var binaryFormatter = new BinaryFormatter(null,
  86. new StreamingContext(StreamingContextStates.Clone));
  87. binaryFormatter.Serialize(memStream, this);
  88. memStream.Seek(0, SeekOrigin.Begin);
  89. return binaryFormatter.Deserialize(memStream) as HttEntrustApplymemoEntity;
  90. }
  91. }
  92. }
  93. }