MchTwistinglyResultDEntity.cs 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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. using Newtonsoft.Json;
  11. namespace Core.StlMes.Client.Mcp.Control.Entity
  12. {
  13. [Serializable]
  14. /// <summary>
  15. /// 数据库表MCH_TWISTINGLY_RESULT_D所对应的实体类(生成工具:代码生成工具4.0 访问地址:http://172.16.2.128/tool/)
  16. /// 作者:tgcx-test 时间:2018-11-19
  17. /// </summary>
  18. public class MchTwistinglyResultDEntity
  19. {
  20. [Description("选择")]
  21. public bool Chk { get; set; }
  22. /// <summary>
  23. /// 实绩编号
  24. /// </summary>
  25. private string resultNo = "";
  26. /// <summary>
  27. /// 序号
  28. /// </summary>
  29. private decimal? seq = null;
  30. /// <summary>
  31. /// 接箍炉号
  32. /// </summary>
  33. private string couplingStoveNo = "";
  34. /// <summary>
  35. /// 接箍批号
  36. /// </summary>
  37. private string lotNo = "";
  38. /// <summary>
  39. /// 接箍个数
  40. /// </summary>
  41. private decimal? couplingNum = null;
  42. /// <summary>
  43. /// 炉计划ID
  44. /// </summary>
  45. private string heatPlanNo = "";
  46. /// <summary>
  47. /// 产线代码
  48. /// </summary>
  49. private string plineCode = "";
  50. /// <summary>
  51. /// 产线描述
  52. /// </summary>
  53. private string plineName = "";
  54. /// <summary>
  55. /// 批号
  56. /// </summary>
  57. private string batchNo = "";
  58. /// <summary>
  59. /// 判定炉号
  60. /// </summary>
  61. private string judgeStoveNo = "";
  62. /// <summary>
  63. /// 交易单号
  64. /// </summary>
  65. [Description("接箍领用出库单号")]
  66. [Nullable(true)]
  67. [DataLength(40)]
  68. public string DealOrde
  69. {
  70. get { return dealOrde; }
  71. set { dealOrde = value; }
  72. }
  73. /// <summary>
  74. /// 工单号
  75. /// </summary>
  76. [Description("工单号")]
  77. [Nullable(true)]
  78. [DataLength(40)]
  79. public string WoId
  80. {
  81. get { return woId; }
  82. set { woId = value; }
  83. }
  84. /// <summary>
  85. /// 实绩编号
  86. /// </summary>
  87. [Description("实绩编号")]
  88. [JsonProperty("resultNo")]
  89. public string ResultNo
  90. {
  91. get { return resultNo; }
  92. set { resultNo = value; }
  93. }
  94. /// <summary>
  95. /// 序号
  96. /// </summary>
  97. [Description("序号")]
  98. [JsonProperty("seq")]
  99. public decimal? Seq
  100. {
  101. get { return seq; }
  102. set { seq = value; }
  103. }
  104. /// <summary>
  105. /// 接箍炉号
  106. /// </summary>
  107. [Description("接箍炉号")]
  108. [JsonProperty("couplingStoveNo")]
  109. public string CouplingStoveNo
  110. {
  111. get { return couplingStoveNo; }
  112. set { couplingStoveNo = value; }
  113. }
  114. /// <summary>
  115. /// 接箍批号
  116. /// </summary>
  117. [Description("接箍批号")]
  118. [JsonProperty("lotNo")]
  119. public string LotNo
  120. {
  121. get { return lotNo; }
  122. set { lotNo = value; }
  123. }
  124. /// <summary>
  125. /// 接箍个数
  126. /// </summary>
  127. [Description("接箍个数")]
  128. [JsonProperty("couplingNum")]
  129. public decimal? CouplingNum
  130. {
  131. get { return couplingNum; }
  132. set { couplingNum = value; }
  133. }
  134. /// <summary>
  135. /// 炉计划ID
  136. /// </summary>
  137. [Description("炉计划ID")]
  138. [JsonProperty("heatPlanNo")]
  139. public string HeatPlanNo
  140. {
  141. get { return heatPlanNo; }
  142. set { heatPlanNo = value; }
  143. }
  144. /// <summary>
  145. /// 产线代码
  146. /// </summary>
  147. [Description("产线代码")]
  148. [JsonProperty("plineCode")]
  149. public string PlineCode
  150. {
  151. get { return plineCode; }
  152. set { plineCode = value; }
  153. }
  154. /// <summary>
  155. /// 产线描述
  156. /// </summary>
  157. [Description("产线描述")]
  158. [JsonProperty("plineName")]
  159. public string PlineName
  160. {
  161. get { return plineName; }
  162. set { plineName = value; }
  163. }
  164. /// <summary>
  165. /// 批号
  166. /// </summary>
  167. [Description("批号")]
  168. [JsonProperty("batchNo")]
  169. public string BatchNo
  170. {
  171. get { return batchNo; }
  172. set { batchNo = value; }
  173. }
  174. /// <summary>
  175. /// 判定炉号
  176. /// </summary>
  177. [Description("判定炉号")]
  178. [JsonProperty("judgeStoveNo")]
  179. public string JudgeStoveNo
  180. {
  181. get { return judgeStoveNo; }
  182. set { judgeStoveNo = value; }
  183. }
  184. /// <summary>
  185. /// 接箍重量
  186. /// </summary>
  187. private decimal? couplingWt = null;
  188. /// <summary>
  189. /// 交易单号
  190. /// </summary>
  191. private string dealOrde = "";
  192. /// <summary>
  193. /// 工单号
  194. /// </summary>
  195. private string woId = "";
  196. /// <summary>
  197. /// 接箍废品个数
  198. /// </summary>
  199. private decimal? couplingFailNum = null;
  200. /// <summary>
  201. /// 接箍废品重量
  202. /// </summary>
  203. private decimal? couplingFailWt = null;
  204. /// <summary>
  205. /// 接箍重量
  206. /// </summary>
  207. [Description("接箍重量")]
  208. [Nullable(true)]
  209. [DataLength(8)]
  210. public decimal? CouplingWt
  211. {
  212. get { return couplingWt; }
  213. set { couplingWt = value; }
  214. }
  215. /// <summary>
  216. /// 接箍废品个数
  217. /// </summary>
  218. [Description("接箍废品个数")]
  219. [Nullable(true)]
  220. [DataLength(6)]
  221. public decimal? CouplingFailNum
  222. {
  223. get { return couplingFailNum; }
  224. set { couplingFailNum = value; }
  225. }
  226. /// <summary>
  227. /// 接箍废品重量
  228. /// </summary>
  229. [Description("接箍废品重量")]
  230. [Nullable(true)]
  231. [DataLength(6)]
  232. public decimal? CouplingFailWt
  233. {
  234. get { return couplingFailWt; }
  235. set { couplingFailWt = value; }
  236. }
  237. public MchTwistinglyResultDEntity Clone()
  238. {
  239. using (var memStream = new MemoryStream())
  240. {
  241. var binaryFormatter = new BinaryFormatter(null,
  242. new StreamingContext(StreamingContextStates.Clone));
  243. binaryFormatter.Serialize(memStream, this);
  244. memStream.Seek(0, SeekOrigin.Begin);
  245. return binaryFormatter.Deserialize(memStream) as MchTwistinglyResultDEntity;
  246. }
  247. }
  248. }
  249. }