private void ShowStainOrderForm() { this.Save(false); YellowstonePathology.UI.Common.OrderDialog orderDiaglog = new YellowstonePathology.UI.Common.OrderDialog(this.m_PathologistUI.AccessionOrder, this.m_PathologistUI.PanelSetOrder); orderDiaglog.ShowDialog(); this.Save(false); }
private void ShowOrderForm(object target, ExecutedRoutedEventArgs args) { this.Save(false); YellowstonePathology.UI.Common.OrderDialog frm = new YellowstonePathology.UI.Common.OrderDialog(this.m_TypingUI.AccessionOrder, this.m_TypingUI.SurgicalTestOrder); frm.ShowDialog(); string reportNo = this.m_TypingUI.AccessionOrder.PanelSetOrderCollection.GetItem(13).ReportNo; this.m_TypingUI.GetAccessionOrder(reportNo); this.RefreshWorkspaces(); }
public override DataTemplate SelectTemplate(object item, DependencyObject container) { YellowstonePathology.UI.Common.OrderDialog openWindow = null; foreach (Window window in Application.Current.Windows) { if (window.GetType().ToString() == "YellowstonePathology.UI.Common.OrderDialog") { openWindow = window as YellowstonePathology.UI.Common.OrderDialog; break; } } if (item != null) { System.Xml.Linq.XContainer xContainer = item as System.Xml.Linq.XContainer; XElement templateNameElement = xContainer.Element("TemplateName"); if (templateNameElement != null) { return(((System.Windows.Controls.Grid)openWindow.Content).FindResource(templateNameElement.Value) as DataTemplate); } return(((System.Windows.Controls.Grid)openWindow.Content).FindResource("StandardCheckBoxTemplate") as DataTemplate); } return(((YellowstonePathology.UI.Common.OrderDialog)openWindow.Content).FindResource("StandardCheckBoxTemplate") as DataTemplate); }
private void ShowStainOrderForm() { this.Save(false); YellowstonePathology.UI.Common.OrderDialog orderDiaglog = new YellowstonePathology.UI.Common.OrderDialog(this.m_PathologistUI.AccessionOrder, this.m_PathologistUI.PanelSetOrder); orderDiaglog.ShowDialog(); this.Save(false); }
private void ShowOrderForm(object target, ExecutedRoutedEventArgs args) { this.Save(false); YellowstonePathology.UI.Common.OrderDialog frm = new YellowstonePathology.UI.Common.OrderDialog(this.m_TypingUI.AccessionOrder, this.m_TypingUI.SurgicalTestOrder); frm.ShowDialog(); string reportNo = this.m_TypingUI.AccessionOrder.PanelSetOrderCollection.GetItem(13).ReportNo; this.m_TypingUI.GetAccessionOrder(reportNo); this.RefreshWorkspaces(); }
private void ShowOrderForm() { if (this.HaveAvaliableItem() == true) { this.Save(false); YellowstonePathology.UI.Common.OrderDialog frm = new YellowstonePathology.UI.Common.OrderDialog(this.m_TypingUI.AccessionOrder, this.m_TypingUI.SurgicalTestOrder); frm.ShowDialog(); string reportNo = this.m_TypingUI.AccessionOrder.PanelSetOrderCollection.GetItem(13).ReportNo; this.m_TypingUI.GetAccessionOrder(reportNo); this.RefreshWorkspaces(); } }
private void ShowOrderForm() { if (HaveAvailableItem() == true) { YellowstonePathology.UI.Common.OrderDialog frm = new YellowstonePathology.UI.Common.OrderDialog(this.m_LabUI.AccessionOrder, this.m_LabUI.PanelSetOrder); frm.ShowDialog(); this.GetAccessionOrder(); } }
private void ButtonOrder_Click(object sender, RoutedEventArgs e) { if (this.m_LabUI.PanelSetOrder.PanelSetId != 31) { if (this.m_SystemIdentity.IsKnown == true) { YellowstonePathology.UI.Common.OrderDialog dlg = new YellowstonePathology.UI.Common.OrderDialog(this.m_LabUI.AccessionOrder, this.m_LabUI.PanelSetOrder); dlg.ShowDialog(); this.GetAccessionOrder(); } } else { MessageBox.Show("Technical only orders cannot be placed in this window."); } }
private void ShowOrderForm(object target, ExecutedRoutedEventArgs args) { this.Save(false); YellowstonePathology.UI.Common.OrderDialog frm = new YellowstonePathology.UI.Common.OrderDialog(this.m_LabUI.AccessionOrder, this.m_LabUI.PanelSetOrder); frm.ShowDialog(); this.GetAccessionOrder(); }