MchMeasureResultEntity.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688
  1. using System;
  2. using System.ComponentModel;
  3. using System.IO;
  4. using System.Runtime.Serialization;
  5. using System.Runtime.Serialization.Formatters.Binary;
  6. using Newtonsoft.Json;
  7. namespace com.steering.mes.mcp.entity
  8. {
  9. /// <summary>
  10. /// 数据库表MCH_MEASURE_RESULT所对应的实体类(生成工具:代码生成工具4.0 访问地址:http://172.16.2.128/tool/)
  11. /// 作者:tgcx-test 时间:2018-10-15
  12. /// </summary>
  13. [Serializable]
  14. public class MchMeasureResultEntity
  15. {
  16. /// <summary>
  17. /// 防撞环数量
  18. /// </summary>
  19. private decimal? arCount;
  20. /// <summary>
  21. /// 结算日期(年月)
  22. /// </summary>
  23. private string balYearMonth = "";
  24. /// <summary>
  25. /// 批号
  26. /// </summary>
  27. private string batchNo = "";
  28. /// <summary>
  29. /// 色环条数
  30. /// </summary>
  31. private decimal? ccCount;
  32. /// <summary>
  33. /// 创建时间
  34. /// </summary>
  35. private string createTime = "";
  36. /// <summary>
  37. /// 废品支数
  38. /// </summary>
  39. private decimal? failNum;
  40. /// <summary>
  41. /// 废品重量
  42. /// </summary>
  43. private decimal? failWt;
  44. /// <summary>
  45. /// 炉计划ID
  46. /// </summary>
  47. private string heatPlanNo = "";
  48. /// <summary>
  49. /// 是否监制
  50. /// </summary>
  51. private string ifMonitorRcl = "";
  52. /// <summary>
  53. /// 是否涂漆
  54. /// </summary>
  55. private string isPaint = "";
  56. /// <summary>
  57. /// 判定炉号
  58. /// </summary>
  59. private string judgeStoveNo = "";
  60. /// <summary>
  61. /// 分切数
  62. /// </summary>
  63. private decimal? outnumCut;
  64. /// <summary>
  65. /// 油漆批号
  66. /// </summary>
  67. private string paintLot = "";
  68. /// <summary>
  69. /// 油漆型号
  70. /// </summary>
  71. private string paintType = "";
  72. /// <summary>
  73. /// 产线代码
  74. /// </summary>
  75. private string plineCode = "";
  76. /// <summary>
  77. /// 产线描述
  78. /// </summary>
  79. private string plineName = "";
  80. /// <summary>
  81. /// 监制编号
  82. /// </summary>
  83. private string prdcrNo = "";
  84. /// <summary>
  85. /// 监制人
  86. /// </summary>
  87. private string producer = "";
  88. /// <summary>
  89. /// 监制到场时间
  90. /// </summary>
  91. private string producerTime = "";
  92. /// <summary>
  93. /// 操作班组
  94. /// </summary>
  95. private string proGroup = "";
  96. /// <summary>
  97. /// 作业支数(有效生产数量)
  98. /// </summary>
  99. private decimal? proNum;
  100. /// <summary>
  101. /// 操作班次
  102. /// </summary>
  103. private string proShift = "";
  104. /// <summary>
  105. /// 操作时间
  106. /// </summary>
  107. private string proTime = "";
  108. /// <summary>
  109. /// 操作人
  110. /// </summary>
  111. private string proUser = "";
  112. /// <summary>
  113. /// 作业重量
  114. /// </summary>
  115. private decimal? proWt;
  116. /// <summary>
  117. /// 生产(年月日)
  118. /// </summary>
  119. private string proYearMonthDay = "";
  120. /// <summary>
  121. /// 保护环厂家
  122. /// </summary>
  123. private string prProvider = "";
  124. /// <summary>
  125. /// 保护环类型
  126. /// </summary>
  127. private string prType = "";
  128. /// <summary>
  129. /// 实绩编号(机组+工序点代码+年月日+6位流水)
  130. /// </summary>
  131. private string resultNo = "";
  132. /// <summary>
  133. /// 是否特殊通径
  134. /// </summary>
  135. private string specialDrift = "";
  136. /// <summary>
  137. /// 螺纹脂批号 拧接端
  138. /// </summary>
  139. private string tcLotCoup = "";
  140. /// <summary>
  141. /// 螺纹脂批号 内保护环端
  142. /// </summary>
  143. private string tcLotIn = "";
  144. /// <summary>
  145. /// 螺纹脂批号 外保护环端
  146. /// </summary>
  147. private string tcLotOut = "";
  148. /// <summary>
  149. /// 螺纹脂厂家型号 拧接端
  150. /// </summary>
  151. private string tcProviderCoup = "";
  152. /// <summary>
  153. /// 螺纹脂厂家型号 内保护环端
  154. /// </summary>
  155. private string tcProviderIn = "";
  156. /// <summary>
  157. /// 螺纹脂厂家型号 外保护环端
  158. /// </summary>
  159. private string tcProviderOut = "";
  160. /// <summary>
  161. /// 是否使用防撞环
  162. /// </summary>
  163. private string useAr = "";
  164. /// <summary>
  165. /// 是否使用保护帽
  166. /// </summary>
  167. private string usePc = "";
  168. /// <summary>
  169. /// 实绩编号(机组+工序点代码+年月日+6位流水)
  170. /// </summary>
  171. [Description("实绩编号")]
  172. [JsonProperty("resultNo")]
  173. public string ResultNo
  174. {
  175. get { return resultNo; }
  176. set { resultNo = value; }
  177. }
  178. /// <summary>
  179. /// 炉计划ID
  180. /// </summary>
  181. [Description("炉计划ID")]
  182. [JsonProperty("heatPlanNo")]
  183. public string HeatPlanNo
  184. {
  185. get { return heatPlanNo; }
  186. set { heatPlanNo = value; }
  187. }
  188. /// <summary>
  189. /// 批号
  190. /// </summary>
  191. [Description("批号")]
  192. [JsonProperty("batchNo")]
  193. public string BatchNo
  194. {
  195. get { return batchNo; }
  196. set { batchNo = value; }
  197. }
  198. /// <summary>
  199. /// 产线代码
  200. /// </summary>
  201. [Description("产线代码")]
  202. [JsonProperty("plineCode")]
  203. public string PlineCode
  204. {
  205. get { return plineCode; }
  206. set { plineCode = value; }
  207. }
  208. /// <summary>
  209. /// 产线描述
  210. /// </summary>
  211. [Description("产线描述")]
  212. [JsonProperty("plineName")]
  213. public string PlineName
  214. {
  215. get { return plineName; }
  216. set { plineName = value; }
  217. }
  218. /// <summary>
  219. /// 是否监制
  220. /// </summary>
  221. [Description("是否监制")]
  222. [JsonProperty("ifMonitorRcl")]
  223. public string IfMonitorRcl
  224. {
  225. get { return ifMonitorRcl; }
  226. set { ifMonitorRcl = value; }
  227. }
  228. /// <summary>
  229. /// 监制编号
  230. /// </summary>
  231. [Description("监制编号")]
  232. [JsonProperty("prdcrNo")]
  233. public string PrdcrNo
  234. {
  235. get { return prdcrNo; }
  236. set { prdcrNo = value; }
  237. }
  238. /// <summary>
  239. /// 监制人
  240. /// </summary>
  241. [Description("监制人")]
  242. [JsonProperty("producer")]
  243. public string Producer
  244. {
  245. get { return producer; }
  246. set { producer = value; }
  247. }
  248. /// <summary>
  249. /// 监制到场时间
  250. /// </summary>
  251. [Description("监制到场时间")]
  252. [JsonProperty("producerTime")]
  253. public string ProducerTime
  254. {
  255. get { return producerTime; }
  256. set { producerTime = value; }
  257. }
  258. /// <summary>
  259. /// 分切数
  260. /// </summary>
  261. [Description("分切数")]
  262. [JsonProperty("outnumCut")]
  263. public decimal? OutnumCut
  264. {
  265. get { return outnumCut; }
  266. set { outnumCut = value; }
  267. }
  268. /// <summary>
  269. /// 作业支数(有效生产数量)
  270. /// </summary>
  271. [Description("作业支数")]
  272. [JsonProperty("proNum")]
  273. public decimal? ProNum
  274. {
  275. get { return proNum; }
  276. set { proNum = value; }
  277. }
  278. /// <summary>
  279. /// 作业重量
  280. /// </summary>
  281. [Description("作业重量")]
  282. [JsonProperty("proWt")]
  283. public decimal? ProWt
  284. {
  285. get { return proWt; }
  286. set { proWt = value; }
  287. }
  288. /// <summary>
  289. /// 废品支数
  290. /// </summary>
  291. [Description("废品支数")]
  292. [JsonProperty("failNum")]
  293. public decimal? FailNum
  294. {
  295. get { return failNum; }
  296. set { failNum = value; }
  297. }
  298. /// <summary>
  299. /// 废品重量
  300. /// </summary>
  301. [Description("废品重量")]
  302. [JsonProperty("failWt")]
  303. public decimal? FailWt
  304. {
  305. get { return failWt; }
  306. set { failWt = value; }
  307. }
  308. /// <summary>
  309. /// 生产(年月日)
  310. /// </summary>
  311. [Description("生产(年月日)")]
  312. [JsonProperty("proYearMonthDay")]
  313. public string ProYearMonthDay
  314. {
  315. get { return proYearMonthDay; }
  316. set { proYearMonthDay = value; }
  317. }
  318. /// <summary>
  319. /// 结算日期(年月)
  320. /// </summary>
  321. [Description("结算日期(年月)")]
  322. [JsonProperty("balYearMonth")]
  323. public string BalYearMonth
  324. {
  325. get { return balYearMonth; }
  326. set { balYearMonth = value; }
  327. }
  328. /// <summary>
  329. /// 操作班次
  330. /// </summary>
  331. [Description("班次")]
  332. [JsonProperty("proShift")]
  333. public string ProShift
  334. {
  335. get { return proShift; }
  336. set { proShift = value; }
  337. }
  338. /// <summary>
  339. /// 操作班组
  340. /// </summary>
  341. [Description("班组")]
  342. [JsonProperty("proGroup")]
  343. public string ProGroup
  344. {
  345. get { return proGroup; }
  346. set { proGroup = value; }
  347. }
  348. /// <summary>
  349. /// 创建时间
  350. /// </summary>
  351. [Description("创建时间")]
  352. [JsonProperty("createTime")]
  353. public string CreateTime
  354. {
  355. get { return createTime; }
  356. set { createTime = value; }
  357. }
  358. /// <summary>
  359. /// 操作人
  360. /// </summary>
  361. [Description("操作人")]
  362. [JsonProperty("proUser")]
  363. public string ProUser
  364. {
  365. get { return proUser; }
  366. set { proUser = value; }
  367. }
  368. /// <summary>
  369. /// 操作时间
  370. /// </summary>
  371. [Description("开始时间")]
  372. [JsonProperty("proTime")]
  373. public string ProTime
  374. {
  375. get { return proTime; }
  376. set { proTime = value; }
  377. }
  378. /// <summary>
  379. /// 判定炉号
  380. /// </summary>
  381. [Description("判定炉号")]
  382. [JsonProperty("judgeStoveNo")]
  383. public string JudgeStoveNo
  384. {
  385. get { return judgeStoveNo; }
  386. set { judgeStoveNo = value; }
  387. }
  388. /// <summary>
  389. /// 螺纹脂厂家型号 拧接端
  390. /// </summary>
  391. [Description("螺纹脂厂家型号 拧接端")]
  392. [JsonProperty("tcProviderCoup")]
  393. public string TcProviderCoup
  394. {
  395. get { return tcProviderCoup; }
  396. set { tcProviderCoup = value; }
  397. }
  398. /// <summary>
  399. /// 螺纹脂批号 拧接端
  400. /// </summary>
  401. [Description("螺纹脂批号 拧接端")]
  402. [JsonProperty("tcLotCoup")]
  403. public string TcLotCoup
  404. {
  405. get { return tcLotCoup; }
  406. set { tcLotCoup = value; }
  407. }
  408. /// <summary>
  409. /// 螺纹脂厂家型号 内保护环端
  410. /// </summary>
  411. [Description("螺纹脂厂家型号 内保护环端")]
  412. [JsonProperty("tcProviderIn")]
  413. public string TcProviderIn
  414. {
  415. get { return tcProviderIn; }
  416. set { tcProviderIn = value; }
  417. }
  418. /// <summary>
  419. /// 螺纹脂批号 内保护环端
  420. /// </summary>
  421. [Description("螺纹脂批号 内保护环端")]
  422. [JsonProperty("tcLotIn")]
  423. public string TcLotIn
  424. {
  425. get { return tcLotIn; }
  426. set { tcLotIn = value; }
  427. }
  428. /// <summary>
  429. /// 螺纹脂厂家型号 外保护环端
  430. /// </summary>
  431. [Description("螺纹脂厂家型号 外保护环端")]
  432. [JsonProperty("tcProviderOut")]
  433. public string TcProviderOut
  434. {
  435. get { return tcProviderOut; }
  436. set { tcProviderOut = value; }
  437. }
  438. /// <summary>
  439. /// 螺纹脂批号 外保护环端
  440. /// </summary>
  441. [Description("螺纹脂批号 外保护环端")]
  442. [JsonProperty("tcLotOut")]
  443. public string TcLotOut
  444. {
  445. get { return tcLotOut; }
  446. set { tcLotOut = value; }
  447. }
  448. /// <summary>
  449. /// 保护环厂家
  450. /// </summary>
  451. [Description("保护环厂家")]
  452. [JsonProperty("prProvider")]
  453. public string PrProvider
  454. {
  455. get { return prProvider; }
  456. set { prProvider = value; }
  457. }
  458. /// <summary>
  459. /// 保护环类型
  460. /// </summary>
  461. [Description("保护环类型")]
  462. [JsonProperty("prType")]
  463. public string PrType
  464. {
  465. get { return prType; }
  466. set { prType = value; }
  467. }
  468. /// <summary>
  469. /// 是否使用保护帽
  470. /// </summary>
  471. [Description("是否使用保护帽")]
  472. [JsonProperty("usePc")]
  473. public string UsePc
  474. {
  475. get { return usePc; }
  476. set { usePc = value; }
  477. }
  478. /// <summary>
  479. /// 是否使用防撞环
  480. /// </summary>
  481. [Description("是否使用防撞环")]
  482. [JsonProperty("useAr")]
  483. public string UseAr
  484. {
  485. get { return useAr; }
  486. set { useAr = value; }
  487. }
  488. /// <summary>
  489. /// 防撞环数量
  490. /// </summary>
  491. [Description("防撞环数量")]
  492. [JsonProperty("arCount")]
  493. public decimal? ArCount
  494. {
  495. get { return arCount; }
  496. set { arCount = value; }
  497. }
  498. /// <summary>
  499. /// 是否特殊通径
  500. /// </summary>
  501. [Description("是否特殊通径")]
  502. [JsonProperty("specialDrift")]
  503. public string SpecialDrift
  504. {
  505. get { return specialDrift; }
  506. set { specialDrift = value; }
  507. }
  508. /// <summary>
  509. /// 色环条数
  510. /// </summary>
  511. [Description("色环条数")]
  512. [JsonProperty("ccCount")]
  513. public decimal? CcCount
  514. {
  515. get { return ccCount; }
  516. set { ccCount = value; }
  517. }
  518. /// <summary>
  519. /// 是否涂漆
  520. /// </summary>
  521. [Description("是否涂漆")]
  522. [JsonProperty("isPaint")]
  523. public string IsPaint
  524. {
  525. get { return isPaint; }
  526. set { isPaint = value; }
  527. }
  528. /// <summary>
  529. /// 油漆型号
  530. /// </summary>
  531. [Description("油漆型号")]
  532. [JsonProperty("paintType")]
  533. public string PaintType
  534. {
  535. get { return paintType; }
  536. set { paintType = value; }
  537. }
  538. /// <summary>
  539. /// 油漆批号
  540. /// </summary>
  541. [Description("油漆批号")]
  542. [JsonProperty("paintLot")]
  543. public string PaintLot
  544. {
  545. get { return paintLot; }
  546. set { paintLot = value; }
  547. }
  548. private string flag = "0";
  549. /// <summary>
  550. ///
  551. /// </summary>
  552. [Description("类型")]
  553. [JsonProperty("paintLot")]
  554. public string Flag
  555. {
  556. get { return flag; }
  557. set { flag = value; }
  558. }
  559. /// <summary>
  560. /// 结束时间
  561. /// </summary>
  562. private string proEndTime = "";
  563. /// <summary>
  564. /// 结束时间
  565. /// </summary>
  566. [Description("结束时间")]
  567. [JsonProperty("paintLot")]
  568. public string ProEndTime
  569. {
  570. get { return proEndTime; }
  571. set { proEndTime = value; }
  572. }
  573. [Description("合同号")]
  574. public string OrderNo { get; set; }
  575. /// <summary>
  576. /// 备注
  577. /// </summary>
  578. private string memo = "";
  579. /// <summary>
  580. /// 备注
  581. /// </summary>
  582. [Description("备注")]
  583. [JsonProperty("memo")]
  584. public string Memo
  585. {
  586. get { return memo; }
  587. set { memo = value; }
  588. }
  589. public MchMeasureResultEntity Clone()
  590. {
  591. using (var memStream = new MemoryStream())
  592. {
  593. var binaryFormatter = new BinaryFormatter(null,
  594. new StreamingContext(StreamingContextStates.Clone));
  595. binaryFormatter.Serialize(memStream, this);
  596. memStream.Seek(0, SeekOrigin.Begin);
  597. return binaryFormatter.Deserialize(memStream) as MchMeasureResultEntity;
  598. }
  599. }
  600. }
  601. }