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

132 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 System.Data;
  8. namespace ICSSoft.Frame.Data.BLL
  9. {
  10. public class ICSEQPHandleBLL
  11. {
  12. public static void Add(FormICSEQPCHECKLISTUIModel checklistInfo, string dsconn)
  13. {
  14. try
  15. {
  16. if (string.IsNullOrWhiteSpace(dsconn))
  17. {
  18. throw new Exception("请输入......");
  19. }
  20. List<FormICSEQPCHECKLISTUIModel> equipmentInfoList = new List<FormICSEQPCHECKLISTUIModel>() { checklistInfo };
  21. ICSEQPCHECKLISTDAL.AddAndEdit(equipmentInfoList, dsconn);
  22. }
  23. catch (Exception ex)
  24. {
  25. throw ex;
  26. }
  27. }
  28. #region select
  29. public static FormICSEQPCHECKLISTUIModel SearchCheckListInfoByEQPIDandCKGROUP(string id,string ckgroup, string dsconn)
  30. {
  31. try
  32. {
  33. List<FormICSEQPCHECKLISTUIModel> returnlist = ICSEQPCHECKLISTDAL.SearchCheckListInfoByEQPIDandCKGROUP(id,ckgroup, dsconn);
  34. return returnlist[0];
  35. }
  36. catch (Exception ex)
  37. {
  38. throw ex;
  39. }
  40. }
  41. #endregion
  42. #region delete
  43. public static void delete(List<String> guidList)
  44. {
  45. ICSEQPCHECKLISTDAL.delete(guidList);
  46. }
  47. #endregion
  48. #region update
  49. public static void update(string guidList, string statusList)
  50. {
  51. ICSEQPHandleDAL.update(guidList, statusList);
  52. }
  53. #endregion
  54. public static DataTable GetShiftCode()
  55. {
  56. try
  57. {
  58. return ICSShiftDAL.GetShiftCode();
  59. }
  60. catch (Exception ex)
  61. {
  62. throw ex;
  63. }
  64. }
  65. public static DataTable SelectShiftTypeCode()
  66. {
  67. return ICSShiftDAL.SelectShiftTypeCode();
  68. }
  69. public static DataTable SelectShiftTypeId(string str)
  70. {
  71. return ICSShiftDAL.SelectShiftTypeId(str);
  72. }
  73. #region 车间代码是否存在
  74. public static bool IsIncludingShiftCode(string faccode, string dsconn)
  75. {
  76. try
  77. {
  78. return ICSShiftDAL.IsIncludingShiftCode(faccode, dsconn);
  79. }
  80. catch (Exception ex)
  81. {
  82. throw ex;
  83. }
  84. }
  85. #endregion
  86. //#region 班次次序是否存在
  87. //public static bool IsIncludingInShiftSeq(int shiftsqe, string shifttypeid)
  88. //{
  89. // try
  90. // {
  91. // return ICSShiftDAL.IsIncludingInShiftSeq(shiftsqe, shifttypeid);
  92. // }
  93. // catch (Exception ex)
  94. // {
  95. // throw ex;
  96. // }
  97. //}
  98. //#endregion
  99. #region 判断是否在时段中
  100. public static bool isIncludingInICSTP(List<string> idList, string dsconn)
  101. {
  102. try
  103. {
  104. return ICSShiftDAL.isIncludingInICSTP(idList, dsconn);
  105. }
  106. catch (Exception ex)
  107. {
  108. throw ex;
  109. }
  110. }
  111. #endregion
  112. }
  113. }