MchChamferingResultDEntity.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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 Newtonsoft.Json;
  10. namespace Core.StlMes.Client.Mcp.Control.Entity
  11. {
  12. [Serializable]
  13. /// <summary>
  14. /// 数据库表MCH_CHAMFERING_RESULT_D所对应的实体类(生成工具:代码生成工具4.0 访问地址:http://172.16.2.128/tool/)
  15. /// 作者:tgcx-test 时间:2018-11-20
  16. /// </summary>
  17. public class MchChamferingResultDEntity
  18. {
  19. [Description("选择")]
  20. public bool Chk { get; set; }
  21. /// <summary>
  22. /// 实绩编号
  23. /// </summary>
  24. private string resultNo = "";
  25. /// <summary>
  26. /// 检测序号
  27. /// </summary>
  28. private decimal? seq = null;
  29. /// <summary>
  30. /// 炉计划ID
  31. /// </summary>
  32. private string heatPlanNo = "";
  33. /// <summary>
  34. /// 产线代码
  35. /// </summary>
  36. private string plineCode = "";
  37. /// <summary>
  38. /// 产线描述
  39. /// </summary>
  40. private string plineName = "";
  41. /// <summary>
  42. /// 批号
  43. /// </summary>
  44. private string batchNo = "";
  45. /// <summary>
  46. /// 判定炉号
  47. /// </summary>
  48. private string judgeStoveNo = "";
  49. /// <summary>
  50. /// 坡口角度
  51. /// </summary>
  52. private string angleVal = "";
  53. /// <summary>
  54. /// 钝边
  55. /// </summary>
  56. private string edgeVal = "";
  57. /// <summary>
  58. /// 切斜值
  59. /// </summary>
  60. private string cutVal = "";
  61. /// <summary>
  62. /// 实绩编号
  63. /// </summary>
  64. [Description("实绩编号")]
  65. [JsonProperty("resultNo")]
  66. public string ResultNo
  67. {
  68. get { return resultNo; }
  69. set { resultNo = value; }
  70. }
  71. /// <summary>
  72. /// 检测序号
  73. /// </summary>
  74. [Description("检测序号")]
  75. [JsonProperty("seq")]
  76. public decimal? Seq
  77. {
  78. get { return seq; }
  79. set { seq = value; }
  80. }
  81. /// <summary>
  82. /// 炉计划ID
  83. /// </summary>
  84. [Description("炉计划ID")]
  85. [JsonProperty("heatPlanNo")]
  86. public string HeatPlanNo
  87. {
  88. get { return heatPlanNo; }
  89. set { heatPlanNo = value; }
  90. }
  91. /// <summary>
  92. /// 产线代码
  93. /// </summary>
  94. [Description("产线代码")]
  95. [JsonProperty("plineCode")]
  96. public string PlineCode
  97. {
  98. get { return plineCode; }
  99. set { plineCode = value; }
  100. }
  101. /// <summary>
  102. /// 产线描述
  103. /// </summary>
  104. [Description("产线描述")]
  105. [JsonProperty("plineName")]
  106. public string PlineName
  107. {
  108. get { return plineName; }
  109. set { plineName = value; }
  110. }
  111. /// <summary>
  112. /// 批号
  113. /// </summary>
  114. [Description("批号")]
  115. [JsonProperty("batchNo")]
  116. public string BatchNo
  117. {
  118. get { return batchNo; }
  119. set { batchNo = value; }
  120. }
  121. /// <summary>
  122. /// 判定炉号
  123. /// </summary>
  124. [Description("判定炉号")]
  125. [JsonProperty("judgeStoveNo")]
  126. public string JudgeStoveNo
  127. {
  128. get { return judgeStoveNo; }
  129. set { judgeStoveNo = value; }
  130. }
  131. /// <summary>
  132. /// 坡口角度
  133. /// </summary>
  134. [Description("坡口角度")]
  135. [JsonProperty("angleVal")]
  136. public string AngleVal
  137. {
  138. get { return angleVal; }
  139. set { angleVal = value; }
  140. }
  141. /// <summary>
  142. /// 钝边
  143. /// </summary>
  144. [Description("钝边")]
  145. [JsonProperty("edgeVal")]
  146. public string EdgeVal
  147. {
  148. get { return edgeVal; }
  149. set { edgeVal = value; }
  150. }
  151. /// <summary>
  152. /// 切斜值
  153. /// </summary>
  154. [Description("切斜值")]
  155. [JsonProperty("cutVal")]
  156. public string CutVal
  157. {
  158. get { return cutVal; }
  159. set { cutVal = value; }
  160. }
  161. public MchChamferingResultDEntity Clone()
  162. {
  163. using (var memStream = new MemoryStream())
  164. {
  165. var binaryFormatter = new BinaryFormatter(null,
  166. new StreamingContext(StreamingContextStates.Clone));
  167. binaryFormatter.Serialize(memStream, this);
  168. memStream.Seek(0, SeekOrigin.Begin);
  169. return binaryFormatter.Deserialize(memStream) as MchChamferingResultDEntity;
  170. }
  171. }
  172. }
  173. }