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

128 lines
3.2 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 ICSDispatchReturnBLL
  11. {
  12. #region 新增和修改
  13. public static void Add(List<ICSITEMLot> InfoList, string dsconn)
  14. {
  15. try
  16. {
  17. if (string.IsNullOrWhiteSpace(dsconn))
  18. {
  19. throw new Exception("数据库连接字符串错误");
  20. }
  21. ICSDispatchReturnDAL.Add(InfoList, dsconn);
  22. }
  23. catch (Exception ex)
  24. {
  25. throw ex;
  26. }
  27. }
  28. #endregion
  29. #region 成品条码新增和修改
  30. public static void AddInv(List<ICSITEMLot> InfoList, string dsconn)
  31. {
  32. try
  33. {
  34. if (string.IsNullOrWhiteSpace(dsconn))
  35. {
  36. throw new Exception("数据库连接字符串错误");
  37. }
  38. ICSDispatchReturnDAL.AddInv(InfoList, dsconn);
  39. }
  40. catch (Exception ex)
  41. {
  42. throw ex;
  43. }
  44. }
  45. #endregion
  46. #region 更新打印信息
  47. public static void updatePrint(List<ICSITEMLot> InfoList, string dsconn)
  48. {
  49. try
  50. {
  51. if (string.IsNullOrWhiteSpace(dsconn))
  52. {
  53. throw new Exception("数据库连接字符串错误");
  54. }
  55. ICSDispatchReturnDAL.updatePrint(InfoList, dsconn);
  56. }
  57. catch (Exception ex)
  58. {
  59. throw ex;
  60. }
  61. }
  62. #endregion
  63. #region 通过代码、行号查询
  64. public static FormICSDispatchReturnUIModel SearchInfo(string CODE, string RowNo, string dsconn)
  65. {
  66. try
  67. {
  68. return ICSDispatchReturnDAL.SearchInfo(CODE,RowNo, dsconn);
  69. }
  70. catch (Exception ex)
  71. {
  72. throw ex;
  73. }
  74. }
  75. #endregion
  76. #region 通过物料查询
  77. public static FormICSDispatchReturnUIModel SearchInfoInv(string CODE, string dsconn)
  78. {
  79. try
  80. {
  81. return ICSDispatchReturnDAL.SearchInfoInv(CODE, dsconn);
  82. }
  83. catch (Exception ex)
  84. {
  85. throw ex;
  86. }
  87. }
  88. #endregion
  89. #region 通过主表行和子表
  90. public static DataSet SearchData(string CODE, string RowNo, string dsconn)
  91. {
  92. try
  93. {
  94. return ICSDispatchReturnDAL.SearchData(CODE, RowNo, dsconn);
  95. }
  96. catch (Exception ex)
  97. {
  98. throw ex;
  99. }
  100. }
  101. #endregion
  102. #region 删除
  103. public static void deleteInfo(List<string> codeList, string dsconn)
  104. {
  105. try
  106. {
  107. ICSDispatchReturnDAL.deleteInfo(codeList, dsconn);
  108. }
  109. catch (Exception ex)
  110. {
  111. throw ex;
  112. }
  113. }
  114. #endregion
  115. }
  116. }