Exemplo n.º 1
0
        private void UpdateLocation()
        {
            YellowstonePathology.Business.Facility.Model.Facility facility = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId(this.m_MaterialTrackingBatch.ToFacilityId);
            string location = this.m_MaterialTrackingBatch.ToLocation;

            foreach (YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog materialTrackingLog in this.m_MaterialTrackingBatch.MaterialTrackingLogCollection)
            {
                switch (materialTrackingLog.MaterialType)
                {
                case "PSLD":
                case "NGYNSLD":
                case "FNASLD":
                case "Aliquot":
                case "Block":
                case "FrozenBlock":
                    YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAliquotOrder(materialTrackingLog.MaterialId, this);
                    aliquotOrder.SetLocation(facility, location);
                    YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Push(this);
                    break;

                case "Slide":
                    YellowstonePathology.Business.Slide.Model.SlideOrder slideOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullSlideOrder(materialTrackingLog.MaterialId, this);
                    slideOrder.SetLocation(facility, location);
                    YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Push(this);
                    break;

                default:
                    break;
                }
            }
        }
Exemplo n.º 2
0
        private void BarcodeScanPort_HistologySlideScanReceived(Business.BarcodeScanning.Barcode barcode)
        {
            this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal,
                                   new Action(
                                       delegate()
            {
                if (this.m_AliquotOrder.SlideOrderCollection.Exists(barcode.ID) == true)
                {
                    YellowstonePathology.Business.Slide.Model.SlideOrder slideOrder    = this.m_AliquotOrder.SlideOrderCollection.Get(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;

                    this.AddMaterialTrackingLog(slideOrder, thisFacility, thisLocation);
                    slideOrder.SetLocation(thisFacility, thisLocation);

                    if (slideOrder.Validated == false)
                    {
                        slideOrder.Validate(this.m_SystemIdentity);
                        if (this.m_AliquotOrder.SlideOrderCollection.IsLastSlide(barcode.ID) == true)
                        {
                            this.Finished(this, new YellowstonePathology.UI.CustomEventArgs.MasterAccessionNoReturnEventArgs(this.m_AccessionOrder.MasterAccessionNo));
                        }
                    }
                }
                else
                {
                    MessageBox.Show("This slide does not belong to the current block");
                }
            }));
        }
Exemplo n.º 3
0
 public void UpdateSlideLocation(string slideOrderId)
 {
     if (this.m_AccessionOrder.AccessionLock.IsLockAquiredByMe == true)
     {
         YellowstonePathology.Business.Slide.Model.SlideOrder slideOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSlideOrder(slideOrderId);
         if (slideOrder != null)
         {
             slideOrder.SetLocation(this.m_Facility, this.m_Location);
         }
     }
 }