锐腾搅拌上料功能
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.

228 lines
6.3 KiB

5 months ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using ICSSoft.Frame.Data.Entity;
  6. using ICSSoft.Frame.Data.DAL;
  7. using System.Data;
  8. namespace ICSSoft.Frame.Data.BLL
  9. {
  10. public class ICSDataCollectionBLL
  11. {
  12. #region 根据放料轴编码获取放料轴信息
  13. public static DataTable GetInfoByCode(string INVShaftCode, string SubLotNo, string dsconn)
  14. {
  15. try
  16. {
  17. return ICSDataCollectionDAL.GetInfoByCode(INVShaftCode, SubLotNo, dsconn);
  18. }
  19. catch (Exception ex)
  20. {
  21. throw ex;
  22. }
  23. }
  24. #endregion
  25. #region 保存采集上下模日志信息
  26. //public static void MouldLogSave(ICSMouldUpAndDownLog info, string dsconn)
  27. //{
  28. // try
  29. // {
  30. // if (string.IsNullOrWhiteSpace(dsconn))
  31. // {
  32. // throw new Exception("数据库连接字符串错误");
  33. // }
  34. // ICSDataCollectionDAL.MouldLogSave(info, dsconn);
  35. // }
  36. // catch (Exception ex)
  37. // {
  38. // throw ex;
  39. // }
  40. //}
  41. #endregion
  42. #region 工序开工
  43. public static void CollectOPStart(ICSLOTSIMULATION siminfo, ICSLOTONWIP wipinfo, string dsconn)
  44. {
  45. try
  46. {
  47. ICSDataCollectionDAL.CollectOPStart(siminfo, wipinfo, dsconn);
  48. }
  49. catch (Exception ex)
  50. {
  51. throw ex;
  52. }
  53. }
  54. public static void CollectOPStart(ICSLOTSIMULATION siminfo, ICSLOTONWIP wipinfo,ICSLOTONWIPDetail wipDetailinfo, string dsconn)
  55. {
  56. try
  57. {
  58. ICSDataCollectionDAL.CollectOPStart(siminfo, wipinfo,wipDetailinfo, dsconn);
  59. }
  60. catch (Exception ex)
  61. {
  62. throw ex;
  63. }
  64. }
  65. #endregion
  66. #region 工序上料
  67. public static void CollectOPUP(List<ICSLOTONWIPITEM> infoList, string SaveOrReturnType, string dsconn)
  68. {
  69. try
  70. {
  71. ICSDataCollectionDAL.CollectOPUP(infoList, SaveOrReturnType, dsconn);
  72. }
  73. catch (Exception ex)
  74. {
  75. throw ex;
  76. }
  77. }
  78. #endregion
  79. #region 工序完工
  80. //public static void CollectOPEnd(ICSLOTSIMULATION siminfo, ICSLOTONWIP wipinfo, bool issplit, string splitLotNo, string dsconn)
  81. public static void CollectOPEnd(ICSLOTSIMULATION siminfo, ICSLOTONWIP wipinfo, string splitLotNo, string dsconn)
  82. {
  83. try
  84. {
  85. //ICSDataCollectionDAL.CollectOPEnd(siminfo, wipinfo, issplit, splitLotNo, dsconn);
  86. ICSDataCollectionDAL.CollectOPEnd(siminfo, wipinfo, splitLotNo, dsconn);
  87. }
  88. catch (Exception ex)
  89. {
  90. throw ex;
  91. }
  92. }
  93. #endregion
  94. #region 工序结束
  95. public static void CollectOPAllEnd(ICSLOTSIMULATION siminfo, ICSLOTONWIP wipinfo, string dsconn)
  96. {
  97. try
  98. {
  99. ICSDataCollectionDAL.CollectOPAllEnd(siminfo, wipinfo, dsconn);
  100. }
  101. catch (Exception ex)
  102. {
  103. throw ex;
  104. }
  105. }
  106. #endregion
  107. #region 工序暂停
  108. public static void CollectOPPause(ICSLOTONWIP wipinfo, ICSLOTPAUSE ztinfo, string dsconn)
  109. {
  110. try
  111. {
  112. ICSDataCollectionDAL.CollectOPPause(wipinfo, ztinfo, dsconn);
  113. }
  114. catch (Exception ex)
  115. {
  116. throw ex;
  117. }
  118. }
  119. public static void CollectOPPause(ICSLOTONWIPDetail wipdetail, ICSLOTPAUSE ztinfo, string dsconn)
  120. {
  121. try
  122. {
  123. ICSDataCollectionDAL.CollectOPPause(wipdetail, ztinfo, dsconn);
  124. }
  125. catch (Exception ex)
  126. {
  127. throw ex;
  128. }
  129. }
  130. #endregion
  131. #region 取消暂停
  132. public static void CollectOPCancelPause(ICSLOTONWIP wipinfo, ICSLOTPAUSE ztinfo, string dsconn)
  133. {
  134. try
  135. {
  136. ICSDataCollectionDAL.CollectOPCancelPause(wipinfo, ztinfo, dsconn);
  137. }
  138. catch (Exception ex)
  139. {
  140. throw ex;
  141. }
  142. }
  143. #endregion
  144. #region 单件上岗
  145. public static void CollectOPPriceStart(ICSLOTONWIPPriceLog wipinfo, string dsconn)
  146. {
  147. try
  148. {
  149. ICSDataCollectionDAL.CollectOPStartPrice(wipinfo, dsconn);
  150. }
  151. catch (Exception ex)
  152. {
  153. throw ex;
  154. }
  155. }
  156. #endregion
  157. #region 单件上岗
  158. public static void CollectOPPriceEnd(string UserCode, string EQPCode, string dsconn)
  159. {
  160. try
  161. {
  162. ICSDataCollectionDAL.CollectOPStartEnd(UserCode, EQPCode, dsconn);
  163. }
  164. catch (Exception ex)
  165. {
  166. throw ex;
  167. }
  168. }
  169. public static void CollectOPPriceEnd(ICSLOTONWIPPriceLog wipinfo, string dsconn)
  170. {
  171. try
  172. {
  173. ICSDataCollectionDAL.CollectOPStartEnd(wipinfo, dsconn);
  174. }
  175. catch (Exception ex)
  176. {
  177. throw ex;
  178. }
  179. }
  180. #endregion
  181. #region 单件工序完工
  182. public static void CollectOPEndPrice(ICSLOTSIMULATION siminfo, ICSLOTONWIP wipinfo, string splitLotNo, string dsconn)
  183. {
  184. try
  185. {
  186. ICSDataCollectionDAL.CollectOPEndPrice(siminfo, wipinfo, splitLotNo, dsconn);
  187. }
  188. catch (Exception ex)
  189. {
  190. throw ex;
  191. }
  192. }
  193. #endregion
  194. public static void AddAndEditList(ICSQualityCKDATA QualityCKDATA,List<ICSOQCCKGROUP2LISTCheckResult> ECCodeList, string Appconstr, bool isIPQC)
  195. {
  196. try
  197. {
  198. ICSDataCollectionDAL.AddAndEditList(QualityCKDATA,ECCodeList, Appconstr, isIPQC);
  199. }
  200. catch (Exception ex)
  201. {
  202. throw ex;
  203. }
  204. }
  205. }
  206. }