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

160 lines
4.5 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.DAL;
  6. using ICSSoft.Frame.Data.Entity;
  7. using System.Data;
  8. namespace ICSSoft.Frame.Data.BLL
  9. {
  10. public class ICSROUTEBLL
  11. {
  12. #region 增加和修改List
  13. public static void AddList(List<ICSROUTE> InfoList, string Appconstr)
  14. {
  15. try
  16. {
  17. ICSROUTEDAL.AddList(InfoList, Appconstr);
  18. }
  19. catch (Exception ex)
  20. {
  21. throw ex;
  22. }
  23. }
  24. public static string AddList(List<ICSROUTE> RouteLists, List<ICSROUTE2OP> OPLists, string Appconstr)
  25. {
  26. try
  27. {
  28. return ICSROUTEDAL.AddList(RouteLists, OPLists, Appconstr);
  29. }
  30. catch (Exception ex)
  31. {
  32. throw ex;
  33. }
  34. }
  35. #endregion
  36. #region 增加和编辑
  37. public static void AddandEdit(ICSROUTE routeLot, string Appconstr)
  38. {
  39. try
  40. {
  41. ICSROUTEDAL.AddandEdit(routeLot, Appconstr);
  42. }
  43. catch (Exception ex)
  44. {
  45. throw ex;
  46. }
  47. }
  48. #endregion
  49. #region 根据途程id查询途程信息
  50. public static ICSROUTE select(String guid, String Appconstr)
  51. {
  52. return ICSROUTEDAL.select(guid, Appconstr);
  53. }
  54. public static ICSROUTE search(string ROUTECODE, String Appconstr)
  55. {
  56. return ICSROUTEDAL.search(ROUTECODE, Appconstr);
  57. }
  58. public static ICSROUTE2OP select(string ROUTECODE, string OPCODE, string Appconstr)
  59. {
  60. return ICSROUTEDAL.select(ROUTECODE, OPCODE, Appconstr);
  61. }
  62. public static ICSROUTE2OP search(string ROUTECODE, int OPSEQ, string Appconstr)
  63. {
  64. return ICSROUTEDAL.search(ROUTECODE, OPSEQ, Appconstr);
  65. }
  66. #endregion
  67. #region 删除
  68. public static void delete(List<String> guidList, List<string> codeList)
  69. {
  70. ICSROUTEDAL.delete(guidList, codeList);
  71. }
  72. #endregion
  73. #region 判断是途程否在途程和工序的关系维护中
  74. public static bool isIncludingInICSROUTE2OP(List<string> idList, string dsconn)
  75. {
  76. try
  77. {
  78. return ICSROUTEDAL.isIncludingInICSROUTE2OP(idList, dsconn);
  79. }
  80. catch (Exception ex)
  81. {
  82. throw ex;
  83. }
  84. }
  85. public static List<ICSROUTE2OP> IncludingInICSROUTE2OP(List<string> idList, string dsconn)
  86. {
  87. try
  88. {
  89. return ICSROUTEDAL.IncludingInICSROUTE2OP(idList, dsconn);
  90. }
  91. catch (Exception ex)
  92. {
  93. throw ex;
  94. }
  95. }
  96. #endregion
  97. #region 判断产品和途程的关系维护中是否已使用该途程
  98. public static bool isIncludingInICSITEM2ROUTE(List<string> idList, string dsconn)
  99. {
  100. try
  101. {
  102. return ICSROUTEDAL.isIncludingInICSITEM2ROUTE(idList, dsconn);
  103. }
  104. catch (Exception ex)
  105. {
  106. throw ex;
  107. }
  108. }
  109. public static List<ICSITEM2ROUTE> IncludingInICSITEM2ROUTE(List<string> idList, string dsconn)
  110. {
  111. return ICSROUTEDAL.IncludingInICSITEM2ROUTE(idList, dsconn);
  112. }
  113. #endregion
  114. #region 判断产品、途程和工序的关系维护中是否已使用该途程
  115. public static bool isIncludingInICSITEMROUTE2OP(List<string> idList, string dsconn)
  116. {
  117. try
  118. {
  119. return ICSROUTEDAL.isIncludingInICSITEMROUTE2OP(idList, dsconn);
  120. }
  121. catch (Exception ex)
  122. {
  123. throw ex;
  124. }
  125. }
  126. public static List<ICSITEMROUTE2OP> IncludingInICSITEMROUTE2OP(List<string> idList, string dsconn)
  127. {
  128. return ICSROUTEDAL.IncludingInICSITEMROUTE2OP(idList, dsconn);
  129. }
  130. #endregion
  131. #region 获取工序信息
  132. public static DataTable GetOPCODE(string OPCODE, string WorkPointCode, string dsconn)
  133. {
  134. try
  135. {
  136. DataTable dt = ICSROUTEDAL.GetOPCODE(OPCODE, WorkPointCode, dsconn);
  137. return dt;
  138. }
  139. catch (Exception ex)
  140. {
  141. throw ex;
  142. }
  143. }
  144. #endregion
  145. }
  146. }