private void WriteAccessionedDescription(Business.XPSDocument.Result.Data.AccessionOrderDataSheetDataSpecimenOrder specimenOrderData, Grid accessionedGrid)
        {
            TextBlock text = new TextBlock();

            text.Text   = specimenOrderData.Description;
            text.Margin = new Thickness(2, 0, 2, 0);
            text.HorizontalAlignment = HorizontalAlignment.Left;
            text.TextWrapping        = TextWrapping.Wrap;
            Grid.SetColumn(text, 0);
            Grid.SetRow(text, 1);
            Grid.SetColumnSpan(text, 2);
            accessionedGrid.Children.Add(text);
        }
        private void WriteSpecimenData(Business.XPSDocument.Result.Data.AccessionOrderDataSheetDataSpecimenOrder specimenOrderData, Grid specimenGrid)
        {
            RowDefinition row = new RowDefinition();

            specimenGrid.RowDefinitions.Add(row);

            Grid orderGrid = this.WriteSpecimenOrderInfo(specimenOrderData);

            Grid.SetColumn(orderGrid, 0);
            Grid.SetRow(orderGrid, specimenGrid.RowDefinitions.Count - 1);
            specimenGrid.Children.Add(orderGrid);

            Grid accessionedGrid = this.WriteSpecimenAccessionedInfo(specimenOrderData);

            Grid.SetColumn(accessionedGrid, 1);
            Grid.SetRow(accessionedGrid, specimenGrid.RowDefinitions.Count - 1);
            specimenGrid.Children.Add(accessionedGrid);
        }
        private void WriteAccessionedCollectionDate(Business.XPSDocument.Result.Data.AccessionOrderDataSheetDataSpecimenOrder specimenOrderData, Grid accessionedGrid)
        {
            TextBlock label = new TextBlock();

            label.Text   = "Collection Date:";
            label.Margin = new Thickness(2, 0, 2, 0);
            label.HorizontalAlignment = HorizontalAlignment.Right;
            Grid.SetColumn(label, 0);
            Grid.SetRow(label, 2);
            accessionedGrid.Children.Add(label);

            TextBlock text = new TextBlock();

            text.Text   = specimenOrderData.CollectionTime;
            text.Margin = new Thickness(2, 0, 2, 0);
            text.HorizontalAlignment = HorizontalAlignment.Left;
            Grid.SetColumn(text, 1);
            Grid.SetRow(text, 2);
            accessionedGrid.Children.Add(text);
        }
        private void WriteOrderOrderedBy(Business.XPSDocument.Result.Data.AccessionOrderDataSheetDataSpecimenOrder specimenOrderData, Grid orderGrid)
        {
            TextBlock label = new TextBlock();

            label.Text   = "Ordered By:";
            label.Margin = new Thickness(2, 0, 2, 0);
            label.HorizontalAlignment = HorizontalAlignment.Right;
            Grid.SetColumn(label, 0);
            Grid.SetRow(label, 6);
            orderGrid.Children.Add(label);

            TextBlock text = new TextBlock();

            text.Text   = specimenOrderData.OrderedBy;
            text.Margin = new Thickness(2, 0, 2, 0);
            text.HorizontalAlignment = HorizontalAlignment.Left;
            Grid.SetColumn(text, 1);
            Grid.SetRow(text, 6);
            orderGrid.Children.Add(text);
        }
        private void WriteOrderSpecialInstructions(Business.XPSDocument.Result.Data.AccessionOrderDataSheetDataSpecimenOrder specimenOrderData, Grid orderGrid)
        {
            TextBlock label = new TextBlock();

            label.Text   = "Special Instructions:";
            label.Margin = new Thickness(2, 0, 2, 0);
            label.HorizontalAlignment = HorizontalAlignment.Right;
            Grid.SetColumn(label, 0);
            Grid.SetRow(label, 3);
            orderGrid.Children.Add(label);

            TextBlock text = new TextBlock();

            text.Text   = specimenOrderData.SpecialInstructions;
            text.Margin = new Thickness(2, 0, 2, 0);
            text.HorizontalAlignment = HorizontalAlignment.Left;
            text.TextWrapping        = TextWrapping.Wrap;
            Grid.SetColumn(text, 1);
            Grid.SetRow(text, 3);
            orderGrid.Children.Add(text);
        }
        private void WriteAccessionedFixationType(Business.XPSDocument.Result.Data.AccessionOrderDataSheetDataSpecimenOrder specimenOrderData, Grid accessionedGrid)
        {
            TextBlock receivedLabel = new TextBlock();

            receivedLabel.Text   = "Received In:";
            receivedLabel.Margin = new Thickness(2, 0, 2, 0);
            receivedLabel.HorizontalAlignment = HorizontalAlignment.Right;
            Grid.SetColumn(receivedLabel, 0);
            Grid.SetRow(receivedLabel, 3);
            accessionedGrid.Children.Add(receivedLabel);

            TextBlock receivedText = new TextBlock();

            receivedText.Text   = specimenOrderData.ReceivedIn;
            receivedText.Margin = new Thickness(2, 0, 2, 0);
            receivedText.HorizontalAlignment = HorizontalAlignment.Left;
            Grid.SetColumn(receivedText, 1);
            Grid.SetRow(receivedText, 3);
            accessionedGrid.Children.Add(receivedText);

            TextBlock label = new TextBlock();

            label.Text   = "Processed In:";
            label.Margin = new Thickness(2, 0, 2, 0);
            label.HorizontalAlignment = HorizontalAlignment.Right;
            Grid.SetColumn(label, 0);
            Grid.SetRow(label, 4);
            accessionedGrid.Children.Add(label);

            TextBlock text = new TextBlock();

            text.Text   = specimenOrderData.ProcessedIn;
            text.Margin = new Thickness(2, 0, 2, 0);
            text.HorizontalAlignment = HorizontalAlignment.Left;
            Grid.SetColumn(text, 1);
            Grid.SetRow(text, 4);
            accessionedGrid.Children.Add(text);
        }
        private Grid WriteSpecimenAccessionedInfo(Business.XPSDocument.Result.Data.AccessionOrderDataSheetDataSpecimenOrder specimenOrderData)
        {
            Grid accessionedGrid = new Grid();

            accessionedGrid.VerticalAlignment = VerticalAlignment.Top;

            RowDefinition row = new RowDefinition();

            accessionedGrid.RowDefinitions.Add(row);

            RowDefinition row1 = new RowDefinition();

            accessionedGrid.RowDefinitions.Add(row1);

            RowDefinition row2 = new RowDefinition();

            accessionedGrid.RowDefinitions.Add(row2);

            RowDefinition row3 = new RowDefinition();

            accessionedGrid.RowDefinitions.Add(row3);

            RowDefinition row4 = new RowDefinition();

            accessionedGrid.RowDefinitions.Add(row4);

            RowDefinition row5 = new RowDefinition();

            accessionedGrid.RowDefinitions.Add(row5);

            RowDefinition row6 = new RowDefinition();

            accessionedGrid.RowDefinitions.Add(row6);

            ColumnDefinition col1 = new ColumnDefinition();

            col1.Width = new GridLength(96 * 1.2);
            accessionedGrid.ColumnDefinitions.Add(col1);

            ColumnDefinition col2 = new ColumnDefinition();

            col2.Width = new GridLength(96 * 2.55);
            accessionedGrid.ColumnDefinitions.Add(col2);

            TextBlock label = new TextBlock();

            label.Text   = "Accessioned";
            label.Margin = new Thickness(2, 10, 2, 0);
            label.HorizontalAlignment = HorizontalAlignment.Left;
            label.TextDecorations     = TextDecorations.Underline;
            label.FontWeight          = FontWeight.FromOpenTypeWeight(700);
            Grid.SetColumn(label, 0);
            Grid.SetRow(label, 0);
            Grid.SetColumnSpan(label, 2);
            accessionedGrid.Children.Add(label);

            this.WriteAccessionedDescription(specimenOrderData, accessionedGrid);
            this.WriteAccessionedCollectionDate(specimenOrderData, accessionedGrid);
            this.WriteAccessionedFixationType(specimenOrderData, accessionedGrid);

            return(accessionedGrid);
        }