public void GetNextCaseListItem(int upDown) { if (this.ListViewSurgicalCaseList.SelectedItem != null) { if (upDown == 1) { if (this.ListViewSurgicalCaseList.SelectedIndex < this.ListViewSurgicalCaseList.Items.Count) { this.ListViewSurgicalCaseList.SelectedIndex += 1; YellowstonePathology.Business.Surgical.SurgicalOrderListItem item = (YellowstonePathology.Business.Surgical.SurgicalOrderListItem) this.ListViewSurgicalCaseList.SelectedItem; this.TextBoxReportNoSearch.Text = item.ReportNo; } } if (upDown == -1) { if (this.ListViewSurgicalCaseList.SelectedIndex > 0) { this.ListViewSurgicalCaseList.SelectedIndex -= 1; YellowstonePathology.Business.Surgical.SurgicalOrderListItem item = (YellowstonePathology.Business.Surgical.SurgicalOrderListItem) this.ListViewSurgicalCaseList.SelectedItem; this.TextBoxReportNoSearch.Text = item.ReportNo; } } this.m_TypingUI.SetIsPossibleReportableCase(); } }
private bool PathologistIdFilter(object listItem) { YellowstonePathology.Business.Surgical.SurgicalOrderListItem item = (YellowstonePathology.Business.Surgical.SurgicalOrderListItem)listItem; if (item.PathologistId == this.m_PathologistId) { return(true); } else { return(false); } }
private void ContextMenuOpenDocumentsFolder_Click(object sender, RoutedEventArgs e) { if (this.ListViewSurgicalCaseList.SelectedItems.Count != 0) { YellowstonePathology.Business.Surgical.SurgicalOrderListItem surgicalOrderListItem = (YellowstonePathology.Business.Surgical.SurgicalOrderListItem) this.ListViewSurgicalCaseList.SelectedItem; YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(surgicalOrderListItem.ReportNo); string folderPath = YellowstonePathology.Document.CaseDocumentPath.GetPath(orderIdParser); System.Diagnostics.Process process = new System.Diagnostics.Process(); System.Diagnostics.Process p = new System.Diagnostics.Process(); System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo("Explorer.exe", folderPath); p.StartInfo = info; p.Start(); } }
private void ListViewSurgicalCaseList_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.ListViewSurgicalCaseList.SelectedItem != null) { if (this.m_TypingUI.SurgicalTestOrder != null) { YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.LastReportNo = this.m_TypingUI.SurgicalTestOrder.ReportNo; YellowstonePathology.Business.User.UserPreferenceInstance.Instance.Save(); } YellowstonePathology.Business.Surgical.SurgicalOrderListItem surgicalOrderListItem = (YellowstonePathology.Business.Surgical.SurgicalOrderListItem) this.ListViewSurgicalCaseList.SelectedItem; this.GetSurgicalCase(surgicalOrderListItem.ReportNo); this.TextBoxReportNoSearch.Text = surgicalOrderListItem.ReportNo; } }