MchCutResultEntity.cs 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  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. using Newtonsoft.Json;
  11. namespace com.steering.mes.mcp.entity
  12. {
  13. /// <summary>
  14. /// 数据库表MCH_CUT_RESULT所对应的实体类(生成工具:代码生成工具4.0 访问地址:http://172.16.2.128/tool/)
  15. /// 作者:tgcx-test 时间:2018-10-12
  16. /// </summary>
  17. [Serializable]
  18. public class MchCutResultEntity
  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 ifMonitorRcl = "";
  44. /// <summary>
  45. /// 监制编号
  46. /// </summary>
  47. private string prdcrNo = "";
  48. /// <summary>
  49. /// 监制人
  50. /// </summary>
  51. private string producer = "";
  52. /// <summary>
  53. /// 监制到场时间
  54. /// </summary>
  55. private string producerTime = "";
  56. /// <summary>
  57. /// 分切数
  58. /// </summary>
  59. private decimal? outnumCut = null;
  60. /// <summary>
  61. /// 作业支数
  62. /// </summary>
  63. private decimal? proNum = null;
  64. /// <summary>
  65. /// 作业重量
  66. /// </summary>
  67. private decimal? proWt = null;
  68. /// <summary>
  69. /// 废品支数
  70. /// </summary>
  71. private decimal? failNum = null;
  72. /// <summary>
  73. /// 废品重量
  74. /// </summary>
  75. private decimal? failWt = null;
  76. /// <summary>
  77. /// 生产(年月日)
  78. /// </summary>
  79. private string proYearMonthDay = "";
  80. /// <summary>
  81. /// 结算日期(年月)
  82. /// </summary>
  83. private string balYearMonth = "";
  84. /// <summary>
  85. /// 操作班次
  86. /// </summary>
  87. private string proShift = "";
  88. /// <summary>
  89. /// 操作班组
  90. /// </summary>
  91. private string proGroup = "";
  92. /// <summary>
  93. /// 创建时间
  94. /// </summary>
  95. private string createTime = "";
  96. /// <summary>
  97. /// 操作人
  98. /// </summary>
  99. private string proUser = "";
  100. /// <summary>
  101. /// 操作时间
  102. /// </summary>
  103. private string proTime = "";
  104. /// <summary>
  105. /// 判定炉号
  106. /// </summary>
  107. private string judgeStoveNo = "";
  108. /// <summary>
  109. /// 实绩编号(机组+工序点代码+年月日+6位流水)
  110. /// </summary>
  111. [Description("实绩编号")]
  112. [JsonProperty("resultNo")]
  113. public string ResultNo
  114. {
  115. get { return resultNo; }
  116. set { resultNo = value; }
  117. }
  118. /// <summary>
  119. /// 炉计划ID
  120. /// </summary>
  121. [Description("炉计划ID")]
  122. [JsonProperty("heatPlanNo")]
  123. public string HeatPlanNo
  124. {
  125. get { return heatPlanNo; }
  126. set { heatPlanNo = value; }
  127. }
  128. /// <summary>
  129. /// 批号
  130. /// </summary>
  131. [Description("批号")]
  132. [JsonProperty("batchNo")]
  133. public string BatchNo
  134. {
  135. get { return batchNo; }
  136. set { batchNo = value; }
  137. }
  138. /// <summary>
  139. /// 产线代码
  140. /// </summary>
  141. [Description("产线代码")]
  142. [JsonProperty("plineCode")]
  143. public string PlineCode
  144. {
  145. get { return plineCode; }
  146. set { plineCode = value; }
  147. }
  148. /// <summary>
  149. /// 产线描述
  150. /// </summary>
  151. [Description("产线描述")]
  152. [JsonProperty("plineName")]
  153. public string PlineName
  154. {
  155. get { return plineName; }
  156. set { plineName = value; }
  157. }
  158. /// <summary>
  159. /// 是否热处理监制
  160. /// </summary>
  161. [Description("是否热处理监制")]
  162. [JsonProperty("ifMonitorRcl")]
  163. public string IfMonitorRcl
  164. {
  165. get { return ifMonitorRcl; }
  166. set { ifMonitorRcl = value; }
  167. }
  168. /// <summary>
  169. /// 监制编号
  170. /// </summary>
  171. [Description("监制编号")]
  172. [JsonProperty("prdcrNo")]
  173. public string PrdcrNo
  174. {
  175. get { return prdcrNo; }
  176. set { prdcrNo = value; }
  177. }
  178. /// <summary>
  179. /// 监制人
  180. /// </summary>
  181. [Description("监制人")]
  182. [JsonProperty("producer")]
  183. public string Producer
  184. {
  185. get { return producer; }
  186. set { producer = value; }
  187. }
  188. /// <summary>
  189. /// 监制到场时间
  190. /// </summary>
  191. [Description("监制到场时间")]
  192. [JsonProperty("producerTime")]
  193. public string ProducerTime
  194. {
  195. get { return producerTime; }
  196. set { producerTime = value; }
  197. }
  198. /// <summary>
  199. /// 分切数
  200. /// </summary>
  201. [Description("分切数")]
  202. [JsonProperty("outnumCut")]
  203. public decimal? OutnumCut
  204. {
  205. get { return outnumCut; }
  206. set { outnumCut = value; }
  207. }
  208. /// <summary>
  209. /// 作业支数
  210. /// </summary>
  211. [Description("作业支数")]
  212. [JsonProperty("proNum")]
  213. public decimal? ProNum
  214. {
  215. get { return proNum; }
  216. set { proNum = value; }
  217. }
  218. /// <summary>
  219. /// 作业重量
  220. /// </summary>
  221. [Description("作业重量")]
  222. [JsonProperty("proWt")]
  223. public decimal? ProWt
  224. {
  225. get { return proWt; }
  226. set { proWt = value; }
  227. }
  228. /// <summary>
  229. /// 废品支数
  230. /// </summary>
  231. [Description("废品支数")]
  232. [JsonProperty("failNum")]
  233. public decimal? FailNum
  234. {
  235. get { return failNum; }
  236. set { failNum = value; }
  237. }
  238. /// <summary>
  239. /// 废品重量
  240. /// </summary>
  241. [Description("废品重量")]
  242. [JsonProperty("failWt")]
  243. public decimal? FailWt
  244. {
  245. get { return failWt; }
  246. set { failWt = value; }
  247. }
  248. /// <summary>
  249. /// 生产(年月日)
  250. /// </summary>
  251. [Description("生产(年月日)")]
  252. [JsonProperty("proYearMonthDay")]
  253. public string ProYearMonthDay
  254. {
  255. get { return proYearMonthDay; }
  256. set { proYearMonthDay = value; }
  257. }
  258. /// <summary>
  259. /// 结算日期(年月)
  260. /// </summary>
  261. [Description("结算日期(年月)")]
  262. [JsonProperty("balYearMonth")]
  263. public string BalYearMonth
  264. {
  265. get { return balYearMonth; }
  266. set { balYearMonth = value; }
  267. }
  268. /// <summary>
  269. /// 操作班次
  270. /// </summary>
  271. [Description("班次")]
  272. [JsonProperty("proShift")]
  273. public string ProShift
  274. {
  275. get { return proShift; }
  276. set { proShift = value; }
  277. }
  278. /// <summary>
  279. /// 操作班组
  280. /// </summary>
  281. [Description("班组")]
  282. [JsonProperty("proGroup")]
  283. public string ProGroup
  284. {
  285. get { return proGroup; }
  286. set { proGroup = value; }
  287. }
  288. /// <summary>
  289. /// 创建时间
  290. /// </summary>
  291. [Description("创建时间")]
  292. [JsonProperty("createTime")]
  293. public string CreateTime
  294. {
  295. get { return createTime; }
  296. set { createTime = value; }
  297. }
  298. /// <summary>
  299. /// 操作人
  300. /// </summary>
  301. [Description("操作人")]
  302. [JsonProperty("proUser")]
  303. public string ProUser
  304. {
  305. get { return proUser; }
  306. set { proUser = value; }
  307. }
  308. /// <summary>
  309. /// 操作时间
  310. /// </summary>
  311. [Description("操作时间")]
  312. [JsonProperty("proTime")]
  313. public string ProTime
  314. {
  315. get { return proTime; }
  316. set { proTime = value; }
  317. }
  318. /// <summary>
  319. /// 判定炉号
  320. /// </summary>
  321. [Description("判定炉号")]
  322. [JsonProperty("judgeStoveNo")]
  323. public string JudgeStoveNo
  324. {
  325. get { return judgeStoveNo; }
  326. set { judgeStoveNo = value; }
  327. }
  328. [Description("合同号")]
  329. public string OrderNo { get; set; }
  330. public MchCutResultEntity Clone()
  331. {
  332. using (var memStream = new MemoryStream())
  333. {
  334. var binaryFormatter = new BinaryFormatter(null,
  335. new StreamingContext(StreamingContextStates.Clone));
  336. binaryFormatter.Serialize(memStream, this);
  337. memStream.Seek(0, SeekOrigin.Begin);
  338. return binaryFormatter.Deserialize(memStream) as MchCutResultEntity;
  339. }
  340. }
  341. }
  342. }