public MaterialBatchPage(YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch materialTrackingBatch, YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection materialTrackingLogCollection, bool backButtonVisible, bool nextButtonVisible, bool finishButtonVisible, bool useMasterAccessionNo, string masterAccessionNo, YellowstonePathology.UI.Navigation.PageNavigator pageNavigator) { this.m_FacilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities(); this.m_LocationCollection = YellowstonePathology.Business.Facility.Model.LocationCollection.GetAllLocations(); this.m_PageNavigator = pageNavigator; this.m_MaterialTrackingBatch = materialTrackingBatch; this.m_MaterialTrackingLogCollection = materialTrackingLogCollection; this.m_UserMasterAccessionNo = useMasterAccessionNo; this.m_MasterAccessionNo = masterAccessionNo; if (this.m_UserMasterAccessionNo == true) { this.m_MaterialTrackingLogViewCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingLogViewCollectionByBatchIdMasterAccessionNo(this.m_MaterialTrackingBatch.MaterialTrackingBatchId, masterAccessionNo); } else { this.m_MaterialTrackingLogViewCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingLogViewCollectionByBatchId(this.m_MaterialTrackingBatch.MaterialTrackingBatchId); } this.m_BackButtonVisible = backButtonVisible; this.m_NextButtonVisible = nextButtonVisible; this.m_FinishButtonVisible = finishButtonVisible; InitializeComponent(); DataContext = this; Loaded += new RoutedEventHandler(MaterialBatchPage_Loaded); Unloaded += new RoutedEventHandler(MaterialBatchPage_Unloaded); }
public MaterialTrackingReportNoDialog() { this.m_SlideOrderCollection = new YellowstonePathology.Business.Slide.Model.SlideOrderCollection(); this.m_SlideTrackingLogCollection = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection(); InitializeComponent(); DataContext = this; this.Loaded += new RoutedEventHandler(MaterialTrackingReportNoDialog_Loaded); }
public MaterialTrackingDialog() { this.m_SystemIdentity = Business.User.SystemIdentity.Instance; this.m_AccessionSlideOrderViewCollection = new Business.View.AccessionSlideOrderViewCollection(); this.m_MaterialLocationCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialLocationCollection(); this.m_MaterialTrackingBatchCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingBatchCollection(); this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance; this.m_BarcodeScanPort.HistologySlideScanReceived += HistologySlideScanReceived; this.m_SlideTrackingLogCollection = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection(); this.Closing += new CancelEventHandler(MaterialTrackingDialog_Closing); InitializeComponent(); DataContext = this; }
public MaterialTrackingCasePage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection materialTrackingLogCollection) { this.m_MaterialIdList = new List<string>(); this.m_AccessionOrder = accessionOrder; this.m_MaterialTrackingLogCollection = materialTrackingLogCollection; this.m_MaterialTrackingLogList = this.m_MaterialTrackingLogCollection.ToList<YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog>(); this.m_PageHeaderText = "Material Tracking For Case: " + this.m_AccessionOrder.MasterAccessionNo + " - " + this.m_AccessionOrder.PatientDisplayName; this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance; InitializeComponent(); this.DataContext = this; this.Loaded += new RoutedEventHandler(MaterialTrackingCasePage_Loaded); this.Unloaded += new RoutedEventHandler(MaterialTrackingCasePage_Unloaded); }
private void ListBoxSlides_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (this.ListBoxSlides.SelectedItem != null) { YellowstonePathology.Business.Slide.Model.SlideOrder slideOrder = (YellowstonePathology.Business.Slide.Model.SlideOrder)this.ListBoxSlides.SelectedItem; this.m_SlideTrackingLogCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingLogCollectionByMaterialId(slideOrder.SlideOrderId.ToString()); NotifyPropertyChanged("SlideTrackingLogCollection"); } }
private static YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection BuildMaterialTrackingLogCollection(SqlCommand cmd) { YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection materialTrackingLogCollection = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection(); using (SqlConnection cn = new SqlConnection(Properties.Settings.Default.ProductionConnectionString)) { cn.Open(); cmd.Connection = cn; using (SqlDataReader dr = cmd.ExecuteReader()) { while (dr.Read()) { YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog materialTrackingLog = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog(); YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter propertyWriter = new Persistence.SqlDataReaderPropertyWriter(materialTrackingLog, dr); propertyWriter.WriteProperties(); materialTrackingLogCollection.Add(materialTrackingLog); } } } return materialTrackingLogCollection; }
private static YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection BuildMaterialTrackingLogCollection(SqlCommand cmd) { YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection materialTrackingLogCollection = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection(); using (SqlConnection cn = new SqlConnection(Properties.Settings.Default.ProductionConnectionString)) { cn.Open(); cmd.Connection = cn; using (SqlDataReader dr = cmd.ExecuteReader()) { while (dr.Read()) { YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog materialTrackingLog = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog(); YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter propertyWriter = new Persistence.SqlDataReaderPropertyWriter(materialTrackingLog, dr); propertyWriter.WriteProperties(); materialTrackingLogCollection.Add(materialTrackingLog); } } } return(materialTrackingLogCollection); }
public MaterialTrackingBatchEventArgs(YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch materialTrackingBatch, YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection materialTrackingLogCollection) { this.m_MaterialTrackingBatch = materialTrackingBatch; this.m_MaterialTrackingLogCollection = materialTrackingLogCollection; }