LgStlLfsOptinfoDAL.cs 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. using Core.Mes.Client.Common;
  9. using Core.LgMes.Client.lgDbMgt;
  10. namespace Core.LgMes.Client.lgServiceMgt.LgResService
  11. {
  12. public class LgStlLfsOptinfoDAL : Core.LgMes.Client.lgServiceMgt.BaseService.LgBaseService
  13. {
  14. private const string SQL_STL_LFS_OPTION = "select * from stl_lfs_optinfo where 1 = 1 {0}";
  15. private const string HIS_SQL_STL_LFS_OPTION = "select * from j#stl_lfs_optinfo where 1 = 1 {0}";
  16. private const string SQL_STL_LFS_OPTION_All = "select * from stl_lfs_optinfo where 1 = 1 {0} union all select * from j#stl_lfs_optinfo where 1 = 1 {0}";
  17. /// <summary>
  18. /// stl_lfs_optinfo
  19. /// </summary>
  20. /// <param name="param"></param>
  21. /// <returns></returns>
  22. public DataSet GetStlLfsOption(ClientParamWithSqlConditionAndOpenBase param)
  23. {
  24. DataSet ds = new DataSet();
  25. string sqlStr = "";
  26. try
  27. {
  28. sqlStr = string.Format(SQL_STL_LFS_OPTION,param.sqlCondition);
  29. ds = base.dbCommond.ExecuteReader(new DbClientParam(sqlStr, param.ob));
  30. }
  31. catch
  32. {
  33. }
  34. return ds;
  35. }
  36. /// <summary>
  37. /// j#stl_lfs_optinfo
  38. /// </summary>
  39. /// <param name="param"></param>
  40. /// <returns></returns>
  41. public DataSet GetStlLfsOptionHis(ClientParamWithSqlConditionAndOpenBase param)
  42. {
  43. DataSet ds = new DataSet();
  44. string sqlStr = "";
  45. try
  46. {
  47. sqlStr = string.Format(HIS_SQL_STL_LFS_OPTION, param.sqlCondition);
  48. ds = base.dbCommond.ExecuteReader(new DbClientParam(sqlStr, param.ob));
  49. }
  50. catch
  51. {
  52. }
  53. return ds;
  54. }
  55. /// <summary>
  56. /// stl_lfs_optinfo j#stl_lfs_optinfo
  57. /// </summary>
  58. /// <param name="param"></param>
  59. /// <returns></returns>
  60. public DataSet GetStlLfsOptionAll(ClientParamWithSqlConditionAndOpenBase param)
  61. {
  62. DataSet ds = new DataSet();
  63. string sqlStr = "";
  64. try
  65. {
  66. sqlStr = string.Format(SQL_STL_LFS_OPTION_All, param.sqlCondition);
  67. ds = base.dbCommond.ExecuteReader(new DbClientParam(sqlStr, param.ob));
  68. }
  69. catch
  70. {
  71. }
  72. return ds;
  73. }
  74. /// <summary>
  75. /// 通过一炉号获取实绩信息
  76. /// </summary>
  77. /// <param name="param"></param>
  78. /// <returns></returns>
  79. public DataSet GetStlLfsOptionByHeatNo(ClientParamWithSqlConditionAndOpenBase param)
  80. {
  81. ClientParamWithSqlConditionAndOpenBase pa = new ClientParamWithSqlConditionAndOpenBase();
  82. pa.sqlCondition = string.Format(" and heatno = '{0}' ",param.sqlCondition);
  83. pa.ob = param.ob;
  84. return GetStlLfsOptionAll(pa);
  85. }
  86. }
  87. }