private void HistologySlideScanReceived(YellowstonePathology.Business.BarcodeScanning.Barcode barcode) { this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action( delegate() { if (this.ListBoxMaterialTrackingBatch.SelectedItem != null) { if (this.m_AccessionSlideOrderViewCollection.Exists(barcode.ID) == false) { YellowstonePathology.Business.View.AccessionSlideOrderView accessionSlideOrderView = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetAccessionSlideOrderViewBySlideOrderId(barcode.ID); if (accessionSlideOrderView != null) { this.m_AccessionSlideOrderViewCollection.Add(accessionSlideOrderView); this.SlideCount = this.m_AccessionSlideOrderViewCollection.Count; this.CreateSlideTrackingLogEntry(accessionSlideOrderView); } else { MessageBox.Show("The scan did not identify the slide."); } } else { this.SetSelectedSlide(barcode.ID); } } })); }
private void HistologyBlockScanReceived(YellowstonePathology.Business.BarcodeScanning.Barcode barcode) { this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Input, new System.Threading.ThreadStart(delegate() { if (this.m_SpecimenOrder.AliquotOrderCollection.Exists(barcode.ID)) { YellowstonePathology.Business.Facility.Model.Facility thisFacility = Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.FacilityId); string thisLocation = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.HostName; YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_SpecimenOrder.AliquotOrderCollection.GetByAliquotOrderId(barcode.ID); string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString(); YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog materialTrackingLog = new Business.MaterialTracking.Model.MaterialTrackingLog(objectId, barcode.ID, null, thisFacility.FacilityId, thisFacility.FacilityName, thisLocation, "Block Scanned", "Block Scanned At Gross", "Aliquot", this.m_AccessionOrder.MasterAccessionNo, aliquotOrder.Label, aliquotOrder.ClientAccessioned, this.m_AccessionOrder.ClientAccessionNo); YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(materialTrackingLog, Window.GetWindow(this)); aliquotOrder.GrossVerify(this.m_SystemIdentity.User); aliquotOrder.SetLocation(thisFacility, thisLocation); this.GrossBlockManagementView = new Business.View.GrossBlockManagementView(this.m_AccessionOrder, this.m_CaseNotesDocument, this.m_SpecimenOrder); this.SetupSpecimenView(); if (this.m_SpecimenOrder.AliquotOrderCollection.HasUnverifiedBlocks() == false) { CustomEventArgs.SpecimenOrderReturnEventArgs specimenOrderReturnEventArgs = new CustomEventArgs.SpecimenOrderReturnEventArgs(this.m_SpecimenOrder); this.Next(this, specimenOrderReturnEventArgs); } } else { MessageBox.Show("The block scanned is not from this specimen.", "Scanned Block Mismatch", MessageBoxButton.OK, MessageBoxImage.Exclamation); } } )); }
private void BarcodeScanPort_HistologyBlockScanReceived(YellowstonePathology.Business.BarcodeScanning.Barcode barcode) { this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action( delegate() { this.Save(false); this.DoAliquotOrderIdSearch(barcode.ID, 13); })); }
private void HistologyBlockScanReceived(YellowstonePathology.Business.BarcodeScanning.Barcode barcode) { if (barcode.ID.Contains("ALQ") == true) { MessageBox.Show("The scan for this block was not read correctly. Please try again."); } else { this.RecieveScan(barcode.ID); } }
private void BarcodeScanPort_HistologyBlockScanReceived(YellowstonePathology.Business.BarcodeScanning.Barcode barcode) { this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action( delegate() { this.DoAliquotOrderIdSearch(barcode.ID, 13); this.m_PathologistUI.UpdateAliquotLocation(barcode.ID); //this.path //this.m_PathologistUI.AccessionOrder.SpecimenOrderCollection.SetIsSelectedFromSlideOrderId(barcode.ID); })); }
private void HistologySlideScanReceived(YellowstonePathology.Business.BarcodeScanning.Barcode barcode) { this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action( delegate() { if (barcode.IsValidated == true) { this.ChangeListing(barcode.ID); } else { MessageBox.Show("The scanner did not read the barcode correctly. Please try again.", "Invalid Scan", MessageBoxButton.OK, MessageBoxImage.Exclamation); } })); }
private void HistologySlideScanReceived(YellowstonePathology.Business.BarcodeScanning.Barcode barcode) { this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action( delegate() { if (barcode.IsValidated == true) { this.Save(false); this.DoSlideOrderIdSearch(barcode.ID); } else { MessageBox.Show("The scanner did not read the barcode correctly. Please try again."); } })); }
private void HistologySlideScanReceived(YellowstonePathology.Business.BarcodeScanning.Barcode barcode) { this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action( delegate() { if (this.m_MaterialTrackingLogViewCollection.MaterialIdExists(barcode.ID) == false) { YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog materialTrackingLog = this.AddMaterialTrackingLogScan(barcode.ID, "Slide", this.m_MaterialTrackingBatch.MaterialTrackingBatchId); YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogView materialTrackingLogView = new Business.MaterialTracking.Model.MaterialTrackingLogView(); materialTrackingLogView.FromScannedItemView(materialTrackingLog); this.m_MaterialTrackingLogViewCollection.Add(materialTrackingLogView); this.NotifyPropertyChanged("MaterialCount"); } else { this.SelectMaterialTrackingLogView(barcode.ID); } })); }
private void HistologySlideScanReceived(YellowstonePathology.Business.BarcodeScanning.Barcode barcode) { this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action( delegate() { if (barcode.IsValidated == true) { this.DoSlideOrderIdSearch(barcode.ID); if (this.m_PathologistsReview.ReviewContent is SurgicalReview) { //this.m_PathologistUI.UpdateSlideLocation(barcode.ID); SurgicalReview surgicalReview = (SurgicalReview)this.m_PathologistsReview.ReviewContent; surgicalReview.BillingSpecimenViewCollection.SetSelectedBySlideOrderid(barcode.ID); surgicalReview.SetFocusOnDiagnosis(); } } else { MessageBox.Show("The scanner did not read the barcode correctly. Please try again."); } })); }