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

90 lines
1.9 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 System.Data;
  8. namespace ICSSoft.Frame.Data.BLL
  9. {
  10. public class ICSMODEL2ECSGBLL
  11. {
  12. public static void Add(DataTable dt, string ecsgid, string ecsgcode, string Appconstr)
  13. {
  14. try
  15. {
  16. ICSMODEL2ECSGDAL.AddAndEdit(dt, ecsgid, ecsgcode, Appconstr);
  17. }
  18. catch (Exception ex)
  19. {
  20. throw ex;
  21. }
  22. }
  23. #region select
  24. public static FormICSECSG2ECSUIModel SearchEcg2EcInfoByCode(string ecsgid, string ecsid, string dsconn)
  25. {
  26. try
  27. {
  28. List<FormICSECSG2ECSUIModel> returnlist = ICSECSG2ECSDAL.SearchEcg2EcInfoByCode(ecsgid,ecsid,dsconn);
  29. return returnlist[0];
  30. }
  31. catch (Exception ex)
  32. {
  33. throw ex;
  34. }
  35. }
  36. #endregion
  37. #region delete
  38. public static void delete(List<String> guidList)
  39. {
  40. ICSMODEL2ECSGDAL.delete(guidList);
  41. }
  42. #endregion
  43. public static DataTable SelectECGId(string str, string wp)
  44. {
  45. try
  46. {
  47. return ICSECG2ECDAL.SelectECGId(str, wp);
  48. }
  49. catch (Exception ex)
  50. {
  51. throw ex;
  52. }
  53. }
  54. public static DataTable SelectECId(string str, string wp)
  55. {
  56. try
  57. {
  58. return ICSECG2ECDAL.SelectECId(str,wp);
  59. }
  60. catch (Exception ex)
  61. {
  62. throw ex;
  63. }
  64. }
  65. #region edit
  66. public static void Save(List<string> ecidList, List<string> ecgidList)
  67. {
  68. ICSECSG2ECSDAL.Save(ecidList, ecgidList);
  69. }
  70. #endregion
  71. }
  72. }