frmBfIronTemp.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Windows.Forms;
  8. using CoreFS.CA06;
  9. using Core.Mes.Client.Common;
  10. using System.Collections;
  11. namespace Core.LgMes.Client.LgJobMgt
  12. {
  13. public partial class frmBfIronTemp : frmStyleBase
  14. {
  15. public frmBfIronTemp()
  16. {
  17. InitializeComponent();
  18. }
  19. private string _szCZSJ;
  20. private DataSet _dsTBH = new DataSet();
  21. public string _strHeatProcessNo = "", _strPTIronTemp = "";
  22. public string strVan = "";
  23. public OpeBase ob; //服务端URL
  24. public string strKR_Charge_NO = "";
  25. /// <summary>
  26. /// 获取平台温度数据
  27. /// </summary>
  28. private void GetPTIronTemp()
  29. {
  30. string strErr = "";
  31. ArrayList arry = new ArrayList();
  32. arry.Add("GetPTIronTemp.Select");//此ID为XML文件ID
  33. CommonClientToServer ccTs = new CommonClientToServer();
  34. ccTs.ob = ob;
  35. // 获取平台温度数据
  36. DataSet ds = ccTs.ExecuteQueryFunctions("Core.LgMes.Server.LgJobMgt.ClassHmpJob",
  37. "GetPTIronTemp", arry, out strErr);
  38. if (strErr == "" && ds != null)
  39. {
  40. ultraDataSource2.Rows.Clear();
  41. if (ds.Tables.Count > 0)
  42. {
  43. foreach (DataRow dr in ds.Tables[0].Rows)
  44. {
  45. ultraDataSource2.Rows.Add(new object[] {dr["HEATPROCESSNO"].ToString(),
  46. dr["SAMPLINGVALUE"].ToString(),
  47. dr["SAMPLINGDATE"].ToString(),
  48. dr["FLAG"].ToString(),
  49. });
  50. }
  51. }
  52. else
  53. MessageBox.Show("平台铁水温度信息查询失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  54. }
  55. }
  56. private void frmBfIronTemp_Load(object sender, EventArgs e)
  57. {
  58. GetPTIronTemp();
  59. }
  60. private void ultragridInIron_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
  61. {
  62. if (e.Row != null)
  63. {
  64. _strHeatProcessNo = e.Row.Cells["HEATPROCESSNO"].Value.ToString();
  65. _strPTIronTemp = e.Row.Cells["SAMPLINGVALUE"].Value.ToString();
  66. this.Close();
  67. }
  68. }
  69. }
  70. }