frmMeasureRstMgr.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. using OTS.WinFormsUI.Docking;
  2. using OTSIncAReportApp.OTSDataMgrFunction;
  3. using OTSIncAReportApp.OTSSampleReportInfo;
  4. using OTSIncAReportApp.SysMgrTools;
  5. using System;
  6. using System.Collections;
  7. using System.Collections.Generic;
  8. using System.Drawing;
  9. using System.Runtime.InteropServices;
  10. using System.Windows.Forms;
  11. namespace OTSIncAReportApp
  12. {
  13. /// <summary>
  14. /// 显示测量结果树控件主窗体
  15. /// </summary>
  16. public partial class frmMeasureRstMgr : DockContent
  17. {
  18. #region 变量定义
  19. /// <summary>
  20. /// 主框架窗体,全局变量
  21. /// </summary>
  22. private frmReportApp m_ReportApp = null;
  23. /// <summary>
  24. /// 树窗口类
  25. /// </summary>
  26. private OTSTreeViewData m_TreeViewData = null;
  27. /// <summary>
  28. /// 测量结果样品节点
  29. /// </summary>
  30. public TreeNode m_WorkSampleNode = null;
  31. /// <summary>
  32. /// 工作样品属性参数
  33. /// </summary>
  34. public CTreeSampleParam m_WorkSampleParam = new CTreeSampleParam();
  35. /// <summary>
  36. /// 当前工作样品名
  37. /// </summary>
  38. private String m_WorkSampleName = "";
  39. /// <summary>
  40. /// 当前鼠标点击节点
  41. /// </summary>
  42. int treeNodeSample = -1;
  43. Hashtable table;
  44. #endregion
  45. #region 构造函数和窗体加载
  46. /// <summary>
  47. /// 构造函数
  48. /// </summary>
  49. /// <param name="reportApp"></param>
  50. public frmMeasureRstMgr(frmReportApp reportApp)
  51. {
  52. InitializeComponent();
  53. m_ReportApp = reportApp;
  54. m_TreeViewData = new OTSTreeViewData(this);
  55. #region 国际化语言
  56. Language lan = new Language(this);
  57. table = lan.GetNameTable(this.Name);
  58. #endregion
  59. }
  60. /// <summary>
  61. /// 窗体加载
  62. /// </summary>
  63. /// <param name="sender"></param>
  64. /// <param name="e"></param>
  65. private void OTSMeasureRetMgrWindow_Load(object sender, EventArgs e)
  66. {
  67. treeView1.LabelEdit = true;//TreeView可编辑状态。
  68. }
  69. #endregion
  70. #region 外部接口函数及相关常量定义
  71. /// <summary>
  72. /// 发送消息
  73. /// </summary>
  74. /// <param name="hWnd"></param>
  75. /// <param name="Msg"></param>
  76. /// <param name="wParam"></param>
  77. /// <param name="lParam"></param>
  78. /// <returns></returns>
  79. [DllImport("user32.dll", CharSet = CharSet.Auto)]
  80. private static extern IntPtr SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, ref TVITEM lParam);
  81. private const int TVIF_STATE = 0x8;
  82. private const int TVIS_STATEIMAGEMASK = 0xF000;
  83. private const int TV_FIRST = 0x1100;
  84. private const int TVM_SETITEM = TV_FIRST + 63;
  85. [StructLayout(LayoutKind.Sequential, Pack = 8, CharSet = CharSet.Auto)]
  86. private struct TVITEM
  87. {
  88. public int mask;
  89. public IntPtr hItem;
  90. public int state;
  91. public int stateMask;
  92. [MarshalAs(UnmanagedType.LPTStr)]
  93. public string lpszText;
  94. public int cchTextMax;
  95. public int iImage;
  96. public int iSelectedImage; public int cChildren; public IntPtr lParam;
  97. }
  98. #endregion
  99. #region 树控件相关事件
  100. /// <summary>
  101. /// 树控件点击是否选择右键
  102. /// </summary>
  103. /// <param name="sender"></param>
  104. /// <param name="e"></param>
  105. private void treeView1_Click(object sender, MouseEventArgs e)
  106. {
  107. if (e.Button == MouseButtons.Right)//判断你点的是不是右键
  108. {
  109. contextMenuStrip1.Show();
  110. }
  111. }
  112. /// <summary>
  113. /// 左键选择树节点事件
  114. /// </summary>
  115. /// <param name="sender"></param>
  116. /// <param name="e"></param>
  117. private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
  118. {
  119. //鼠标选中
  120. if (e.Action == TreeViewAction.ByMouse || e.Action == TreeViewAction.ByKeyboard)
  121. {
  122. if (e.Node.IsSelected)
  123. {
  124. //判断的选中的CHECKBOX和焦点都在当前被选择的节点上,切换当前工作样品
  125. m_WorkSampleNode = e.Node;
  126. treeView1.SelectedNode = e.Node; //当前被选中
  127. treeView1.Refresh();
  128. }
  129. }
  130. }
  131. /// <summary>
  132. /// 当Checkbox的状态发生变化时,响应事件
  133. /// </summary>
  134. /// <param name="sender"></param>
  135. /// <param name="e"></param>
  136. private void treeView1_AfterCheck(object sender, TreeViewEventArgs e)
  137. {
  138. if (e.Action == TreeViewAction.ByMouse)
  139. { //判断是否由鼠标触发的
  140. TreeNode TN = e.Node;//点击的节点
  141. if (TN.Checked)
  142. { //若是选中,遍历父节点,所属的父节点应为选中 {
  143. if (TN.Parent != null)
  144. {
  145. TN.Parent.Checked = true;
  146. if (TN.Parent.Parent != null)
  147. {
  148. TN.Parent.Parent.Checked = true;
  149. }
  150. }
  151. DG_Check(TN, true); //本身节点之下还有子节点,遍历,全选中
  152. }
  153. else
  154. { //若是取消选中
  155. DG_Check(TN, false);//本身节点之下还有子节点,遍历,全取消选中
  156. if (TN.Parent != null)
  157. {
  158. //若有父节点,判断此次取消选中后,是否兄弟节点也是没选中
  159. TreeNode TNP = TN.Parent;
  160. bool YXZ = false;//有选中的,以此来判断否兄弟节点也是没选中
  161. foreach (TreeNode childTN in TNP.Nodes)
  162. {
  163. if (childTN.Checked)
  164. {
  165. YXZ = true;//还有选中的兄弟节点
  166. break;
  167. }
  168. }
  169. TNP.Checked = YXZ;//将遍历结果赋给父节点
  170. }
  171. }
  172. }
  173. }
  174. /// <summary>
  175. /// 删除测量结果事件
  176. /// </summary>
  177. /// <param name="sender"></param>
  178. /// <param name="e"></param>
  179. private void RDeleteNode_Click(object sender, EventArgs e)
  180. {
  181. TreeNode tn = new TreeNode();
  182. tn = treeView1.SelectedNode;
  183. tn.Remove();
  184. }
  185. /// <summary>
  186. /// 显示树节点
  187. /// </summary>
  188. /// <param name="sender"></param>
  189. /// <param name="e"></param>
  190. private void treeView1_DrawNode(object sender, DrawTreeNodeEventArgs e)
  191. {
  192. e.DrawDefault = true;
  193. }
  194. /// <summary>
  195. /// 当鼠标点击选择了
  196. /// </summary>
  197. /// <param name="sender"></param>
  198. /// <param name="e"></param>
  199. public void TreeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
  200. {
  201. TreeNode tn = (TreeNode)e.Node;
  202. treeNodeSample = e.Node.Index;
  203. string treeNodeName = e.Node.Text;
  204. //正常indexadd值应该哪个为true哪个给它
  205. int indexadd = e.Node.Index;
  206. string checkednode = "";
  207. foreach (TreeNode item in treeView1.Nodes)
  208. {
  209. if (item.Checked)
  210. {
  211. checkednode = checkednode + "+" + item.Text;
  212. }
  213. }
  214. if (checkednode.LastIndexOf("+") > 1)
  215. {
  216. checkednode = checkednode.Substring(1);
  217. }
  218. else
  219. {
  220. checkednode = "";
  221. }
  222. OTSSampleMeaInfo SMeasureInfo = m_ReportApp.SourceGridData;
  223. for (int i = 0; i < 3; i++)
  224. {
  225. int idx = m_ReportApp.m_DataMgrFun.GetSampleIndexByPropItemName(m_ReportApp.SourceGridData.SampleDataList, OTSIncAReportApp.OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE);
  226. int n = m_ReportApp.SourceGridDataListLog[i].SampleDataList[idx].comboDownList.Count;
  227. for (int j = 0; j < n; j++)
  228. {
  229. if (m_ReportApp.SourceGridDataListLog[i].SampleDataList[idx].comboDownList[j].Contains("+"))
  230. {
  231. m_ReportApp.SourceGridDataListLog[i].SampleDataList[idx].comboDownList.RemoveAt(j);
  232. break;
  233. }
  234. }
  235. }
  236. //插入多数据源选项
  237. m_ReportApp.MoreSource = checkednode;
  238. if (m_ReportApp.MoreSource != "")
  239. {
  240. for (int i = 0; i < 3; i++)
  241. {
  242. m_ReportApp.SourceGridDataListLog[i].SampleDataList[0].comboDownList.Insert(0, checkednode);
  243. }
  244. }
  245. m_ReportApp.m_PropWindow.DisProperyWindow(SMeasureInfo);//刷新
  246. if (e.Button == MouseButtons.Right)//判断按下鼠标右键
  247. {
  248. Point ClickPoint = new Point(e.X, e.Y);
  249. TreeNode CurrentNode = treeView1.GetNodeAt(ClickPoint);
  250. if (CurrentNode == null && null == CurrentNode.Parent)//判断选择的是不是一个节点
  251. {
  252. CurrentNode.ContextMenuStrip = contextMenuStrip2;
  253. }
  254. else
  255. {
  256. CurrentNode.ContextMenuStrip = contextMenuStrip1;
  257. m_WorkSampleNode = CurrentNode;
  258. }
  259. }
  260. this.Focus();
  261. }
  262. public void AddSampleClick(string str_path)
  263. {
  264. if (str_path == "")
  265. {
  266. return;
  267. }
  268. //为了使用国标,保留clr向底层加载的代码部份-----------------------------------------------
  269. //m_ReportApp.m_ReportProjFileMgr.AddASmplMsrResultMgr(str_path);
  270. //m_ReportApp.m_ReportProjFileMgr.SetSelectedPicture(1);
  271. //-----------------------------------------------------------------------------------------
  272. //加载测量结果文件
  273. Dictionary<string, object> suggestions = DataOperation.DataAccess.XMLoperate.GetXMLAllInfo(str_path);
  274. string name = System.IO.Path.GetFileName(str_path);
  275. int workingid = (this.m_ReportApp.ResultFileId++);
  276. string path = System.IO.Path.GetDirectoryName(str_path);
  277. if (m_ReportApp.resultFilesList.Find(s => s.FileName == name) != null)
  278. {
  279. MessageBox.Show("已经加载同名文件,请重新选择!");
  280. return;
  281. }
  282. DataOperation.Model.ResultFile result = new DataOperation.Model.ResultFile()
  283. {
  284. FileId = workingid.ToString(),
  285. FileName = name,
  286. FilePath = path,
  287. ResultInfo = suggestions
  288. };
  289. this.m_ReportApp.resultFilesList.Add(result);
  290. int index = m_ReportApp.resultFilesList.IndexOf(result);
  291. if (this.m_ReportApp.WorkingResult == -1)
  292. {
  293. OTSSampleMeaInfo SMeasureInfo = new OTSSampleMeaInfo();
  294. this.m_ReportApp.WorkingResult = index;
  295. m_ReportApp.m_DataMgrFun.GetWorkSamplePropertyVal(ref SMeasureInfo);
  296. m_ReportApp.m_PropWindow.DisProperyWindow(SMeasureInfo);//刷新
  297. m_ReportApp.m_RstWindow.Show(m_ReportApp.DockWindowPanel);
  298. //把样品测量结果文件名加入树中
  299. CTreeSampleParam TreeSampleParam = new CTreeSampleParam();
  300. //在treeview上添加测量结果
  301. m_TreeViewData.DisplayWorkSampleTree(this.m_ReportApp.resultFilesList, TreeSampleParam);
  302. //在grid上添加测量结果
  303. m_ReportApp.DisCurrentPicProperty();
  304. //根据标签索引 显示默认的数据图表for test
  305. m_ReportApp.m_DataMgrFun.ShowsTheDefaultPic();//显示图表
  306. }
  307. else
  308. {
  309. //把样品测量结果文件名加入树中
  310. CTreeSampleParam TreeSampleParam = new CTreeSampleParam();
  311. //在treeview上添加测量结果
  312. m_TreeViewData.DisplayWorkSampleTree(this.m_ReportApp.resultFilesList, TreeSampleParam);
  313. //在grid中添加新增的测量结果名称
  314. OTSSampleMeaInfo SMeasureInfo = m_ReportApp.SourceGridData;
  315. for (int i = 0; i < 3; i++)
  316. {
  317. int idx = m_ReportApp.m_DataMgrFun.GetSampleIndexByPropItemName(m_ReportApp.SourceGridData.SampleDataList, OTSIncAReportApp.OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE);
  318. m_ReportApp.SourceGridDataListLog[i].SampleDataList[idx].comboDownList.Add(name);
  319. }
  320. m_ReportApp.m_PropWindow.DisProperyWindow(SMeasureInfo);//刷新
  321. }
  322. }
  323. /// <summary>
  324. /// 树节点删除事件
  325. /// </summary>
  326. /// <param name="sender"></param>
  327. /// <param name="e"></param>
  328. private void RDeleteNode_Click_1(object sender, EventArgs e)
  329. {
  330. string str1 = table["str1"].ToString();
  331. string str2 = table["str2"].ToString();
  332. string sDeleteSampleName = str1;
  333. sDeleteSampleName += this.treeView1.SelectedNode.Text;
  334. sDeleteSampleName += str2;
  335. if (DialogResult.OK == MessageBox.Show(sDeleteSampleName, "Tip", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning))
  336. {
  337. //删除当前选中的节点
  338. DeletSample_Event(treeView1.SelectedNode.Text);
  339. //当节点全部删除完时刷新树以及主窗口的控件
  340. if (treeView1.Nodes.Count == 0)
  341. {
  342. treeView1.Nodes.Clear();
  343. //如果已经没有测量结果,则将报告程序初始化到刚打开的状态
  344. m_ReportApp.InitReportProState();
  345. }
  346. else
  347. {
  348. //重新加载grid窗口
  349. m_ReportApp.DisCurrentPicProperty();
  350. //删除树上的节点
  351. m_WorkSampleName = m_ReportApp.m_DataMgrFun.GetSampleName();
  352. m_TreeViewData.GetTreeWorkSampleNode(m_WorkSampleName);
  353. }
  354. }
  355. }
  356. //ReportApp窗口给 RetMgrWindow 发送窗口删除样品回复
  357. public void DeletSample_Event(string sDeletSName)
  358. {
  359. treeView1.Nodes.Remove(m_WorkSampleNode); //移除当前工作样品
  360. if ("" == sDeletSName)
  361. {
  362. return;
  363. }
  364. //重新获取Treeview上的工作样品节点
  365. this.m_TreeViewData.GetTreeWorkSampleNode(sDeletSName);
  366. //设置工作样品焦点
  367. this.m_TreeViewData.ReSetWorkSampleFoucs();
  368. }
  369. //切换当前工作样品
  370. //string sNewWorkSample : 新的工作样品名
  371. public void MeasureApp_SwitchSample(string sNewName)
  372. {
  373. m_TreeViewData.SetNewWorkSample(sNewName);
  374. }
  375. #endregion
  376. #region 相关树控件方法
  377. //是否为选择工作样品的节点(窗口切换)
  378. public void SelectWorkSampleNode()
  379. {
  380. try
  381. {
  382. //是否添加结果文件
  383. if (m_ReportApp.resultFilesList.Count != 0)
  384. {
  385. if (m_ReportApp.WorkingResult != -1)
  386. if (m_ReportApp.resultFilesList[m_ReportApp.WorkingResult] != null)
  387. {
  388. string workSampleName = m_ReportApp.resultFilesList[m_ReportApp.WorkingResult].FileName;
  389. //设置工作样品
  390. if (m_ReportApp.m_RstWindow.treeView1.Nodes.Count > 0)
  391. {
  392. foreach (TreeNode item in m_ReportApp.m_RstWindow.treeView1.Nodes)
  393. {
  394. //设置选择TreeNode
  395. if (item.Text == workSampleName)
  396. {
  397. m_ReportApp.m_RstWindow.treeView1.SelectedNode = item;
  398. break;
  399. }
  400. }
  401. }
  402. }
  403. }
  404. }
  405. catch (Exception)
  406. {
  407. }
  408. }
  409. /// <summary>
  410. /// 设置树控件各节点的状态
  411. /// </summary>
  412. /// <param name="TN"></param>
  413. /// <param name="flag"></param>
  414. private void DG_Check(TreeNode TN, bool flag)
  415. {
  416. if (TN.Nodes.Count > 0)
  417. {
  418. foreach (TreeNode childTN in TN.Nodes)
  419. {
  420. childTN.Checked = flag; DG_Check(childTN, flag);
  421. }
  422. }
  423. }
  424. /// <summary>
  425. /// 隐藏树节点,复选框
  426. /// </summary>
  427. /// <param name="tvw"></param>
  428. /// <param name="node"></param>
  429. public void HideCheckBox(TreeView tvw, TreeNode node)
  430. {
  431. TVITEM tvi = new TVITEM();
  432. tvi.hItem = node.Handle;
  433. tvi.mask = TVIF_STATE;
  434. tvi.stateMask = TVIS_STATEIMAGEMASK;
  435. tvi.state = 0;
  436. SendMessage(tvw.Handle, TVM_SETITEM, IntPtr.Zero, ref tvi);
  437. }
  438. /// <summary>
  439. /// 树添加测量结果文件样品进行显示
  440. /// </summary>
  441. /// <param name="m_ProjDataMgr"></param>
  442. /// <param name="TSampleParam"></param>
  443. public void AddResultSample(CTreeSampleParam TSampleParam)
  444. {
  445. //在treeview上添加测量结果
  446. m_TreeViewData.DisplayWorkSampleTree(this.m_ReportApp.resultFilesList, TSampleParam);
  447. //在grid上添加测量结果
  448. m_ReportApp.DisCurrentPicProperty();
  449. }
  450. #endregion
  451. #region 多数据源操作部份相关
  452. private void button1_Click(object sender, EventArgs e)
  453. {
  454. frmMultiSourceSelect frm_Mss = new frmMultiSourceSelect(this.treeView1);
  455. if (frm_Mss.ShowDialog() == DialogResult.OK)
  456. {
  457. //判断是否选择了两个以上的选项,
  458. int iselectcount = 0;
  459. //第一次更新各选项值
  460. for (int i = 0; i < frm_Mss.treeView1.Nodes.Count; i++)
  461. {
  462. this.treeView1.Nodes[i].Checked = frm_Mss.treeView1.Nodes[i].Checked;
  463. if (frm_Mss.treeView1.Nodes[i].Checked == true)
  464. {
  465. iselectcount++;
  466. }
  467. //更新底层及属性窗口
  468. //m_ReportApp.m_DataMgrFun.m_ReportProjFileMgr.SetSwitchForSmlResultFile(i, frm_Mss.treeView1.Nodes[i].Checked);
  469. //获取属性窗口底层值
  470. //m_ReportApp.m_DataMgrFun.GetPropertyData();
  471. //OTSSampleMeaInfo SMInfo = m_ReportApp.m_DataMgrFun.AddNewMeaResult(i);
  472. //将treeview的选择值,传送给属性grid上。
  473. //m_ReportApp.m_PropWindow.DisProperyWindow(SMInfo);
  474. }
  475. //主动去更新让其选择上多数据源或非多数据源
  476. if (iselectcount >= 2)
  477. {
  478. //获取
  479. OTSSampleMeaInfo SMInfo = new OTSSampleMeaInfo();
  480. //DataMgrFun dataMgr = m_ReportApp.m_DataMgrFun;
  481. //dataMgr.SetSampleParamVal(OTS_RETORT_PROP_GRID_ITEMS.DATA_SOURCE, OTS_ITEM_TYPES.COMBO, 0);
  482. //获取属性窗口更新显示
  483. //dataMgr.GetWorkSamplePropertyVal(ref SMInfo);
  484. //m_ReportApp.m_PropWindow.DisProperyWindow(SMInfo);
  485. //显示默认的图表
  486. //m_ReportApp.m_PropWindow.m_SampleGrid.ShowDataDiagram();
  487. }
  488. else
  489. {
  490. //单一选项时,也要对该属性窗口进行切换
  491. for (int i = 0; i < frm_Mss.treeView1.Nodes.Count; i++)
  492. {
  493. if (frm_Mss.treeView1.Nodes[i].Checked == true)
  494. {
  495. //OTSSampleMeaInfo SMInfo = new OTSSampleMeaInfo();
  496. //DataMgrFun dataMgr = m_ReportApp.m_DataMgrFun;
  497. //dataMgr.SetSampleParamVal(OTS_RETORT_PROP_GRID_ITEMS.DATA_SOURCE, OTS_ITEM_TYPES.COMBO, i);
  498. ////获取属性窗口更新显示
  499. //dataMgr.GetWorkSamplePropertyVal(ref SMInfo);
  500. //m_ReportApp.m_PropWindow.DisProperyWindow(SMInfo);
  501. ////显示默认的图表
  502. //m_ReportApp.m_PropWindow.m_SampleGrid.ShowDataDiagram();
  503. }
  504. }
  505. }
  506. }
  507. }
  508. /// <summary>
  509. /// 取消多数据源选择
  510. /// </summary>
  511. public void UnplugMultipleDataDataSources()
  512. {
  513. //int iselectcount = 0;
  514. ////查找是否已经有超过2个以上的数据源被选择上
  515. //for (int i = 0; i < this.treeView1.Nodes.Count; i++)
  516. //{
  517. // this.treeView1.Nodes[i].Checked = this.treeView1.Nodes[i].Checked;
  518. // if (this.treeView1.Nodes[i].Checked == true)
  519. // {
  520. // iselectcount++;
  521. // }
  522. //}
  523. ////已经有两个以上的数据源被选择上,进行取消操作
  524. //if (iselectcount >= 2)
  525. //{
  526. // //先取消所有的treeview节点的选择
  527. // for (int i = 0; i < this.treeView1.Nodes.Count; i++)
  528. // {
  529. // this.treeView1.Nodes[i].Checked = false;
  530. // //更新底层及属性窗口
  531. // m_ReportApp.m_DataMgrFun.m_ReportProjFileMgr.SetSwitchForSmlResultFile(i, this.treeView1.Nodes[i].Checked);
  532. // }
  533. // //获取
  534. // OTSSampleMeaInfo SMInfo = new OTSSampleMeaInfo();
  535. // DataMgrFun dataMgr = m_ReportApp.m_DataMgrFun;
  536. // dataMgr.SetSampleParamVal(OTS_RETORT_PROP_GRID_ITEMS.DATA_SOURCE, OTS_ITEM_TYPES.COMBO, 0);
  537. // //获取属性窗口更新显示
  538. // dataMgr.GetWorkSamplePropertyVal(ref SMInfo);
  539. // //显示默认的图表
  540. // m_ReportApp.m_PropWindow.m_SampleGrid.ShowDataDiagram();
  541. //}
  542. }
  543. #endregion
  544. }
  545. }