frmCharts.cs 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. using OTS.WinFormsUI.Docking;
  2. using OTSIncAReportApp.OTSRstMgrFunction;
  3. using OTSIncAReportApp.OTSSampleReportInfo;
  4. using OTSIncAReportApp.SysMgrTools;
  5. using System;
  6. using System.Collections;
  7. namespace OTSIncAReportApp
  8. {
  9. /// <summary>
  10. /// Chart图表显示主窗体类
  11. /// </summary>
  12. public partial class frmCharts : DockContent
  13. {
  14. #region 变量定义
  15. private frmReportApp m_ReportApp = null;
  16. Language lan1 = new Language();
  17. Hashtable table;
  18. #endregion
  19. #region 构造函数
  20. public frmCharts(frmReportApp ReportApp)
  21. {
  22. InitializeComponent();
  23. m_ReportApp = ReportApp;
  24. #region 国际化语言
  25. Language lan = new Language(this);
  26. table = lan.GetNameTable("frmCharts");
  27. #endregion
  28. }
  29. #endregion
  30. #region Chart图表窗体被激活事件
  31. /// <summary>
  32. /// 当Chart图表窗体被激活时,触发事件
  33. /// </summary>
  34. /// <param name="sender"></param>
  35. /// <param name="e"></param>
  36. private void OTSCaculationChartsWindow_Activated(object sender, EventArgs e)
  37. {
  38. //OTSSourceGrid m_SampleImage = m_ReportApp.m_conditionChoose.m_sourceGrid;
  39. //string str1 = "常规参数";
  40. //str1 = table["str1"].ToString();
  41. //m_SampleImage.InitGrid();
  42. //m_SampleImage.InitGroupTitle(0, str1);
  43. //m_SampleImage.SetPictureType(DisplayPicutureType.AnalyzeSheetandChart);
  44. //m_ReportApp.m_conditionChoose.DisCurrentPicProperty();
  45. //string str2 = "颗粒成份图";
  46. //str2 = table["str2"].ToString();
  47. ////根据标签索引 显示默认的数据图表
  48. //if (m_ReportApp.m_ChartsWindow.Controls != null)
  49. //{
  50. // if (m_ReportApp.m_ChartsWindow.Controls.Count == 0)
  51. // {
  52. // m_ReportApp.m_conditionChoose.tabIndex = DisplayPicutureType.AnalyzeSheetandChart;
  53. // m_ReportApp.m_conditionChoose.ShowsTheDefaultPic();
  54. // }
  55. //}
  56. //m_ReportApp.m_RstWindow.SelectWorkSampleNode();
  57. ////设置每个功能模块限制菜单的显示
  58. //if (this.Controls.Count != 0)
  59. //{
  60. // m_ReportApp.m_RibbonFun.SetRibbonButnStatu_ByModule(DisplayPicutureType.AnalyzeSheetandChart);
  61. //}
  62. ////判断样品属性与样品窗口在主窗体的位置
  63. //if (m_ReportApp.m_conditionChoose.DockState != m_ReportApp.m_RstWindow.DockState)
  64. //{
  65. // m_ReportApp.m_RstWindow.Activate();
  66. //}
  67. //else
  68. //{
  69. // if (!m_ReportApp.m_conditionChoose.Focus())
  70. // {
  71. // m_ReportApp.m_RstWindow.Activate();
  72. // }
  73. //}
  74. }
  75. #endregion
  76. }
  77. }