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

80 lines
1.9 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 ICSEQPMaterialINVBLL
  11. {
  12. public static void Add(FormICSEQPMaterialINVUIModel equipmentInfo, string dsconn)
  13. {
  14. try
  15. {
  16. if (string.IsNullOrWhiteSpace(dsconn))
  17. {
  18. throw new Exception("请输入......");
  19. }
  20. List<FormICSEQPMaterialINVUIModel> equipmentInfoList = new List<FormICSEQPMaterialINVUIModel>() { equipmentInfo };
  21. ICSEQPMaterialINVDAL.AddAndEdit(equipmentInfoList, dsconn);
  22. }
  23. catch (Exception ex)
  24. {
  25. throw ex;
  26. }
  27. }
  28. #region select
  29. public static FormICSEQPMaterialINVUIModel SearchEquipmentInfoByCode(string id, string dsconn)
  30. {
  31. try
  32. {
  33. List<FormICSEQPMaterialINVUIModel> returnlist = ICSEQPMaterialINVDAL.SearchEquipmentInfoByCode(id, dsconn);
  34. return returnlist[0];
  35. }
  36. catch (Exception ex)
  37. {
  38. throw ex;
  39. }
  40. }
  41. #endregion
  42. #region delete
  43. public static void delete(List<String> guidList)
  44. {
  45. ICSEQPMaterialINVDAL.delete(guidList);
  46. }
  47. #endregion
  48. //#region 班次次序是否存在
  49. //public static bool IsIncludingInShiftSeq(int shiftsqe, string shifttypeid)
  50. //{
  51. // try
  52. // {
  53. // return ICSShiftDAL.IsIncludingInShiftSeq(shiftsqe, shifttypeid);
  54. // }
  55. // catch (Exception ex)
  56. // {
  57. // throw ex;
  58. // }
  59. //}
  60. //#endregion
  61. }
  62. }