Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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");
            }
                                                                                                                       ));
        }