frmBof.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 frmBof : Core.LgMes.Client.lgGlobalMap.frmBaseSite
  13. {
  14. public frmBof()
  15. {
  16. InitializeComponent();
  17. }
  18. private void frmBof_Load(object sender, EventArgs e)
  19. {
  20. FillData();
  21. }
  22. protected override void FillData()
  23. {
  24. base.FillData();
  25. SetJobInfo();
  26. SetAdditiveInfo("BofAdditive");
  27. SetTemperatureInfo("BofSampling");
  28. }
  29. private void SetJobInfo()
  30. {
  31. try
  32. {
  33. if (string.IsNullOrEmpty(HeatProcessNo))
  34. return;
  35. DataTable dtJob = _arDataSource[3] as DataTable;
  36. if (dtJob != null && dtJob.Rows.Count > 0)
  37. {
  38. ulblFGZL.Text = dtJob.Rows[0]["WSTEELWGT"].ToString();
  39. ulblTSZL.Text = dtJob.Rows[0]["IRONPOTWGT"].ToString();
  40. //ulblGBH.Text = dtJob.Rows[0]["POTNO"].ToString();
  41. ulblGBDJ.Text = dtJob.Rows[0]["POTDISTINCTION"].ToString();
  42. ulblGBBK.Text = dtJob.Rows[0]["POTWRAPSTATE"].ToString();
  43. lblPotTemp.Text = dtJob.Rows[0]["POTTEMP"].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. }
  59. }
  60. }