华恒Mes鼎捷代码
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 ICSSoft.Frame.Data.Entity;
  6. using ICSSoft.Frame.Data.DAL;
  7. //using ZHCSoft.Base.Config.AppConfig;
  8. using System.Data;
  9. namespace ICSSoft.Frame.Data.BLL
  10. {
  11. public class ICSOP2UserBLL
  12. {
  13. #region 删除
  14. public static void deleteInfo(List<ICSOP2User> op2userList, string dsconn)
  15. {
  16. try
  17. {
  18. ICSOP2UserDAL.deleteInfo(op2userList, dsconn);
  19. }
  20. catch (Exception ex)
  21. {
  22. throw ex;
  23. }
  24. }
  25. #endregion
  26. #region 新增和修改
  27. public static void Add(int flag,FormICSOP2UserUIModel Info, string dsconn)
  28. {
  29. try
  30. {
  31. if (string.IsNullOrWhiteSpace(dsconn))
  32. {
  33. throw new Exception("数据库连接字符串错误");
  34. }
  35. List<FormICSOP2UserUIModel> InfoList = new List<FormICSOP2UserUIModel>() { Info };
  36. ICSOP2UserDAL.Add(flag,InfoList, dsconn);
  37. }
  38. catch (Exception ex)
  39. {
  40. throw ex;
  41. }
  42. }
  43. #endregion
  44. #region 新增和修改List
  45. public static string AddList(List<FormICSOP2UserUIModel> InfoList, string dsconn)
  46. {
  47. try
  48. {
  49. if (string.IsNullOrWhiteSpace(dsconn))
  50. {
  51. throw new Exception("数据库连接字符串错误");
  52. }
  53. return ICSOP2UserDAL.AddList(InfoList, dsconn);
  54. }
  55. catch (Exception ex)
  56. {
  57. throw ex;
  58. }
  59. }
  60. #endregion
  61. #region 查询工序人员信息
  62. public static FormICSOP2UserUIModel SearchInfoByCode(string opcode,string usercode, string dsconn)
  63. {
  64. try
  65. {
  66. List<FormICSOP2UserUIModel> returnlist = ICSOP2UserDAL.SearchInfoByCode(opcode,usercode, dsconn);
  67. return returnlist[0];
  68. }
  69. catch (Exception ex)
  70. {
  71. throw ex;
  72. }
  73. }
  74. #endregion
  75. }
  76. }