MscStd_R_Cust.cs 1.0 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 MscStd_R_Cust
  8. {
  9. public static DataTable Query(FrmProPSCMSC2 frm)
  10. {
  11. UltraGrid grid = frm.ControlMsc.GridMsc;
  12. if (grid.ActiveRow == null) return null;
  13. UltraGridRow row = null;
  14. if (grid.ActiveRow.HasParent())
  15. {
  16. row = grid.ActiveRow.ParentRow;
  17. }
  18. else
  19. {
  20. row = grid.ActiveRow;
  21. }
  22. ArrayList list = new ArrayList();
  23. list.Add(row.Cells["USE_CODE"].Value.ToString());
  24. DataTable dt = null;
  25. try
  26. {
  27. dt = ServerHelper.GetData("com.steering.pss.qcm.CoreFrmProPSCMSC2.queryClient",
  28. new object[] { list }, frm.ob);
  29. }
  30. catch
  31. {
  32. return null;
  33. }
  34. return dt;
  35. }
  36. }
  37. }