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); }
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 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.Invoke(System.Windows.Threading.DispatcherPriority.Input, new System.Threading.ThreadStart(delegate() { this.ContainerScannedReceived(this, containerBarcode); } )); }
private void ContainerScanReceived(YellowstonePathology.Business.BarcodeScanning.ContainerBarcode containerBarcode) { this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Input, new System.Threading.ThreadStart(delegate() { this.GetClientOrderByContainerId(containerBarcode.ToString()); } )); }
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(); } } )); }
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."); } } )); }
private void ItemsReceivedPage_ContainerScannedReceived(object sender, YellowstonePathology.Business.BarcodeScanning.ContainerBarcode containerBarcode) { this.ReceiveContainerScan(containerBarcode.ToString()); }
private void ButtonOk_Click(object sender, RoutedEventArgs e) { if (!string.IsNullOrEmpty(this.ComboboxDocumentType.Text)) { if (this.TextBlockRowCount.Text.Length > 0) { int pageCount = this.GetPageCount(); if (pageCount > 0) { YellowstonePathology.Business.Label.Model.ContainerPaperLabelPrinter labelPrinter = new Business.Label.Model.ContainerPaperLabelPrinter(); for (int i = 0; i < pageCount; i++) { YellowstonePathology.Business.BarcodeScanning.ContainerBarcode containerBarcode = Business.BarcodeScanning.ContainerBarcode.Parse(); YellowstonePathology.Business.Label.Model.ContainerPaperLabel containerPaperLabel = new Business.Label.Model.ContainerPaperLabel(containerBarcode); labelPrinter.Queue.Enqueue(containerPaperLabel); } labelPrinter.Print(); } } else { MessageBox.Show("The row count is not set correctly."); } } }
private void ButtonEnterNewContainerId_Click(object sender, RoutedEventArgs e) { YellowstonePathology.Business.BarcodeScanning.ContainerBarcode containerBarcode = YellowstonePathology.Business.BarcodeScanning.ContainerBarcode.Parse(); this.ContainerScanReceived(containerBarcode); }
private void ButtonAddSlideTrackingSpecimen_Click(object sender, RoutedEventArgs e) { YellowstonePathology.Business.BarcodeScanning.ContainerBarcode containerBarcode = YellowstonePathology.Business.BarcodeScanning.ContainerBarcode.Parse(); this.AddSlideTrackingSpecimen(this, containerBarcode); }