FrmTechnological.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using Core.Mes.Client.Comm.Server;
  10. using CoreFS.CA06;
  11. using Core.Mes.Client.Comm.Control;
  12. namespace Core.StlMes.Client.ZGMil.ResultConrtrol
  13. {
  14. public delegate void DoubleClickHandle(DataTable dt);
  15. public partial class FrmTechnological : UserControl
  16. {
  17. public OpeBase ob = null;
  18. public event DoubleClickHandle DoubleClickEvent;
  19. public FrmTechnological()
  20. {
  21. InitializeComponent();
  22. }
  23. /// <summary>
  24. /// 获取所有版本
  25. /// </summary>
  26. public void InitMilSet(string plineCode, string stationCode,OpeBase ob)
  27. {
  28. this.ob = ob;
  29. DataTable ds = ServerHelper.GetData("com.steering.mes.zgmil.coup.FrmTechnological.doQueryClassName", new object[] { plineCode, stationCode }, this.ob);
  30. GridHelper.CopyDataToDatatable(ref ds, ref dataTable1, true);
  31. }
  32. private DataTable doQueryKey(string className)
  33. {
  34. DataTable dt = ServerHelper.GetData("com.steering.mes.zgmil.coup.FrmTechnological.doQueryKeyValue", new object[] { className }, ob);
  35. return dt;
  36. }
  37. private void ultraGrid1_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
  38. {
  39. if (ob == null || e.Row == null)
  40. {
  41. return;
  42. }
  43. DataTable dt = doQueryKey(this.ultraGrid1.ActiveRow.Cells["CLASS_NAME"].Text);
  44. if (DoubleClickEvent != null)
  45. {
  46. DoubleClickEvent(dt);
  47. }
  48. }
  49. //internal void InitMilSet(DataColumn PlineCode, string p, OpeBase opeBase)
  50. //{
  51. // throw new NotImplementedException();
  52. //}
  53. }
  54. }