private void ScanContainerPage_ContainerScannedReceived(object sender, Business.BarcodeScanning.ContainerBarcode containerBarcode) { string masterAccessionNo = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetMasterAccessionNoFromContainerId(containerBarcode.ToString()); YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(masterAccessionNo, this.m_LoginPageWindow); this.ShowPrintSlidesPage(containerBarcode.ToString(), accessionOrder); }
private void BarcodeScanPort_ContainerScanReceived(Business.BarcodeScanning.ContainerBarcode containerBarcode) { this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Input, new System.Threading.ThreadStart(delegate() { YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullSpecimenOrderByContainerId(containerBarcode.ToString(), this); foreach (Business.Test.AliquotOrder aliquotOrder in specimenOrder.AliquotOrderCollection) { if (aliquotOrder.Status == "Hold") { aliquotOrder.Status = null; } else { aliquotOrder.Status = "Hold"; } } YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Push(this); this.m_AliquotOrderHoldCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetAliquotOrderHoldCollection(); this.NotifyPropertyChanged("AliquotOrderHoldCollection"); this.m_ScanCount = "Block Count: " + this.m_EmbeddingScanCollection.Count.ToString(); this.NotifyPropertyChanged("ScanCount"); } )); }
private void ItemsReceivedPage_AddSlideTrackingSpecimen(object sender, Business.BarcodeScanning.ContainerBarcode containerBarcode) { YellowstonePathology.UI.Login.Receiving.IFoundAContainerResult result = this.m_ClientOrderReceivingHandler.IFoundAContainer(containerBarcode.ID); result.ClientOrderDetail.Description = "Slide Tracking Specimen"; result.ClientOrderDetail.DescriptionToAccession = "Slide Tracking Specimen"; result.ClientOrderDetail.CollectionDate = DateTime.Now; result.ClientOrderDetail.Receive(); YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Save(); this.StartReviewClientOrderPath(); }
private void BarcodeScanPort_ContainerScanReceived(Business.BarcodeScanning.ContainerBarcode containerBarcode) { this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action( delegate() { if (this.m_MaterialTrackingLogViewCollection.MaterialIdExists(containerBarcode.ID) == false) { YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog materialTrackingLog = this.AddMaterialTrackingLogScan(containerBarcode.ID, "Container", 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(containerBarcode.ID); } })); }
private void BarcodeScanPort_ContainerScanReceived(Business.BarcodeScanning.ContainerBarcode containerBarcode) { MessageBox.Show("Warning!! This page does not respond to container scans. Please finish processing the current specimen."); }