华恒Mes鼎捷代码
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.

93 lines
2.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. namespace ICSSoft.Frame.Data.BLL
  9. {
  10. public class ICSMO2UserBLL
  11. {
  12. #region 增加修改
  13. public static void Add(List<FormICSMO2UserUIModel> MO2UserInfoList, string dsconn)
  14. {
  15. try
  16. {
  17. if (string.IsNullOrWhiteSpace(dsconn))
  18. {
  19. throw new Exception("请输入......");
  20. }
  21. ICSMO2UserDAL.AddAndEdit(MO2UserInfoList, dsconn);
  22. }
  23. catch (Exception ex)
  24. {
  25. throw ex;
  26. }
  27. }
  28. #endregion
  29. #region 删除
  30. public static void deleteInfo(List<string> codeList, string dsconn)
  31. {
  32. try
  33. {
  34. ICSMO2UserDAL.deleteInfo(codeList, dsconn);
  35. }
  36. catch (Exception ex)
  37. {
  38. throw ex;
  39. }
  40. }
  41. #endregion
  42. #region 取消下发
  43. public static void cancelSend(List<string> codeList, string dsconn)
  44. {
  45. try
  46. {
  47. ICSMO2UserDAL.cancelSend(codeList, dsconn);
  48. }
  49. catch (Exception ex)
  50. {
  51. throw ex;
  52. }
  53. }
  54. public static void cancelSend(List<string> lotno, List<string> opcode, string dsconn)
  55. {
  56. try
  57. {
  58. ICSMO2UserDAL.cancelSend(lotno, opcode, dsconn);
  59. }
  60. catch (Exception ex)
  61. {
  62. throw ex;
  63. }
  64. }
  65. public static void cancelSendWW(List<string> lotno, List<string> opcode, string dsconn)
  66. {
  67. try
  68. {
  69. ICSMO2UserDAL.cancelSendWW(lotno, opcode, dsconn);
  70. }
  71. catch (Exception ex)
  72. {
  73. throw ex;
  74. }
  75. }
  76. #endregion
  77. }
  78. }