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

104 lines
2.8 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 ICSTPBLL
  11. {
  12. public static void Add(ICSTP typeInfo, string dsconn)
  13. {
  14. try
  15. {
  16. if (string.IsNullOrWhiteSpace(dsconn))
  17. {
  18. throw new Exception("数据库连接字符串错误");
  19. }
  20. List<ICSTP> typeInfoList = new List<ICSTP>() { typeInfo };
  21. ICSTPDal.AddAndEdit(typeInfoList, dsconn);
  22. }
  23. catch (Exception ex)
  24. {
  25. throw ex;
  26. }
  27. }
  28. public static ICSTP SearchPersonInfoByCode(string id, string dsconn)
  29. {
  30. try
  31. {
  32. List<ICSTP> returnlist = ICSTPDal.SearchPersonInfoByCode(id, dsconn);
  33. return returnlist[0];
  34. }
  35. catch (Exception ex)
  36. {
  37. throw ex;
  38. }
  39. }
  40. public static DataTable SelectShiftTypeCode()
  41. {
  42. return ICSTPDal.SelectShiftTypeCode();
  43. }
  44. public static DataTable SelectShiftCode(string str)
  45. {
  46. return ICSTPDal.SelectShiftCode(str);
  47. }
  48. public static DataTable SelectTPCode()
  49. {
  50. return ICSTPDal.SelectTPCode();
  51. }
  52. public static DataTable SelectSTTPID(string str)
  53. {
  54. return ICSTPDal.SelectSTTPID(str);
  55. }
  56. public static DataTable SelectSTPID(string str)
  57. {
  58. return ICSTPDal.SelectSTPID(str);
  59. }
  60. public static DataTable SelectBegTime(string str)
  61. {
  62. return ICSTPDal.SelectBegTime(str);
  63. }
  64. public static DataTable SelectEndTime(string str)
  65. {
  66. return ICSTPDal.SelectEndTime(str);
  67. }
  68. public static DataTable SelectTime()
  69. {
  70. return ICSTPDal.SelectTime();
  71. }
  72. public static void deleteInfo(string dsconn, List<string> codeList)
  73. {
  74. ICSTPDal.deleteInfo(dsconn, codeList);
  75. }
  76. public static DataTable SelectSTTPID1(string str)
  77. {
  78. return ICSTPDal.SelectSTTPID1(str);
  79. }
  80. public static DataTable SelectSTPID1(string str)
  81. {
  82. return ICSTPDal.SelectSTPID1(str);
  83. }
  84. public static DataTable SelectTPTime(string shifttype,string shift)
  85. {
  86. return ICSTPDal.SelectTPTime(shifttype,shift);
  87. }
  88. public static DataTable SelectTPTime1()
  89. {
  90. return ICSTPDal.SelectTPTime1();
  91. }
  92. public static DataTable SelectIsOverDay(string str)
  93. {
  94. return ICSTPDal.SelectIsOverDay(str);
  95. }
  96. }
  97. }