MchBundlingResultEntity.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  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_BUNDLING_RESULT所对应的实体类(生成工具:代码生成工具4.0 访问地址:http://172.16.2.128/tool/)
  16. /// 作者:tgcx-test 时间:2018-11-06
  17. /// </summary>
  18. public class MchBundlingResultEntity
  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? bundlingNum = 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. /// 备注
  110. /// </summary>
  111. private string memo = "";
  112. /// <summary>
  113. /// 打捆类型
  114. /// </summary>
  115. private string bundingTypeCode = "";
  116. /// <summary>
  117. /// 打捆类型
  118. /// </summary>
  119. private string bundingTypeName = "";
  120. /// <summary>
  121. /// 每捆个数
  122. /// </summary>
  123. private decimal? bundingPerNum = null;
  124. /// <summary>
  125. /// 是否包含短尺 0-否 1-是
  126. /// </summary>
  127. private string includeShort = "";
  128. /// <summary>
  129. /// 实绩编号(机组+工序点代码+年月日+6位流水)
  130. /// </summary>
  131. [Description("实绩编号")]
  132. [Nullable(false)]
  133. [DataLength(24)]
  134. public string ResultNo
  135. {
  136. get { return resultNo; }
  137. set { resultNo = value; }
  138. }
  139. /// <summary>
  140. /// 炉计划ID
  141. /// </summary>
  142. [Description("炉计划ID")]
  143. [Nullable(true)]
  144. [DataLength(20)]
  145. public string HeatPlanNo
  146. {
  147. get { return heatPlanNo; }
  148. set { heatPlanNo = value; }
  149. }
  150. /// <summary>
  151. /// 批号
  152. /// </summary>
  153. [Description("批号")]
  154. [Nullable(true)]
  155. [DataLength(8)]
  156. public string BatchNo
  157. {
  158. get { return batchNo; }
  159. set { batchNo = value; }
  160. }
  161. /// <summary>
  162. /// 产线代码
  163. /// </summary>
  164. [Description("产线代码")]
  165. [Nullable(true)]
  166. [DataLength(20)]
  167. public string PlineCode
  168. {
  169. get { return plineCode; }
  170. set { plineCode = value; }
  171. }
  172. /// <summary>
  173. /// 产线描述
  174. /// </summary>
  175. [Description("产线描述")]
  176. [Nullable(true)]
  177. [DataLength(100)]
  178. public string PlineName
  179. {
  180. get { return plineName; }
  181. set { plineName = value; }
  182. }
  183. /// <summary>
  184. /// 是否热处理监制
  185. /// </summary>
  186. [Description("是否热处理监制")]
  187. [Nullable(true)]
  188. [DataLength(1)]
  189. public string IfMonitorRcl
  190. {
  191. get { return ifMonitorRcl; }
  192. set { ifMonitorRcl = value; }
  193. }
  194. /// <summary>
  195. /// 监制编号
  196. /// </summary>
  197. [Description("监制编号")]
  198. [Nullable(true)]
  199. [DataLength(40)]
  200. public string PrdcrNo
  201. {
  202. get { return prdcrNo; }
  203. set { prdcrNo = value; }
  204. }
  205. /// <summary>
  206. /// 监制人
  207. /// </summary>
  208. [Description("监制人")]
  209. [Nullable(true)]
  210. [DataLength(40)]
  211. public string Producer
  212. {
  213. get { return producer; }
  214. set { producer = value; }
  215. }
  216. /// <summary>
  217. /// 监制到场时间
  218. /// </summary>
  219. [Description("监制到场时间")]
  220. [Nullable(true)]
  221. public string ProducerTime
  222. {
  223. get { return producerTime; }
  224. set { producerTime = value; }
  225. }
  226. /// <summary>
  227. /// 捆数
  228. /// </summary>
  229. [Description("捆数")]
  230. [Nullable(true)]
  231. [DataLength(4)]
  232. public decimal? BundlingNum
  233. {
  234. get { return bundlingNum; }
  235. set { bundlingNum = value; }
  236. }
  237. /// <summary>
  238. /// 作业支数(有效生产数量)
  239. /// </summary>
  240. [Description("作业支数")]
  241. [Nullable(true)]
  242. [DataLength(6)]
  243. public decimal? ProNum
  244. {
  245. get { return proNum; }
  246. set { proNum = value; }
  247. }
  248. /// <summary>
  249. /// 作业重量
  250. /// </summary>
  251. [Description("作业重量")]
  252. [Nullable(true)]
  253. [DataLength(8)]
  254. public decimal? ProWt
  255. {
  256. get { return proWt; }
  257. set { proWt = value; }
  258. }
  259. /// <summary>
  260. /// 废品支数
  261. /// </summary>
  262. [Description("废品支数")]
  263. [Nullable(true)]
  264. [DataLength(6)]
  265. public decimal? FailNum
  266. {
  267. get { return failNum; }
  268. set { failNum = value; }
  269. }
  270. /// <summary>
  271. /// 废品重量
  272. /// </summary>
  273. [Description("废品重量")]
  274. [Nullable(true)]
  275. [DataLength(8)]
  276. public decimal? FailWt
  277. {
  278. get { return failWt; }
  279. set { failWt = value; }
  280. }
  281. /// <summary>
  282. /// 生产(年月日)
  283. /// </summary>
  284. [Description("生产(年月日)")]
  285. [Nullable(true)]
  286. [DataLength(8)]
  287. public string ProYearMonthDay
  288. {
  289. get { return proYearMonthDay; }
  290. set { proYearMonthDay = value; }
  291. }
  292. /// <summary>
  293. /// 结算日期(年月)
  294. /// </summary>
  295. [Description("结算日期(年月)")]
  296. [Nullable(true)]
  297. [DataLength(6)]
  298. public string BalYearMonth
  299. {
  300. get { return balYearMonth; }
  301. set { balYearMonth = value; }
  302. }
  303. /// <summary>
  304. /// 操作班次
  305. /// </summary>
  306. [Description("班次")]
  307. [Nullable(true)]
  308. [DataLength(1)]
  309. public string ProShift
  310. {
  311. get { return proShift; }
  312. set { proShift = value; }
  313. }
  314. /// <summary>
  315. /// 操作班组
  316. /// </summary>
  317. [Description("班组")]
  318. [Nullable(true)]
  319. [DataLength(1)]
  320. public string ProGroup
  321. {
  322. get { return proGroup; }
  323. set { proGroup = value; }
  324. }
  325. /// <summary>
  326. /// 创建时间
  327. /// </summary>
  328. [Description("创建时间")]
  329. [Nullable(true)]
  330. public string CreateTime
  331. {
  332. get { return createTime; }
  333. set { createTime = value; }
  334. }
  335. /// <summary>
  336. /// 操作人
  337. /// </summary>
  338. [Description("操作人")]
  339. [Nullable(true)]
  340. [DataLength(20)]
  341. public string ProUser
  342. {
  343. get { return proUser; }
  344. set { proUser = value; }
  345. }
  346. /// <summary>
  347. /// 操作时间
  348. /// </summary>
  349. [Description("操作时间")]
  350. [Nullable(true)]
  351. public string ProTime
  352. {
  353. get { return proTime; }
  354. set { proTime = value; }
  355. }
  356. /// <summary>
  357. /// 判定炉号
  358. /// </summary>
  359. [Description("判定炉号")]
  360. [Nullable(true)]
  361. [DataLength(6)]
  362. public string JudgeStoveNo
  363. {
  364. get { return judgeStoveNo; }
  365. set { judgeStoveNo = value; }
  366. }
  367. /// <summary>
  368. /// 备注
  369. /// </summary>
  370. [Description("备注")]
  371. [Nullable(true)]
  372. [DataLength(4000)]
  373. public string Memo
  374. {
  375. get { return memo; }
  376. set { memo = value; }
  377. }
  378. /// <summary>
  379. /// 打捆类型
  380. /// </summary>
  381. [Description("打捆类型")]
  382. [Nullable(true)]
  383. [DataLength(20)]
  384. public string BundingTypeCode
  385. {
  386. get { return bundingTypeCode; }
  387. set { bundingTypeCode = value; }
  388. }
  389. /// <summary>
  390. /// 打捆类型
  391. /// </summary>
  392. [Description("打捆类型")]
  393. [Nullable(true)]
  394. [DataLength(20)]
  395. public string BundingTypeName
  396. {
  397. get { return bundingTypeName; }
  398. set { bundingTypeName = value; }
  399. }
  400. /// <summary>
  401. /// 每捆个数
  402. /// </summary>
  403. [Description("每捆支数")]
  404. [Nullable(true)]
  405. [DataLength(4)]
  406. public decimal? BundingPerNum
  407. {
  408. get { return bundingPerNum; }
  409. set { bundingPerNum = value; }
  410. }
  411. /// <summary>
  412. /// 是否包含短尺 0-否 1-是
  413. /// </summary>
  414. [Description("是否短尺")]
  415. [Nullable(true)]
  416. [DataLength(1)]
  417. public string IncludeShort
  418. {
  419. get { return includeShort; }
  420. set { includeShort = value; }
  421. }
  422. [Description("合同号")]
  423. public string OrderNo { get; set; }
  424. public MchBundlingResultEntity Clone()
  425. {
  426. using (var memStream = new MemoryStream())
  427. {
  428. var binaryFormatter = new BinaryFormatter(null,
  429. new StreamingContext(StreamingContextStates.Clone));
  430. binaryFormatter.Serialize(memStream, this);
  431. memStream.Seek(0, SeekOrigin.Begin);
  432. return binaryFormatter.Deserialize(memStream) as MchBundlingResultEntity;
  433. }
  434. }
  435. }
  436. }