YdmHttInitialEntityPlus.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using Core.Mes.Client.Comm.Attribute;
  7. namespace Core.StlMes.Client.Mcp.Treatment.Entity
  8. {
  9. public class YdmHttInitialEntityPlus : YdmHttInitialEntity
  10. {
  11. [Description("待判原因")]
  12. [Nullable(true)]
  13. [DataLength(100)]
  14. public string WatingDecisionMemo { get; set; }
  15. [Description("支数")]
  16. [Nullable(true)]
  17. [DataLength(100)]
  18. public decimal? SourceNum0 { get; set; }
  19. [Description("支数")]
  20. [Nullable(true)]
  21. [DataLength(100)]
  22. public decimal? SourceNum1 { get; set; }
  23. [Description("支数")]
  24. [Nullable(true)]
  25. [DataLength(100)]
  26. public decimal? SourceNum2 { get; set; }
  27. [Description("支数")]
  28. [Nullable(true)]
  29. [DataLength(100)]
  30. public decimal? SourceNumTotal { get; set; }
  31. [Description("支数")]
  32. [Nullable(true)]
  33. [DataLength(100)]
  34. public decimal? SourceNumTotal2 { get; set; }
  35. [Description("支数")]
  36. [Nullable(true)]
  37. [DataLength(100)]
  38. public decimal? GroupNum { get; set; }
  39. [Description("支数")]
  40. [Nullable(true)]
  41. [DataLength(100)]
  42. public decimal? FailNum { get; set; }
  43. [Description("支数")]
  44. [Nullable(true)]
  45. [DataLength(100)]
  46. public decimal? CouplingNum { get; set; }
  47. [Description("支数")]
  48. [Nullable(true)]
  49. [DataLength(100)]
  50. public decimal? JudgeNum { get; set; }
  51. [Description("支数")]
  52. [Nullable(true)]
  53. [DataLength(100)]
  54. public decimal? EndNum { get; set; }
  55. [Description("支数")]
  56. [Nullable(true)]
  57. [DataLength(100)]
  58. public decimal? XsActCount { get; set; }
  59. [Description("支数")]
  60. [Nullable(true)]
  61. [DataLength(100)]
  62. public decimal? CzNum { get; set; }
  63. //消耗支吨=期初+收料-缴库-废品-期末
  64. [Description("支数")]
  65. [Nullable(true)]
  66. [DataLength(100)]
  67. public decimal? ConsumptionNum {
  68. get
  69. {
  70. return
  71. (ActCount ?? 0) + (SourceNumTotal2 ?? 0) - (JudgeNum ?? 0) - (FailNum ?? 0) - (EndNum ?? 0);
  72. // (EndNum ?? 0) + (FailNum ?? 0) + (JudgeNum ?? 0) - (ActCount ?? 0) - (SourceNumTotal ?? 0);
  73. }
  74. }
  75. [Description("重量")]
  76. [Nullable(true)]
  77. [DataLength(100)]
  78. public decimal? SourceWt0 { get; set; }
  79. [Description("重量")]
  80. [Nullable(true)]
  81. [DataLength(100)]
  82. public decimal? SourceWt1 { get; set; }
  83. [Description("重量")]
  84. [Nullable(true)]
  85. [DataLength(100)]
  86. public decimal? SourceWt2 { get; set; }
  87. [Description("重量")]
  88. [Nullable(true)]
  89. [DataLength(100)]
  90. public decimal? SourceWtTotal { get; set; }
  91. [Description("重量")]
  92. [Nullable(true)]
  93. [DataLength(100)]
  94. public decimal? SourceWtTotal2 { get; set; }
  95. [Description("重量")]
  96. [Nullable(true)]
  97. [DataLength(100)]
  98. public decimal? GroupWt { get; set; }
  99. [Description("重量")]
  100. [Nullable(true)]
  101. [DataLength(100)]
  102. public decimal? FailWt { get; set; }
  103. [Description("重量")]
  104. [Nullable(true)]
  105. [DataLength(100)]
  106. public decimal? CouplingWt { get; set; }
  107. [Description("重量")]
  108. [Nullable(true)]
  109. [DataLength(100)]
  110. public decimal? JudgeWt { get; set; }
  111. [Description("重量")]
  112. [Nullable(true)]
  113. [DataLength(100)]
  114. public decimal? EndWt { get; set; }
  115. [Description("重量")]
  116. [Nullable(true)]
  117. [DataLength(100)]
  118. public decimal? XsActWeight { get; set; }
  119. [Description("重量")]
  120. [Nullable(true)]
  121. [DataLength(100)]
  122. public decimal? CzWeight { get; set; }
  123. [Description("重量")]
  124. [Nullable(true)]
  125. [DataLength(100)]
  126. public decimal? ConsumptionWt
  127. {
  128. get
  129. {
  130. return (ActWeight ?? 0) + (SourceWtTotal ?? 0) - (JudgeWt ?? 0) - (FailWt ?? 0) - (EndWt ?? 0);
  131. // return (EndWt ?? 0) + (FailWt ?? 0) + (JudgeWt ?? 0) - (ActWeight ?? 0) - (SourceWtTotal ?? 0);
  132. }
  133. }
  134. [Description("分切数")]
  135. [Nullable(true)]
  136. [DataLength(100)]
  137. public decimal? OutnumCut { get; set; }
  138. }
  139. }