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

115 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 ICSSoft.Frame.Data.Entity;
  6. using ICSSoft.Frame.Data.DAL;
  7. using System.Data;
  8. namespace ICSSoft.Frame.Data.BLL
  9. {
  10. public class ICSECG2ECBLL
  11. {
  12. public static void Add(DataTable dt, string ecgid, string ecgcode, string Appconstr)
  13. {
  14. try
  15. {
  16. ICSECG2ECDAL.AddAndEdit(dt, ecgid, ecgcode, Appconstr);
  17. }
  18. catch (Exception ex)
  19. {
  20. throw ex;
  21. }
  22. }
  23. #region select
  24. public static FormICSECG2ECUIModel SearchEcg2EcInfoByCode(string ecgid, string ecid, string dsconn)
  25. {
  26. try
  27. {
  28. List<FormICSECG2ECUIModel> returnlist = ICSECG2ECDAL.SearchEcg2EcInfoByCode(ecgid,ecid,dsconn);
  29. return returnlist[0];
  30. }
  31. catch (Exception ex)
  32. {
  33. throw ex;
  34. }
  35. }
  36. #endregion
  37. //public static DataTable SearchPOInfoList(string str,string dsconn)
  38. //{
  39. // try
  40. // {
  41. // DataTable returndt = new DataTable();
  42. // returndt.Columns.Add("工序代码", typeof(string));
  43. // returndt.Columns.Add("工序", typeof(string));
  44. // List<FormICSOPUIModel> returndal = ICSMODELOP2CKGROUPDAL.SearchOPInfoList(str,dsconn);
  45. // foreach (FormICSOPUIModel returntype in returndal)
  46. // {
  47. // DataRow dr = returndt.NewRow();
  48. // dr["工序代码"] = returntype.OPCODE;
  49. // dr["工序"] = returntype.OPDESC;
  50. // returndt.Rows.Add(dr);
  51. // }
  52. // return returndt;
  53. // }
  54. // catch (Exception ex)
  55. // {
  56. // throw ex;
  57. // }
  58. //}
  59. #region delete
  60. public static void delete(List<String> guidList)
  61. {
  62. ICSECG2ECDAL.delete(guidList);
  63. }
  64. #endregion
  65. public static DataTable SelectECGId(string str, string wp)
  66. {
  67. try
  68. {
  69. return ICSECG2ECDAL.SelectECGId(str, wp);
  70. }
  71. catch (Exception ex)
  72. {
  73. throw ex;
  74. }
  75. }
  76. public static DataTable SelectECId(string str, string wp)
  77. {
  78. try
  79. {
  80. return ICSECG2ECDAL.SelectECId(str,wp);
  81. }
  82. catch (Exception ex)
  83. {
  84. throw ex;
  85. }
  86. }
  87. #region edit
  88. public static void Save(List<string> ecidList, List<string> ecgidList)
  89. {
  90. ICSECG2ECDAL.Save(ecidList, ecgidList);
  91. }
  92. #endregion
  93. }
  94. }