FrmChemDataManageNewSon.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using Core.Mes.Client.Comm.Control;
  2. using Core.Mes.Client.Comm.Tool;
  3. using Core.StlMes.Client.Lims.Data.PipeAndOutdec.封装类.实体类;
  4. using CoreFS.CA06;
  5. using System;
  6. using System.Collections;
  7. using System.Collections.Generic;
  8. using System.ComponentModel;
  9. using System.Data;
  10. using System.Drawing;
  11. using System.Linq;
  12. using System.Text;
  13. using System.Windows.Forms;
  14. namespace Core.StlMes.Client.Lims.Data.PipeAndOutdec.数据管理.钢管实验管理
  15. {
  16. public partial class FrmChemDataManageNewSon : FrmBase
  17. {
  18. private OpeBase _ob;
  19. private string CHECK_NO = "";
  20. public FrmChemDataManageNewSon(string checkNo, string type, OpeBase ob)
  21. {
  22. InitializeComponent();
  23. EntityHelper.ShowGridCaption<PipeCheckconsignChemdetailEntity2>(ultraGrid1.DisplayLayout.Bands[0]);
  24. CHECK_NO = checkNo;
  25. _ob = ob;
  26. Query();
  27. if (type.Equals("ONH"))
  28. {
  29. //加载氧氮氢分析原始记录受控编号
  30. DataTable jjDt = PublicServer.GetData("com.steering.lims.data.pipe.FrmChemDataManage.initMeeting", new Object[] { "100128%" }, ob);
  31. if (jjDt.Rows.Count > 0 && jjDt != null)
  32. {
  33. ultraLabel14.Text = "氧氮氢分析原始记录:" + jjDt.Rows[0][0].ToString();
  34. }
  35. }
  36. if (type.Equals("HX"))
  37. {
  38. //加载发射光谱分析原始记录受控编号
  39. DataTable jjDt = PublicServer.GetData("com.steering.lims.data.pipe.FrmChemDataManage.initMeeting", new Object[] { "100127%" }, ob);
  40. if (jjDt.Rows.Count > 0 && jjDt != null)
  41. {
  42. ultraLabel14.Text = "发射光谱分析原始记录:" + jjDt.Rows[0][0].ToString();
  43. }
  44. }
  45. }
  46. private void Query()
  47. {
  48. List<PipeCheckconsignChemdetailEntity2> listSource = EntityHelper.GetData<PipeCheckconsignChemdetailEntity2>(
  49. "com.steering.lims.data.pipe.FrmChemDataManage.selectStdSteelNo", new object[] { CHECK_NO }, this._ob);
  50. bindingSource1.DataSource = listSource;
  51. GridHelper.RefreshAndAutoSize(this.ultraGrid1);
  52. }
  53. }
  54. }