public UserPreferences(YellowstonePathology.Business.User.UserPreference userPreference) { this.m_UserPreferenceList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetAllUserPreferences(); this.m_MolecularLabelFormatCollection = YellowstonePathology.Business.Label.Model.LabelFormatCollection.GetMolecularLabelCollection(); this.m_CassettePrinterCollection = new Business.Label.Model.CassettePrinterCollection(); this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.Instance; System.Printing.LocalPrintServer printServer = new System.Printing.LocalPrintServer(); this.m_PrintQueueCollection = printServer.GetPrintQueues(new[] { System.Printing.EnumeratedPrintQueueTypes.Local, System.Printing.EnumeratedPrintQueueTypes.Connections }); this.m_ApplicationVersion = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.GetApplicationVersion(this); InitializeComponent(); if (userPreference == null) { this.m_UserPreference = new Business.User.UserPreference(); this.m_HostNameEnabled = true; } else { this.m_UserPreference = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullUserPreference(userPreference.HostName, this); this.m_HostNameEnabled = false; } this.m_PageScannerCollection = new Business.Common.PageScannerCollection(); this.DataContext = this; this.Loaded += new RoutedEventHandler(UserPreferences_Loaded); this.Closing += UserPreferences_Closing; }
public RequisitionOptionsDialog(int clientId, string clientName) { this.m_ClientId = clientId; this.m_ClientName = clientName; this.m_Copies = 25; this.m_UserPreference = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference; InitializeComponent(); DataContext = this; }
public TecanImportExportPage(YellowstonePathology.Business.Search.ReportSearchList caseList, Visibility nextButtonVisibility, Visibility closeButtonVisibility) { this.m_CaseList = caseList; this.m_NextButtonVisibility = nextButtonVisibility; this.m_CloseButtonVisibility = closeButtonVisibility; this.m_UserPreference = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference; this.BuildFileList(); InitializeComponent(); DataContext = this; }
public TecanImportExportPage(YellowstonePathology.Business.Search.ReportSearchList caseList, Visibility nextButtonVisibility, Visibility closeButtonVisibility) { this.m_CaseList = caseList; this.m_NextButtonVisibility = nextButtonVisibility; this.m_CloseButtonVisibility = closeButtonVisibility; this.m_UserPreference = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference; this.BuildFileList(); InitializeComponent(); DataContext = this; }
private void ListViewUserPreferences_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (this.ListViewUserPreferences.SelectedItem != null) { YellowstonePathology.Business.User.UserPreference userPreference = (YellowstonePathology.Business.User.UserPreference) this.ListViewUserPreferences.SelectedItem; UserPreferences dlg = new Common.UserPreferences(userPreference); dlg.ShowDialog(); this.m_UserPreferenceList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetAllUserPreferences(); this.NotifyPropertyChanged("UserPreferenceList"); } }
public RequisitionOptionsDialog(int clientId, string clientName) { this.m_ClientId = clientId; this.m_ClientName = clientName; this.m_Copies = 25; this.m_UserPreference = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference; InitializeComponent(); DataContext = this; }
public DictationTemplatePage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.User.SystemIdentity systemIdentity) { this.m_AccessionOrder = accessionOrder; this.m_SystemIdentity = systemIdentity; this.m_SurgicalTestOrder = (YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetSurgical(); this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true); this.m_UserPreference = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference; InitializeComponent(); this.Loaded += DictationTemplatePage_Loaded; DataContext = this; }
public DictationTemplatePage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.User.SystemIdentity systemIdentity) { this.m_AccessionOrder = accessionOrder; this.m_SystemIdentity = systemIdentity; this.m_SurgicalTestOrder = (YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetSurgical(); this.m_DictationTemplateCollection = YellowstonePathology.UI.Gross.DictationTemplateCollection.GetAll(); this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true); this.m_UserPreference = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference; InitializeComponent(); this.Loaded += DictationTemplatePage_Loaded; DataContext = this; }
public UserPreferences() { this.m_MolecularLabelFormatCollection = YellowstonePathology.Business.Label.Model.LabelFormatCollection.GetMolecularLabelCollection(); this.m_UserPreference = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference; this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities(); this.m_LocationCollection = new Business.Facility.Model.LocationCollection(); System.Printing.LocalPrintServer printServer = new System.Printing.LocalPrintServer(); this.m_PrintQueueCollection = printServer.GetPrintQueues(new[] { System.Printing.EnumeratedPrintQueueTypes.Local, System.Printing.EnumeratedPrintQueueTypes.Connections }); this.m_ApplicationVersion = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.GetApplicationVersion(this); InitializeComponent(); this.DataContext = this; this.Loaded += new RoutedEventHandler(UserPreferences_Loaded); this.Closing += UserPreferences_Closing; }
public UserPreferences() { this.m_MolecularLabelFormatCollection = YellowstonePathology.Business.Label.Model.LabelFormatCollection.GetMolecularLabelCollection(); this.m_UserPreference = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference; this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities(); this.m_LocationCollection = new Business.Facility.Model.LocationCollection(); System.Printing.LocalPrintServer printServer = new System.Printing.LocalPrintServer(); this.m_PrintQueueCollection = printServer.GetPrintQueues(new[] { System.Printing.EnumeratedPrintQueueTypes.Local, System.Printing.EnumeratedPrintQueueTypes.Connections }); this.m_ApplicationVersion = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.GetApplicationVersion(this); this.m_ProcessorRunCollection = Business.Surgical.ProcessorRunCollection.GetAll(true); InitializeComponent(); this.DataContext = this; this.Loaded += new RoutedEventHandler(UserPreferences_Loaded); this.Closing += UserPreferences_Closing; }
public ProcessorRun Get(YellowstonePathology.Business.User.UserPreference userPreference) { YellowstonePathology.Business.Surgical.ProcessorRunCollection processorRunCollection = YellowstonePathology.Business.Surgical.ProcessorRunCollection.GetAll(true); YellowstonePathology.Business.Surgical.ProcessorRun result = null; switch (DateTime.Today.DayOfWeek) { case DayOfWeek.Monday: case DayOfWeek.Tuesday: case DayOfWeek.Wednesday: case DayOfWeek.Thursday: result = processorRunCollection.Get(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.WeekdayProcessorRunId); break; case DayOfWeek.Friday: case DayOfWeek.Saturday: case DayOfWeek.Sunday: result = processorRunCollection.Get(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.WeekendProcessorRunId); break; } return(result); }