MchRemanenceResultEntity.cs 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  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 com.steering.mes.mcp.entity;
  10. using Core.Mes.Client.Comm.Attribute;
  11. namespace Core.StlMes.Client.Mcp.Control.Entity
  12. {
  13. /// <summary>
  14. /// 数据库表MCH_REMANENCE_RESULT所对应的实体类(生成工具:代码生成工具3.0)
  15. /// 作者:朱少波 时间:2021-04-19
  16. /// </summary>
  17. [Serializable]
  18. public class MchRemanenceResultEntity
  19. {
  20. /// <summary>
  21. /// 实绩编号(机组+工序点代码+年月日+6位流水)
  22. /// </summary>
  23. private string resultNo = "";
  24. /// <summary>
  25. /// 炉计划ID
  26. /// </summary>
  27. private string heatPlanNo = "";
  28. /// <summary>
  29. /// 批号
  30. /// </summary>
  31. private string batchNo = "";
  32. /// <summary>
  33. /// 产线代码
  34. /// </summary>
  35. private string plineCode = "";
  36. /// <summary>
  37. /// 产线描述
  38. /// </summary>
  39. private string plineName = "";
  40. /// <summary>
  41. /// 操作人
  42. /// </summary>
  43. private string proUser = "";
  44. /// <summary>
  45. /// 作业支数
  46. /// </summary>
  47. private decimal? proNum = null;
  48. /// <summary>
  49. /// 作业重量
  50. /// </summary>
  51. private decimal? proWt = null;
  52. /// <summary>
  53. /// 生产(年月日)
  54. /// </summary>
  55. private string proYearMonthDay = "";
  56. /// <summary>
  57. /// 结算日期(年月)
  58. /// </summary>
  59. private string balYearMonth = "";
  60. /// <summary>
  61. /// 操作班次
  62. /// </summary>
  63. private string proShift = "";
  64. /// <summary>
  65. /// 操作班组
  66. /// </summary>
  67. private string proGroup = "";
  68. /// <summary>
  69. /// 创建时间
  70. /// </summary>
  71. private string createTime = "";
  72. /// <summary>
  73. /// 操作时间
  74. /// </summary>
  75. private string proTime = "";
  76. /// <summary>
  77. /// 判定炉号
  78. /// </summary>
  79. private string judgeStoveNo = "";
  80. /// <summary>
  81. /// 备注
  82. /// </summary>
  83. private string memo = "";
  84. /// <summary>
  85. /// 责任人
  86. /// </summary>
  87. private string responsible = "";
  88. /// <summary>
  89. /// 报告地址
  90. /// </summary>
  91. private string reportPath = "";
  92. /// <summary>
  93. /// 检测记录
  94. /// </summary>
  95. private decimal? testRecord = null;
  96. /// <summary>
  97. /// 单点最大(GS)
  98. /// </summary>
  99. private decimal? pointMax = null;
  100. /// <summary>
  101. /// 平均最大(GS)
  102. /// </summary>
  103. private decimal? averageMax = null;
  104. /// <summary>
  105. /// 实绩编号(机组+工序点代码+年月日+6位流水)
  106. /// </summary>
  107. [Description("实绩编号")]
  108. [Nullable(false)]
  109. [DataLength(24)]
  110. public string ResultNo
  111. {
  112. get { return resultNo; }
  113. set { resultNo = value; }
  114. }
  115. /// <summary>
  116. /// 炉计划ID
  117. /// </summary>
  118. [Description("炉计划ID")]
  119. [Nullable(true)]
  120. [DataLength(20)]
  121. public string HeatPlanNo
  122. {
  123. get { return heatPlanNo; }
  124. set { heatPlanNo = value; }
  125. }
  126. /// <summary>
  127. /// 批号
  128. /// </summary>
  129. [Description("批号")]
  130. [Nullable(true)]
  131. [DataLength(20)]
  132. public string BatchNo
  133. {
  134. get { return batchNo; }
  135. set { batchNo = value; }
  136. }
  137. /// <summary>
  138. /// 产线代码
  139. /// </summary>
  140. [Description("产线代码")]
  141. [Nullable(true)]
  142. [DataLength(20)]
  143. public string PlineCode
  144. {
  145. get { return plineCode; }
  146. set { plineCode = value; }
  147. }
  148. /// <summary>
  149. /// 产线描述
  150. /// </summary>
  151. [Description("产线描述")]
  152. [Nullable(true)]
  153. [DataLength(100)]
  154. public string PlineName
  155. {
  156. get { return plineName; }
  157. set { plineName = value; }
  158. }
  159. /// <summary>
  160. /// 操作人
  161. /// </summary>
  162. [Description("操作人")]
  163. [Nullable(true)]
  164. [DataLength(20)]
  165. public string ProUser
  166. {
  167. get { return proUser; }
  168. set { proUser = value; }
  169. }
  170. /// <summary>
  171. /// 作业支数
  172. /// </summary>
  173. [Description("作业支数")]
  174. [Nullable(true)]
  175. [DataLength(6)]
  176. public decimal? ProNum
  177. {
  178. get { return proNum; }
  179. set { proNum = value; }
  180. }
  181. /// <summary>
  182. /// 作业重量
  183. /// </summary>
  184. [Description("作业重量")]
  185. [Nullable(true)]
  186. [DataLength(8)]
  187. public decimal? ProWt
  188. {
  189. get { return proWt; }
  190. set { proWt = value; }
  191. }
  192. /// <summary>
  193. /// 生产(年月日)
  194. /// </summary>
  195. [Description("生产(年月日)")]
  196. [Nullable(true)]
  197. [DataLength(8)]
  198. public string ProYearMonthDay
  199. {
  200. get { return proYearMonthDay; }
  201. set { proYearMonthDay = value; }
  202. }
  203. /// <summary>
  204. /// 结算日期(年月)
  205. /// </summary>
  206. [Description("结算日期(年月)")]
  207. [Nullable(true)]
  208. [DataLength(6)]
  209. public string BalYearMonth
  210. {
  211. get { return balYearMonth; }
  212. set { balYearMonth = value; }
  213. }
  214. /// <summary>
  215. /// 操作班次
  216. /// </summary>
  217. [Description("操作班次")]
  218. [Nullable(true)]
  219. [DataLength(1)]
  220. public string ProShift
  221. {
  222. get { return proShift; }
  223. set { proShift = value; }
  224. }
  225. /// <summary>
  226. /// 操作班组
  227. /// </summary>
  228. [Description("操作班组")]
  229. [Nullable(true)]
  230. [DataLength(1)]
  231. public string ProGroup
  232. {
  233. get { return proGroup; }
  234. set { proGroup = value; }
  235. }
  236. /// <summary>
  237. /// 创建时间
  238. /// </summary>
  239. [Description("创建时间")]
  240. [Nullable(true)]
  241. public string CreateTime
  242. {
  243. get { return createTime; }
  244. set { createTime = value; }
  245. }
  246. /// <summary>
  247. /// 操作时间
  248. /// </summary>
  249. [Description("操作时间")]
  250. [Nullable(true)]
  251. public string ProTime
  252. {
  253. get { return proTime; }
  254. set { proTime = value; }
  255. }
  256. /// <summary>
  257. /// 判定炉号
  258. /// </summary>
  259. [Description("判定炉号")]
  260. [Nullable(true)]
  261. [DataLength(20)]
  262. public string JudgeStoveNo
  263. {
  264. get { return judgeStoveNo; }
  265. set { judgeStoveNo = value; }
  266. }
  267. /// <summary>
  268. /// 备注
  269. /// </summary>
  270. [Description("备注")]
  271. [Nullable(true)]
  272. [DataLength(400)]
  273. public string Memo
  274. {
  275. get { return memo; }
  276. set { memo = value; }
  277. }
  278. /// <summary>
  279. /// 责任人
  280. /// </summary>
  281. [Description("责任人")]
  282. [Nullable(true)]
  283. [DataLength(20)]
  284. public string Responsible
  285. {
  286. get { return responsible; }
  287. set { responsible = value; }
  288. }
  289. /// <summary>
  290. /// 报告地址
  291. /// </summary>
  292. [Description("报告地址")]
  293. [Nullable(true)]
  294. [DataLength(200)]
  295. public string ReportPath
  296. {
  297. get { return reportPath; }
  298. set { reportPath = value; }
  299. }
  300. /// <summary>
  301. /// 检测记录
  302. /// </summary>
  303. [Description("检测记录")]
  304. [Nullable(true)]
  305. [DataLength(6)]
  306. public decimal? TestRecord
  307. {
  308. get { return testRecord; }
  309. set { testRecord = value; }
  310. }
  311. /// <summary>
  312. /// 单点最大(GS)
  313. /// </summary>
  314. [Description("单点最大(GS)")]
  315. [Nullable(true)]
  316. [DataLength(22)]
  317. public decimal? PointMax
  318. {
  319. get { return pointMax; }
  320. set { pointMax = value; }
  321. }
  322. /// <summary>
  323. /// 平均最大(GS)
  324. /// </summary>
  325. [Description("平均最大(GS)")]
  326. [Nullable(true)]
  327. [DataLength(22)]
  328. public decimal? AverageMax
  329. {
  330. get { return averageMax; }
  331. set { averageMax = value; }
  332. }
  333. public MchRemanenceResultEntity Clone()
  334. {
  335. using (var memStream = new MemoryStream())
  336. {
  337. var binaryFormatter = new BinaryFormatter(null,
  338. new StreamingContext(StreamingContextStates.Clone));
  339. binaryFormatter.Serialize(memStream, this);
  340. memStream.Seek(0, SeekOrigin.Begin);
  341. return binaryFormatter.Deserialize(memStream) as MchRemanenceResultEntity;
  342. }
  343. }
  344. }
  345. }