HttWasteResultEntity.cs 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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 Core.Mes.Client.Comm.Attribute;
  9. using Core.Mes.Client.Comm.Tool;
  10. using Newtonsoft.Json;
  11. namespace Core.StlMes.Client.Mcp.Control.Entity
  12. {
  13. [Serializable]
  14. /// <summary>
  15. /// 数据库表HTT_WASTE_RESULT所对应的实体类(生成工具:代码生成工具3.0)
  16. /// 作者:lenovo-PC 时间:2018-06-04
  17. /// </summary>
  18. public class HttWasteResultEntity
  19. {
  20. /// <summary>
  21. /// 缺陷项单号
  22. /// </summary>
  23. private string defSerialItem = "";
  24. /// <summary>
  25. /// 缺陷项序号
  26. /// </summary>
  27. private string defSerialNo = "";
  28. /// <summary>
  29. /// 炉批计划ID
  30. /// </summary>
  31. private string heatPlanNo = "";
  32. /// <summary>
  33. /// 无注释
  34. /// </summary>
  35. private string defFillNo = "";
  36. /// <summary>
  37. /// 缺陷项名称
  38. /// </summary>
  39. private string defFillCode = "";
  40. /// <summary>
  41. /// 缺陷项名称
  42. /// </summary>
  43. private string defFillName = "";
  44. /// <summary>
  45. /// 缺陷支数
  46. /// </summary>
  47. private decimal? defFillNum = null;
  48. /// <summary>
  49. /// 缺陷时间
  50. /// </summary>
  51. private string creTime = "";
  52. /// <summary>
  53. /// 实绩编号(机组+工序点代码+年月日+6位流水)
  54. /// </summary>
  55. private string resultNo = "";
  56. /// <summary>
  57. /// 产线代码
  58. /// </summary>
  59. private string plineCode = "";
  60. /// <summary>
  61. /// 产线描述
  62. /// </summary>
  63. private string plineName = "";
  64. /// <summary>
  65. /// 缺陷重量
  66. /// </summary>
  67. private decimal? defFillWt = null;
  68. /// <summary>
  69. /// 缺陷重量
  70. /// </summary>
  71. private string batchNo = null;
  72. /// <summary>
  73. ///
  74. /// </summary>
  75. [Description("选择")]
  76. [Nullable(false)]
  77. [DataLength(30)]
  78. public bool Chk { get; set; }
  79. /// <summary>
  80. /// 缺陷项单号
  81. /// </summary>
  82. [Description("缺陷项单号")]
  83. [Nullable(false)]
  84. [DataLength(30)]
  85. public string DefSerialItem
  86. {
  87. get { return defSerialItem; }
  88. set { defSerialItem = value; }
  89. }
  90. /// <summary>
  91. /// 缺陷项序号
  92. /// </summary>
  93. [Description("缺陷项序号")]
  94. [Nullable(false)]
  95. [DataLength(30)]
  96. public string DefSerialNo
  97. {
  98. get { return defSerialNo; }
  99. set { defSerialNo = value; }
  100. }
  101. /// <summary>
  102. /// 炉批计划ID
  103. /// </summary>
  104. [Description("炉批计划ID")]
  105. [Nullable(true)]
  106. [DataLength(30)]
  107. public string HeatPlanNo
  108. {
  109. get { return heatPlanNo; }
  110. set { heatPlanNo = value; }
  111. }
  112. /// <summary>
  113. /// 无注释
  114. /// </summary>
  115. [Description("")]
  116. [Nullable(true)]
  117. [DataLength(30)]
  118. public string DefFillNo
  119. {
  120. get { return defFillNo; }
  121. set { defFillNo = value; }
  122. }
  123. /// <summary>
  124. /// 缺陷项名称
  125. /// </summary>
  126. [Description("原因")]
  127. [Nullable(true)]
  128. [DataLength(30)]
  129. public string DefFillCode
  130. {
  131. get { return defFillCode; }
  132. set { defFillCode = value; }
  133. }
  134. /// <summary>
  135. /// 缺陷项名称
  136. /// </summary>
  137. [Description("缺陷项名称")]
  138. [Nullable(true)]
  139. [DataLength(30)]
  140. public string DefFillName
  141. {
  142. get { return defFillName; }
  143. set { defFillName = value; }
  144. }
  145. /// <summary>
  146. /// 缺陷支数
  147. /// </summary>
  148. [Description("支数")]
  149. [Nullable(true)]
  150. [DataLength(6)]
  151. public decimal? DefFillNum
  152. {
  153. get { return defFillNum; }
  154. set { defFillNum = value; }
  155. }
  156. /// <summary>
  157. /// 缺陷时间
  158. /// </summary>
  159. [Description("缺陷时间")]
  160. [Nullable(true)]
  161. public string CreTime
  162. {
  163. get { return creTime; }
  164. set { creTime = value; }
  165. }
  166. /// <summary>
  167. /// 实绩编号(机组+工序点代码+年月日+6位流水)
  168. /// </summary>
  169. [Description("实绩编号(机组+工序点代码+年月日+6位流水)")]
  170. [Nullable(true)]
  171. [DataLength(24)]
  172. public string ResultNo
  173. {
  174. get { return resultNo; }
  175. set { resultNo = value; }
  176. }
  177. /// <summary>
  178. /// 产线代码
  179. /// </summary>
  180. [Description("产线代码")]
  181. [Nullable(true)]
  182. [DataLength(30)]
  183. public string PlineCode
  184. {
  185. get { return plineCode; }
  186. set { plineCode = value; }
  187. }
  188. /// <summary>
  189. /// 产线描述
  190. /// </summary>
  191. [Description("产线描述")]
  192. [Nullable(true)]
  193. [DataLength(100)]
  194. public string PlineName
  195. {
  196. get { return plineName; }
  197. set { plineName = value; }
  198. }
  199. /// <summary>
  200. /// 缺陷重量
  201. /// </summary>
  202. [Description("缺陷重量")]
  203. [Nullable(true)]
  204. [DataLength(8)]
  205. public decimal? DefFillWt
  206. {
  207. get { return defFillWt; }
  208. set { defFillWt = value; }
  209. }
  210. /// <summary>
  211. /// 废品总米长
  212. /// </summary>
  213. private decimal? totalLen = null;
  214. /// <summary>
  215. /// 废品总米长
  216. /// </summary>
  217. [Description("废品总米长")]
  218. [JsonProperty("totalLen")]
  219. public decimal? TotalLen
  220. {
  221. get { return totalLen; }
  222. set { totalLen = value; }
  223. }
  224. /// <summary>
  225. /// 批号
  226. /// </summary>
  227. [Description("批号")]
  228. [Nullable(true)]
  229. [DataLength(8)]
  230. public string BatchNo
  231. {
  232. get { return batchNo; }
  233. set { batchNo = value; }
  234. }
  235. protected string matNo = "";
  236. /// <summary>
  237. /// 批号
  238. /// </summary>
  239. [Description("材料号")]
  240. [Nullable(true)]
  241. [DataLength(8)]
  242. public string MatNo
  243. {
  244. get { return matNo; }
  245. set { matNo = value; }
  246. }
  247. public HttWasteResultEntity Clone()
  248. {
  249. using (var memStream = new MemoryStream())
  250. {
  251. var binaryFormatter = new BinaryFormatter(null,
  252. new StreamingContext(StreamingContextStates.Clone));
  253. binaryFormatter.Serialize(memStream, this);
  254. memStream.Seek(0, SeekOrigin.Begin);
  255. return binaryFormatter.Deserialize(memStream) as HttWasteResultEntity;
  256. }
  257. }
  258. }
  259. }