CraftLg2TemperatureEntity.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. using Core.Mes.Client.Comm.Attribute;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.IO;
  6. using System.Linq;
  7. using System.Runtime.Serialization;
  8. using System.Runtime.Serialization.Formatters.Binary;
  9. using System.Text;
  10. namespace Core.StlMes.Client.PlnSaleOrd.炼钢计划.entity
  11. {
  12. /// <summary>
  13. /// 数据库表CRAFT_LG2_TEMPERATURE所对应的实体类(生成工具:代码生成工具3.0)
  14. /// 作者:PC-20160925CXYF 时间:2017-08-21
  15. /// </summary>
  16. [Serializable]
  17. public class CraftLg2TemperatureEntity
  18. {
  19. /// <summary>
  20. /// 温度工艺ID(TEP+工艺卡号+6位流水)
  21. /// </summary>
  22. private string tepGid = "";
  23. /// <summary>
  24. /// 工序点(EAF,LF,VD,RH,CCM) CCM=液相线温度
  25. /// </summary>
  26. private string stationCode = "";
  27. /// <summary>
  28. /// 连浇1 温度(下限值)
  29. /// </summary>
  30. private string tepVal1Min = "";
  31. /// <summary>
  32. /// 连浇1 温度(上限值)
  33. /// </summary>
  34. private string tepVal1Max = "";
  35. /// <summary>
  36. /// 连浇2 温度(下限值)
  37. /// </summary>
  38. private string tepVal2Min = "";
  39. /// <summary>
  40. /// 连浇2 温度(上限值)
  41. /// </summary>
  42. private string tepVal2Max = "";
  43. /// <summary>
  44. /// 目标温度(对应只有一个单一值的存储,CCM=液相线温度)
  45. /// </summary>
  46. private string tepVal = "";
  47. /// <summary>
  48. /// 温度工艺ID(TEP+工艺卡号+6位流水)
  49. /// </summary>
  50. [Description("温度工艺ID")]
  51. [Nullable(true)]
  52. [DataLength(16)]
  53. public string TepGid
  54. {
  55. get { return tepGid; }
  56. set { tepGid = value; }
  57. }
  58. /// <summary>
  59. /// 工序点(EAF,LF,VD,RH,CCM) CCM=液相线温度
  60. /// </summary>
  61. [Description("工序点")]
  62. [Nullable(true)]
  63. [DataLength(5)]
  64. public string StationCode
  65. {
  66. get { return stationCode; }
  67. set { stationCode = value; }
  68. }
  69. /// <summary>
  70. /// 连浇1 温度(下限值)
  71. /// </summary>
  72. [Description("温度1下限值")]
  73. [Nullable(true)]
  74. [DataLength(8)]
  75. public string TepVal1Min
  76. {
  77. get { return tepVal1Min; }
  78. set { tepVal1Min = value; }
  79. }
  80. /// <summary>
  81. /// 连浇1 温度(上限值)
  82. /// </summary>
  83. [Description("温度1上限值")]
  84. [Nullable(true)]
  85. [DataLength(8)]
  86. public string TepVal1Max
  87. {
  88. get { return tepVal1Max; }
  89. set { tepVal1Max = value; }
  90. }
  91. /// <summary>
  92. /// 连浇2 温度(下限值)
  93. /// </summary>
  94. [Description("温度2下限值")]
  95. [Nullable(true)]
  96. [DataLength(8)]
  97. public string TepVal2Min
  98. {
  99. get { return tepVal2Min; }
  100. set { tepVal2Min = value; }
  101. }
  102. /// <summary>
  103. /// 连浇2 温度(上限值)
  104. /// </summary>
  105. [Description("温度2上限值")]
  106. [Nullable(true)]
  107. [DataLength(8)]
  108. public string TepVal2Max
  109. {
  110. get { return tepVal2Max; }
  111. set { tepVal2Max = value; }
  112. }
  113. /// <summary>
  114. /// 目标温度(对应只有一个单一值的存储,CCM=液相线温度)
  115. /// </summary>
  116. [Description("目标温度")]
  117. [Nullable(true)]
  118. [DataLength(8)]
  119. public string TepVal
  120. {
  121. get { return tepVal; }
  122. set { tepVal = value; }
  123. }
  124. /// <summary>
  125. /// 序号
  126. /// </summary>
  127. private string xh = "";
  128. [Description("序号")]
  129. public string Xh
  130. {
  131. get { return xh; }
  132. set { xh = value; }
  133. }
  134. public CraftLg2TemperatureEntity Clone()
  135. {
  136. using (MemoryStream ms = new MemoryStream(1000))
  137. {
  138. object CloneObject;
  139. BinaryFormatter bf = new BinaryFormatter(null, new StreamingContext(StreamingContextStates.Clone));
  140. bf.Serialize(ms, this);
  141. ms.Seek(0, SeekOrigin.Begin);
  142. // 反序列化至另一个对象(即创建了一个原对象的深表副本)
  143. CloneObject = bf.Deserialize(ms);
  144. // 关闭流
  145. ms.Close();
  146. return CloneObject as CraftLg2TemperatureEntity;
  147. }
  148. }
  149. }
  150. }