frmLfs.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 System.Collections;
  9. using Core.LgMes.Server.lgClassModel;
  10. namespace Core.LgMes.Client.lgGlobalMap
  11. {
  12. public partial class frmLfs : Core.LgMes.Client.lgGlobalMap.frmBaseSite
  13. {
  14. public frmLfs()
  15. {
  16. InitializeComponent();
  17. }
  18. private void frmLfs_Load(object sender, EventArgs e)
  19. {
  20. FillData();
  21. }
  22. protected override void FillData()
  23. {
  24. base.FillData();
  25. SetJobInfo();
  26. SetAdditiveInfo("LfsAdditive");
  27. SetTemperatureInfo("LfsSampling");
  28. }
  29. private void SetJobInfo()
  30. {
  31. if (string.IsNullOrEmpty(HeatProcessNo))
  32. return;
  33. try
  34. {
  35. DataTable dtJob = _arDataSource[3] as DataTable;
  36. if (dtJob != null && dtJob.Rows.Count > 0)
  37. {
  38. ulblJZSK.Text = !string.IsNullOrEmpty(dtJob.Rows[0]["ARRIVETIME"].ToString()) ? dtJob.Rows[0]["ARRIVETIME"].ToString() : "";
  39. ulblSDKS.Text = !string.IsNullOrEmpty(dtJob.Rows[0]["SELESTARTTIME"].ToString()) ? dtJob.Rows[0]["SELESTARTTIME"].ToString() : "";
  40. ulblJZDY.Text = dtJob.Rows[0]["ELETRICITYCONSUME"].ToString();//objJob.ARRIVEO2.ToString();
  41. ulblCZDY.Text = dtJob.Rows[0]["LEAVEO2"].ToString();
  42. ulblSDSJ.Text = dtJob.Rows[0]["SELETIME"].ToString();
  43. ulblDDSJ.Text=dtJob.Rows[0]["WAITTIME"].ToString()+"·ÖÖÓ";
  44. this.label1.Text = dtJob.Rows[0]["POTAGE"].ToString();
  45. DataTable ds = ScmLiquidusTemp.LiquidusTemp(dtJob.Rows[0]["PLANSTEEL"].ToString(), this.ob);
  46. if (ds != null && ds.Rows.Count != 0)
  47. this.label2.Text = ds.Rows[0]["LIQUIDUSTEMP"].ToString();
  48. if (dtJob.Rows[0]["POTNO"].ToString() != null && dtJob.Rows[0]["POTNO"].ToString() != "")
  49. {
  50. DataTable ds1 = ScmLiquidusTemp.USE_DETAIL(dtJob.Rows[0]["HEATNO"].ToString(), this.ob);
  51. this.label3.Text = ds1.Rows[0]["stoppottime"].ToString();
  52. }
  53. }
  54. }
  55. catch { }
  56. }
  57. }
  58. }