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

137 lines
3.6 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 ICSRdrecord2LOTBLL
  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. ICSRdrecord2LOTDAL.Add(InfoList, dsconn);
  22. }
  23. catch (Exception ex)
  24. {
  25. throw ex;
  26. }
  27. }
  28. #endregion
  29. #region 更新打印信息
  30. public static void updatePrint(List<ICSITEMLot> InfoList, string dsconn)
  31. {
  32. try
  33. {
  34. if (string.IsNullOrWhiteSpace(dsconn))
  35. {
  36. throw new Exception("数据库连接字符串错误");
  37. }
  38. ICSRdrecord2LOTDAL.updatePrint(InfoList, dsconn);
  39. }
  40. catch (Exception ex)
  41. {
  42. throw ex;
  43. }
  44. }
  45. #endregion
  46. #region 更新打印信息
  47. public static void updateGoodPrint(List<ICSITEMLot> InfoList, string dsconn)
  48. {
  49. try
  50. {
  51. if (string.IsNullOrWhiteSpace(dsconn))
  52. {
  53. throw new Exception("数据库连接字符串错误");
  54. }
  55. ICSRdrecord2LOTDAL.updateGoodPrint(InfoList, dsconn);
  56. }
  57. catch (Exception ex)
  58. {
  59. throw ex;
  60. }
  61. }
  62. #endregion
  63. #region 通过代码、行号查询
  64. public static FormICSRdrecord2LOTUIModel SearchInfo(string CODE, string RowNo, string dsconn)
  65. {
  66. try
  67. {
  68. return ICSRdrecord2LOTDAL.SearchInfo(CODE, RowNo, dsconn);
  69. }
  70. catch (Exception ex)
  71. {
  72. throw ex;
  73. }
  74. }
  75. #region 原逻辑
  76. #endregion
  77. public static FormICSRdrecord2LOTUIModelX Search_Info(string CODE, string RowNo, string dsconn)
  78. {
  79. try
  80. {
  81. return ICSRdrecord2LOTDAL.Search_Info(CODE, RowNo, dsconn);
  82. }
  83. catch (Exception ex)
  84. {
  85. throw ex;
  86. }
  87. }
  88. #endregion
  89. #region 通过主表行和子表
  90. #region 原逻辑
  91. //public static DataSet SearchData(string CODE, int RowNo, string dsconn)
  92. //{
  93. // try
  94. // {
  95. // return ICSRdrecord2LOTDAL.SearchData(CODE, RowNo, dsconn);
  96. // }
  97. // catch (Exception ex)
  98. // {
  99. // throw ex;
  100. // }
  101. //}
  102. #endregion
  103. public static DataSet SearchData(string CODE, string RowNo, string dsconn)
  104. {
  105. try
  106. {
  107. return ICSRdrecord2LOTDAL.SearchData(CODE, RowNo, dsconn);
  108. }
  109. catch (Exception ex)
  110. {
  111. throw ex;
  112. }
  113. }
  114. #endregion
  115. #region 删除
  116. public static void deleteInfo(List<string> codeList, string dsconn)
  117. {
  118. try
  119. {
  120. ICSRdrecord2LOTDAL.deleteInfo(codeList, dsconn);
  121. }
  122. catch (Exception ex)
  123. {
  124. throw ex;
  125. }
  126. }
  127. #endregion
  128. }
  129. }