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

199 lines
4.8 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 ICSPOArriveBLL
  11. {
  12. public static DataTable IsIncludingDetail(string LOT, string dsconn)
  13. {
  14. try
  15. {
  16. return ICSPOArriveDAL.IsIncludingDetail(LOT, dsconn);
  17. }
  18. catch (Exception ex)
  19. {
  20. throw ex;
  21. }
  22. }
  23. public static DataTable ArriveDetail(string ReID, string dsconn)
  24. {
  25. try
  26. {
  27. return ICSPOArriveDAL.ArriveDetail(ReID, dsconn);
  28. }
  29. catch (Exception ex)
  30. {
  31. throw ex;
  32. }
  33. }
  34. #region 删除
  35. public static void deleteSonInfo(string ID, string dsconn)
  36. {
  37. try
  38. {
  39. ICSPOArriveDAL.deleteSonInfo(ID, dsconn);
  40. }
  41. catch (Exception ex)
  42. {
  43. throw ex;
  44. }
  45. }
  46. public static void deleteHeadInfo(string ReID, string dsconn)
  47. {
  48. try
  49. {
  50. ICSPOArriveDAL.deleteHeadInfo(ReID, dsconn);
  51. }
  52. catch (Exception ex)
  53. {
  54. throw ex;
  55. }
  56. }
  57. #endregion
  58. #region 删除日志表
  59. public static void deleteLotInfo(string NO, string Line, string dsconn)
  60. {
  61. try
  62. {
  63. ICSPOArriveDAL.deleteLotInfo(NO, Line, dsconn);
  64. }
  65. catch (Exception ex)
  66. {
  67. throw ex;
  68. }
  69. }
  70. #endregion
  71. #region 更新条码表
  72. public static void UpItemLotInfo(string NO, string Line, string dsconn)
  73. {
  74. try
  75. {
  76. ICSPOArriveDAL.UpItemLotInfo(NO, Line, dsconn);
  77. }
  78. catch (Exception ex)
  79. {
  80. throw ex;
  81. }
  82. }
  83. #endregion
  84. #region 新增内容
  85. #region 删除
  86. public static void deleteInfo(List<string> RIDList, string dsconn)
  87. {
  88. try
  89. {
  90. ICSPOArriveDAL.deleteInfo(RIDList, dsconn);
  91. }
  92. catch (Exception ex)
  93. {
  94. throw ex;
  95. }
  96. }
  97. #endregion
  98. public static FormICSRdrecord2LOTUIModelX Search_Info(string cCode, string irowno, string dsconn)
  99. {
  100. try
  101. {
  102. return ICSPOArriveDAL.Search_Info(cCode, irowno, dsconn);
  103. }
  104. catch (Exception ex)
  105. {
  106. throw ex;
  107. }
  108. }
  109. #region
  110. public static DataSet SearchData(string CODE, string RowNo, string dsconn)
  111. {
  112. try
  113. {
  114. return ICSPOArriveDAL.SearchData(CODE, RowNo, dsconn);
  115. }
  116. catch (Exception ex)
  117. {
  118. throw ex;
  119. }
  120. }
  121. #endregion
  122. public static DataTable GetBatch(string cInvCode, string WorkPoint, string dsconn)
  123. {
  124. try
  125. {
  126. return ICSPOArriveDAL.GetBatch(cInvCode, WorkPoint, dsconn);
  127. }
  128. catch (Exception ex)
  129. {
  130. throw ex;
  131. }
  132. }
  133. public static DataTable GetVen(string cInvCode, string WorkPoint, string dsconn)
  134. {
  135. try
  136. {
  137. return ICSPOArriveDAL.GetVen(cInvCode, WorkPoint, dsconn);
  138. }
  139. catch (Exception ex)
  140. {
  141. throw ex;
  142. }
  143. }
  144. public static DataTable GetCheck(string cInvCode, string WorkPoint, string dsconn)
  145. {
  146. try
  147. {
  148. return ICSPOArriveDAL.GetCheck(cInvCode, WorkPoint, dsconn);
  149. }
  150. catch (Exception ex)
  151. {
  152. throw ex;
  153. }
  154. }
  155. #region 新增和修改
  156. public static void Add(List<ICSITEMLot> InfoList, string dsconn)
  157. {
  158. try
  159. {
  160. if (string.IsNullOrWhiteSpace(dsconn))
  161. {
  162. throw new Exception("数据库连接字符串错误");
  163. }
  164. ICSPOArriveDAL.Add(InfoList, dsconn);
  165. }
  166. catch (Exception ex)
  167. {
  168. throw ex;
  169. }
  170. }
  171. #endregion
  172. public static DataTable GetVenBatch(string INVCLASS, string WorkPoint, string dsconn)
  173. {
  174. try
  175. {
  176. return ICSPOArriveDAL.GetVenBatch(INVCLASS, WorkPoint, dsconn);
  177. }
  178. catch (Exception ex)
  179. {
  180. throw ex;
  181. }
  182. }
  183. #endregion
  184. }
  185. }