HttOfflineResultDentity.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. using Core.Mes.Client.Comm.Tool;
  4. namespace Core.StlMes.Client.Mcp.Control.Entity
  5. {
  6. public class HttOfflineResultDentity
  7. {
  8. public bool Chk { get; set; }
  9. /// <summary>
  10. /// 实绩编号RESULT_NO
  11. /// </summary>
  12. private string resultNo = "";
  13. public string ResultNo
  14. {
  15. get { return resultNo; }
  16. set { resultNo = value; }
  17. }
  18. /// <summary>
  19. /// 序号RESULT_SQE
  20. /// </summary>
  21. private string resultSqe = "";
  22. public string ResultSqe
  23. {
  24. get { return resultSqe; }
  25. set { resultSqe = value; }
  26. }
  27. /// <summary>
  28. /// 炉计划ID HEAT_PLAN_NO
  29. /// </summary>
  30. private string heatPlanNo = "";
  31. public string HeatPlanNo
  32. {
  33. get { return heatPlanNo; }
  34. set { heatPlanNo = value; }
  35. }
  36. /// <summary>
  37. /// 产线PLINE_CODE
  38. /// </summary>
  39. private string plineCode = "";
  40. public string PlineCode
  41. {
  42. get { return plineCode; }
  43. set { plineCode = value; }
  44. }
  45. /// <summary>
  46. /// 产线描述PLINE_NAME
  47. /// </summary>
  48. private string plineName = "";
  49. public string PlineName
  50. {
  51. get { return plineName; }
  52. set { plineName = value; }
  53. }
  54. /// <summary>
  55. /// 离线支数OFFLINE_NUM
  56. /// </summary>
  57. private string offlineNum = "";
  58. public string OfflineNum
  59. {
  60. get { return offlineNum; }
  61. set { offlineNum = value; }
  62. }
  63. /// <summary>
  64. /// 离线重量OFFLINE_WT
  65. /// </summary>
  66. private string offlineWt = "";
  67. public string OfflineWt
  68. {
  69. get { return offlineWt; }
  70. set { offlineWt = value; }
  71. }
  72. /// <summary>
  73. /// 物流去向代码GOWHERE_CODE
  74. /// </summary>
  75. private string gowhereCode = "";
  76. public string GowhereCode
  77. {
  78. get { return gowhereCode; }
  79. set { gowhereCode = value; }
  80. }
  81. /// <summary>
  82. /// 物流去向名称GOWHERE_NAME
  83. /// </summary>
  84. private string gowhereName = "";
  85. public string GowhereName
  86. {
  87. get { return gowhereName; }
  88. set { gowhereName = value; }
  89. }
  90. ///创建时间CREATE_TIME
  91. ///
  92. private string createTime = "";
  93. public string CreateTime
  94. {
  95. get { return createTime; }
  96. set { createTime = value; }
  97. }
  98. ///工序点代码STATION_CODE
  99. ///
  100. private string stationCode = "";
  101. public string StationCode
  102. {
  103. get { return stationCode; }
  104. set { stationCode = value; }
  105. }
  106. ///工序点描述STATION_DESC
  107. ///
  108. private string stationDesc = "";
  109. public string StationDesc
  110. {
  111. get { return stationDesc; }
  112. set { stationDesc = value; }
  113. }
  114. ///工序点描述STATION_DESC
  115. ///
  116. private string batchNo = "";
  117. public string BatchNo
  118. {
  119. get { return batchNo; }
  120. set { batchNo = value; }
  121. }
  122. ///工序点描述STATION_DESC
  123. ///
  124. private string memo = "";
  125. public string Memo
  126. {
  127. get { return memo; }
  128. set { memo = value; }
  129. }
  130. protected string matNo = "";
  131. public string MatNo
  132. {
  133. get
  134. {
  135. var list = listPortMarts.Where(p => p.Check).Select(p => p.MatNo).ToList();
  136. return list.Any()?list.Aggregate((a, b) =>( a==""?"" : (a+ ","))+ b):"";
  137. }
  138. }
  139. private List<PortHttBatchSampleResultEntityWithCheck> listPortMarts = new DataSourceList<PortHttBatchSampleResultEntityWithCheck>();
  140. public List<PortHttBatchSampleResultEntityWithCheck> ListPortMarts
  141. {
  142. get
  143. {
  144. return listPortMarts==null?new List<PortHttBatchSampleResultEntityWithCheck>() : listPortMarts.Where(p => p.PhyBatchNo == BatchNo).ToList();
  145. }
  146. set { listPortMarts = value; }
  147. }
  148. public List<PortHttBatchSampleResultEntityWithCheck> GetTotal()
  149. {
  150. return listPortMarts;
  151. }
  152. }
  153. }