/// <summary> /// 增加监测节点 /// </summary> /// <param name="parentNode">所属组节点</param> /// <param name="point">监测点</param> /// <returns></returns> private Node AddReportNode(CloudEyes.Entity.Reports report) { Node node = null; node = new Node(); node.Text = report.PatientName; node.Tag = report; //node.Cells.Add(new Cell(report.PatientName)); node.Cells.Add(new Cell(report.RequestTime)); //node.Cells.Add(new Cell(report.IsAudited.ToString())); if (report.IsAudited == false) { node.Cells.Add(new Cell("未审核")); } if (report.IsAudited == true) { node.Cells.Add(new Cell("已审核")); } node.CheckBoxVisible = true; //nodeGroup.CheckBoxThreeState = true; advTreePoints.Nodes.Add(node); node.CheckBoxVisible = false; return(node); }
public CloudEyes.Entity.Reports GetSelectedReport() { int iSelectedNodesCount = advTreePoints.CheckedNodes.Count; //CloudEyes.Entity.Reports selectedReport = null; CloudEyes.Entity.Reports selectedReport = new CloudEyes.Entity.Reports(); //foreach (Node node in advTreePoints.CheckedNodes) //{ // node.CheckBoxVisible = false; // if (node.Checked) // { // selectedReport = (CloudEyes.Entity.Reports)node.Tag; // SystemConfiguration.report = selectedReport; // } //} foreach (Node node in advTreePoints.Nodes) { if (node.IsSelected) { selectedReport = (CloudEyes.Entity.Reports)node.Tag; SystemConfiguration.report = selectedReport; } } return(selectedReport); }