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

150 lines
4.0 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 ICSMO2UserBLL
  12. {
  13. #region 增加修改
  14. public static void Add(List<FormICSMO2UserUIModel> MO2UserInfoList, string dsconn)
  15. {
  16. try
  17. {
  18. if (string.IsNullOrWhiteSpace(dsconn))
  19. {
  20. throw new Exception("请输入......");
  21. }
  22. ICSMO2UserDAL.Add(MO2UserInfoList, dsconn);
  23. }
  24. catch (Exception ex)
  25. {
  26. throw ex;
  27. }
  28. }
  29. public static void AddOrEdit(List<FormICSMO2UserUIModel> list, List<ICSMO2UserDetail> list_detail, string dsconn)
  30. {
  31. try
  32. {
  33. if (string.IsNullOrWhiteSpace(dsconn))
  34. {
  35. throw new Exception("请输入......");
  36. }
  37. ICSMO2UserDAL.AddAndEdit(list, list_detail, dsconn);
  38. }
  39. catch (Exception ex)
  40. {
  41. throw ex;
  42. }
  43. }
  44. public static void AddOrEdit(FormICSMO2UserUIModel info, string dsconn)
  45. {
  46. try
  47. {
  48. if (string.IsNullOrWhiteSpace(dsconn))
  49. {
  50. throw new Exception("请输入......");
  51. }
  52. ICSMO2UserDAL.AddAndEdit(info, dsconn);
  53. }
  54. catch (Exception ex)
  55. {
  56. throw ex;
  57. }
  58. }
  59. #endregion
  60. #region 删除
  61. public static void deleteInfo(List<string> codeList, string dsconn)
  62. {
  63. try
  64. {
  65. ICSMO2UserDAL.Delete(codeList, dsconn);
  66. }
  67. catch (Exception ex)
  68. {
  69. throw ex;
  70. }
  71. }
  72. #endregion
  73. #region 取消下发
  74. public static void cancelSend(List<string> codeList, string dsconn)
  75. {
  76. try
  77. {
  78. ICSMO2UserDAL.cancelSend(codeList, dsconn);
  79. }
  80. catch (Exception ex)
  81. {
  82. throw ex;
  83. }
  84. }
  85. #endregion
  86. public static void cancelSend(List<string> lotno, List<string> opcode, string dsconn)
  87. {
  88. try
  89. {
  90. ICSMO2UserDAL.cancelSend(lotno, opcode, dsconn);
  91. }
  92. catch (Exception ex)
  93. {
  94. throw ex;
  95. }
  96. }
  97. public static void CancelSended(List<string> list, string StrCon)
  98. {
  99. ICSMO2UserDAL.CancelSended(list, StrCon);
  100. }
  101. public static void CancelSendedWW(List<string> list, string StrCon)
  102. {
  103. ICSMO2UserDAL.CancelSendedWW(list, StrCon);
  104. }
  105. public static DataTable SelectMO2USER(string MOCODE, string MOSEQ, string StrCon, string wp)
  106. {
  107. return ICSMO2UserDAL.SelectMO2USER(MOCODE, MOSEQ, StrCon, wp);
  108. }
  109. public static void Delete(List<string> listID, string StrCon)
  110. {
  111. ICSMO2UserDAL.Delete(listID, StrCon);
  112. }
  113. public static void Import(List<ICSMO2User> mo2userList, string appConnectString)
  114. {
  115. ICSMO2UserDAL.Import(mo2userList, appConnectString);
  116. }
  117. public static DataTable ExportTemplate(string appConnectString, string workpoint, bool onlyNotSend, string mocode)
  118. {
  119. return ICSMO2UserDAL.ExportTemplate(appConnectString, workpoint, onlyNotSend, mocode);
  120. }
  121. public static void SendAhwit(string LOTNO, string ROUTECODE, int OPSEQ, string OPCODE, string WorkPoint, DateTime timeCreated, string appConnectString)
  122. {
  123. ICSMO2UserDAL.SendAhwit(LOTNO, ROUTECODE, OPSEQ, OPCODE, WorkPoint, timeCreated, appConnectString);
  124. }
  125. }
  126. }