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

56 lines
1.4 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 ICSTeamGroupBLL
  11. {
  12. public static ICSSGroup SelectByID(string id)
  13. {
  14. List<string> list = new List<string>() { id };
  15. List<ICSSGroup> infs = ICSTeamGroupDAL.Select(list);
  16. if (infs.Count == 0)
  17. {
  18. return null;
  19. }
  20. return infs[0];
  21. }
  22. public static List<ICSSGroup> SelectByID(List<string> list)
  23. {
  24. return ICSTeamGroupDAL.Select(list);
  25. }
  26. public static DataTable SelectAll()
  27. {
  28. return ICSTeamGroupDAL.SelectAll();
  29. }
  30. public static void Edit(ICSSGroup g)
  31. {
  32. List<ICSSGroup> list = new List<ICSSGroup>();
  33. list.Add(g);
  34. ICSTeamGroupDAL.Edit(list);
  35. }
  36. public static void Edit(List<ICSSGroup> list)
  37. {
  38. ICSTeamGroupDAL.Edit(list);
  39. }
  40. public static void DeleteFromID(List<string> listID)
  41. {
  42. ICSTeamGroupDAL.DeleteFromID(listID);
  43. }
  44. public static void DeleteFromCode(List<string> listCode)
  45. {
  46. ICSTeamGroupDAL.DeleteFromCode(listCode);
  47. }
  48. }
  49. }