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

144 lines
3.5 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 FormPhysicalInventoryBLL
  11. {
  12. #region ERPCheckVouch
  13. public static void ERPCheckVouch(CheckContext Context, string Appconstr)
  14. {
  15. try
  16. {
  17. FormPhysicalInventoryDAL.ERPCheckVouch(Context, Appconstr);
  18. }
  19. catch (Exception ex)
  20. {
  21. throw ex;
  22. }
  23. }
  24. #endregion
  25. #region AddandEdit
  26. public static void AddandEdit(ICSToCheck ItemLot, string Appconstr)
  27. {
  28. try
  29. {
  30. FormPhysicalInventoryDAL.AddandEdit(ItemLot, Appconstr);
  31. }
  32. catch (Exception ex)
  33. {
  34. throw ex;
  35. }
  36. }
  37. #endregion
  38. #region AddandEdit
  39. public static void AddToCheck(ICSToCheck ToCheck, string Appconstr)
  40. {
  41. try
  42. {
  43. FormPhysicalInventoryDAL.AddToCheck(ToCheck, Appconstr);
  44. }
  45. catch (Exception ex)
  46. {
  47. throw ex;
  48. }
  49. }
  50. #endregion
  51. #region select
  52. public static ICSToCheck select(String guid, String Appconstr)
  53. {
  54. return FormPhysicalInventoryDAL.select(guid, Appconstr);
  55. }
  56. #endregion
  57. #region FindAll
  58. public static DataTable FindAll(string Appconstr)
  59. {
  60. try
  61. {
  62. return FormPhysicalInventoryDAL.FindAll(Appconstr);
  63. }
  64. catch (Exception ex)
  65. {
  66. throw ex;
  67. }
  68. }
  69. #endregion
  70. #region delete
  71. public static void delete(string ItemCode, string Appconstr)
  72. {
  73. try
  74. {
  75. FormPhysicalInventoryDAL.delete(ItemCode, Appconstr);
  76. }
  77. catch (Exception ex)
  78. {
  79. throw ex;
  80. }
  81. }
  82. #endregion
  83. #region deletedetail 删除盘点详情
  84. public static void deletedetail(string LotNo, string ToCheckNo, decimal Actualqty, string itemno, string Appconstr)
  85. {
  86. try
  87. {
  88. FormPhysicalInventoryDAL.deletedetail(LotNo, ToCheckNo, Actualqty, itemno, Appconstr);
  89. }
  90. catch (Exception ex)
  91. {
  92. throw ex;
  93. }
  94. }
  95. #endregion
  96. #region Update
  97. public static void CheckIn(string CheckNo, string BarCode, string LotQty, string Appconstr)
  98. {
  99. try
  100. {
  101. FormPhysicalInventoryDAL.CheckIn(CheckNo, BarCode, LotQty, Appconstr);
  102. }
  103. catch (Exception ex)
  104. {
  105. throw ex;
  106. }
  107. }
  108. #endregion
  109. public static DataTable Check(string BarCode, string ToCheckNo, string Appconstr)
  110. {
  111. try
  112. {
  113. return FormPhysicalInventoryDAL.Check(BarCode, ToCheckNo, Appconstr);
  114. }
  115. catch (Exception ex)
  116. {
  117. throw ex;
  118. }
  119. }
  120. public static DataTable CheckNo(string BarCode, string Appconstr)
  121. {
  122. try
  123. {
  124. return FormPhysicalInventoryDAL.CheckNo(BarCode, Appconstr);
  125. }
  126. catch (Exception ex)
  127. {
  128. throw ex;
  129. }
  130. }
  131. }
  132. }