DbLg3qMes.cs.svn-base 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using CoreFS.CA06;
  6. using System.Data;
  7. using System.Collections;
  8. namespace Core.LgMes.Client.lgDbMgt
  9. {
  10. /// <summary>
  11. /// 三期Mes 数据库调用
  12. /// </summary>
  13. class DbLg3qMes : IDbCommand
  14. {
  15. /// <summary>
  16. /// 返回数据集
  17. /// </summary>
  18. /// <param name="param"></param>
  19. /// <returns></returns>
  20. public DataSet ExecuteReader(DbClientParam param)
  21. {
  22. DataSet ds = new DataSet();
  23. try
  24. {
  25. CoreFS.CA06.FrmBase fr = new FrmBase();
  26. fr.ob = param.ob;
  27. DataTable dt = new DataTable();
  28. CoreClientParam Ccp_Query = CoreClientParamMgt.ReturnSqMesDbCoreClientParamForQuery(param.sqlStr, dt);
  29. fr.ExecuteQueryToDataTable(Ccp_Query, CoreInvokeType.Internal);
  30. ds.Tables.Add(dt);
  31. }
  32. catch
  33. {
  34. }
  35. return ds;
  36. }
  37. public string ExecuteNonQuery(DbClientParam param)
  38. {
  39. return "";
  40. }
  41. }
  42. }