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); }
private void ItemsReceivedPage_ContainerScannedReceived(object sender, YellowstonePathology.Business.BarcodeScanning.ContainerBarcode containerBarcode) { this.ReceiveContainerScan(containerBarcode.ToString()); }
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()); } )); }
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; } )); }
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."); } } )); }