MscBase_Std.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using Core.Mes.Client.Comm.Server;
  2. using Infragistics.Win.UltraWinGrid;
  3. using System.Collections;
  4. using System.Data;
  5. namespace Core.StlMes.Client.Qcm
  6. {
  7. class MscBase_Std
  8. {
  9. public static DataTable Query(FrmProPSCMSC2 frm)
  10. {
  11. UltraGrid gridMsc = frm.ControlMsc.GridMsc;
  12. if (gridMsc.ActiveRow == null) return null;
  13. UltraGridRow row = null;
  14. if (gridMsc.ActiveRow.HasParent())
  15. {
  16. row = gridMsc.ActiveRow.ParentRow;
  17. }
  18. else
  19. {
  20. row = gridMsc.ActiveRow;
  21. }
  22. ArrayList list = new ArrayList();
  23. list.Add(row.Cells["MSC"].Value.ToString());
  24. DataTable dt = null;
  25. try
  26. {
  27. dt = ServerHelper.GetData("com.steering.pss.qcm.CoreFrmProPSCMSC2.queryStd_Name_Style",
  28. new object[] { list }, frm.ob);
  29. }
  30. catch
  31. {
  32. return null;
  33. }
  34. return dt;
  35. }
  36. }
  37. }