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

69 lines
1.7 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 ICSTBLROUTE2OPBLL
  11. {
  12. public static void Add(ICSROUTE2OP typeInfo, string dsconn)
  13. {
  14. try
  15. {
  16. if (string.IsNullOrWhiteSpace(dsconn))
  17. {
  18. throw new Exception("数据库连接字符串错误");
  19. }
  20. List<ICSROUTE2OP> typeInfoList = new List<ICSROUTE2OP>() { typeInfo };
  21. ICSROUTE2OPDAL.AddAndEdit(typeInfoList, dsconn);
  22. }
  23. catch (Exception ex)
  24. {
  25. throw ex;
  26. }
  27. }
  28. public static void AddList(List<ICSROUTE2OP> list, string dsconn)
  29. {
  30. try
  31. {
  32. if (string.IsNullOrWhiteSpace(dsconn))
  33. {
  34. throw new Exception("数据库连接字符串错误");
  35. }
  36. ICSROUTE2OPDAL.AddList(list, dsconn);
  37. }
  38. catch (Exception ex)
  39. {
  40. throw ex;
  41. }
  42. }
  43. public static DataTable SearchROUTE2OP(string routeid, string dsconn)
  44. {
  45. try
  46. {
  47. DataTable returnlist = ICSROUTE2OPDAL.SearchROUTE2OP(routeid, dsconn);
  48. return returnlist;
  49. }
  50. catch (Exception ex)
  51. {
  52. throw ex;
  53. }
  54. }
  55. public static void deleteInfo(string dsconn, List<string> codeList)
  56. {
  57. ICSROUTE2OPDAL.deleteInfo(dsconn, codeList);
  58. }
  59. }
  60. }