FrmMagneticInspectionResult.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using CoreFS.CA06;
  10. namespace Core.StlMes.Client.Mcp.Mch
  11. {
  12. public partial class FrmMagneticInspectionResult : FrmBase
  13. {
  14. public FrmMagneticInspectionResult()
  15. {
  16. InitializeComponent();
  17. }
  18. private void FrmMagneticInspectionResult_Load(object sender, EventArgs e)
  19. {
  20. }
  21. public override void ToolBar_Click(object sender, string ToolbarKey)
  22. {
  23. switch (ToolbarKey)
  24. {
  25. case "DoQuery":
  26. //ShowXPSDocument();
  27. break;
  28. }
  29. }
  30. protected override void OnLoad(EventArgs e)
  31. {
  32. base.OnLoad(e);
  33. this.magneticInspectionControl1.Grid.DisplayLayout.Override.AllowRowFiltering = Infragistics.Win.DefaultableBoolean.False;
  34. }
  35. /// <summary>
  36. /// 显示XPS文档
  37. /// </summary>
  38. private void ShowXPSDocument()
  39. {
  40. OpenFileDialog dialog = new OpenFileDialog();
  41. dialog.Filter = "XPS 文档(*.xps)|*.xps";
  42. //if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
  43. //{
  44. // XpsDocument doc = new XpsDocument(dialog.FileName, System.IO.FileAccess.Read);
  45. // this.documentViewer1.Viewer.Document = doc.GetFixedDocumentSequence();
  46. //}
  47. }
  48. }
  49. }