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

120 lines
3.1 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 FormICSPurchaseLOTBLL
  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. FormICSPurchaseLOTDAL.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. FormICSPurchaseLOTDAL.updatePrint(InfoList, dsconn);
  39. }
  40. catch (Exception ex)
  41. {
  42. throw ex;
  43. }
  44. }
  45. #endregion
  46. #region 通过代码、行号查询
  47. public static FormICSRdrecord2LOTUIModel SearchInfo(string CODE, string RowNo, string dsconn)
  48. {
  49. try
  50. {
  51. return FormICSPurchaseLOTDAL.SearchInfo(CODE, RowNo, dsconn);
  52. }
  53. catch (Exception ex)
  54. {
  55. throw ex;
  56. }
  57. }
  58. #region 原逻辑
  59. #endregion
  60. public static FormICSPurchaseLOTUIModelX Search_Info(string CODE, string RowNo, string dsconn)
  61. {
  62. try
  63. {
  64. return FormICSPurchaseLOTDAL.Search_Info(CODE, RowNo, dsconn);
  65. }
  66. catch (Exception ex)
  67. {
  68. throw ex;
  69. }
  70. }
  71. #endregion
  72. #region 通过主表行和子表
  73. #region 原逻辑
  74. //public static DataSet SearchData(string CODE, int RowNo, string dsconn)
  75. //{
  76. // try
  77. // {
  78. // return FormICSPurchaseLOTDAL.SearchData(CODE, RowNo, dsconn);
  79. // }
  80. // catch (Exception ex)
  81. // {
  82. // throw ex;
  83. // }
  84. //}
  85. #endregion
  86. public static DataSet SearchData(string CODE, string RowNo, string dsconn)
  87. {
  88. try
  89. {
  90. return FormICSPurchaseLOTDAL.SearchData(CODE, RowNo, dsconn);
  91. }
  92. catch (Exception ex)
  93. {
  94. throw ex;
  95. }
  96. }
  97. #endregion
  98. #region 删除
  99. public static void deleteInfo(List<string> codeList, string dsconn)
  100. {
  101. try
  102. {
  103. FormICSPurchaseLOTDAL.deleteInfo(codeList, dsconn);
  104. }
  105. catch (Exception ex)
  106. {
  107. throw ex;
  108. }
  109. }
  110. #endregion
  111. }
  112. }