锐腾搅拌上料功能
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

249 lines
6.2 KiB

5 months ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. namespace ICSSoft.Frame.Data.Entity
  7. {
  8. #region 界面类
  9. public class WorkReportFrmUI
  10. {
  11. public string MoCode { get; set; }
  12. public int MoSeq { get; set; }
  13. public decimal MoPlanQty { get; set; }
  14. public string MOVER { get; set; }
  15. public string ItemCode { get; set; }
  16. public string ItemName { get; set; }
  17. public string ItemLvl { get; set; }
  18. public string CTItemCode { get; set; }
  19. public string LifeCycle { get; set; }
  20. public string LotNo { get; set; }
  21. public int LotSeq { get; set; }
  22. public decimal LotQty { get; set; }
  23. public decimal LotOKQty { get; set; }
  24. public decimal LotNGQty { get; set; }
  25. public decimal RcvNGQty { get; set; }
  26. public LotNoState StateLot { get; set; }
  27. public string RouteCode { get; set; }
  28. public string RouteDesc { get; set; }
  29. public bool IsFirstOP { get; set; }
  30. public int OpSeq { get; set; }
  31. public string OpCode { get; set; }
  32. public string OpName { get; set; }
  33. public string CtrlType { get; set; }
  34. public OPType Optype { get; set; }
  35. public OPState StateOP { get; set; }
  36. public string CostCenter { get; set; }
  37. public decimal TranQty { get; set; }
  38. public decimal RealTimeQty { get; set; }
  39. public int OpSeq_Pre { get; set; }
  40. public string OpCode_Pre { get; set; }
  41. public string OpName_Pre { get; set; }
  42. public string CtrlType_Pre { get; set; }
  43. public string SEGCode { get; set; }
  44. public string SGroup { get; set; }
  45. public string UserCode { get; set; }
  46. public string UserName { get; set; }
  47. public string UserLvl { get; set; }
  48. public RunType StateOPUser { get; set; }
  49. public string SuspendReason { get; set; }
  50. public string EQPCode { get; set; }
  51. public string EQPName { get; set; }
  52. public string ID_ONWIP { get; set; }
  53. public string ID_ONWIPDetail { get; set; }
  54. public string ID_SuspendDetail { get; set; }
  55. public string TiaoJiUserCode { get; set; }
  56. public string TiaoJiUserName { get; set; }
  57. public TiaoJiState StateTiaoJi { get; set; }
  58. public string TiaoJiReason { get; set; }
  59. public ICSLOTPAUSE lotPauseInfo { get; set; }
  60. public decimal Pass { get; set; }
  61. public decimal NG_Make { get; set; }
  62. public decimal NG_Material { get; set; }
  63. public decimal NG_ShakedownTest { get; set; }
  64. }
  65. #endregion
  66. #region 用于枚举的特性类
  67. public class AttrDescription : Attribute
  68. {
  69. private string _showName;
  70. public AttrDescription(string desc)
  71. {
  72. _showName = desc;
  73. }
  74. public string Description
  75. {
  76. get
  77. {
  78. return _showName;
  79. }
  80. }
  81. }
  82. public class DBValue : AttrDescription
  83. {
  84. public DBValue(string desc)
  85. : base(desc)
  86. {
  87. }
  88. }
  89. public class ShowOnButton : AttrDescription
  90. {
  91. public ShowOnButton(string desc)
  92. : base(desc)
  93. {
  94. }
  95. }
  96. public class DescriptionEn : AttrDescription
  97. {
  98. public DescriptionEn(string desc)
  99. : base(desc)
  100. {
  101. }
  102. }
  103. #endregion
  104. #region 枚举
  105. ///// <summary>
  106. ///// 图纸类型
  107. ///// </summary>
  108. //public enum DrawingType
  109. //{
  110. // [Description("总图")]
  111. // [DescriptionEn("General Drawing")]
  112. // General,
  113. // [Description("工序图")]
  114. // [DescriptionEn("Process Diagram")]
  115. // OP,
  116. // [Description("刀具单")]
  117. // [DescriptionEn("Cutters")]
  118. // Cutters,
  119. // [Description("作业指导书")]
  120. // [DescriptionEn("Standard Operation Procedure")]
  121. // SOP,
  122. // [Description("检验指导书")]
  123. // [DescriptionEn("Standard Inspection Procedure")]
  124. // SIP
  125. //};
  126. /// <summary>
  127. /// 输入状态
  128. /// </summary>
  129. public enum InputState
  130. {
  131. [Description("首次")]
  132. [ShowOnButton("开始")]
  133. Frist,
  134. [Description("完成")]
  135. [ShowOnButton("完成")]
  136. Finish,
  137. [Description("重置")]
  138. [ShowOnButton("解锁")]
  139. Reset
  140. };
  141. /// <summary>
  142. /// 跟踪单状态
  143. /// </summary>
  144. public enum LotNoState
  145. {
  146. [Description("未开工")]
  147. [DBValue("-1")]
  148. Init,
  149. [Description("开工")]
  150. [DBValue("0")]
  151. Begin,
  152. [Description("完工")]
  153. [DBValue("1")]
  154. End
  155. }
  156. /// <summary>
  157. /// 工序状态
  158. /// </summary>
  159. public enum OPState
  160. {
  161. [Description("首次")]
  162. [DBValue("NULL")]
  163. Init,
  164. [Description("进行中")]
  165. [DBValue("COLLECT_BEGIN")]
  166. Begin,
  167. [Description("结束")]
  168. [DBValue("COLLECT_END")]
  169. End
  170. }
  171. /// <summary>
  172. /// 运行状态
  173. /// </summary>
  174. public enum RunType
  175. {
  176. [Description("首次")]
  177. [ShowOnButton("开始")]
  178. [DBValue("NULL")]
  179. Init,
  180. [Description("运行")]
  181. [ShowOnButton("暂停")]
  182. [DBValue("COLLECT_BEGIN")]
  183. Run,
  184. [Description("暂停")]
  185. [ShowOnButton("继续")]
  186. [DBValue("COLLECT_SUSPEND")]
  187. Suspend,
  188. [Description("结束")]
  189. [ShowOnButton("开工")]
  190. [DBValue("COLLECT_END")]
  191. Stop
  192. }
  193. /// <summary>
  194. /// 调机状态
  195. /// </summary>
  196. public enum TiaoJiState
  197. {
  198. [Description("进行中")]
  199. [ShowOnButton("结束")]
  200. [DBValue("BEGIN")]
  201. Begin,
  202. [Description("结束")]
  203. [ShowOnButton("开始")]
  204. [DBValue("END")]
  205. End
  206. }
  207. /// <summary>
  208. /// 工序类型
  209. /// </summary>
  210. public enum OPType
  211. {
  212. [Description("委外")]
  213. [DBValue("1")]
  214. Outsourcing,
  215. [Description("自制")]
  216. [DBValue("0")]
  217. Self,
  218. [Description("检验")]
  219. [DBValue("0")]
  220. Inspect,
  221. [Description("检验")]
  222. [DBValue("0")]
  223. Check
  224. }
  225. #endregion
  226. }