frmTundish.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 Core.Mes.Client.Common;
  9. using System.Collections;
  10. using CoreFS.CA06;
  11. namespace Core.LgMes.Client.lgGlobalMap
  12. {
  13. public partial class frmTundish : CoreFS.CA06.FrmBase
  14. {
  15. public OpeBase ob;
  16. string HeatNo = "", StationCode = "",Steel="";
  17. public frmTundish(string strHeatNo, string strStationCode,string strSteel)
  18. {
  19. HeatNo = strHeatNo; //휩조뵀
  20. StationCode = strStationCode; //멋貫긍쯤
  21. Steel = strSteel; //탬뵀
  22. InitializeComponent();
  23. }
  24. private void frmTundish_Load(object sender, EventArgs e)
  25. {
  26. lblHeatNoValue.Text = HeatNo;
  27. lblSteelValue.Text = Steel;
  28. GetTundishTemp(HeatNo, StationCode);
  29. }
  30. private void GetTundishTemp(string strHeatNo, string strStationCode)
  31. {
  32. string strErr = "";
  33. int intRow = 1;
  34. DataSet dsResult = new DataSet();
  35. string strSqlID="GetTundishTemp.Select";
  36. ArrayList arry = new ArrayList();
  37. CommonClientToServer ccTos = new CommonClientToServer();
  38. ccTos.ob = ob;
  39. arry.Add(strSqlID);
  40. arry.Add(strHeatNo);
  41. arry.Add(strStationCode);
  42. //꿴璂膠죕토零斤口
  43. dsResult = ccTos.ExecuteQueryFunctions("Core.LgMes.Server.LgGlobalMap.ClassReadDataMgt",
  44. "GetTundishTemp", arry, out strErr);
  45. if (strErr == "" && dsResult != null)
  46. {
  47. foreach (DataRow dr in dsResult.Tables[0].Rows)
  48. {
  49. dataGVTundish.Rows.Add(new object[] { intRow.ToString(), dr["samplingvalue"].ToString(), dr["samplingdate"].ToString() });
  50. intRow += 1;
  51. }
  52. }
  53. }
  54. private void frmTundish_DoubleClick(object sender, EventArgs e)
  55. {
  56. this.Close();
  57. }
  58. protected override void OnDeactivate(EventArgs e)
  59. {
  60. base.OnDeactivate(e);
  61. this.Close();
  62. }
  63. }
  64. }