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

84 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 System.Data;
  6. using ICSSoft.Frame.Data.DAL;
  7. using ICSSoft.Frame.Data.Entity;
  8. namespace ICSSoft.Frame.Data.BLL
  9. {
  10. public class ICSSSBLL
  11. {
  12. public static void Add(ICSSS typeInfo, string dsconn)
  13. {
  14. try
  15. {
  16. if (string.IsNullOrWhiteSpace(dsconn))
  17. {
  18. throw new Exception("数据库连接字符串错误");
  19. }
  20. List<ICSSS> typeInfoList = new List<ICSSS>() { typeInfo };
  21. ICSSSDAL.AddAndEdit(typeInfoList, dsconn);
  22. }
  23. catch (Exception ex)
  24. {
  25. throw ex;
  26. }
  27. }
  28. public static ICSSS SearchPersonInfoByCode(string id, string dsconn)
  29. {
  30. try
  31. {
  32. List<ICSSS> returnlist = ICSSSDAL.SearchPersonInfoByCode(id, dsconn);
  33. return returnlist[0];
  34. }
  35. catch (Exception ex)
  36. {
  37. throw ex;
  38. }
  39. }
  40. public static DataTable SelectSegCode()
  41. {
  42. return ICSSSDAL.SelectSegCode();
  43. }
  44. public static DataTable SelectSegCode(string str)
  45. {
  46. return ICSSSDAL.SelectSegCode(str);
  47. }
  48. public static DataTable SelectSegId(string str)
  49. {
  50. return ICSSSDAL.SelectSegId(str);
  51. }
  52. public static DataTable SelectShiftTypeCode()
  53. {
  54. return ICSSSDAL.SelectShiftTypeCode();
  55. }
  56. public static DataTable SelectShiftTypeId1(string str)
  57. {
  58. return ICSSSDAL.SelectShiftTypeId1(str);
  59. }
  60. public static DataTable SelectShiftTypeCode(string str)
  61. {
  62. return ICSSSDAL.SelectShiftTypeCode(str);
  63. }
  64. public static DataTable SelectShiftTypeId(string str)
  65. {
  66. return ICSSSDAL.SelectShiftTypeId(str);
  67. }
  68. public static void deleteInfo(string dsconn, List<string> codeList)
  69. {
  70. ICSSSDAL.deleteInfo(dsconn, codeList);
  71. }
  72. public static DataTable SelectICSSSCode()
  73. {
  74. return ICSSSDAL.SelectICSSSCode();
  75. }
  76. }
  77. }