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

142 lines
3.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 ICSSoft.Base.Config.AppConfig;
  8. using System.Data;
  9. namespace ICSSoft.Frame.Data.BLL
  10. {
  11. public class ICSMO2LotBLL
  12. {
  13. public static void Add(List<FormICSMO2LotUIModel> equipmentInfoList, string dsconn)
  14. {
  15. try
  16. {
  17. if (string.IsNullOrWhiteSpace(dsconn))
  18. {
  19. throw new Exception("请输入......");
  20. }
  21. ICSMO2LotDAL.AddAndEdit(equipmentInfoList, dsconn);
  22. }
  23. catch (Exception ex)
  24. {
  25. throw ex;
  26. }
  27. }
  28. public static void AddList(List<ICSITEMROUTE2OPLot> equipmentInfoList, string dsconn)
  29. {
  30. try
  31. {
  32. if (string.IsNullOrWhiteSpace(dsconn))
  33. {
  34. throw new Exception("请输入......");
  35. }
  36. ICSMO2LotDAL.AddAndEditList(equipmentInfoList, dsconn);
  37. }
  38. catch (Exception ex)
  39. {
  40. throw ex;
  41. }
  42. }
  43. #region select
  44. public static DataTable searchForItem(string itemcode, string dsconn)
  45. {
  46. try
  47. {
  48. return ICSMO2LotDAL.searchForItem(itemcode, dsconn);
  49. }
  50. catch (Exception ex)
  51. {
  52. throw ex;
  53. }
  54. }
  55. #endregion
  56. #region delete
  57. public static void delete(List<String> guidList)
  58. {
  59. ICSMO2LotDAL.delete(guidList);
  60. }
  61. #endregion
  62. #region deleteLot
  63. public static void deleteLot(List<ICSITEMROUTE2OPLot> guidList)
  64. {
  65. ICSMO2LotDAL.deleteLot(guidList);
  66. }
  67. #endregion
  68. #region deleteLot
  69. public static void deleteLot(List<String> guidList)
  70. {
  71. ICSMO2LotDAL.deleteLot(guidList);
  72. }
  73. #endregion
  74. #region 工单是否已生成批次
  75. public static bool IsIncludingInMO2Lot(string moid)
  76. {
  77. try
  78. {
  79. return ICSMO2LotDAL.IsIncludingInMO2Lot(moid);
  80. }
  81. catch (Exception ex)
  82. {
  83. throw ex;
  84. }
  85. }
  86. public static DataTable GetMO2LotInfo(List<string> list,string wp, string conn)
  87. {
  88. return ICSMO2LotDAL.GetMO2LotInfo(list,wp,conn);
  89. }
  90. #endregion
  91. #region 工单是否已经领用过
  92. public static DataTable IsUsingMO(string MOCode, string MOSEQ)
  93. {
  94. try
  95. {
  96. return ICSMO2LotDAL.IsUsingMO(MOCode, MOSEQ);
  97. }
  98. catch (Exception ex)
  99. {
  100. throw ex;
  101. }
  102. }
  103. #endregion
  104. public static DataTable GetMO2Route(List<string> list, string wp,string conn)
  105. {
  106. return ICSMO2LotDAL.GetMO2Route(list,wp, conn);
  107. }
  108. public static void Mo2LotOne2One(List<ICSITEMLot> listItemLot, List<ICSITEMROUTE2OPLot> listItemRouteOpLot, string conn)
  109. {
  110. ICSMO2LotDAL.GetMO2Route(listItemLot,listItemRouteOpLot, conn);
  111. }
  112. }
  113. }