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

96 lines
2.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.DAL;
  6. using System.Data;
  7. using ICSSoft.Frame.Data.Entity;
  8. namespace ICSSoft.Frame.Data.BLL
  9. {
  10. public class ICSStorageBLL
  11. {
  12. public static void AddAndEdit(ICSStorage Storage, string Appconstr)
  13. {
  14. try
  15. {
  16. ICSStorageDAL.AddAndEdit(Storage, Appconstr);
  17. }
  18. catch (Exception ex)
  19. {
  20. throw ex;
  21. }
  22. }
  23. public static ICSStorage select(String guid, String Appconstr)
  24. {
  25. try
  26. {
  27. return ICSStorageDAL.select(guid, Appconstr);
  28. }
  29. catch (Exception ex)
  30. {
  31. throw ex;
  32. }
  33. }
  34. public static ICSStorage selectById(String guid, String Appconstr)
  35. {
  36. try
  37. {
  38. return ICSStorageDAL.selectByID(guid, Appconstr);
  39. }
  40. catch (Exception ex)
  41. {
  42. throw ex;
  43. }
  44. }
  45. public static ICSStorage selectByCode(String storagecode, String Appconstr)
  46. {
  47. return ICSStorageDAL.selectByCode(storagecode, Appconstr);
  48. }
  49. public static void delete(List<String> guidList)
  50. {
  51. try
  52. {
  53. ICSStorageDAL.delete(guidList);
  54. }
  55. catch (Exception ex)
  56. {
  57. throw ex;
  58. }
  59. }
  60. public static void SelectERP(string ERPName)
  61. {
  62. ICSStorageDAL.SelectERP(ERPName);
  63. }
  64. public static void SaveInfo(DataTable data, string Appconstr)
  65. {
  66. try
  67. {
  68. ICSStorageDAL.SaveInfo(data, Appconstr);
  69. }
  70. catch (Exception ex)
  71. {
  72. throw ex;
  73. }
  74. }
  75. public static void SaveConnect(string Connecting, string StorageSerial1, Dictionary<string, string> ConnList)
  76. {
  77. try
  78. {
  79. ICSStorageDAL.SaveConnect(Connecting, StorageSerial1, ConnList);
  80. }
  81. catch (Exception ex)
  82. {
  83. throw ex;
  84. }
  85. }
  86. }
  87. }