private void treeViewExtendList_AfterSelect(object sender, TreeViewEventArgs e) { if (!isfirst) { if (e.Node.Tag != null) { string tags = e.Node.Tag.ToString(); if (tags.Contains("首页")) { PatientTree patientTree = new PatientTree(patientID, visitID, operID); AddControl(patientTree); } else if (tags.ToLower().Contains(".pdf")) { ReportView assayReport = new ReportView(ApplicationConfiguration.PDFServerUrl, tags, ApplicationConfiguration.PDFLocalUrl + tags); AddControl(assayReport); } else if (tags.Contains("电子病历")) { AddControl(null); } else if (tags.Contains("检验查询")) { AssayReport assayReport = new AssayReport(patientID, visitID); AddControl(assayReport); } } } else { isfirst = false; } }
private void PatientMain_Load(object sender, EventArgs e) { initList(); this.treeViewExtendList.SelectedNode = null; PatientTree patientTree = new PatientTree(patientID, visitID, operID); AddControl(patientTree); }