ScmLiquidusTemp.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. namespace Core.LgMes.Client.lgGlobalMap
  10. {
  11. public class ScmLiquidusTemp
  12. {
  13. /// <summary>
  14. /// 查询液相线温度
  15. /// </summary>
  16. /// <param name="Lmltempt"></param>
  17. /// <returns></returns>
  18. public static DataTable LiquidusTemp(string Lmltempt, OpeBase ob)
  19. {
  20. try
  21. {
  22. DataSet ds = new DataSet();
  23. string strErr = "";
  24. string strSql = "select a.liquidustemp from SCM_LIQUIDUS_TEMP a where a.steelname='" + Lmltempt + "'";
  25. //CoreFS.CA06.FrmBase cctos = new FrmBase();
  26. CommonClientToServer cctos = new CommonClientToServer();
  27. cctos.ob = ob;
  28. ds = cctos.ExecuteQueryFunctions("Core.LgMes.Server.Common.ComDBExecute",
  29. "doSimpleQuery", strSql, out strErr);
  30. return ds.Tables[0];
  31. }
  32. catch { }
  33. return null;
  34. }
  35. public static DataTable BofOptinfo(string Heatno, OpeBase ob)
  36. {
  37. try
  38. {
  39. DataSet ds = new DataSet();
  40. string strSql = "select a.TERMINUSTEPT ARBTEMPT from stl_bof_optinfo a where a.heatno='" + Heatno + "' union all select t.TERMINUSTEPT ARBTEMPT from j#stl_bof_optinfo t where t.heatno='" + Heatno + "'";
  41. return ExectuteQuery(strSql, ob);
  42. }
  43. catch { }
  44. return null;
  45. }
  46. public static DataTable CasOptinfo(string Heatno,OpeBase ob)
  47. {
  48. try
  49. {
  50. DataSet ds = new DataSet();
  51. string strSql = "select a.ARFTEMPT,a.ARBTEMPT from stl_cas_optinfo a where a.heatno='" + Heatno + "' union all select t.ARFTEMPT,t.ARBTEMPT from j#stl_cas_optinfo t where t.heatno='" + Heatno + "'";
  52. return ExectuteQuery(strSql, ob);
  53. }
  54. catch { }
  55. return null;
  56. }
  57. public static DataTable LfsOptinfo(string Heatno, OpeBase ob)
  58. {
  59. try
  60. {
  61. DataSet ds = new DataSet();
  62. string strSql = "select a.ARRIVETEMPT,a.LEAVETEMPT from stl_lfs_optinfo a where a.heatno='" + Heatno + "' union all select t.ARRIVETEMPT,t.LEAVETEMPT from j#stl_lfs_optinfo t where t.heatno='" + Heatno + "'";
  63. return ExectuteQuery(strSql, ob);
  64. }
  65. catch { }
  66. return null;
  67. }
  68. public static DataTable VdsOptinfo(string Heatno, OpeBase ob)
  69. {
  70. try
  71. {
  72. DataSet ds = new DataSet();
  73. string strSql = "select a.ARFTEMPT,a.ARBTEMPT from stl_vds_optinfo a where a.heatno='" + Heatno + "' union all select t.ARFTEMPT,t.ARBTEMPT from j#stl_vds_optinfo t where t.heatno='" + Heatno + "'";
  74. return ExectuteQuery(strSql, ob);
  75. }
  76. catch { }
  77. return null;
  78. }
  79. public static DataTable RhsOptinfo(string Heatno, OpeBase ob)
  80. {
  81. try
  82. {
  83. DataSet ds = new DataSet();
  84. string strSql = "select a.ARFTEMPT,a.ARBTEMPT from stl_rhs_optinfo a where a.heatno='" + Heatno + "' union all select t.ARFTEMPT,t.ARBTEMPT from j#stl_rhs_optinfo t where t.heatno='" + Heatno + "'";
  85. return ExectuteQuery(strSql, ob);
  86. }
  87. catch { }
  88. return null;
  89. }
  90. public static DataTable CcmOptinfo(string Heatno, OpeBase ob)
  91. {
  92. try
  93. {
  94. DataSet ds = new DataSet();
  95. string strSql = "select a.PFBALETEMPT ARFTEMPT from stl_ccm_optinfo a where a.heatno='" + Heatno + "' union all select t.PFBALETEMPT ARFTEMPT from j#stl_ccm_optinfo t where t.heatno='" + Heatno + "'";
  96. return ExectuteQuery(strSql, ob);
  97. }
  98. catch { }
  99. return null;
  100. }
  101. public static DataTable USE_DETAIL(string Heatno, OpeBase ob)// string v_Ladleid,
  102. {
  103. try
  104. {
  105. DataSet ds = new DataSet();
  106. string strSql = " select * from DEV_GB_USE_DETAIL a1 where a1.heatno='" + Heatno + "'";//and a1.ladleid ='" + v_Ladleid + "'
  107. return ExectuteQuery(strSql, ob);
  108. }
  109. catch { }
  110. return null;
  111. }
  112. //调用公用查询方法
  113. public static DataTable ExectuteQuery(string strSql, OpeBase ob)
  114. {
  115. try
  116. {
  117. CommonClientToServer cctos = new CommonClientToServer();
  118. DataSet ds = new DataSet();
  119. string strErr = "";
  120. cctos.ob = ob;
  121. ds = cctos.ExecuteQueryFunctions("Core.LgMes.Server.Common.ComDBExecute",
  122. "doSimpleQuery", strSql, out strErr);
  123. return ds.Tables[0];
  124. }
  125. catch { }
  126. return null;
  127. }
  128. }
  129. }