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

92 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 ICSSoft.Frame.Data.Entity;
  7. using System.Data;
  8. namespace ICSSoft.Frame.Data.BLL
  9. {
  10. public class ICSInvTransferBLL
  11. {
  12. #region AddandEdit
  13. public static void AddandEdit(FormICSInvTransferUIModel ItemLot, string dsconn)
  14. {
  15. try
  16. {
  17. if (string.IsNullOrWhiteSpace(dsconn))
  18. {
  19. throw new Exception("请输入......");
  20. }
  21. List<FormICSInvTransferUIModel> ecgInfoList = new List<FormICSInvTransferUIModel>() { ItemLot };
  22. ICSInvTransferDal.AddandEdit(ecgInfoList, dsconn);
  23. }
  24. catch (Exception ex)
  25. {
  26. throw ex;
  27. }
  28. }
  29. #endregion
  30. #region select
  31. public static FormICSInvTransferUIModel SearchInfoByID(string guid, string dsconn)
  32. {
  33. try
  34. {
  35. List<FormICSInvTransferUIModel> returnlist = ICSInvTransferDal.SearchInfoByID(guid, dsconn);
  36. return returnlist[0];
  37. }
  38. catch (Exception ex)
  39. {
  40. throw ex;
  41. }
  42. }
  43. #endregion
  44. #region delete
  45. public static void delete(List<String> guidList,List<string> noList)
  46. {
  47. try
  48. {
  49. ICSInvTransferDal.delete(guidList, noList);
  50. }
  51. catch (Exception ex)
  52. {
  53. throw ex;
  54. }
  55. }
  56. #endregion
  57. public static DataTable SelectFRMStorageId(string str, string wp)
  58. {
  59. try
  60. {
  61. return ICSInvTransferDal.SelectFRMStorageId(str, wp);
  62. }
  63. catch (Exception ex)
  64. {
  65. throw ex;
  66. }
  67. }
  68. public static DataTable TOStorageId(string str, string wp)
  69. {
  70. try
  71. {
  72. return ICSInvTransferDal.TOStorageId(str, wp);
  73. }
  74. catch (Exception ex)
  75. {
  76. throw ex;
  77. }
  78. }
  79. }
  80. }