Esempio n. 1
0
 public ContainerPaperLabel(YellowstonePathology.Business.BarcodeScanning.ContainerBarcode containerBarcode)
 {
     this.m_ContainerBarCode = containerBarcode;
     this.m_GUIDFirstLine    = containerBarcode.ToString().Substring(0, 14);
     this.m_GUIDSecondLine   = containerBarcode.ToString().Substring(14, 14);
     this.m_GUIDThirdLine    = containerBarcode.ToString().Substring(28);
 }
Esempio n. 2
0
        private void ContainerScanReceived(YellowstonePathology.Business.BarcodeScanning.ContainerBarcode containerBarcode)
        {
            this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Input, new System.Threading.ThreadStart(delegate()
            {
                this.m_BarcodeScanPort.ContainerScanReceived -= ContainerScanReceived;
                if (this.ContainerExistsInAccessionOrder(containerBarcode.ToString()) == true)
                {
                    YellowstonePathology.Business.User.SystemIdentity systemIdentity = Business.User.SystemIdentity.Instance;
                    this.m_LoginPageWindow = new LoginPageWindow();

                    SpecimenOrderDetailsPath specimenOrderDetailsPath = new SpecimenOrderDetailsPath(this.m_LoginUI.AccessionOrder, containerBarcode.ToString(), this.m_LoginPageWindow.PageNavigator);
                    specimenOrderDetailsPath.Finish += new SpecimenOrderDetailsPath.FinishEventHandler(SpecimenOrderDetailsPath_Finish);
                    specimenOrderDetailsPath.Start();
                    this.m_LoginPageWindow.ShowDialog();
                }
                else
                {
                    if (this.m_LoginUI.GetAccessionOrderByContainerId(containerBarcode.ToString()) == true)
                    {
                        if (this.ListViewAccessionOrders.Items.Count > 0)
                        {
                            this.ListViewAccessionOrders.SelectedItem = this.ListViewAccessionOrders.Items[0];
                        }
                    }
                }
                this.m_BarcodeScanPort.ContainerScanReceived += ContainerScanReceived;
            }
                                                                                                                            ));
        }
Esempio n. 3
0
 private void ContainerScanReceived(YellowstonePathology.Business.BarcodeScanning.ContainerBarcode containerBarcode)
 {
     this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Input, new System.Threading.ThreadStart(delegate()
     {
         this.UseThisContainer(this, containerBarcode.ToString());
     }
                                                                                                                ));
 }
Esempio n. 4
0
 private void ContainerScanReceived(YellowstonePathology.Business.BarcodeScanning.ContainerBarcode containerBarcode)
 {
     this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Input, new System.Threading.ThreadStart(delegate()
     {
         if (string.IsNullOrEmpty(this.m_SpecimenOrder.ContainerId) == true)
         {
             this.m_SpecimenOrder.ContainerId = containerBarcode.ToString();
         }
     }
                                                                                                                ));
 }
Esempio n. 5
0
        public static string GetCommands()
        {
            StringBuilder result  = new StringBuilder();
            int           xOffset = 0;

            result.Append("^XA^PW1248");
            for (int i = 0; i < 4; i++)
            {
                YellowstonePathology.Business.BarcodeScanning.ContainerBarcode containerBarcode = Business.BarcodeScanning.ContainerBarcode.Parse();
                GetOne(containerBarcode.ToString(), result, xOffset);
                xOffset += 320;
            }

            result.Append("^XZ");
            return(result.ToString());
        }
 private void ContainerScanReceived(YellowstonePathology.Business.BarcodeScanning.ContainerBarcode containerBarcode)
 {
     this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Input, new System.Threading.ThreadStart(delegate()
     {
         if (string.IsNullOrEmpty(this.m_ClientOrderDetail.ContainerId) == true)
         {
             this.m_ClientOrderDetail.ContainerIdBinding = containerBarcode.ToString();
             this.m_ClientOrderDetail.SetFixationStartTime();
             this.m_ClientOrderDetail.Receive();
         }
         else
         {
             MessageBox.Show("Unable to set the Container ID because it is already set.");
         }
     }
                                                                                                                     ));
 }
Esempio n. 7
0
 private void ItemsReceivedPage_ContainerScannedReceived(object sender, YellowstonePathology.Business.BarcodeScanning.ContainerBarcode containerBarcode)
 {
     this.ReceiveContainerScan(containerBarcode.ToString());
 }