Exemplo n.º 1
0
        private static TableCell CreateTableCell(string text, string backgroundColor = "", JustificationValues align = JustificationValues.Left, string width = "", string font = "", string fontSize = "", bool isBold = false, bool isUnderlines = false)
        {
            var cell = new TableCell();
            TableCellProperties tableCellProperties = new TableCellProperties()
            {
                TableCellVerticalAlignment = new TableCellVerticalAlignment {
                    Val = TableVerticalAlignmentValues.Center
                }
            };

            if (!string.IsNullOrWhiteSpace(backgroundColor))
            {
                tableCellProperties.Append(new Shading {
                    Color = "auto", Fill = backgroundColor, Val = ShadingPatternValues.Clear
                });
            }

            if (!string.IsNullOrWhiteSpace(width))
            {
                tableCellProperties.Append(new TableCellWidth {
                    Width = width
                });
            }

            cell.Append(CreateParagraph(text, align, font, fontSize, isBold));
            cell.Append(tableCellProperties);

            return(cell);
        }
        //.....................................................................
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private static TableCellProperties MakeCellStyle_01_02( )
        {
            TableCellProperties tableCellProperties2 = new TableCellProperties( );
            TableCellWidth      tableCellWidth2      = new TableCellWidth( )
            {
                Width = "2841", Type = TableWidthUnitValues.Dxa
            };

            TableCellBorders tableCellBorders2 = new TableCellBorders( );
            TopBorder        topBorder1        = new TopBorder( )
            {
                Val = BorderValues.Single, Color = "auto", Size = ( UInt32Value )18U, Space = ( UInt32Value )0U
            };
            LeftBorder leftBorder1 = new LeftBorder( )
            {
                Val = BorderValues.Single, Color = "auto", Size = ( UInt32Value )18U, Space = ( UInt32Value )0U
            };
            BottomBorder bottomBorder2 = new BottomBorder( )
            {
                Val = BorderValues.Single, Color = "auto", Size = ( UInt32Value )18U, Space = ( UInt32Value )0U
            };
            RightBorder rightBorder2 = new RightBorder( )
            {
                Val = BorderValues.Single, Color = "auto", Size = ( UInt32Value )18U, Space = ( UInt32Value )0U
            };

            tableCellBorders2.Append(topBorder1);
            tableCellBorders2.Append(leftBorder1);
            tableCellBorders2.Append(bottomBorder2);
            tableCellBorders2.Append(rightBorder2);

            tableCellProperties2.Append(tableCellWidth2);
            tableCellProperties2.Append(tableCellBorders2);
            return(tableCellProperties2);
        }
        //.....................................................................
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private static TableCellProperties MakeCellStyle_0101( )
        {
            TableCellProperties tableCellProperties1 = new TableCellProperties( );
            TableCellWidth      tableCellWidth1      = new TableCellWidth( )
            {
                Width = "2840", Type = TableWidthUnitValues.Dxa
            };

            TableCellBorders tableCellBorders1 = new TableCellBorders( );
            BottomBorder     bottomBorder1     = new BottomBorder( )
            {
                Val = BorderValues.Single, Color = "auto", Size = ( UInt32Value )48U, Space = ( UInt32Value )0U
            };
            RightBorder rightBorder1 = new RightBorder( )
            {
                Val = BorderValues.Single, Color = "auto", Size = ( UInt32Value )18U, Space = ( UInt32Value )0U
            };

            tableCellBorders1.Append(bottomBorder1);
            tableCellBorders1.Append(rightBorder1);

            tableCellProperties1.Append(tableCellWidth1);
            tableCellProperties1.Append(tableCellBorders1);
            return(tableCellProperties1);
        }
        //.....................................................................
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private static TableCellProperties MakeCellStyle_02_02( )
        {
            TableCellBorders tableCellBorders5 = new TableCellBorders( );

            TopBorder topBorder4 = new TopBorder( )
            {
                Val = BorderValues.Single, Color = "auto", Size = ( UInt32Value )18U, Space = ( UInt32Value )0U
            };

            LeftBorder leftBorder4 = new LeftBorder( )
            {
                Val = BorderValues.Nil
            };

            tableCellBorders5.Append(topBorder4);
            tableCellBorders5.Append(leftBorder4);

            TableCellProperties tableCellProperties5 = new TableCellProperties( );

            TableCellWidth tableCellWidth5 = new TableCellWidth( )
            {
                Width = "2841", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties5.Append(tableCellWidth5);
            tableCellProperties5.Append(tableCellBorders5);

            return(tableCellProperties5);
        }
Exemplo n.º 5
0
        //.....................................................................
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private TableCell MakeElem4( )
        {
            //---------------------------------------------
            TableCell tableCell4 = new TableCell( );

            TableCellProperties tableCellProperties4 = new TableCellProperties( );

            TableCellWidth tableCellWidth4 = new TableCellWidth( )
            {
                Width = "2840", Type = TableWidthUnitValues.Dxa
            };
            TableCellVerticalAlignment tableCellVerticalAlignment4 = new TableCellVerticalAlignment( )
            {
                Val = TableVerticalAlignmentValues.Center
            };

            tableCellProperties4.Append(tableCellWidth4);
            tableCellProperties4.Append(tableCellVerticalAlignment4);

            //---------------------------------------------
            Paragraph paragraph4 = new Paragraph( )
            {
                RsidParagraphAddition = "00B721D5", RsidParagraphProperties = "00B721D5", RsidRunAdditionDefault = "00B721D5"
            };

            ParagraphProperties paragraphProperties4 = new ParagraphProperties( );
            Justification       justification4       = new Justification( )
            {
                Val = JustificationValues.Right
            };

            paragraphProperties4.Append(justification4);

            //---------------------------------------------
            Run run4 = new Run( );

            RunProperties runProperties4 = new RunProperties( );
            RunFonts      runFonts2      = new RunFonts( )
            {
                Hint = FontTypeHintValues.EastAsia
            };

            runProperties4.Append(runFonts2);
            Text text4 = new Text( );

            text4.Text = "123";

            run4.Append(runProperties4);
            run4.Append(text4);

            //---------------------------------------------
            paragraph4.Append(paragraphProperties4);
            paragraph4.Append(run4);

            tableCell4.Append(tableCellProperties4);
            tableCell4.Append(paragraph4);
            return(tableCell4);
        }
Exemplo n.º 6
0
        /// <summary>
        /// Возвращает ячейку с настройками может применятся для создания строки
        /// </summary>
        /// <param name="paragraph">Коллекция параграффов для добавления в ячейку</param>
        /// <param name="number">Количество объединенных ячеек</param>
        /// <param name="width">Длина ячейки</param>
        /// <param name="type">Тип выравнивания</param>
        /// <param name="leftmargin">Левый отступ в пикселях</param>
        /// <param name="rightmargin">Правый отступ в пикселях</param>
        /// <param name="borders">Отражение границы ячейки</param>
        /// <returns></returns>
        public static TableCell GenerateCell(ref ObservableCollection <Paragraph> paragraph, string width, TableWidthUnitValues type, string leftmargin = "0", string rightmargin = "0", TableVerticalAlignmentValues verticalAlignment = TableVerticalAlignmentValues.Bottom, TableCellBorders borders = null, int number = 0)
        {
            TableCell           tableCell           = new TableCell();
            TableCellProperties tableCellProperties = new TableCellProperties();
            TableCellWidth      tableCellWidth      = new TableCellWidth()
            {
                Width = width, Type = type
            };
            GridSpan gridSpan = new GridSpan()
            {
                Val = number
            };
            TableCellVerticalAlignment tcVA = new TableCellVerticalAlignment()
            {
                Val = verticalAlignment
            };

            TableCellMargin tableCellMargin = new TableCellMargin();

            if (leftmargin != "0")
            {
                LeftMargin leftMargin = new LeftMargin()
                {
                    Width = leftmargin, Type = TableWidthUnitValues.Dxa
                };
                tableCellMargin.Append(leftMargin);
            }

            if (rightmargin != "0")
            {
                RightMargin rightMargin = new RightMargin()
                {
                    Width = rightmargin, Type = TableWidthUnitValues.Dxa
                };
                tableCellMargin.Append(rightMargin);
            }
            tableCellProperties.Append(tcVA);
            tableCellProperties.Append(tableCellWidth);
            tableCellProperties.Append(tableCellMargin);
            tableCellProperties.Append(gridSpan);
            if (borders != null)
            {
                tableCellProperties.Append(borders);
            }

            tableCell.Append(tableCellProperties);
            AddParagraphCell(ref tableCell, ref paragraph);

            return(tableCell);
        }
Exemplo n.º 7
0
        public static TableCell AddCell(OXMLParagraphWrap _paragraph)
        {
            var TC = new TableCell();

            var TCProperties = new TableCellProperties();
                var TCWidth = new TableCellWidth(){ Width = "0", Type = TableWidthUnitValues.Nil };  //говорим что ширину определяет Столбец
                var TCVertAlign = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center };
            TCProperties.Append(TCWidth);
            TCProperties.Append(TCVertAlign);

            TC.Append(TCProperties);
            TC.Append(_paragraph.XMLParagraph);

            return TC;
        }
Exemplo n.º 8
0
        private static void MergeCellsInColumn(int col)
        {
            TableCell tCell;

            TableCellProperties tcPropStart = new TableCellProperties();

            tcPropStart.Append(new VerticalMerge()
            {
                Val = MergedCellValues.Restart
            });

            TableCellProperties tcPropNext = new TableCellProperties();

            tcPropNext.Append(new VerticalMerge()
            {
                Val = MergedCellValues.Continue
            });

            foreach (TableRow tRow in tab.Elements <TableRow>())
            {
                tCell = tRow.Elements <TableCell>().ElementAt(col);

                if (IsEmptyCell(tCell))
                {
                    tCell.Append(tcPropNext.CloneNode(true));
                }
                else
                {
                    tCell.Append(tcPropStart.CloneNode(true));
                }
            }
        }
Exemplo n.º 9
0
        private Table CreateTable(int?rowCount, int?columnCount)
        {
            //Create table with border in specific lines and columns
            int   realRowCount    = GetRealRowCount(rowCount);
            int   realColumnCount = GetRealColumnCount(columnCount);
            Table table           = CreateDefaultTable();

            for (int r = 0; r < realRowCount; r++)
            {
                TableRow tableRow = new TableRow();
                table.Append(tableRow);

                for (int c = 0; c < realColumnCount; c++)
                {
                    TableCellProperties tableCellProperties = new TableCellProperties();
                    TableCellWidth      tableCellWidth      = new TableCellWidth()
                    {
                        Width = BOX_CELL_WIDTH.ToString(), Type = TableWidthUnitValues.Dxa
                    };
                    tableCellProperties.Append(tableCellWidth);

                    TableCell tableCell = new TableCell();
                    tableCell.Append(tableCellProperties);
                    tableCell.Append(new Paragraph());
                    tableRow.Append(tableCell);
                }
            }
            return(table);
        }
Exemplo n.º 10
0
        // Creates an TableCell instance and adds its children.
        public static void AddSpacerCell(this TableRow row, string width = "173")
        {
            TableCell tableCell1 = new TableCell();

            TableCellProperties tableCellProperties1 = new TableCellProperties();
            TableCellWidth      tableCellWidth1      = new TableCellWidth()
            {
                Width = width, Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties1.Append(tableCellWidth1);

            Paragraph paragraph1 = new Paragraph()
            {
                RsidParagraphAddition = "005A43FA", RsidParagraphProperties = "005A43FA", RsidRunAdditionDefault = "005A43FA"
            };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();
            Indentation         indentation1         = new Indentation()
            {
                Left = "95", Right = "95"
            };

            paragraphProperties1.Append(indentation1);

            paragraph1.Append(paragraphProperties1);

            tableCell1.Append(tableCellProperties1);
            tableCell1.Append(paragraph1);
            row.Append(tableCell1);
        }
        internal void Process(TableCell cell, DocxTableProperties docxProperties, DocxNode node)
        {
            TableCellProperties cellProperties = new TableCellProperties();

            ProcessColSpan(node, cellProperties);
            ProcessWidth(node, cellProperties);

            if (HasRowSpan)
            {
                cellProperties.Append(new VerticalMerge()
                {
                    Val = MergedCellValues.Restart
                });
            }

            //Processing border should be after colspan
            ProcessBorders(node, docxProperties, cellProperties);

            string backgroundColor = node.ExtractStyleValue(DocxColor.backGroundColor);

            if (!string.IsNullOrEmpty(backgroundColor))
            {
                DocxColor.ApplyBackGroundColor(backgroundColor, cellProperties);
            }

            ProcessVerticalAlignment(node, cellProperties);

            if (cellProperties.HasChildren)
            {
                cell.Append(cellProperties);
            }
        }
Exemplo n.º 12
0
        private TableCell CreateChoicesCell(List <CodeVM> codes, int firstCodesCount)
        {
            TableCellProperties tableCellProperties = new TableCellProperties();

            TableCellWidth tableCellWidth = new TableCellWidth()
            {
                Width = "0", Type = TableWidthUnitValues.Auto
            };

            tableCellProperties.Append(tableCellWidth);

            TableCell tableCell = new TableCell();

            tableCell.Append(tableCellProperties);

            foreach (CodeVM code in codes)
            {
                string    text      = ToChoiceString(code);
                Paragraph paragraph = CreateTextParagraph(text);
                tableCell.Append(paragraph);
            }

            int diff = firstCodesCount - codes.Count;

            if (diff != 0)
            {
                for (int i = 0; i < diff; i++)
                {
                    tableCell.Append(CreateEmptyParagraph());
                }
            }

            return(tableCell);
        }
        // Creates an TableCellProperties instance and adds its children.
        public TableCellProperties Create(params OpenXmlElement[] newChildren)
        {
            TableCellProperties tableCellProperties = new TableCellProperties();

            tableCellProperties.Append(newChildren);
            return(tableCellProperties);
        }
        //.....................................................................
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private TableCellProperties MakeTableCellProperties(int width)
        {
            TableCellProperties properties = new TableCellProperties( );

            TableCellWidth elemWidth = new TableCellWidth( )
            {
                Width = width.ToString(), Type = TableWidthUnitValues.Dxa
            };

            TableCellVerticalAlignment vertalign = new TableCellVerticalAlignment( )
            {
                Val = TableVerticalAlignmentValues.Center
            };

            properties.Append(elemWidth);
            properties.Append(vertalign);

            return(properties);
        }
Exemplo n.º 15
0
        private TableCellProperties SecondCells()
        {
            TableCellProperties cellTwoProperties = new TableCellProperties();

            cellTwoProperties.Append(new HorizontalMerge
            {
                Val = MergedCellValues.Continue
            });
            return(cellTwoProperties);
        }
Exemplo n.º 16
0
        private TableCellProperties FirstCells()
        {
            TableCellProperties cellOneProperties = new TableCellProperties();

            cellOneProperties.Append(new HorizontalMerge
            {
                Val = MergedCellValues.Restart
            });
            return(cellOneProperties);
        }
Exemplo n.º 17
0
        /// <summary>
        ///  Initialize new cell header object.
        /// </summary>
        /// <param name="textValue">The content of cell.</param>
        /// <returns>The TableCell object.</returns>
        public virtual TableCell NewTableCellHeader(string textValue, string width = "")
        {
            //create cell object and its properties
            TableCell tableCell = new TableCell();

            TableCellProperties tableCellProperties = new TableCellProperties();

            //ConditionalFormatStyle conditionalFormatStyle = new ConditionalFormatStyle() { Val = "001000000000" };
            if (!string.IsNullOrEmpty(width))
            {
                TableCellWidth tableCellWidth = new TableCellWidth()
                {
                    Width = width, Type = TableWidthUnitValues.Dxa
                };
                tableCellProperties.Append(tableCellWidth);
            }

            //tableCellProperties.Append(hideMark);

            //create paragrpah object and its properties
            Paragraph paragraph = new Paragraph();

            ParagraphProperties paragraphProperties = new ParagraphProperties();
            Justification       justification       = new Justification()
            {
                Val = JustificationValues.Center
            };

            paragraphProperties.Append(justification);

            //create Run and Text
            Run run = new Run();

            DocumentFormat.OpenXml.Wordprocessing.RunProperties runProperties = new DocumentFormat.OpenXml.Wordprocessing.RunProperties();
            runProperties.Append(new DocumentFormat.OpenXml.Wordprocessing.Bold());
            Text text = new Text();

            //add content in Text
            text.Text = textValue;
            // Set RunProperties
            run.RunProperties = runProperties;
            //add Text to Run
            run.Append(text);

            //add Run to paragraph
            paragraph.Append(paragraphProperties);
            paragraph.Append(run);

            //add Paragraph to cell
            tableCell.Append(tableCellProperties);
            tableCell.Append(paragraph);

            return(tableCell);
        }
Exemplo n.º 18
0
        private TableCell CreateNoBorderCell(string text)
        {
            TableCellProperties tableCellProperties = new TableCellProperties();
            int cellWidth = CalcTextWidth(text.Length);

            TableCellWidth tableCellWidth = new TableCellWidth()
            {
                Width = cellWidth.ToString(), Type = TableWidthUnitValues.Dxa
            };
            TableCellBorders tableCellBorders1 = new TableCellBorders();
            TopBorder        topBorder1        = new TopBorder()
            {
                Val = BorderValues.Nil
            };
            LeftBorder leftBorder1 = new LeftBorder()
            {
                Val = BorderValues.Nil
            };
            BottomBorder bottomBorder1 = new BottomBorder()
            {
                Val = BorderValues.Nil
            };
            RightBorder rightBorder1 = new RightBorder()
            {
                Val = BorderValues.Nil
            };

            tableCellBorders1.Append(topBorder1);
            tableCellBorders1.Append(leftBorder1);
            tableCellBorders1.Append(bottomBorder1);
            tableCellBorders1.Append(rightBorder1);

            tableCellProperties.Append(tableCellWidth);
            tableCellProperties.Append(tableCellBorders1);

            TableCell tableCell = new TableCell();

            tableCell.Append(tableCellProperties);
            tableCell.Append(CreateTextParagraph(text));
            return(tableCell);
        }
        private void ProcessColSpan(DocxNode node, TableCellProperties cellProperties)
		{
			Int32 value;

            if (Int32.TryParse(node.ExtractAttributeValue(colspan), out value))
			{
				if (value > 1)
				{
					cellProperties.Append(new GridSpan() { Val = value });
				}
			}
		}
Exemplo n.º 20
0
        private TableCell CreateUnderlineCell(int cellWidth)
        {
            TableCellProperties tableCellProperties8 = new TableCellProperties();
            TableCellWidth      tableCellWidth8      = new TableCellWidth()
            {
                Width = cellWidth.ToString(), Type = TableWidthUnitValues.Dxa
            };

            TableCellBorders tableCellBorders1 = new TableCellBorders();
            TopBorder        topBorder1        = new TopBorder()
            {
                Val = BorderValues.Nil
            };
            LeftBorder leftBorder1 = new LeftBorder()
            {
                Val = BorderValues.Nil
            };
            BottomBorder bottomBorder1 = new BottomBorder()
            {
                Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)2U, Space = (UInt32Value)0U
            };
            RightBorder rightBorder1 = new RightBorder()
            {
                Val = BorderValues.Nil
            };

            tableCellBorders1.Append(topBorder1);
            tableCellBorders1.Append(leftBorder1);
            tableCellBorders1.Append(bottomBorder1);
            tableCellBorders1.Append(rightBorder1);

            tableCellProperties8.Append(tableCellWidth8);
            tableCellProperties8.Append(tableCellBorders1);

            TableCell tableCell = new TableCell();

            tableCell.Append(tableCellProperties8);
            tableCell.Append(CreateEmptyParagraph());
            return(tableCell);
        }
Exemplo n.º 21
0
        private TableCell CreateLastNoBorderCell()
        {
            TableCellProperties tableCellProperties = new TableCellProperties();

            TableCellWidth tableCellWidth = new TableCellWidth()
            {
                Type = TableWidthUnitValues.Auto
            };
            TableCellBorders tableCellBorders1 = new TableCellBorders();
            TopBorder        topBorder1        = new TopBorder()
            {
                Val = BorderValues.Nil
            };
            LeftBorder leftBorder1 = new LeftBorder()
            {
                Val = BorderValues.Nil
            };
            BottomBorder bottomBorder1 = new BottomBorder()
            {
                Val = BorderValues.Nil
            };
            RightBorder rightBorder1 = new RightBorder()
            {
                Val = BorderValues.Nil
            };

            tableCellBorders1.Append(topBorder1);
            tableCellBorders1.Append(leftBorder1);
            tableCellBorders1.Append(bottomBorder1);
            tableCellBorders1.Append(rightBorder1);

            tableCellProperties.Append(tableCellWidth);
            tableCellProperties.Append(tableCellBorders1);

            TableCell tableCell = new TableCell();

            tableCell.Append(tableCellProperties);
            tableCell.Append(CreateEmptyParagraph());
            return(tableCell);
        }
 private void ProcessColSpan(DocxNode node, TableCellProperties cellProperties)
 {
     if (Int32.TryParse(node.ExtractAttributeValue(colspan), out int value))
     {
         if (value > 1)
         {
             cellProperties.Append(new GridSpan()
             {
                 Val = value
             });
         }
     }
 }
Exemplo n.º 23
0
        private TableCell SetTableCell(string textVal = null, int fontsize = 22, bool isBold = false)
        {
            TableCell           tableCell            = new TableCell();
            TableCellProperties tableCellProperties1 = new TableCellProperties();

            //TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "1175", Type = TableWidthUnitValues.Dxa };
            //tableCellProperties1.Append(tableCellWidth1);
            tableCellProperties1.Append(SetTableCellBorders());
            tableCell.AppendChild(tableCellProperties1);
            tableCell.AppendChild(SetParagraph(textVal, fontsize, isBold));

            return(tableCell);
        }
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private static TableCellProperties MakeCellStyle_02_01( )
        {
            TableCellProperties tableCellProperties4 = new TableCellProperties( );

            TableCellWidth tableCellWidth4 = new TableCellWidth( )
            {
                Width = "2840", Type = TableWidthUnitValues.Dxa
            };

            TableCellBorders tableCellBorders4 = new TableCellBorders( );

            TopBorder topBorder3 = new TopBorder( )
            {
                Val = BorderValues.Single, Color = "auto", Size = ( UInt32Value )48U, Space = ( UInt32Value )0U
            };
            LeftBorder leftBorder3 = new LeftBorder( )
            {
                Val = BorderValues.Single, Color = "auto", Size = ( UInt32Value )48U, Space = ( UInt32Value )0U
            };
            BottomBorder bottomBorder4 = new BottomBorder( )
            {
                Val = BorderValues.Nil
            };
            RightBorder rightBorder4 = new RightBorder( )
            {
                Val = BorderValues.Nil
            };

            tableCellBorders4.Append(topBorder3);
            tableCellBorders4.Append(leftBorder3);
            tableCellBorders4.Append(bottomBorder4);
            tableCellBorders4.Append(rightBorder4);

            tableCellProperties4.Append(tableCellWidth4);
            tableCellProperties4.Append(tableCellBorders4);

            return(tableCellProperties4);
        }
        /// <summary>
        /// Update data in a cell (TableCell instance) in a row (TableRow instance)
        /// </summary>
        /// <param name="word_row">TableRow instance represent a row</param>
        /// <param name="cell_index">Index of the cell we want to change data</param>
        /// <param name="run">A run instance that represent properties of data in that cell</param>
        protected virtual void ChangeCellData(TableRow word_row, int cell_index, Run run)
        {
            // Removes that text of the copied cell and add new text
            TableCell curr_cell = word_row.Descendants <TableCell>().ElementAt(cell_index);

            string fill_color = "abcdef";
            string text       = run.Descendants <Text>().FirstOrDefault().Text.ToLower();

            // Text need to apply fill color to table cell ?
            if (StaticValues.table_value_with_color_properties.ContainsKey(text))
            {
                TableCellProperties properties = curr_cell.TableCellProperties;
                fill_color = StaticValues.table_value_with_color_properties[text];
                if (properties == null)
                {
                    properties = new TableCellProperties();
                    Shading shading = new Shading()
                    {
                        Color = "auto",
                        Fill  = fill_color,
                        Val   = ShadingPatternValues.Clear
                    };
                    properties.Append(shading);
                    curr_cell.Append(properties);
                }
                else
                {
                    Shading shading = properties.Shading;
                    if (shading == null)
                    {
                        shading = new Shading()
                        {
                            Color = "auto",
                            Fill  = fill_color,
                            Val   = ShadingPatternValues.Clear
                        };
                        properties.Append(shading);
                    }
                    else
                    {
                        shading.Color = "auto";
                        shading.Fill  = fill_color;
                        shading.Val   = ShadingPatternValues.Clear;
                    }
                }
            }

            curr_cell.RemoveAllChildren <Paragraph>();
            curr_cell.Append(new Paragraph(run));
        }
        private void ProcessVerticalAlignment(DocxNode node, TableCellProperties cellProperties)
		{
            string alignment = node.ExtractStyleValue(DocxAlignment.verticalAlign);
			
			if (!string.IsNullOrEmpty(alignment))
			{
				TableVerticalAlignmentValues value;
				
				if (DocxAlignment.GetCellVerticalAlignment(alignment, out value))
				{
					cellProperties.Append(new TableCellVerticalAlignment(){ Val = value });
				}
			}
		}
Exemplo n.º 27
0
        //.....................................................................
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private TableCell MakeElem3( )
        {
            //---------------------------------------------
            TableCell tableCell3 = new TableCell( );

            TableCellProperties tableCellProperties3 = new TableCellProperties( );
            TableCellWidth      tableCellWidth3      = new TableCellWidth( )
            {
                Width = "2841", Type = TableWidthUnitValues.Dxa
            };
            TableCellVerticalAlignment tableCellVerticalAlignment3 = new TableCellVerticalAlignment( )
            {
                Val = TableVerticalAlignmentValues.Center
            };

            tableCellProperties3.Append(tableCellWidth3);
            tableCellProperties3.Append(tableCellVerticalAlignment3);

            //---------------------------------------------
            Paragraph paragraph3 = new Paragraph( )
            {
                RsidParagraphMarkRevision = "00B721D5", RsidParagraphAddition = "00B721D5", RsidParagraphProperties = "00B721D5", RsidRunAdditionDefault = "00B721D5"
            };

            ParagraphProperties paragraphProperties3 = RedBoldHeaderParagraph( );

            Run run3 = RedBoldRun("编码");

            //---------------------------------------------

            paragraph3.Append(paragraphProperties3);
            paragraph3.Append(run3);

            tableCell3.Append(tableCellProperties3);
            tableCell3.Append(paragraph3);
            return(tableCell3);
        }
        public override IEnumerable<OpenXmlElement> ToOpenXmlElements(DocumentFormat.OpenXml.Packaging.MainDocumentPart mainDocumentPart)
        {
            TableCell result = new TableCell();
            var cellProperties = new TableCellProperties();

            if (!Width.IsEmpty)
            {
                var cellWidth = UnitHelper.Convert(Width).To<TableCellWidth>();
                cellProperties.Append(cellWidth);
            }

            if (Colspan.HasValue)
            {
                var gridSpan = new GridSpan() { Val = Colspan };
                cellProperties.Append(gridSpan);
            }

            result.Append(cellProperties);

            var paraContent = new Paragraph();
            ForEachChild(x =>
            {
                if (x is TextFormattedElement)
                {
                    paraContent.Append(
                        new Run(x.ToOpenXmlElements(mainDocumentPart))
                    );

                }
                else
                {
                    paraContent.Append(x.ToOpenXmlElements(mainDocumentPart));
                }
            });
            result.Append(paraContent);
            return new List<OpenXmlElement> { result };
        }
        private void ProcessVerticalAlignment(DocxNode node, TableCellProperties cellProperties)
        {
            string alignment = node.ExtractStyleValue(DocxAlignment.verticalAlign);

            if (!string.IsNullOrEmpty(alignment))
            {
                if (DocxAlignment.GetCellVerticalAlignment(alignment, out TableVerticalAlignmentValues value))
                {
                    cellProperties.Append(new TableCellVerticalAlignment()
                    {
                        Val = value
                    });
                }
            }
        }
Exemplo n.º 30
0
        private TableCell CreateBorderCell(string text)
        {
            int cellWidth = CalcTextWidth(text.Length);
            TableCellProperties tableCellProperties = new TableCellProperties();
            EnumValue <TableWidthUnitValues> type   = cellWidth == 0 ? TableWidthUnitValues.Auto : TableWidthUnitValues.Dxa;
            TableCellWidth tableCellWidth           = new TableCellWidth()
            {
                Width = cellWidth.ToString(), Type = type
            };

            tableCellProperties.Append(tableCellWidth);
            TableCell tableCell = new TableCell();

            tableCell.Append(tableCellProperties);
            tableCell.Append(CreateTextParagraph(text));
            return(tableCell);
        }
Exemplo n.º 31
0
        private TableCell CreateBorderCell(int cellWidth)
        {
            //Create cell with border (width specified)
            TableCellProperties tableCellProperties = new TableCellProperties();
            EnumValue <TableWidthUnitValues> type   = cellWidth == 0 ? TableWidthUnitValues.Auto : TableWidthUnitValues.Dxa;
            TableCellWidth tableCellWidth           = new TableCellWidth()
            {
                Width = cellWidth.ToString(), Type = type
            };

            tableCellProperties.Append(tableCellWidth);
            TableCell tableCell = new TableCell();

            tableCell.Append(tableCellProperties);
            tableCell.Append(CreateEmptyParagraph());
            return(tableCell);
        }
        private void ProcessWidth(DocxNode node, TableCellProperties cellProperties)
        {
            string width = node.ExtractStyleValue(DocxUnits.width);

            if (!string.IsNullOrEmpty(width))
            {
                if (DocxUnits.TableUnitsFromStyle(width, out decimal value, out TableWidthUnitValues unit))
                {
                    TableCellWidth cellWidth = new TableCellWidth()
                    {
                        Width = value.ToString(),
                        Type  = unit
                    };

                    cellProperties.Append(cellWidth);
                }
            }
        }
        private void ProcessBorders(DocxNode node, DocxTableProperties docxProperties,
                                    TableCellProperties cellProperties)
        {
            string borderStyle  = node.ExtractStyleValue(DocxBorder.borderName);
            string leftBorder   = node.ExtractStyleValue(DocxBorder.leftBorderName);
            string topBorder    = node.ExtractStyleValue(DocxBorder.topBorderName);
            string rightBorder  = node.ExtractStyleValue(DocxBorder.rightBorderName);
            string bottomBorder = node.ExtractStyleValue(DocxBorder.bottomBorderName);

            TableCellBorders cellBorders = new TableCellBorders();

            DocxBorder.ApplyBorders(cellBorders, borderStyle, leftBorder, topBorder,
                                    rightBorder, bottomBorder, docxProperties.HasDefaultBorder);

            if (cellBorders.HasChildren)
            {
                cellProperties.Append(cellBorders);
            }
        }
        private void ProcessBorders(DocxNode node, DocxTableProperties docxProperties,
			TableCellProperties cellProperties)
		{
            string borderStyle = node.ExtractStyleValue(DocxBorder.borderName);
            string leftBorder = node.ExtractStyleValue(DocxBorder.leftBorderName);
            string topBorder = node.ExtractStyleValue(DocxBorder.topBorderName);
            string rightBorder = node.ExtractStyleValue(DocxBorder.rightBorderName);
            string bottomBorder = node.ExtractStyleValue(DocxBorder.bottomBorderName);
			
			TableCellBorders cellBorders = new TableCellBorders();
			
			DocxBorder.ApplyBorders(cellBorders, borderStyle, leftBorder, topBorder, 
				rightBorder, bottomBorder, docxProperties.HasDefaultBorder);
			
			if (cellBorders.HasChildren)
			{
				cellProperties.Append(cellBorders);
			}
		}
Exemplo n.º 35
0
        private static void AddHeaderRow(DataTable table, Table wordTable, TableStyle tableStyle)
        {
            // Create a row.
            TableRow tRow = new TableRow();

            foreach (DataColumn iColumn in table.Columns) {

                // Create a cell.
                TableCell tCell = new TableCell();

                TableCellProperties tCellProperties = new TableCellProperties();

                // Set Cell Color
                Shading tCellColor = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = System.Drawing.ColorTranslator.ToHtml(tableStyle.HeaderBackgroundColor) };
                tCellProperties.Append(tCellColor);

                // Append properties to the cell
                tCell.Append(tCellProperties);

                ParagraphProperties paragProperties = new ParagraphProperties();
                Justification justification1 = new Justification() { Val = JustificationValues.Center };
                SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "0" };
                paragProperties.Append(spacingBetweenLines1);
                paragProperties.Append(justification1);

                var parag = new Paragraph();
                parag.Append(paragProperties);

                var run = new Run(new Text(iColumn.ColumnName));
                ApplyFontProperties(tableStyle, RowIdentification.Header, run);
                parag.Append(run);

                // Specify the table cell content.
                tCell.Append(parag);

                // Append the table cell to the table row.
                tRow.Append(tCell);
            }

            // Append the table row to the table.
            wordTable.Append(tRow);
        }
Exemplo n.º 36
0
        public void AddTableRow(Table table, List <Paragraph> paras, int[] widths)
        {
            TableRow tableRow = new TableRow();
            int      i        = 0;

            foreach (var para in paras)
            {
                TableCell           tableCell           = new TableCell();
                TableCellProperties tableCellProperties = new TableCellProperties();
                TableCellWidth      tableCellWidth      = new TableCellWidth()
                {
                    Type = TableWidthUnitValues.Pct, Width = widths[i++].ToString()
                };
                tableCellProperties.Append(tableCellWidth);
                tableCell.Append(tableCellProperties);
                tableCell.Append(para);
                tableRow.Append(tableCell);
            }
            table.Append(tableRow);
        }
        private void ProcessWidth(DocxNode node, TableCellProperties cellProperties)
		{
            string width = node.ExtractStyleValue(DocxUnits.width);
			
			if (!string.IsNullOrEmpty(width))
			{
				decimal value;
				TableWidthUnitValues unit;
				
				if (DocxUnits.TableUnitsFromStyle(width, out value, out unit))
				{
					TableCellWidth cellWidth = new TableCellWidth() {
						Width = value.ToString(),
						Type = unit
					};
					
					cellProperties.Append(cellWidth);
				}
			}
		}
Exemplo n.º 38
0
		// Creates an TableCell instance and adds its children.
		public static void AddSpacerCell(this TableRow row, string width = "173")
		{
			TableCell tableCell1 = new TableCell();

			TableCellProperties tableCellProperties1 = new TableCellProperties();
			TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = width, Type = TableWidthUnitValues.Dxa };

			tableCellProperties1.Append(tableCellWidth1);

			Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "005A43FA", RsidParagraphProperties = "005A43FA", RsidRunAdditionDefault = "005A43FA" };

			ParagraphProperties paragraphProperties1 = new ParagraphProperties();
			Indentation indentation1 = new Indentation() { Left = "95", Right = "95" };

			paragraphProperties1.Append(indentation1);

			paragraph1.Append(paragraphProperties1);

			tableCell1.Append(tableCellProperties1);
			tableCell1.Append(paragraph1);
			row.Append(tableCell1);
		}
Exemplo n.º 39
0
        private TableCell CreateChoicesCell(List<CodeVM> codes, int firstCodesCount)
        {
            TableCellProperties tableCellProperties = new TableCellProperties();

            TableCellWidth tableCellWidth = new TableCellWidth() { Width = "0", Type = TableWidthUnitValues.Auto };
            tableCellProperties.Append(tableCellWidth);

            TableCell tableCell = new TableCell();
            tableCell.Append(tableCellProperties);

            foreach (CodeVM code in codes)
            {
                string text = ToChoiceString(code);
                Paragraph paragraph = CreateTextParagraph(text);
                tableCell.Append(paragraph);
            }

            int diff = firstCodesCount - codes.Count;
            if (diff != 0)
            {
                for (int i = 0; i < diff; i++)
                {
                    tableCell.Append(CreateEmptyParagraph());
                }
            }

            return tableCell;
        }
Exemplo n.º 40
0
 private TableCell CreateBorderCell(string text)
 {
     int cellWidth = CalcTextWidth(text.Length);
     TableCellProperties tableCellProperties = new TableCellProperties();
     EnumValue<TableWidthUnitValues> type = cellWidth == 0 ? TableWidthUnitValues.Auto : TableWidthUnitValues.Dxa;
     TableCellWidth tableCellWidth = new TableCellWidth() { Width = cellWidth.ToString(), Type = type };
     tableCellProperties.Append(tableCellWidth);
     TableCell tableCell = new TableCell();
     tableCell.Append(tableCellProperties);
     tableCell.Append(CreateTextParagraph(text));
     return tableCell;
 }
Exemplo n.º 41
0
        private TableCell CreateCenterCell(List<string> contents)
        {
            TableCellProperties tableCellProperties = new TableCellProperties();
            //セルの幅の均等割はTableWidthUnitValues.Autoじゃなく、TableWidthUnitValues.Nilを使うのが正解?
            TableCellWidth tableCellWidth = new TableCellWidth() { Width = "0", Type = TableWidthUnitValues.Nil };
            tableCellProperties.Append(tableCellWidth);

            TableCell tableCell = new TableCell();
            tableCell.Append(tableCellProperties);

            foreach (string content in contents)
            {
                tableCell.Append(CreateCenterParagraph(content));
            }

            return tableCell;
        }
Exemplo n.º 42
0
        private void GenerateChapterTen()
        {
            var paragraph1 = new Paragraph();
            var paraProp = GetParagraphProperties("Header1");
            var run = new Run();
            run.Append(new Text("10. Лист регистрации изменений, вносимых в РПД дисциплины"));

            paragraph1.Append(paraProp);
            paragraph1.Append(run);

            Paragraph paragraph2 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00E24EED", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties2 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { Line = "360", LineRule = LineSpacingRuleValues.Auto };
            Indentation indentation1 = new Indentation() { Left = "360" };
            Justification justification1 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties2 = new ParagraphMarkRunProperties();
            RunFonts runFonts7 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize1 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "28" };
            Languages languages7 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties2.Append(runFonts7);
            paragraphMarkRunProperties2.Append(fontSize1);
            paragraphMarkRunProperties2.Append(fontSizeComplexScript1);
            paragraphMarkRunProperties2.Append(languages7);

            paragraphProperties2.Append(spacingBetweenLines1);
            paragraphProperties2.Append(indentation1);
            paragraphProperties2.Append(justification1);
            paragraphProperties2.Append(paragraphMarkRunProperties2);

            paragraph2.Append(paragraphProperties2);

            Table table1 = new Table();

            TableProperties tableProperties1 = new TableProperties();
            TableWidth tableWidth1 = new TableWidth() { Width = "9807", Type = TableWidthUnitValues.Dxa };

            TableBorders tableBorders1 = new TableBorders();
            TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
            LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
            RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
            InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };

            tableBorders1.Append(topBorder1);
            tableBorders1.Append(leftBorder1);
            tableBorders1.Append(bottomBorder1);
            tableBorders1.Append(rightBorder1);
            tableBorders1.Append(insideHorizontalBorder1);
            tableBorders1.Append(insideVerticalBorder1);
            TableLook tableLook1 = new TableLook() { Val = "01E0", FirstRow = true, LastRow = true, FirstColumn = true, LastColumn = true, NoHorizontalBand = false, NoVerticalBand = false };

            tableProperties1.Append(tableWidth1);
            tableProperties1.Append(tableBorders1);
            tableProperties1.Append(tableLook1);

            TableGrid tableGrid1 = new TableGrid();
            GridColumn gridColumn1 = new GridColumn() { Width = "1565" };
            GridColumn gridColumn2 = new GridColumn() { Width = "1066" };
            GridColumn gridColumn3 = new GridColumn() { Width = "1917" };
            GridColumn gridColumn4 = new GridColumn() { Width = "5259" };

            tableGrid1.Append(gridColumn1);
            tableGrid1.Append(gridColumn2);
            tableGrid1.Append(gridColumn3);
            tableGrid1.Append(gridColumn4);

            TableRow tableRow1 = new TableRow() { RsidTableRowMarkRevision = "00107D47", RsidTableRowAddition = "00E24EED", RsidTableRowProperties = "00BF6E08" };

            TableCell tableCell1 = new TableCell();

            TableCellProperties tableCellProperties1 = new TableCellProperties();
            TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "1565", Type = TableWidthUnitValues.Dxa };

            tableCellProperties1.Append(tableCellWidth1);

            Paragraph paragraph3 = new Paragraph() { RsidParagraphMarkRevision = "00512F8B", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties3 = new ParagraphProperties();
            Justification justification2 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties3 = new ParagraphMarkRunProperties();
            RunFonts runFonts8 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            Bold bold1 = new Bold();
            FontSize fontSize2 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "28" };
            Languages languages8 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties3.Append(runFonts8);
            paragraphMarkRunProperties3.Append(bold1);
            paragraphMarkRunProperties3.Append(fontSize2);
            paragraphMarkRunProperties3.Append(fontSizeComplexScript2);
            paragraphMarkRunProperties3.Append(languages8);

            paragraphProperties3.Append(justification2);
            paragraphProperties3.Append(paragraphMarkRunProperties3);

            Run run6 = new Run() { RsidRunProperties = "00512F8B" };

            RunProperties runProperties6 = new RunProperties();
            RunFonts runFonts9 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            Bold bold2 = new Bold();
            FontSize fontSize3 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript() { Val = "28" };
            Languages languages9 = new Languages() { Val = "ru-RU" };

            runProperties6.Append(runFonts9);
            runProperties6.Append(bold2);
            runProperties6.Append(fontSize3);
            runProperties6.Append(fontSizeComplexScript3);
            runProperties6.Append(languages9);
            Text text5 = new Text();
            text5.Text = "№ изменения";

            run6.Append(runProperties6);
            run6.Append(text5);

            paragraph3.Append(paragraphProperties3);
            paragraph3.Append(run6);

            tableCell1.Append(tableCellProperties1);
            tableCell1.Append(paragraph3);

            TableCell tableCell2 = new TableCell();

            TableCellProperties tableCellProperties2 = new TableCellProperties();
            TableCellWidth tableCellWidth2 = new TableCellWidth() { Width = "1066", Type = TableWidthUnitValues.Dxa };

            tableCellProperties2.Append(tableCellWidth2);

            Paragraph paragraph4 = new Paragraph() { RsidParagraphMarkRevision = "00512F8B", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties4 = new ParagraphProperties();
            Justification justification3 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties4 = new ParagraphMarkRunProperties();
            RunFonts runFonts10 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            Bold bold3 = new Bold();
            FontSize fontSize4 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript() { Val = "28" };
            Languages languages10 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties4.Append(runFonts10);
            paragraphMarkRunProperties4.Append(bold3);
            paragraphMarkRunProperties4.Append(fontSize4);
            paragraphMarkRunProperties4.Append(fontSizeComplexScript4);
            paragraphMarkRunProperties4.Append(languages10);

            paragraphProperties4.Append(justification3);
            paragraphProperties4.Append(paragraphMarkRunProperties4);

            Run run7 = new Run() { RsidRunProperties = "00512F8B" };

            RunProperties runProperties7 = new RunProperties();
            RunFonts runFonts11 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            Bold bold4 = new Bold();
            FontSize fontSize5 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript5 = new FontSizeComplexScript() { Val = "28" };
            Languages languages11 = new Languages() { Val = "ru-RU" };

            runProperties7.Append(runFonts11);
            runProperties7.Append(bold4);
            runProperties7.Append(fontSize5);
            runProperties7.Append(fontSizeComplexScript5);
            runProperties7.Append(languages11);
            Text text6 = new Text();
            text6.Text = "дата";

            run7.Append(runProperties7);
            run7.Append(text6);

            paragraph4.Append(paragraphProperties4);
            paragraph4.Append(run7);

            tableCell2.Append(tableCellProperties2);
            tableCell2.Append(paragraph4);

            TableCell tableCell3 = new TableCell();

            TableCellProperties tableCellProperties3 = new TableCellProperties();
            TableCellWidth tableCellWidth3 = new TableCellWidth() { Width = "1917", Type = TableWidthUnitValues.Dxa };

            tableCellProperties3.Append(tableCellWidth3);

            Paragraph paragraph5 = new Paragraph() { RsidParagraphMarkRevision = "00512F8B", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties5 = new ParagraphProperties();
            Justification justification4 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties5 = new ParagraphMarkRunProperties();
            RunFonts runFonts12 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            Bold bold5 = new Bold();
            FontSize fontSize6 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript6 = new FontSizeComplexScript() { Val = "28" };
            Languages languages12 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties5.Append(runFonts12);
            paragraphMarkRunProperties5.Append(bold5);
            paragraphMarkRunProperties5.Append(fontSize6);
            paragraphMarkRunProperties5.Append(fontSizeComplexScript6);
            paragraphMarkRunProperties5.Append(languages12);

            paragraphProperties5.Append(justification4);
            paragraphProperties5.Append(paragraphMarkRunProperties5);

            Run run8 = new Run() { RsidRunProperties = "00512F8B" };

            RunProperties runProperties8 = new RunProperties();
            RunFonts runFonts13 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            Bold bold6 = new Bold();
            FontSize fontSize7 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript7 = new FontSizeComplexScript() { Val = "28" };
            Languages languages13 = new Languages() { Val = "ru-RU" };

            runProperties8.Append(runFonts13);
            runProperties8.Append(bold6);
            runProperties8.Append(fontSize7);
            runProperties8.Append(fontSizeComplexScript7);
            runProperties8.Append(languages13);
            Text text7 = new Text();
            text7.Text = "Страницы с изменениями";

            run8.Append(runProperties8);
            run8.Append(text7);

            paragraph5.Append(paragraphProperties5);
            paragraph5.Append(run8);

            tableCell3.Append(tableCellProperties3);
            tableCell3.Append(paragraph5);

            TableCell tableCell4 = new TableCell();

            TableCellProperties tableCellProperties4 = new TableCellProperties();
            TableCellWidth tableCellWidth4 = new TableCellWidth() { Width = "5259", Type = TableWidthUnitValues.Dxa };

            tableCellProperties4.Append(tableCellWidth4);

            Paragraph paragraph6 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties6 = new ParagraphProperties();
            Justification justification5 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties6 = new ParagraphMarkRunProperties();
            RunFonts runFonts14 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            Bold bold7 = new Bold();
            FontSize fontSize8 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript8 = new FontSizeComplexScript() { Val = "28" };
            Languages languages14 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties6.Append(runFonts14);
            paragraphMarkRunProperties6.Append(bold7);
            paragraphMarkRunProperties6.Append(fontSize8);
            paragraphMarkRunProperties6.Append(fontSizeComplexScript8);
            paragraphMarkRunProperties6.Append(languages14);

            paragraphProperties6.Append(justification5);
            paragraphProperties6.Append(paragraphMarkRunProperties6);

            Run run9 = new Run() { RsidRunProperties = "00B65E2F" };

            RunProperties runProperties9 = new RunProperties();
            RunFonts runFonts15 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            Bold bold8 = new Bold();
            FontSize fontSize9 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript9 = new FontSizeComplexScript() { Val = "28" };
            Languages languages15 = new Languages() { Val = "ru-RU" };

            runProperties9.Append(runFonts15);
            runProperties9.Append(bold8);
            runProperties9.Append(fontSize9);
            runProperties9.Append(fontSizeComplexScript9);
            runProperties9.Append(languages15);
            Text text8 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text8.Text = "Перечень и содержание откорректированных разделов ";

            run9.Append(runProperties9);
            run9.Append(text8);

            Run run10 = new Run();

            RunProperties runProperties10 = new RunProperties();
            RunFonts runFonts16 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            Bold bold9 = new Bold();
            FontSize fontSize10 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript10 = new FontSizeComplexScript() { Val = "28" };
            Languages languages16 = new Languages() { Val = "ru-RU" };

            runProperties10.Append(runFonts16);
            runProperties10.Append(bold9);
            runProperties10.Append(fontSize10);
            runProperties10.Append(fontSizeComplexScript10);
            runProperties10.Append(languages16);
            Text text9 = new Text();
            text9.Text = "РПД";

            run10.Append(runProperties10);
            run10.Append(text9);

            paragraph6.Append(paragraphProperties6);
            paragraph6.Append(run9);
            paragraph6.Append(run10);

            tableCell4.Append(tableCellProperties4);
            tableCell4.Append(paragraph6);

            tableRow1.Append(tableCell1);
            tableRow1.Append(tableCell2);
            tableRow1.Append(tableCell3);
            tableRow1.Append(tableCell4);

            TableRow tableRow2 = new TableRow() { RsidTableRowMarkRevision = "00107D47", RsidTableRowAddition = "00E24EED", RsidTableRowProperties = "00BF6E08" };

            TableCell tableCell5 = new TableCell();

            TableCellProperties tableCellProperties5 = new TableCellProperties();
            TableCellWidth tableCellWidth5 = new TableCellWidth() { Width = "1565", Type = TableWidthUnitValues.Dxa };

            tableCellProperties5.Append(tableCellWidth5);

            Paragraph paragraph7 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties7 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines2 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification6 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties7 = new ParagraphMarkRunProperties();
            RunFonts runFonts17 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize11 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript11 = new FontSizeComplexScript() { Val = "28" };
            Languages languages17 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties7.Append(runFonts17);
            paragraphMarkRunProperties7.Append(fontSize11);
            paragraphMarkRunProperties7.Append(fontSizeComplexScript11);
            paragraphMarkRunProperties7.Append(languages17);

            paragraphProperties7.Append(spacingBetweenLines2);
            paragraphProperties7.Append(justification6);
            paragraphProperties7.Append(paragraphMarkRunProperties7);

            paragraph7.Append(paragraphProperties7);

            tableCell5.Append(tableCellProperties5);
            tableCell5.Append(paragraph7);

            TableCell tableCell6 = new TableCell();

            TableCellProperties tableCellProperties6 = new TableCellProperties();
            TableCellWidth tableCellWidth6 = new TableCellWidth() { Width = "1066", Type = TableWidthUnitValues.Dxa };

            tableCellProperties6.Append(tableCellWidth6);

            Paragraph paragraph8 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties8 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines3 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification7 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties8 = new ParagraphMarkRunProperties();
            RunFonts runFonts18 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize12 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript12 = new FontSizeComplexScript() { Val = "28" };
            Languages languages18 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties8.Append(runFonts18);
            paragraphMarkRunProperties8.Append(fontSize12);
            paragraphMarkRunProperties8.Append(fontSizeComplexScript12);
            paragraphMarkRunProperties8.Append(languages18);

            paragraphProperties8.Append(spacingBetweenLines3);
            paragraphProperties8.Append(justification7);
            paragraphProperties8.Append(paragraphMarkRunProperties8);

            paragraph8.Append(paragraphProperties8);

            tableCell6.Append(tableCellProperties6);
            tableCell6.Append(paragraph8);

            TableCell tableCell7 = new TableCell();

            TableCellProperties tableCellProperties7 = new TableCellProperties();
            TableCellWidth tableCellWidth7 = new TableCellWidth() { Width = "1917", Type = TableWidthUnitValues.Dxa };

            tableCellProperties7.Append(tableCellWidth7);

            Paragraph paragraph9 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties9 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines4 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification8 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties9 = new ParagraphMarkRunProperties();
            RunFonts runFonts19 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize13 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript13 = new FontSizeComplexScript() { Val = "28" };
            Languages languages19 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties9.Append(runFonts19);
            paragraphMarkRunProperties9.Append(fontSize13);
            paragraphMarkRunProperties9.Append(fontSizeComplexScript13);
            paragraphMarkRunProperties9.Append(languages19);

            paragraphProperties9.Append(spacingBetweenLines4);
            paragraphProperties9.Append(justification8);
            paragraphProperties9.Append(paragraphMarkRunProperties9);

            paragraph9.Append(paragraphProperties9);

            tableCell7.Append(tableCellProperties7);
            tableCell7.Append(paragraph9);

            TableCell tableCell8 = new TableCell();

            TableCellProperties tableCellProperties8 = new TableCellProperties();
            TableCellWidth tableCellWidth8 = new TableCellWidth() { Width = "5259", Type = TableWidthUnitValues.Dxa };

            tableCellProperties8.Append(tableCellWidth8);

            Paragraph paragraph10 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties10 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines5 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification9 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties10 = new ParagraphMarkRunProperties();
            RunFonts runFonts20 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize14 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript14 = new FontSizeComplexScript() { Val = "28" };
            Languages languages20 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties10.Append(runFonts20);
            paragraphMarkRunProperties10.Append(fontSize14);
            paragraphMarkRunProperties10.Append(fontSizeComplexScript14);
            paragraphMarkRunProperties10.Append(languages20);

            paragraphProperties10.Append(spacingBetweenLines5);
            paragraphProperties10.Append(justification9);
            paragraphProperties10.Append(paragraphMarkRunProperties10);

            paragraph10.Append(paragraphProperties10);

            tableCell8.Append(tableCellProperties8);
            tableCell8.Append(paragraph10);

            tableRow2.Append(tableCell5);
            tableRow2.Append(tableCell6);
            tableRow2.Append(tableCell7);
            tableRow2.Append(tableCell8);

            TableRow tableRow3 = new TableRow() { RsidTableRowMarkRevision = "00107D47", RsidTableRowAddition = "00E24EED", RsidTableRowProperties = "00BF6E08" };

            TableCell tableCell9 = new TableCell();

            TableCellProperties tableCellProperties9 = new TableCellProperties();
            TableCellWidth tableCellWidth9 = new TableCellWidth() { Width = "1565", Type = TableWidthUnitValues.Dxa };

            tableCellProperties9.Append(tableCellWidth9);

            Paragraph paragraph11 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties11 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines6 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification10 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties11 = new ParagraphMarkRunProperties();
            RunFonts runFonts21 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize15 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript15 = new FontSizeComplexScript() { Val = "28" };
            Languages languages21 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties11.Append(runFonts21);
            paragraphMarkRunProperties11.Append(fontSize15);
            paragraphMarkRunProperties11.Append(fontSizeComplexScript15);
            paragraphMarkRunProperties11.Append(languages21);

            paragraphProperties11.Append(spacingBetweenLines6);
            paragraphProperties11.Append(justification10);
            paragraphProperties11.Append(paragraphMarkRunProperties11);

            paragraph11.Append(paragraphProperties11);

            tableCell9.Append(tableCellProperties9);
            tableCell9.Append(paragraph11);

            TableCell tableCell10 = new TableCell();

            TableCellProperties tableCellProperties10 = new TableCellProperties();
            TableCellWidth tableCellWidth10 = new TableCellWidth() { Width = "1066", Type = TableWidthUnitValues.Dxa };

            tableCellProperties10.Append(tableCellWidth10);

            Paragraph paragraph12 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties12 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines7 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification11 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties12 = new ParagraphMarkRunProperties();
            RunFonts runFonts22 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize16 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript16 = new FontSizeComplexScript() { Val = "28" };
            Languages languages22 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties12.Append(runFonts22);
            paragraphMarkRunProperties12.Append(fontSize16);
            paragraphMarkRunProperties12.Append(fontSizeComplexScript16);
            paragraphMarkRunProperties12.Append(languages22);

            paragraphProperties12.Append(spacingBetweenLines7);
            paragraphProperties12.Append(justification11);
            paragraphProperties12.Append(paragraphMarkRunProperties12);

            paragraph12.Append(paragraphProperties12);

            tableCell10.Append(tableCellProperties10);
            tableCell10.Append(paragraph12);

            TableCell tableCell11 = new TableCell();

            TableCellProperties tableCellProperties11 = new TableCellProperties();
            TableCellWidth tableCellWidth11 = new TableCellWidth() { Width = "1917", Type = TableWidthUnitValues.Dxa };

            tableCellProperties11.Append(tableCellWidth11);

            Paragraph paragraph13 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties13 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines8 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification12 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties13 = new ParagraphMarkRunProperties();
            RunFonts runFonts23 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize17 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript17 = new FontSizeComplexScript() { Val = "28" };
            Languages languages23 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties13.Append(runFonts23);
            paragraphMarkRunProperties13.Append(fontSize17);
            paragraphMarkRunProperties13.Append(fontSizeComplexScript17);
            paragraphMarkRunProperties13.Append(languages23);

            paragraphProperties13.Append(spacingBetweenLines8);
            paragraphProperties13.Append(justification12);
            paragraphProperties13.Append(paragraphMarkRunProperties13);

            paragraph13.Append(paragraphProperties13);

            tableCell11.Append(tableCellProperties11);
            tableCell11.Append(paragraph13);

            TableCell tableCell12 = new TableCell();

            TableCellProperties tableCellProperties12 = new TableCellProperties();
            TableCellWidth tableCellWidth12 = new TableCellWidth() { Width = "5259", Type = TableWidthUnitValues.Dxa };

            tableCellProperties12.Append(tableCellWidth12);

            Paragraph paragraph14 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties14 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines9 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification13 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties14 = new ParagraphMarkRunProperties();
            RunFonts runFonts24 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize18 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript18 = new FontSizeComplexScript() { Val = "28" };
            Languages languages24 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties14.Append(runFonts24);
            paragraphMarkRunProperties14.Append(fontSize18);
            paragraphMarkRunProperties14.Append(fontSizeComplexScript18);
            paragraphMarkRunProperties14.Append(languages24);

            paragraphProperties14.Append(spacingBetweenLines9);
            paragraphProperties14.Append(justification13);
            paragraphProperties14.Append(paragraphMarkRunProperties14);

            paragraph14.Append(paragraphProperties14);

            tableCell12.Append(tableCellProperties12);
            tableCell12.Append(paragraph14);

            tableRow3.Append(tableCell9);
            tableRow3.Append(tableCell10);
            tableRow3.Append(tableCell11);
            tableRow3.Append(tableCell12);

            TableRow tableRow4 = new TableRow() { RsidTableRowMarkRevision = "00107D47", RsidTableRowAddition = "00E24EED", RsidTableRowProperties = "00BF6E08" };

            TableCell tableCell13 = new TableCell();

            TableCellProperties tableCellProperties13 = new TableCellProperties();
            TableCellWidth tableCellWidth13 = new TableCellWidth() { Width = "1565", Type = TableWidthUnitValues.Dxa };

            tableCellProperties13.Append(tableCellWidth13);

            Paragraph paragraph15 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties15 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines10 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification14 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties15 = new ParagraphMarkRunProperties();
            RunFonts runFonts25 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize19 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript19 = new FontSizeComplexScript() { Val = "28" };
            Languages languages25 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties15.Append(runFonts25);
            paragraphMarkRunProperties15.Append(fontSize19);
            paragraphMarkRunProperties15.Append(fontSizeComplexScript19);
            paragraphMarkRunProperties15.Append(languages25);

            paragraphProperties15.Append(spacingBetweenLines10);
            paragraphProperties15.Append(justification14);
            paragraphProperties15.Append(paragraphMarkRunProperties15);

            paragraph15.Append(paragraphProperties15);

            tableCell13.Append(tableCellProperties13);
            tableCell13.Append(paragraph15);

            TableCell tableCell14 = new TableCell();

            TableCellProperties tableCellProperties14 = new TableCellProperties();
            TableCellWidth tableCellWidth14 = new TableCellWidth() { Width = "1066", Type = TableWidthUnitValues.Dxa };

            tableCellProperties14.Append(tableCellWidth14);

            Paragraph paragraph16 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties16 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines11 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification15 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties16 = new ParagraphMarkRunProperties();
            RunFonts runFonts26 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize20 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript20 = new FontSizeComplexScript() { Val = "28" };
            Languages languages26 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties16.Append(runFonts26);
            paragraphMarkRunProperties16.Append(fontSize20);
            paragraphMarkRunProperties16.Append(fontSizeComplexScript20);
            paragraphMarkRunProperties16.Append(languages26);

            paragraphProperties16.Append(spacingBetweenLines11);
            paragraphProperties16.Append(justification15);
            paragraphProperties16.Append(paragraphMarkRunProperties16);

            paragraph16.Append(paragraphProperties16);

            tableCell14.Append(tableCellProperties14);
            tableCell14.Append(paragraph16);

            TableCell tableCell15 = new TableCell();

            TableCellProperties tableCellProperties15 = new TableCellProperties();
            TableCellWidth tableCellWidth15 = new TableCellWidth() { Width = "1917", Type = TableWidthUnitValues.Dxa };

            tableCellProperties15.Append(tableCellWidth15);

            Paragraph paragraph17 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties17 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines12 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification16 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties17 = new ParagraphMarkRunProperties();
            RunFonts runFonts27 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize21 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript21 = new FontSizeComplexScript() { Val = "28" };
            Languages languages27 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties17.Append(runFonts27);
            paragraphMarkRunProperties17.Append(fontSize21);
            paragraphMarkRunProperties17.Append(fontSizeComplexScript21);
            paragraphMarkRunProperties17.Append(languages27);

            paragraphProperties17.Append(spacingBetweenLines12);
            paragraphProperties17.Append(justification16);
            paragraphProperties17.Append(paragraphMarkRunProperties17);

            paragraph17.Append(paragraphProperties17);

            tableCell15.Append(tableCellProperties15);
            tableCell15.Append(paragraph17);

            TableCell tableCell16 = new TableCell();

            TableCellProperties tableCellProperties16 = new TableCellProperties();
            TableCellWidth tableCellWidth16 = new TableCellWidth() { Width = "5259", Type = TableWidthUnitValues.Dxa };

            tableCellProperties16.Append(tableCellWidth16);

            Paragraph paragraph18 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties18 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines13 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification17 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties18 = new ParagraphMarkRunProperties();
            RunFonts runFonts28 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize22 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript22 = new FontSizeComplexScript() { Val = "28" };
            Languages languages28 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties18.Append(runFonts28);
            paragraphMarkRunProperties18.Append(fontSize22);
            paragraphMarkRunProperties18.Append(fontSizeComplexScript22);
            paragraphMarkRunProperties18.Append(languages28);

            paragraphProperties18.Append(spacingBetweenLines13);
            paragraphProperties18.Append(justification17);
            paragraphProperties18.Append(paragraphMarkRunProperties18);

            paragraph18.Append(paragraphProperties18);

            tableCell16.Append(tableCellProperties16);
            tableCell16.Append(paragraph18);

            tableRow4.Append(tableCell13);
            tableRow4.Append(tableCell14);
            tableRow4.Append(tableCell15);
            tableRow4.Append(tableCell16);

            TableRow tableRow5 = new TableRow() { RsidTableRowMarkRevision = "00107D47", RsidTableRowAddition = "00E24EED", RsidTableRowProperties = "00BF6E08" };

            TableCell tableCell17 = new TableCell();

            TableCellProperties tableCellProperties17 = new TableCellProperties();
            TableCellWidth tableCellWidth17 = new TableCellWidth() { Width = "1565", Type = TableWidthUnitValues.Dxa };

            tableCellProperties17.Append(tableCellWidth17);

            Paragraph paragraph19 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties19 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines14 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification18 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties19 = new ParagraphMarkRunProperties();
            RunFonts runFonts29 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize23 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript23 = new FontSizeComplexScript() { Val = "28" };
            Languages languages29 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties19.Append(runFonts29);
            paragraphMarkRunProperties19.Append(fontSize23);
            paragraphMarkRunProperties19.Append(fontSizeComplexScript23);
            paragraphMarkRunProperties19.Append(languages29);

            paragraphProperties19.Append(spacingBetweenLines14);
            paragraphProperties19.Append(justification18);
            paragraphProperties19.Append(paragraphMarkRunProperties19);

            paragraph19.Append(paragraphProperties19);

            tableCell17.Append(tableCellProperties17);
            tableCell17.Append(paragraph19);

            TableCell tableCell18 = new TableCell();

            TableCellProperties tableCellProperties18 = new TableCellProperties();
            TableCellWidth tableCellWidth18 = new TableCellWidth() { Width = "1066", Type = TableWidthUnitValues.Dxa };

            tableCellProperties18.Append(tableCellWidth18);

            Paragraph paragraph20 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties20 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines15 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification19 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties20 = new ParagraphMarkRunProperties();
            RunFonts runFonts30 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize24 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript24 = new FontSizeComplexScript() { Val = "28" };
            Languages languages30 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties20.Append(runFonts30);
            paragraphMarkRunProperties20.Append(fontSize24);
            paragraphMarkRunProperties20.Append(fontSizeComplexScript24);
            paragraphMarkRunProperties20.Append(languages30);

            paragraphProperties20.Append(spacingBetweenLines15);
            paragraphProperties20.Append(justification19);
            paragraphProperties20.Append(paragraphMarkRunProperties20);

            paragraph20.Append(paragraphProperties20);

            tableCell18.Append(tableCellProperties18);
            tableCell18.Append(paragraph20);

            TableCell tableCell19 = new TableCell();

            TableCellProperties tableCellProperties19 = new TableCellProperties();
            TableCellWidth tableCellWidth19 = new TableCellWidth() { Width = "1917", Type = TableWidthUnitValues.Dxa };

            tableCellProperties19.Append(tableCellWidth19);

            Paragraph paragraph21 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties21 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines16 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification20 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties21 = new ParagraphMarkRunProperties();
            RunFonts runFonts31 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize25 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript25 = new FontSizeComplexScript() { Val = "28" };
            Languages languages31 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties21.Append(runFonts31);
            paragraphMarkRunProperties21.Append(fontSize25);
            paragraphMarkRunProperties21.Append(fontSizeComplexScript25);
            paragraphMarkRunProperties21.Append(languages31);

            paragraphProperties21.Append(spacingBetweenLines16);
            paragraphProperties21.Append(justification20);
            paragraphProperties21.Append(paragraphMarkRunProperties21);

            paragraph21.Append(paragraphProperties21);

            tableCell19.Append(tableCellProperties19);
            tableCell19.Append(paragraph21);

            TableCell tableCell20 = new TableCell();

            TableCellProperties tableCellProperties20 = new TableCellProperties();
            TableCellWidth tableCellWidth20 = new TableCellWidth() { Width = "5259", Type = TableWidthUnitValues.Dxa };

            tableCellProperties20.Append(tableCellWidth20);

            Paragraph paragraph22 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties22 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines17 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification21 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties22 = new ParagraphMarkRunProperties();
            RunFonts runFonts32 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize26 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript26 = new FontSizeComplexScript() { Val = "28" };
            Languages languages32 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties22.Append(runFonts32);
            paragraphMarkRunProperties22.Append(fontSize26);
            paragraphMarkRunProperties22.Append(fontSizeComplexScript26);
            paragraphMarkRunProperties22.Append(languages32);

            paragraphProperties22.Append(spacingBetweenLines17);
            paragraphProperties22.Append(justification21);
            paragraphProperties22.Append(paragraphMarkRunProperties22);

            paragraph22.Append(paragraphProperties22);

            tableCell20.Append(tableCellProperties20);
            tableCell20.Append(paragraph22);

            tableRow5.Append(tableCell17);
            tableRow5.Append(tableCell18);
            tableRow5.Append(tableCell19);
            tableRow5.Append(tableCell20);

            TableRow tableRow6 = new TableRow() { RsidTableRowMarkRevision = "00107D47", RsidTableRowAddition = "00E24EED", RsidTableRowProperties = "00BF6E08" };

            TableCell tableCell21 = new TableCell();

            TableCellProperties tableCellProperties21 = new TableCellProperties();
            TableCellWidth tableCellWidth21 = new TableCellWidth() { Width = "1565", Type = TableWidthUnitValues.Dxa };

            tableCellProperties21.Append(tableCellWidth21);

            Paragraph paragraph23 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties23 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines18 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification22 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties23 = new ParagraphMarkRunProperties();
            RunFonts runFonts33 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize27 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript27 = new FontSizeComplexScript() { Val = "28" };
            Languages languages33 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties23.Append(runFonts33);
            paragraphMarkRunProperties23.Append(fontSize27);
            paragraphMarkRunProperties23.Append(fontSizeComplexScript27);
            paragraphMarkRunProperties23.Append(languages33);

            paragraphProperties23.Append(spacingBetweenLines18);
            paragraphProperties23.Append(justification22);
            paragraphProperties23.Append(paragraphMarkRunProperties23);

            paragraph23.Append(paragraphProperties23);

            tableCell21.Append(tableCellProperties21);
            tableCell21.Append(paragraph23);

            TableCell tableCell22 = new TableCell();

            TableCellProperties tableCellProperties22 = new TableCellProperties();
            TableCellWidth tableCellWidth22 = new TableCellWidth() { Width = "1066", Type = TableWidthUnitValues.Dxa };

            tableCellProperties22.Append(tableCellWidth22);

            Paragraph paragraph24 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties24 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines19 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification23 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties24 = new ParagraphMarkRunProperties();
            RunFonts runFonts34 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize28 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript28 = new FontSizeComplexScript() { Val = "28" };
            Languages languages34 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties24.Append(runFonts34);
            paragraphMarkRunProperties24.Append(fontSize28);
            paragraphMarkRunProperties24.Append(fontSizeComplexScript28);
            paragraphMarkRunProperties24.Append(languages34);

            paragraphProperties24.Append(spacingBetweenLines19);
            paragraphProperties24.Append(justification23);
            paragraphProperties24.Append(paragraphMarkRunProperties24);

            paragraph24.Append(paragraphProperties24);

            tableCell22.Append(tableCellProperties22);
            tableCell22.Append(paragraph24);

            TableCell tableCell23 = new TableCell();

            TableCellProperties tableCellProperties23 = new TableCellProperties();
            TableCellWidth tableCellWidth23 = new TableCellWidth() { Width = "1917", Type = TableWidthUnitValues.Dxa };

            tableCellProperties23.Append(tableCellWidth23);

            Paragraph paragraph25 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties25 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines20 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification24 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties25 = new ParagraphMarkRunProperties();
            RunFonts runFonts35 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize29 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript29 = new FontSizeComplexScript() { Val = "28" };
            Languages languages35 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties25.Append(runFonts35);
            paragraphMarkRunProperties25.Append(fontSize29);
            paragraphMarkRunProperties25.Append(fontSizeComplexScript29);
            paragraphMarkRunProperties25.Append(languages35);

            paragraphProperties25.Append(spacingBetweenLines20);
            paragraphProperties25.Append(justification24);
            paragraphProperties25.Append(paragraphMarkRunProperties25);

            paragraph25.Append(paragraphProperties25);

            tableCell23.Append(tableCellProperties23);
            tableCell23.Append(paragraph25);

            TableCell tableCell24 = new TableCell();

            TableCellProperties tableCellProperties24 = new TableCellProperties();
            TableCellWidth tableCellWidth24 = new TableCellWidth() { Width = "5259", Type = TableWidthUnitValues.Dxa };

            tableCellProperties24.Append(tableCellWidth24);

            Paragraph paragraph26 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties26 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines21 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification25 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties26 = new ParagraphMarkRunProperties();
            RunFonts runFonts36 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize30 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript30 = new FontSizeComplexScript() { Val = "28" };
            Languages languages36 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties26.Append(runFonts36);
            paragraphMarkRunProperties26.Append(fontSize30);
            paragraphMarkRunProperties26.Append(fontSizeComplexScript30);
            paragraphMarkRunProperties26.Append(languages36);

            paragraphProperties26.Append(spacingBetweenLines21);
            paragraphProperties26.Append(justification25);
            paragraphProperties26.Append(paragraphMarkRunProperties26);

            paragraph26.Append(paragraphProperties26);

            tableCell24.Append(tableCellProperties24);
            tableCell24.Append(paragraph26);

            tableRow6.Append(tableCell21);
            tableRow6.Append(tableCell22);
            tableRow6.Append(tableCell23);
            tableRow6.Append(tableCell24);

            TableRow tableRow7 = new TableRow() { RsidTableRowMarkRevision = "00107D47", RsidTableRowAddition = "00E24EED", RsidTableRowProperties = "00BF6E08" };

            TableCell tableCell25 = new TableCell();

            TableCellProperties tableCellProperties25 = new TableCellProperties();
            TableCellWidth tableCellWidth25 = new TableCellWidth() { Width = "1565", Type = TableWidthUnitValues.Dxa };

            tableCellProperties25.Append(tableCellWidth25);

            Paragraph paragraph27 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties27 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines22 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification26 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties27 = new ParagraphMarkRunProperties();
            RunFonts runFonts37 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize31 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript31 = new FontSizeComplexScript() { Val = "28" };
            Languages languages37 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties27.Append(runFonts37);
            paragraphMarkRunProperties27.Append(fontSize31);
            paragraphMarkRunProperties27.Append(fontSizeComplexScript31);
            paragraphMarkRunProperties27.Append(languages37);

            paragraphProperties27.Append(spacingBetweenLines22);
            paragraphProperties27.Append(justification26);
            paragraphProperties27.Append(paragraphMarkRunProperties27);

            paragraph27.Append(paragraphProperties27);

            tableCell25.Append(tableCellProperties25);
            tableCell25.Append(paragraph27);

            TableCell tableCell26 = new TableCell();

            TableCellProperties tableCellProperties26 = new TableCellProperties();
            TableCellWidth tableCellWidth26 = new TableCellWidth() { Width = "1066", Type = TableWidthUnitValues.Dxa };

            tableCellProperties26.Append(tableCellWidth26);

            Paragraph paragraph28 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties28 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines23 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification27 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties28 = new ParagraphMarkRunProperties();
            RunFonts runFonts38 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize32 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript32 = new FontSizeComplexScript() { Val = "28" };
            Languages languages38 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties28.Append(runFonts38);
            paragraphMarkRunProperties28.Append(fontSize32);
            paragraphMarkRunProperties28.Append(fontSizeComplexScript32);
            paragraphMarkRunProperties28.Append(languages38);

            paragraphProperties28.Append(spacingBetweenLines23);
            paragraphProperties28.Append(justification27);
            paragraphProperties28.Append(paragraphMarkRunProperties28);

            paragraph28.Append(paragraphProperties28);

            tableCell26.Append(tableCellProperties26);
            tableCell26.Append(paragraph28);

            TableCell tableCell27 = new TableCell();

            TableCellProperties tableCellProperties27 = new TableCellProperties();
            TableCellWidth tableCellWidth27 = new TableCellWidth() { Width = "1917", Type = TableWidthUnitValues.Dxa };

            tableCellProperties27.Append(tableCellWidth27);

            Paragraph paragraph29 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties29 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines24 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification28 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties29 = new ParagraphMarkRunProperties();
            RunFonts runFonts39 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize33 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript33 = new FontSizeComplexScript() { Val = "28" };
            Languages languages39 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties29.Append(runFonts39);
            paragraphMarkRunProperties29.Append(fontSize33);
            paragraphMarkRunProperties29.Append(fontSizeComplexScript33);
            paragraphMarkRunProperties29.Append(languages39);

            paragraphProperties29.Append(spacingBetweenLines24);
            paragraphProperties29.Append(justification28);
            paragraphProperties29.Append(paragraphMarkRunProperties29);

            paragraph29.Append(paragraphProperties29);

            tableCell27.Append(tableCellProperties27);
            tableCell27.Append(paragraph29);

            TableCell tableCell28 = new TableCell();

            TableCellProperties tableCellProperties28 = new TableCellProperties();
            TableCellWidth tableCellWidth28 = new TableCellWidth() { Width = "5259", Type = TableWidthUnitValues.Dxa };

            tableCellProperties28.Append(tableCellWidth28);

            Paragraph paragraph30 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties30 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines25 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification29 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties30 = new ParagraphMarkRunProperties();
            RunFonts runFonts40 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize34 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript34 = new FontSizeComplexScript() { Val = "28" };
            Languages languages40 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties30.Append(runFonts40);
            paragraphMarkRunProperties30.Append(fontSize34);
            paragraphMarkRunProperties30.Append(fontSizeComplexScript34);
            paragraphMarkRunProperties30.Append(languages40);

            paragraphProperties30.Append(spacingBetweenLines25);
            paragraphProperties30.Append(justification29);
            paragraphProperties30.Append(paragraphMarkRunProperties30);

            paragraph30.Append(paragraphProperties30);

            tableCell28.Append(tableCellProperties28);
            tableCell28.Append(paragraph30);

            tableRow7.Append(tableCell25);
            tableRow7.Append(tableCell26);
            tableRow7.Append(tableCell27);
            tableRow7.Append(tableCell28);

            TableRow tableRow8 = new TableRow() { RsidTableRowMarkRevision = "00107D47", RsidTableRowAddition = "00E24EED", RsidTableRowProperties = "00BF6E08" };

            TableCell tableCell29 = new TableCell();

            TableCellProperties tableCellProperties29 = new TableCellProperties();
            TableCellWidth tableCellWidth29 = new TableCellWidth() { Width = "1565", Type = TableWidthUnitValues.Dxa };

            tableCellProperties29.Append(tableCellWidth29);

            Paragraph paragraph31 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties31 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines26 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification30 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties31 = new ParagraphMarkRunProperties();
            RunFonts runFonts41 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize35 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript35 = new FontSizeComplexScript() { Val = "28" };
            Languages languages41 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties31.Append(runFonts41);
            paragraphMarkRunProperties31.Append(fontSize35);
            paragraphMarkRunProperties31.Append(fontSizeComplexScript35);
            paragraphMarkRunProperties31.Append(languages41);

            paragraphProperties31.Append(spacingBetweenLines26);
            paragraphProperties31.Append(justification30);
            paragraphProperties31.Append(paragraphMarkRunProperties31);

            paragraph31.Append(paragraphProperties31);

            tableCell29.Append(tableCellProperties29);
            tableCell29.Append(paragraph31);

            TableCell tableCell30 = new TableCell();

            TableCellProperties tableCellProperties30 = new TableCellProperties();
            TableCellWidth tableCellWidth30 = new TableCellWidth() { Width = "1066", Type = TableWidthUnitValues.Dxa };

            tableCellProperties30.Append(tableCellWidth30);

            Paragraph paragraph32 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties32 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines27 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification31 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties32 = new ParagraphMarkRunProperties();
            RunFonts runFonts42 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize36 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript36 = new FontSizeComplexScript() { Val = "28" };
            Languages languages42 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties32.Append(runFonts42);
            paragraphMarkRunProperties32.Append(fontSize36);
            paragraphMarkRunProperties32.Append(fontSizeComplexScript36);
            paragraphMarkRunProperties32.Append(languages42);

            paragraphProperties32.Append(spacingBetweenLines27);
            paragraphProperties32.Append(justification31);
            paragraphProperties32.Append(paragraphMarkRunProperties32);

            paragraph32.Append(paragraphProperties32);

            tableCell30.Append(tableCellProperties30);
            tableCell30.Append(paragraph32);

            TableCell tableCell31 = new TableCell();

            TableCellProperties tableCellProperties31 = new TableCellProperties();
            TableCellWidth tableCellWidth31 = new TableCellWidth() { Width = "1917", Type = TableWidthUnitValues.Dxa };

            tableCellProperties31.Append(tableCellWidth31);

            Paragraph paragraph33 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties33 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines28 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification32 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties33 = new ParagraphMarkRunProperties();
            RunFonts runFonts43 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize37 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript37 = new FontSizeComplexScript() { Val = "28" };
            Languages languages43 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties33.Append(runFonts43);
            paragraphMarkRunProperties33.Append(fontSize37);
            paragraphMarkRunProperties33.Append(fontSizeComplexScript37);
            paragraphMarkRunProperties33.Append(languages43);

            paragraphProperties33.Append(spacingBetweenLines28);
            paragraphProperties33.Append(justification32);
            paragraphProperties33.Append(paragraphMarkRunProperties33);

            paragraph33.Append(paragraphProperties33);

            tableCell31.Append(tableCellProperties31);
            tableCell31.Append(paragraph33);

            TableCell tableCell32 = new TableCell();

            TableCellProperties tableCellProperties32 = new TableCellProperties();
            TableCellWidth tableCellWidth32 = new TableCellWidth() { Width = "5259", Type = TableWidthUnitValues.Dxa };

            tableCellProperties32.Append(tableCellWidth32);

            Paragraph paragraph34 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties34 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines29 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification33 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties34 = new ParagraphMarkRunProperties();
            RunFonts runFonts44 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize38 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript38 = new FontSizeComplexScript() { Val = "28" };
            Languages languages44 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties34.Append(runFonts44);
            paragraphMarkRunProperties34.Append(fontSize38);
            paragraphMarkRunProperties34.Append(fontSizeComplexScript38);
            paragraphMarkRunProperties34.Append(languages44);

            paragraphProperties34.Append(spacingBetweenLines29);
            paragraphProperties34.Append(justification33);
            paragraphProperties34.Append(paragraphMarkRunProperties34);

            paragraph34.Append(paragraphProperties34);

            tableCell32.Append(tableCellProperties32);
            tableCell32.Append(paragraph34);

            tableRow8.Append(tableCell29);
            tableRow8.Append(tableCell30);
            tableRow8.Append(tableCell31);
            tableRow8.Append(tableCell32);

            TableRow tableRow9 = new TableRow() { RsidTableRowMarkRevision = "00107D47", RsidTableRowAddition = "00E24EED", RsidTableRowProperties = "00BF6E08" };

            TableCell tableCell33 = new TableCell();

            TableCellProperties tableCellProperties33 = new TableCellProperties();
            TableCellWidth tableCellWidth33 = new TableCellWidth() { Width = "1565", Type = TableWidthUnitValues.Dxa };

            tableCellProperties33.Append(tableCellWidth33);

            Paragraph paragraph35 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties35 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines30 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification34 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties35 = new ParagraphMarkRunProperties();
            RunFonts runFonts45 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize39 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript39 = new FontSizeComplexScript() { Val = "28" };
            Languages languages45 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties35.Append(runFonts45);
            paragraphMarkRunProperties35.Append(fontSize39);
            paragraphMarkRunProperties35.Append(fontSizeComplexScript39);
            paragraphMarkRunProperties35.Append(languages45);

            paragraphProperties35.Append(spacingBetweenLines30);
            paragraphProperties35.Append(justification34);
            paragraphProperties35.Append(paragraphMarkRunProperties35);

            paragraph35.Append(paragraphProperties35);

            tableCell33.Append(tableCellProperties33);
            tableCell33.Append(paragraph35);

            TableCell tableCell34 = new TableCell();

            TableCellProperties tableCellProperties34 = new TableCellProperties();
            TableCellWidth tableCellWidth34 = new TableCellWidth() { Width = "1066", Type = TableWidthUnitValues.Dxa };

            tableCellProperties34.Append(tableCellWidth34);

            Paragraph paragraph36 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties36 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines31 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification35 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties36 = new ParagraphMarkRunProperties();
            RunFonts runFonts46 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize40 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript40 = new FontSizeComplexScript() { Val = "28" };
            Languages languages46 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties36.Append(runFonts46);
            paragraphMarkRunProperties36.Append(fontSize40);
            paragraphMarkRunProperties36.Append(fontSizeComplexScript40);
            paragraphMarkRunProperties36.Append(languages46);

            paragraphProperties36.Append(spacingBetweenLines31);
            paragraphProperties36.Append(justification35);
            paragraphProperties36.Append(paragraphMarkRunProperties36);

            paragraph36.Append(paragraphProperties36);

            tableCell34.Append(tableCellProperties34);
            tableCell34.Append(paragraph36);

            TableCell tableCell35 = new TableCell();

            TableCellProperties tableCellProperties35 = new TableCellProperties();
            TableCellWidth tableCellWidth35 = new TableCellWidth() { Width = "1917", Type = TableWidthUnitValues.Dxa };

            tableCellProperties35.Append(tableCellWidth35);

            Paragraph paragraph37 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties37 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines32 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification36 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties37 = new ParagraphMarkRunProperties();
            RunFonts runFonts47 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize41 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript41 = new FontSizeComplexScript() { Val = "28" };
            Languages languages47 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties37.Append(runFonts47);
            paragraphMarkRunProperties37.Append(fontSize41);
            paragraphMarkRunProperties37.Append(fontSizeComplexScript41);
            paragraphMarkRunProperties37.Append(languages47);

            paragraphProperties37.Append(spacingBetweenLines32);
            paragraphProperties37.Append(justification36);
            paragraphProperties37.Append(paragraphMarkRunProperties37);

            paragraph37.Append(paragraphProperties37);

            tableCell35.Append(tableCellProperties35);
            tableCell35.Append(paragraph37);

            TableCell tableCell36 = new TableCell();

            TableCellProperties tableCellProperties36 = new TableCellProperties();
            TableCellWidth tableCellWidth36 = new TableCellWidth() { Width = "5259", Type = TableWidthUnitValues.Dxa };

            tableCellProperties36.Append(tableCellWidth36);

            Paragraph paragraph38 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties38 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines33 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification37 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties38 = new ParagraphMarkRunProperties();
            RunFonts runFonts48 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize42 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript42 = new FontSizeComplexScript() { Val = "28" };
            Languages languages48 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties38.Append(runFonts48);
            paragraphMarkRunProperties38.Append(fontSize42);
            paragraphMarkRunProperties38.Append(fontSizeComplexScript42);
            paragraphMarkRunProperties38.Append(languages48);

            paragraphProperties38.Append(spacingBetweenLines33);
            paragraphProperties38.Append(justification37);
            paragraphProperties38.Append(paragraphMarkRunProperties38);

            paragraph38.Append(paragraphProperties38);

            tableCell36.Append(tableCellProperties36);
            tableCell36.Append(paragraph38);

            tableRow9.Append(tableCell33);
            tableRow9.Append(tableCell34);
            tableRow9.Append(tableCell35);
            tableRow9.Append(tableCell36);

            TableRow tableRow10 = new TableRow() { RsidTableRowMarkRevision = "00107D47", RsidTableRowAddition = "00E24EED", RsidTableRowProperties = "00BF6E08" };

            TableCell tableCell37 = new TableCell();

            TableCellProperties tableCellProperties37 = new TableCellProperties();
            TableCellWidth tableCellWidth37 = new TableCellWidth() { Width = "1565", Type = TableWidthUnitValues.Dxa };

            tableCellProperties37.Append(tableCellWidth37);

            Paragraph paragraph39 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties39 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines34 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification38 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties39 = new ParagraphMarkRunProperties();
            RunFonts runFonts49 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize43 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript43 = new FontSizeComplexScript() { Val = "28" };
            Languages languages49 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties39.Append(runFonts49);
            paragraphMarkRunProperties39.Append(fontSize43);
            paragraphMarkRunProperties39.Append(fontSizeComplexScript43);
            paragraphMarkRunProperties39.Append(languages49);

            paragraphProperties39.Append(spacingBetweenLines34);
            paragraphProperties39.Append(justification38);
            paragraphProperties39.Append(paragraphMarkRunProperties39);

            paragraph39.Append(paragraphProperties39);

            tableCell37.Append(tableCellProperties37);
            tableCell37.Append(paragraph39);

            TableCell tableCell38 = new TableCell();

            TableCellProperties tableCellProperties38 = new TableCellProperties();
            TableCellWidth tableCellWidth38 = new TableCellWidth() { Width = "1066", Type = TableWidthUnitValues.Dxa };

            tableCellProperties38.Append(tableCellWidth38);

            Paragraph paragraph40 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties40 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines35 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification39 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties40 = new ParagraphMarkRunProperties();
            RunFonts runFonts50 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize44 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript44 = new FontSizeComplexScript() { Val = "28" };
            Languages languages50 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties40.Append(runFonts50);
            paragraphMarkRunProperties40.Append(fontSize44);
            paragraphMarkRunProperties40.Append(fontSizeComplexScript44);
            paragraphMarkRunProperties40.Append(languages50);

            paragraphProperties40.Append(spacingBetweenLines35);
            paragraphProperties40.Append(justification39);
            paragraphProperties40.Append(paragraphMarkRunProperties40);

            paragraph40.Append(paragraphProperties40);

            tableCell38.Append(tableCellProperties38);
            tableCell38.Append(paragraph40);

            TableCell tableCell39 = new TableCell();

            TableCellProperties tableCellProperties39 = new TableCellProperties();
            TableCellWidth tableCellWidth39 = new TableCellWidth() { Width = "1917", Type = TableWidthUnitValues.Dxa };

            tableCellProperties39.Append(tableCellWidth39);

            Paragraph paragraph41 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties41 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines36 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification40 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties41 = new ParagraphMarkRunProperties();
            RunFonts runFonts51 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize45 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript45 = new FontSizeComplexScript() { Val = "28" };
            Languages languages51 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties41.Append(runFonts51);
            paragraphMarkRunProperties41.Append(fontSize45);
            paragraphMarkRunProperties41.Append(fontSizeComplexScript45);
            paragraphMarkRunProperties41.Append(languages51);

            paragraphProperties41.Append(spacingBetweenLines36);
            paragraphProperties41.Append(justification40);
            paragraphProperties41.Append(paragraphMarkRunProperties41);

            paragraph41.Append(paragraphProperties41);

            tableCell39.Append(tableCellProperties39);
            tableCell39.Append(paragraph41);

            TableCell tableCell40 = new TableCell();

            TableCellProperties tableCellProperties40 = new TableCellProperties();
            TableCellWidth tableCellWidth40 = new TableCellWidth() { Width = "5259", Type = TableWidthUnitValues.Dxa };

            tableCellProperties40.Append(tableCellWidth40);

            Paragraph paragraph42 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties42 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines37 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification41 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties42 = new ParagraphMarkRunProperties();
            RunFonts runFonts52 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize46 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript46 = new FontSizeComplexScript() { Val = "28" };
            Languages languages52 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties42.Append(runFonts52);
            paragraphMarkRunProperties42.Append(fontSize46);
            paragraphMarkRunProperties42.Append(fontSizeComplexScript46);
            paragraphMarkRunProperties42.Append(languages52);

            paragraphProperties42.Append(spacingBetweenLines37);
            paragraphProperties42.Append(justification41);
            paragraphProperties42.Append(paragraphMarkRunProperties42);

            paragraph42.Append(paragraphProperties42);

            tableCell40.Append(tableCellProperties40);
            tableCell40.Append(paragraph42);

            tableRow10.Append(tableCell37);
            tableRow10.Append(tableCell38);
            tableRow10.Append(tableCell39);
            tableRow10.Append(tableCell40);

            TableRow tableRow11 = new TableRow() { RsidTableRowMarkRevision = "00107D47", RsidTableRowAddition = "00E24EED", RsidTableRowProperties = "00BF6E08" };

            TableCell tableCell41 = new TableCell();

            TableCellProperties tableCellProperties41 = new TableCellProperties();
            TableCellWidth tableCellWidth41 = new TableCellWidth() { Width = "1565", Type = TableWidthUnitValues.Dxa };

            tableCellProperties41.Append(tableCellWidth41);

            Paragraph paragraph43 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties43 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines38 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification42 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties43 = new ParagraphMarkRunProperties();
            RunFonts runFonts53 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize47 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript47 = new FontSizeComplexScript() { Val = "28" };
            Languages languages53 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties43.Append(runFonts53);
            paragraphMarkRunProperties43.Append(fontSize47);
            paragraphMarkRunProperties43.Append(fontSizeComplexScript47);
            paragraphMarkRunProperties43.Append(languages53);

            paragraphProperties43.Append(spacingBetweenLines38);
            paragraphProperties43.Append(justification42);
            paragraphProperties43.Append(paragraphMarkRunProperties43);

            paragraph43.Append(paragraphProperties43);

            tableCell41.Append(tableCellProperties41);
            tableCell41.Append(paragraph43);

            TableCell tableCell42 = new TableCell();

            TableCellProperties tableCellProperties42 = new TableCellProperties();
            TableCellWidth tableCellWidth42 = new TableCellWidth() { Width = "1066", Type = TableWidthUnitValues.Dxa };

            tableCellProperties42.Append(tableCellWidth42);

            Paragraph paragraph44 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties44 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines39 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification43 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties44 = new ParagraphMarkRunProperties();
            RunFonts runFonts54 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize48 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript48 = new FontSizeComplexScript() { Val = "28" };
            Languages languages54 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties44.Append(runFonts54);
            paragraphMarkRunProperties44.Append(fontSize48);
            paragraphMarkRunProperties44.Append(fontSizeComplexScript48);
            paragraphMarkRunProperties44.Append(languages54);

            paragraphProperties44.Append(spacingBetweenLines39);
            paragraphProperties44.Append(justification43);
            paragraphProperties44.Append(paragraphMarkRunProperties44);

            paragraph44.Append(paragraphProperties44);

            tableCell42.Append(tableCellProperties42);
            tableCell42.Append(paragraph44);

            TableCell tableCell43 = new TableCell();

            TableCellProperties tableCellProperties43 = new TableCellProperties();
            TableCellWidth tableCellWidth43 = new TableCellWidth() { Width = "1917", Type = TableWidthUnitValues.Dxa };

            tableCellProperties43.Append(tableCellWidth43);

            Paragraph paragraph45 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties45 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines40 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification44 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties45 = new ParagraphMarkRunProperties();
            RunFonts runFonts55 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize49 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript49 = new FontSizeComplexScript() { Val = "28" };
            Languages languages55 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties45.Append(runFonts55);
            paragraphMarkRunProperties45.Append(fontSize49);
            paragraphMarkRunProperties45.Append(fontSizeComplexScript49);
            paragraphMarkRunProperties45.Append(languages55);

            paragraphProperties45.Append(spacingBetweenLines40);
            paragraphProperties45.Append(justification44);
            paragraphProperties45.Append(paragraphMarkRunProperties45);

            paragraph45.Append(paragraphProperties45);

            tableCell43.Append(tableCellProperties43);
            tableCell43.Append(paragraph45);

            TableCell tableCell44 = new TableCell();

            TableCellProperties tableCellProperties44 = new TableCellProperties();
            TableCellWidth tableCellWidth44 = new TableCellWidth() { Width = "5259", Type = TableWidthUnitValues.Dxa };

            tableCellProperties44.Append(tableCellWidth44);

            Paragraph paragraph46 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties46 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines41 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification45 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties46 = new ParagraphMarkRunProperties();
            RunFonts runFonts56 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize50 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript50 = new FontSizeComplexScript() { Val = "28" };
            Languages languages56 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties46.Append(runFonts56);
            paragraphMarkRunProperties46.Append(fontSize50);
            paragraphMarkRunProperties46.Append(fontSizeComplexScript50);
            paragraphMarkRunProperties46.Append(languages56);

            paragraphProperties46.Append(spacingBetweenLines41);
            paragraphProperties46.Append(justification45);
            paragraphProperties46.Append(paragraphMarkRunProperties46);

            paragraph46.Append(paragraphProperties46);

            tableCell44.Append(tableCellProperties44);
            tableCell44.Append(paragraph46);

            tableRow11.Append(tableCell41);
            tableRow11.Append(tableCell42);
            tableRow11.Append(tableCell43);
            tableRow11.Append(tableCell44);

            TableRow tableRow12 = new TableRow() { RsidTableRowMarkRevision = "00107D47", RsidTableRowAddition = "00E24EED", RsidTableRowProperties = "00BF6E08" };

            TableCell tableCell45 = new TableCell();

            TableCellProperties tableCellProperties45 = new TableCellProperties();
            TableCellWidth tableCellWidth45 = new TableCellWidth() { Width = "1565", Type = TableWidthUnitValues.Dxa };

            tableCellProperties45.Append(tableCellWidth45);

            Paragraph paragraph47 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties47 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines42 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification46 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties47 = new ParagraphMarkRunProperties();
            RunFonts runFonts57 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize51 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript51 = new FontSizeComplexScript() { Val = "28" };
            Languages languages57 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties47.Append(runFonts57);
            paragraphMarkRunProperties47.Append(fontSize51);
            paragraphMarkRunProperties47.Append(fontSizeComplexScript51);
            paragraphMarkRunProperties47.Append(languages57);

            paragraphProperties47.Append(spacingBetweenLines42);
            paragraphProperties47.Append(justification46);
            paragraphProperties47.Append(paragraphMarkRunProperties47);

            paragraph47.Append(paragraphProperties47);

            tableCell45.Append(tableCellProperties45);
            tableCell45.Append(paragraph47);

            TableCell tableCell46 = new TableCell();

            TableCellProperties tableCellProperties46 = new TableCellProperties();
            TableCellWidth tableCellWidth46 = new TableCellWidth() { Width = "1066", Type = TableWidthUnitValues.Dxa };

            tableCellProperties46.Append(tableCellWidth46);

            Paragraph paragraph48 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties48 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines43 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification47 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties48 = new ParagraphMarkRunProperties();
            RunFonts runFonts58 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize52 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript52 = new FontSizeComplexScript() { Val = "28" };
            Languages languages58 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties48.Append(runFonts58);
            paragraphMarkRunProperties48.Append(fontSize52);
            paragraphMarkRunProperties48.Append(fontSizeComplexScript52);
            paragraphMarkRunProperties48.Append(languages58);

            paragraphProperties48.Append(spacingBetweenLines43);
            paragraphProperties48.Append(justification47);
            paragraphProperties48.Append(paragraphMarkRunProperties48);

            paragraph48.Append(paragraphProperties48);

            tableCell46.Append(tableCellProperties46);
            tableCell46.Append(paragraph48);

            TableCell tableCell47 = new TableCell();

            TableCellProperties tableCellProperties47 = new TableCellProperties();
            TableCellWidth tableCellWidth47 = new TableCellWidth() { Width = "1917", Type = TableWidthUnitValues.Dxa };

            tableCellProperties47.Append(tableCellWidth47);

            Paragraph paragraph49 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties49 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines44 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification48 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties49 = new ParagraphMarkRunProperties();
            RunFonts runFonts59 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize53 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript53 = new FontSizeComplexScript() { Val = "28" };
            Languages languages59 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties49.Append(runFonts59);
            paragraphMarkRunProperties49.Append(fontSize53);
            paragraphMarkRunProperties49.Append(fontSizeComplexScript53);
            paragraphMarkRunProperties49.Append(languages59);

            paragraphProperties49.Append(spacingBetweenLines44);
            paragraphProperties49.Append(justification48);
            paragraphProperties49.Append(paragraphMarkRunProperties49);

            paragraph49.Append(paragraphProperties49);

            tableCell47.Append(tableCellProperties47);
            tableCell47.Append(paragraph49);

            TableCell tableCell48 = new TableCell();

            TableCellProperties tableCellProperties48 = new TableCellProperties();
            TableCellWidth tableCellWidth48 = new TableCellWidth() { Width = "5259", Type = TableWidthUnitValues.Dxa };

            tableCellProperties48.Append(tableCellWidth48);

            Paragraph paragraph50 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties50 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines45 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification49 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties50 = new ParagraphMarkRunProperties();
            RunFonts runFonts60 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize54 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript54 = new FontSizeComplexScript() { Val = "28" };
            Languages languages60 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties50.Append(runFonts60);
            paragraphMarkRunProperties50.Append(fontSize54);
            paragraphMarkRunProperties50.Append(fontSizeComplexScript54);
            paragraphMarkRunProperties50.Append(languages60);

            paragraphProperties50.Append(spacingBetweenLines45);
            paragraphProperties50.Append(justification49);
            paragraphProperties50.Append(paragraphMarkRunProperties50);

            paragraph50.Append(paragraphProperties50);

            tableCell48.Append(tableCellProperties48);
            tableCell48.Append(paragraph50);

            tableRow12.Append(tableCell45);
            tableRow12.Append(tableCell46);
            tableRow12.Append(tableCell47);
            tableRow12.Append(tableCell48);

            TableRow tableRow13 = new TableRow() { RsidTableRowMarkRevision = "00107D47", RsidTableRowAddition = "00E24EED", RsidTableRowProperties = "00BF6E08" };

            TableCell tableCell49 = new TableCell();

            TableCellProperties tableCellProperties49 = new TableCellProperties();
            TableCellWidth tableCellWidth49 = new TableCellWidth() { Width = "1565", Type = TableWidthUnitValues.Dxa };

            tableCellProperties49.Append(tableCellWidth49);

            Paragraph paragraph51 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties51 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines46 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification50 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties51 = new ParagraphMarkRunProperties();
            RunFonts runFonts61 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize55 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript55 = new FontSizeComplexScript() { Val = "28" };
            Languages languages61 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties51.Append(runFonts61);
            paragraphMarkRunProperties51.Append(fontSize55);
            paragraphMarkRunProperties51.Append(fontSizeComplexScript55);
            paragraphMarkRunProperties51.Append(languages61);

            paragraphProperties51.Append(spacingBetweenLines46);
            paragraphProperties51.Append(justification50);
            paragraphProperties51.Append(paragraphMarkRunProperties51);

            paragraph51.Append(paragraphProperties51);

            tableCell49.Append(tableCellProperties49);
            tableCell49.Append(paragraph51);

            TableCell tableCell50 = new TableCell();

            TableCellProperties tableCellProperties50 = new TableCellProperties();
            TableCellWidth tableCellWidth50 = new TableCellWidth() { Width = "1066", Type = TableWidthUnitValues.Dxa };

            tableCellProperties50.Append(tableCellWidth50);

            Paragraph paragraph52 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties52 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines47 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification51 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties52 = new ParagraphMarkRunProperties();
            RunFonts runFonts62 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize56 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript56 = new FontSizeComplexScript() { Val = "28" };
            Languages languages62 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties52.Append(runFonts62);
            paragraphMarkRunProperties52.Append(fontSize56);
            paragraphMarkRunProperties52.Append(fontSizeComplexScript56);
            paragraphMarkRunProperties52.Append(languages62);

            paragraphProperties52.Append(spacingBetweenLines47);
            paragraphProperties52.Append(justification51);
            paragraphProperties52.Append(paragraphMarkRunProperties52);

            paragraph52.Append(paragraphProperties52);

            tableCell50.Append(tableCellProperties50);
            tableCell50.Append(paragraph52);

            TableCell tableCell51 = new TableCell();

            TableCellProperties tableCellProperties51 = new TableCellProperties();
            TableCellWidth tableCellWidth51 = new TableCellWidth() { Width = "1917", Type = TableWidthUnitValues.Dxa };

            tableCellProperties51.Append(tableCellWidth51);

            Paragraph paragraph53 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties53 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines48 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification52 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties53 = new ParagraphMarkRunProperties();
            RunFonts runFonts63 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize57 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript57 = new FontSizeComplexScript() { Val = "28" };
            Languages languages63 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties53.Append(runFonts63);
            paragraphMarkRunProperties53.Append(fontSize57);
            paragraphMarkRunProperties53.Append(fontSizeComplexScript57);
            paragraphMarkRunProperties53.Append(languages63);

            paragraphProperties53.Append(spacingBetweenLines48);
            paragraphProperties53.Append(justification52);
            paragraphProperties53.Append(paragraphMarkRunProperties53);

            paragraph53.Append(paragraphProperties53);

            tableCell51.Append(tableCellProperties51);
            tableCell51.Append(paragraph53);

            TableCell tableCell52 = new TableCell();

            TableCellProperties tableCellProperties52 = new TableCellProperties();
            TableCellWidth tableCellWidth52 = new TableCellWidth() { Width = "5259", Type = TableWidthUnitValues.Dxa };

            tableCellProperties52.Append(tableCellWidth52);

            Paragraph paragraph54 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties54 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines49 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification53 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties54 = new ParagraphMarkRunProperties();
            RunFonts runFonts64 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize58 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript58 = new FontSizeComplexScript() { Val = "28" };
            Languages languages64 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties54.Append(runFonts64);
            paragraphMarkRunProperties54.Append(fontSize58);
            paragraphMarkRunProperties54.Append(fontSizeComplexScript58);
            paragraphMarkRunProperties54.Append(languages64);

            paragraphProperties54.Append(spacingBetweenLines49);
            paragraphProperties54.Append(justification53);
            paragraphProperties54.Append(paragraphMarkRunProperties54);

            paragraph54.Append(paragraphProperties54);

            tableCell52.Append(tableCellProperties52);
            tableCell52.Append(paragraph54);

            tableRow13.Append(tableCell49);
            tableRow13.Append(tableCell50);
            tableRow13.Append(tableCell51);
            tableRow13.Append(tableCell52);

            TableRow tableRow14 = new TableRow() { RsidTableRowMarkRevision = "00107D47", RsidTableRowAddition = "00E24EED", RsidTableRowProperties = "00BF6E08" };

            TableCell tableCell53 = new TableCell();

            TableCellProperties tableCellProperties53 = new TableCellProperties();
            TableCellWidth tableCellWidth53 = new TableCellWidth() { Width = "1565", Type = TableWidthUnitValues.Dxa };

            tableCellProperties53.Append(tableCellWidth53);

            Paragraph paragraph55 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties55 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines50 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification54 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties55 = new ParagraphMarkRunProperties();
            RunFonts runFonts65 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize59 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript59 = new FontSizeComplexScript() { Val = "28" };
            Languages languages65 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties55.Append(runFonts65);
            paragraphMarkRunProperties55.Append(fontSize59);
            paragraphMarkRunProperties55.Append(fontSizeComplexScript59);
            paragraphMarkRunProperties55.Append(languages65);

            paragraphProperties55.Append(spacingBetweenLines50);
            paragraphProperties55.Append(justification54);
            paragraphProperties55.Append(paragraphMarkRunProperties55);

            paragraph55.Append(paragraphProperties55);

            tableCell53.Append(tableCellProperties53);
            tableCell53.Append(paragraph55);

            TableCell tableCell54 = new TableCell();

            TableCellProperties tableCellProperties54 = new TableCellProperties();
            TableCellWidth tableCellWidth54 = new TableCellWidth() { Width = "1066", Type = TableWidthUnitValues.Dxa };

            tableCellProperties54.Append(tableCellWidth54);

            Paragraph paragraph56 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties56 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines51 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification55 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties56 = new ParagraphMarkRunProperties();
            RunFonts runFonts66 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize60 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript60 = new FontSizeComplexScript() { Val = "28" };
            Languages languages66 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties56.Append(runFonts66);
            paragraphMarkRunProperties56.Append(fontSize60);
            paragraphMarkRunProperties56.Append(fontSizeComplexScript60);
            paragraphMarkRunProperties56.Append(languages66);

            paragraphProperties56.Append(spacingBetweenLines51);
            paragraphProperties56.Append(justification55);
            paragraphProperties56.Append(paragraphMarkRunProperties56);

            paragraph56.Append(paragraphProperties56);

            tableCell54.Append(tableCellProperties54);
            tableCell54.Append(paragraph56);

            TableCell tableCell55 = new TableCell();

            TableCellProperties tableCellProperties55 = new TableCellProperties();
            TableCellWidth tableCellWidth55 = new TableCellWidth() { Width = "1917", Type = TableWidthUnitValues.Dxa };

            tableCellProperties55.Append(tableCellWidth55);

            Paragraph paragraph57 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties57 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines52 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification56 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties57 = new ParagraphMarkRunProperties();
            RunFonts runFonts67 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize61 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript61 = new FontSizeComplexScript() { Val = "28" };
            Languages languages67 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties57.Append(runFonts67);
            paragraphMarkRunProperties57.Append(fontSize61);
            paragraphMarkRunProperties57.Append(fontSizeComplexScript61);
            paragraphMarkRunProperties57.Append(languages67);

            paragraphProperties57.Append(spacingBetweenLines52);
            paragraphProperties57.Append(justification56);
            paragraphProperties57.Append(paragraphMarkRunProperties57);

            paragraph57.Append(paragraphProperties57);

            tableCell55.Append(tableCellProperties55);
            tableCell55.Append(paragraph57);

            TableCell tableCell56 = new TableCell();

            TableCellProperties tableCellProperties56 = new TableCellProperties();
            TableCellWidth tableCellWidth56 = new TableCellWidth() { Width = "5259", Type = TableWidthUnitValues.Dxa };

            tableCellProperties56.Append(tableCellWidth56);

            Paragraph paragraph58 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties58 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines53 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification57 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties58 = new ParagraphMarkRunProperties();
            RunFonts runFonts68 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize62 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript62 = new FontSizeComplexScript() { Val = "28" };
            Languages languages68 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties58.Append(runFonts68);
            paragraphMarkRunProperties58.Append(fontSize62);
            paragraphMarkRunProperties58.Append(fontSizeComplexScript62);
            paragraphMarkRunProperties58.Append(languages68);

            paragraphProperties58.Append(spacingBetweenLines53);
            paragraphProperties58.Append(justification57);
            paragraphProperties58.Append(paragraphMarkRunProperties58);

            paragraph58.Append(paragraphProperties58);

            tableCell56.Append(tableCellProperties56);
            tableCell56.Append(paragraph58);

            tableRow14.Append(tableCell53);
            tableRow14.Append(tableCell54);
            tableRow14.Append(tableCell55);
            tableRow14.Append(tableCell56);

            TableRow tableRow15 = new TableRow() { RsidTableRowMarkRevision = "00107D47", RsidTableRowAddition = "00E24EED", RsidTableRowProperties = "00BF6E08" };

            TableCell tableCell57 = new TableCell();

            TableCellProperties tableCellProperties57 = new TableCellProperties();
            TableCellWidth tableCellWidth57 = new TableCellWidth() { Width = "1565", Type = TableWidthUnitValues.Dxa };

            tableCellProperties57.Append(tableCellWidth57);

            Paragraph paragraph59 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties59 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines54 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification58 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties59 = new ParagraphMarkRunProperties();
            RunFonts runFonts69 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize63 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript63 = new FontSizeComplexScript() { Val = "28" };
            Languages languages69 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties59.Append(runFonts69);
            paragraphMarkRunProperties59.Append(fontSize63);
            paragraphMarkRunProperties59.Append(fontSizeComplexScript63);
            paragraphMarkRunProperties59.Append(languages69);

            paragraphProperties59.Append(spacingBetweenLines54);
            paragraphProperties59.Append(justification58);
            paragraphProperties59.Append(paragraphMarkRunProperties59);

            paragraph59.Append(paragraphProperties59);

            tableCell57.Append(tableCellProperties57);
            tableCell57.Append(paragraph59);

            TableCell tableCell58 = new TableCell();

            TableCellProperties tableCellProperties58 = new TableCellProperties();
            TableCellWidth tableCellWidth58 = new TableCellWidth() { Width = "1066", Type = TableWidthUnitValues.Dxa };

            tableCellProperties58.Append(tableCellWidth58);

            Paragraph paragraph60 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties60 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines55 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification59 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties60 = new ParagraphMarkRunProperties();
            RunFonts runFonts70 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize64 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript64 = new FontSizeComplexScript() { Val = "28" };
            Languages languages70 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties60.Append(runFonts70);
            paragraphMarkRunProperties60.Append(fontSize64);
            paragraphMarkRunProperties60.Append(fontSizeComplexScript64);
            paragraphMarkRunProperties60.Append(languages70);

            paragraphProperties60.Append(spacingBetweenLines55);
            paragraphProperties60.Append(justification59);
            paragraphProperties60.Append(paragraphMarkRunProperties60);

            paragraph60.Append(paragraphProperties60);

            tableCell58.Append(tableCellProperties58);
            tableCell58.Append(paragraph60);

            TableCell tableCell59 = new TableCell();

            TableCellProperties tableCellProperties59 = new TableCellProperties();
            TableCellWidth tableCellWidth59 = new TableCellWidth() { Width = "1917", Type = TableWidthUnitValues.Dxa };

            tableCellProperties59.Append(tableCellWidth59);

            Paragraph paragraph61 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties61 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines56 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification60 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties61 = new ParagraphMarkRunProperties();
            RunFonts runFonts71 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize65 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript65 = new FontSizeComplexScript() { Val = "28" };
            Languages languages71 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties61.Append(runFonts71);
            paragraphMarkRunProperties61.Append(fontSize65);
            paragraphMarkRunProperties61.Append(fontSizeComplexScript65);
            paragraphMarkRunProperties61.Append(languages71);

            paragraphProperties61.Append(spacingBetweenLines56);
            paragraphProperties61.Append(justification60);
            paragraphProperties61.Append(paragraphMarkRunProperties61);

            paragraph61.Append(paragraphProperties61);

            tableCell59.Append(tableCellProperties59);
            tableCell59.Append(paragraph61);

            TableCell tableCell60 = new TableCell();

            TableCellProperties tableCellProperties60 = new TableCellProperties();
            TableCellWidth tableCellWidth60 = new TableCellWidth() { Width = "5259", Type = TableWidthUnitValues.Dxa };

            tableCellProperties60.Append(tableCellWidth60);

            Paragraph paragraph62 = new Paragraph() { RsidParagraphMarkRevision = "00B65E2F", RsidParagraphAddition = "00E24EED", RsidParagraphProperties = "00BF6E08", RsidRunAdditionDefault = "00E24EED" };

            ParagraphProperties paragraphProperties62 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines57 = new SpacingBetweenLines() { Line = "480", LineRule = LineSpacingRuleValues.Auto };
            Justification justification61 = new Justification() { Val = JustificationValues.Both };

            ParagraphMarkRunProperties paragraphMarkRunProperties62 = new ParagraphMarkRunProperties();
            RunFonts runFonts72 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman" };
            FontSize fontSize66 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript66 = new FontSizeComplexScript() { Val = "28" };
            Languages languages72 = new Languages() { Val = "ru-RU" };

            paragraphMarkRunProperties62.Append(runFonts72);
            paragraphMarkRunProperties62.Append(fontSize66);
            paragraphMarkRunProperties62.Append(fontSizeComplexScript66);
            paragraphMarkRunProperties62.Append(languages72);

            paragraphProperties62.Append(spacingBetweenLines57);
            paragraphProperties62.Append(justification61);
            paragraphProperties62.Append(paragraphMarkRunProperties62);

            paragraph62.Append(paragraphProperties62);

            tableCell60.Append(tableCellProperties60);
            tableCell60.Append(paragraph62);

            tableRow15.Append(tableCell57);
            tableRow15.Append(tableCell58);
            tableRow15.Append(tableCell59);
            tableRow15.Append(tableCell60);

            table1.Append(tableProperties1);
            table1.Append(tableGrid1);
            table1.Append(tableRow1);
            table1.Append(tableRow2);
            table1.Append(tableRow3);
            table1.Append(tableRow4);
            table1.Append(tableRow5);
            table1.Append(tableRow6);
            table1.Append(tableRow7);
            table1.Append(tableRow8);
            table1.Append(tableRow9);
            table1.Append(tableRow10);
            table1.Append(tableRow11);
            table1.Append(tableRow12);
            table1.Append(tableRow13);
            table1.Append(tableRow14);
            table1.Append(tableRow15);

            //SectionProperties sectionProperties1 = new SectionProperties() { RsidRPr = "00E24EED", RsidR = "00E43BFF", RsidSect = "00FF205A" };
            //PageSize pageSize1 = new PageSize() { Width = (UInt32Value)11906U, Height = (UInt32Value)16838U };
            //PageMargin pageMargin1 = new PageMargin() { Top = 1440, Right = (UInt32Value)992U, Bottom = 1440, Left = (UInt32Value)1701U, Header = (UInt32Value)720U, Footer = (UInt32Value)720U, Gutter = (UInt32Value)0U };
            //PageNumberType pageNumberType1 = new PageNumberType() { Start = 1 };
            //Columns columns1 = new Columns() { Space = "720" };
            //TitlePage titlePage1 = new TitlePage();
            //DocGrid docGrid1 = new DocGrid() { LinePitch = 326 };

            //sectionProperties1.Append(pageSize1);
            //sectionProperties1.Append(pageMargin1);
            //sectionProperties1.Append(pageNumberType1);
            //sectionProperties1.Append(columns1);
            //sectionProperties1.Append(titlePage1);
            //sectionProperties1.Append(docGrid1);

            _body.Append(paragraph1);
            _body.Append(paragraph2);
            _body.Append(table1);
            //_body.Append(sectionProperties1);
        }
Exemplo n.º 43
0
 private TableCell CreateBorderCell(int cellWidth)
 {
     //ボーダーつきのセルを生成する(幅指定あり)
     TableCellProperties tableCellProperties = new TableCellProperties();
     EnumValue<TableWidthUnitValues> type = cellWidth == 0 ? TableWidthUnitValues.Auto : TableWidthUnitValues.Dxa;
     TableCellWidth tableCellWidth = new TableCellWidth() { Width = cellWidth.ToString(), Type = type };
     tableCellProperties.Append(tableCellWidth);
     TableCell tableCell = new TableCell();
     tableCell.Append(tableCellProperties);
     tableCell.Append(CreateEmptyParagraph());
     return tableCell;
 }
Exemplo n.º 44
0
        private Table CreateTable(int? rowCount, int? columnCount)
        {
            //枠線、罫線ありの表を指定の行列分生成する
            int realRowCount = GetRealRowCount(rowCount);
            int realColumnCount = GetRealColumnCount(columnCount);
            Table table = CreateDefaultTable();
            for (int r = 0; r < realRowCount; r++)
            {
                TableRow tableRow = new TableRow();
                table.Append(tableRow);

                for (int c = 0; c < realColumnCount; c++)
                {
                    TableCellProperties tableCellProperties = new TableCellProperties();
                    TableCellWidth tableCellWidth = new TableCellWidth() { Width = BOX_CELL_WIDTH.ToString(), Type = TableWidthUnitValues.Dxa };
                    tableCellProperties.Append(tableCellWidth);

                    TableCell tableCell = new TableCell();
                    tableCell.Append(tableCellProperties);
                    tableCell.Append(new Paragraph());
                    tableRow.Append(tableCell);
                }
            }
            return table;
        }
Exemplo n.º 45
0
		// Creates an TableCell instance and adds its children.
		public static void AddPersonCell(this TableRow row, Person p, bool addEmployer)
		{
			TableCell tableCell1 = new TableCell();

			TableCellProperties tableCellProperties1 = new TableCellProperties();
			TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "3787", Type = TableWidthUnitValues.Dxa };

			tableCellProperties1.Append(tableCellWidth1);

			Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "005A43FA", RsidParagraphProperties = "005A43FA", RsidRunAdditionDefault = "005A43FA" };

			ParagraphProperties paragraphProperties1 = new ParagraphProperties();
			SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { Before = "111" };
			Indentation indentation1 = new Indentation() { Left = "95", Right = "95" };

			paragraphProperties1.Append(spacingBetweenLines1);
			paragraphProperties1.Append(indentation1);
			paragraph1.Append(paragraphProperties1);

			if (p != null)
			{
				Run run1 = new Run();
				Text text1 = new Text();
				var name = (p.TitleCode.HasValue() ? p.TitleCode + " " : "")
					+ (p.FirstName == "?" ? "" : p.FirstName + " ")
					+ (p.LastName == "?" ? "" : p.LastName);
				text1.Text = name;

				run1.Append(text1);

				paragraph1.Append(run1);

				Paragraph paragraph2 = null;
				if (addEmployer && p.EmployerOther.HasValue())
				{
					paragraph2 = new Paragraph()
					                       {
					                       	RsidParagraphAddition = "005A43FA",
					                       	RsidParagraphProperties = "005A43FA",
					                       	RsidRunAdditionDefault = "005A43FA"
					                       };

					ParagraphProperties paragraphProperties2 = new ParagraphProperties();
					Indentation indentation2 = new Indentation() { Left = "245", Right = "95", Hanging = "150" };

					paragraphProperties2.Append(indentation2);

					Run run2 = new Run();
					Text text2 = new Text();
					text2.Text = p.EmployerOther;

					run2.Append(text2);

					paragraph2.Append(paragraphProperties2);
					paragraph2.Append(run2);
				}

				Paragraph paragraph3 = new Paragraph()
				                       {
				                       	RsidParagraphAddition = "005A43FA",
				                       	RsidParagraphProperties = "005A43FA",
				                       	RsidRunAdditionDefault = "005A43FA"
				                       };

				ParagraphProperties paragraphProperties3 = new ParagraphProperties();
				Indentation indentation3 = new Indentation() {Left = "95", Right = "95"};

				paragraphProperties3.Append(indentation3);

				Run run3 = new Run();
				Text text3 = new Text();
				text3.Text = p.PrimaryAddress;

				run3.Append(text3);

				paragraph3.Append(paragraphProperties3);
				paragraph3.Append(run3);

				Paragraph paragraph3a = null;
				if (p.PrimaryAddress2.HasValue())
				{
					paragraph3a = new Paragraph()
					                        {
					                        	RsidParagraphAddition = "005A43FA",
					                        	RsidParagraphProperties = "005A43FA",
					                        	RsidRunAdditionDefault = "005A43FA"
					                        };

					ParagraphProperties paragraphProperties2 = new ParagraphProperties();
					Indentation indentation2 = new Indentation() {Left = "95", Right = "95"};

					paragraphProperties2.Append(indentation2);

					Run run2 = new Run();
					Text text2 = new Text();
					text2.Text = p.PrimaryAddress2;

					run2.Append(text2);

					paragraph3a.Append(paragraphProperties2);
					paragraph3a.Append(run2);
				}


				Paragraph paragraph4 = new Paragraph()
				                       {
				                       	RsidParagraphAddition = "005A43FA",
				                       	RsidParagraphProperties = "005A43FA",
				                       	RsidRunAdditionDefault = "005A43FA"
				                       };

				ParagraphProperties paragraphProperties4 = new ParagraphProperties();
				Indentation indentation4 = new Indentation() {Left = "95", Right = "95"};

				paragraphProperties4.Append(indentation4);

				Run run4 = new Run();
				Text text4 = new Text();
				text4.Text = p.CityStateZip;

				run4.Append(text4);

				paragraph4.Append(paragraphProperties4);
				paragraph4.Append(run4);

				tableCell1.Append(tableCellProperties1);
				tableCell1.Append(paragraph1);
				if (paragraph2 != null)
					tableCell1.Append(paragraph2);
				tableCell1.Append(paragraph3);
				if (paragraph3a != null)
					tableCell1.Append(paragraph3a);
				tableCell1.Append(paragraph4);
			}
			else
				tableCell1.Append(paragraph1);
			row.Append(tableCell1);
		}
Exemplo n.º 46
0
        private void GenerateChapterFourTable1()
        {
            var chapterFour = (ChapterFour)_sessionObjects.ChapterFour;
            var discipline = (Discipline)_additionalObjects.Discipline;

            var paraProp = new ParagraphProperties();
            var paragraph = new Paragraph();
            var runProp = new RunProperties();
            var run = new Run();
            var runs = new List<Run>();

            var table = new Table();
            table.Append(GenerateTableProperties());

            var tableGrid1 = new TableGrid();
            for (var i = 0; i < chapterFour.AuditoriumHours.Columns.Count + 1; i++)
            {
                var gridColumn1 = new GridColumn();
                if (i == 0)
                {
                    gridColumn1.Width = "4536";

                }
                else
                {
                    gridColumn1.Width = "1200";
                }
                tableGrid1.Append(gridColumn1);
            }
            table.Append(tableGrid1);

            #region Шапка
            #region row
            var tableRow = new TableRow();

            #region cell
            var tableCell = new TableCell();
            TableCellProperties tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });

            tableCell.Append(tableCellProperties1);
            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            var spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            var justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
                Italic = new Italic()
            };
            run.Append(runProp);
            run.Append(new Text("Вид учебной работы"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCell.Append(tableCellProperties1);
            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
                Italic = new Italic()
            };
            run.Append(runProp);
            run.Append(new Text("Всего зачетных единиц / часов"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new GridSpan() { Val = 2 });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCell.Append(tableCellProperties1);
            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
                Italic = new Italic()
            };
            run.Append(runProp);
            run.Append(new Text("Семестр"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            table.Append(tableRow);
            #endregion

            #region row
            tableRow = new TableRow();

            #region cell
            tableCell = new TableCell();
            var tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            for(var i = 0; i < discipline.Semesters.Count; i++)
            {
                #region cell
                tableCell = new TableCell();
                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Center };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                run = new Run();
                runProp = new RunProperties
                {
                    Bold = new Bold(),
                    Italic = new Italic()
                };
                run.Append(runProp);
                run.Append(new Text(discipline.Semesters[i].Number.ToString()));
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion
            }

            table.Append(tableRow);
            #endregion

            #region row
            tableRow = new TableRow();

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            for (var i = 0; i < discipline.Semesters.Count; i++)
            {
                #region cell
                tableCell = new TableCell();
                tableCellProperties1 = new TableCellProperties();
                tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
                tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                tableCell.Append(tableCellProperties1);

                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Center };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                run = new Run();
                runProp = new RunProperties
                {
                    Italic = new Italic()
                };
                run.Append(runProp);
                run.Append(new Text("з.е. / час."));
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion
            }

            table.Append(tableRow);
            #endregion
            #endregion

            #region Аудиторные занятия
            #region row
            tableRow = new TableRow();

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold()
            };
            run.Append(runProp);
            run.Append(new Text("Аудиторные занятия (всего)"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });

            tableCell.Append(tableCellProperties1);
            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold()
            };
            run.Append(runProp);
            var str = GetStringHoursAndCreditUnits(discipline.TotalHours - discipline.IndependentWork);
            run.Append(new Text(str));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            for (var i = 0; i < discipline.Semesters.Count; i++)
            {
                #region cell
                tableCell = new TableCell();
                tableCellProperties1 = new TableCellProperties();
                tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                tableCell.Append(tableCellProperties1);
                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Center };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                run = new Run();
                runProp = new RunProperties
                {
                    Bold = new Bold()
                };
                run.Append(runProp);
                str = GetStringHoursAndCreditUnits( discipline.Semesters[i].TotalHours - discipline.Semesters[i].Independent );
                run.Append(new Text(str));
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion
            }

            table.Append(tableRow);
            #endregion

            for (var i = 1; i < chapterFour.AuditoriumHours.Rows.Count; i++)
            {
                var dataRow = chapterFour.AuditoriumHours.Rows[i];
                var data = new string[dataRow.ItemArray.Length + 1];

                data[0] = dataRow.ItemArray[0].ToString();
                var summ = 0;
                for (var j = 1; j < dataRow.ItemArray.Length; j++)
                {
                    var integer = Int32.Parse(dataRow.ItemArray[j].ToString());
                    data[j + 1] = GetStringHoursAndCreditUnits(integer);
                    summ += integer;
                }
                data[1] = GetStringHoursAndCreditUnits(summ);

                #region row
                tableRow = new TableRow();

                for (var j = 0; j < data.Length; j++)
                {
                    #region cell
                    tableCell = new TableCell();
                    tableCellProperties1 = new TableCellProperties();
                    tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                    tableCell.Append(tableCellProperties1);

                    paragraph = new Paragraph();
                    paraProp = GetParagraphProperties("TableStyle");
                    spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                    justification = new Justification() { Val = JustificationValues.Center };
                    paraProp.Append(spacingBetweenLines);
                    paraProp.Append(justification);
                    run = new Run();
                    run.Append(new Text(data[j]));
                    paragraph.Append(paraProp);
                    paragraph.Append(run);
                    tableCell.Append(paragraph);
                    tableRow.Append(tableCell);
                    #endregion
                }

                table.Append(tableRow);
                #endregion
            }
            #endregion

            #region Самостоятельная работа
            #region row
            tableRow = new TableRow();

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });

            tableCell.Append(tableCellProperties1);
            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold()
            };
            run.Append(runProp);
            run.Append(new Text("Самостоятельная работа (всего)"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });

            tableCell.Append(tableCellProperties1);
            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold()
            };
            run.Append(runProp);
            str = GetStringHoursAndCreditUnits(discipline.IndependentWork);
            run.Append(new Text(str));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            for (var i = 0; i < discipline.Semesters.Count; i++)
            {
                #region cell
                tableCell = new TableCell();
                tableCellProperties1 = new TableCellProperties();
                tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                tableCell.Append(tableCellProperties1);

                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Center };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                run = new Run();
                runProp = new RunProperties
                {
                    Bold = new Bold()
                };
                run.Append(runProp);
                str = GetStringHoursAndCreditUnits(discipline.Semesters[i].Independent);
                run.Append(new Text(str));
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion
            }

            table.Append(tableRow);
            #endregion

            for (var i = 1; i < chapterFour.IndependentHours.Rows.Count; i++)
            {
                var dataRow = chapterFour.IndependentHours.Rows[i];
                var data = new string[dataRow.ItemArray.Length + 1];

                data[0] = dataRow.ItemArray[0].ToString();
                var summ = 0;
                for (var j = 1; j < dataRow.ItemArray.Length; j++)
                {
                    var integer = Int32.Parse(dataRow.ItemArray[j].ToString());
                    data[j + 1] = GetStringHoursAndCreditUnits(integer);
                    summ += integer;
                }
                data[1] = GetStringHoursAndCreditUnits(summ);

                #region row
                tableRow = new TableRow();

                for (var j = 0; j < data.Length; j++)
                {
                    #region cell
                    tableCell = new TableCell();
                    tableCellProperties1 = new TableCellProperties();
                    tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                    tableCell.Append(tableCellProperties1);

                    paragraph = new Paragraph();
                    paraProp = GetParagraphProperties("TableStyle");
                    spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                    justification = new Justification() { Val = JustificationValues.Center };
                    paraProp.Append(spacingBetweenLines);
                    paraProp.Append(justification);
                    run = new Run();
                    run.Append(new Text(data[j]));
                    paragraph.Append(paraProp);
                    paragraph.Append(run);
                    tableCell.Append(paragraph);
                    tableRow.Append(tableCell);
                    #endregion
                }

                table.Append(tableRow);
                #endregion
            }
            #endregion

            #region Аттестация
            #region row
            tableRow = new TableRow();

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });

            tableCell.Append(tableCellProperties1);
            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold()
            };
            run.Append(runProp);
            run.Append(new Text("Вид промежуточной аттестации (зачет, экзамен)"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });

            tableCell.Append(tableCellProperties1);
            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            paragraph.Append(paraProp);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            for (var i = 0; i < discipline.Semesters.Count; i++)
            {
                #region cell
                tableCell = new TableCell();
                tableCellProperties1 = new TableCellProperties();
                tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                tableCell.Append(tableCellProperties1);

                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Center };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                run = new Run();
                runProp = new RunProperties
                {
                    Bold = new Bold()
                };
                run.Append(runProp);
                run.Append(new Text(discipline.Semesters[i].Validation));
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion
            }

            table.Append(tableRow);
            #endregion

            for (var i = 1; i < chapterFour.Validation.Rows.Count; i++)
            {
                var dataRow = chapterFour.Validation.Rows[i];
                var data = new string[dataRow.ItemArray.Length + 1];

                data[0] = dataRow.ItemArray[0].ToString();
                var summ = 0;
                for (var j = 1; j < dataRow.ItemArray.Length; j++)
                {
                    var integer = Helper.ConvertObjectToInt(dataRow.ItemArray[j].ToString());
                    data[j + 1] = GetStringHoursAndCreditUnits(integer);
                    summ += integer;
                }
                data[1] = GetStringHoursAndCreditUnits(summ);

                #region row
                tableRow = new TableRow();

                for (var j = 0; j < data.Length; j++)
                {
                    #region cell
                    tableCell = new TableCell();
                    tableCellProperties1 = new TableCellProperties();
                    tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                    tableCell.Append(tableCellProperties1);

                    paragraph = new Paragraph();
                    paraProp = GetParagraphProperties("TableStyle");
                    spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                    justification = new Justification() { Val = JustificationValues.Center };
                    paraProp.Append(spacingBetweenLines);
                    paraProp.Append(justification);
                    run = new Run();
                    run.Append(new Text(data[j]));
                    paragraph.Append(paraProp);
                    paragraph.Append(run);
                    tableCell.Append(paragraph);
                    tableRow.Append(tableCell);
                    #endregion
                }

                table.Append(tableRow);
                #endregion
            }
            #endregion

            #region общее количество часов

            #region row
            tableRow = new TableRow();

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D9D9D9" };
            tableCellProperties1.Append(shading1);
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold()
            };
            run.Append(runProp);
            run.Append(new Text("Общая трудоемкость дисциплины"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D9D9D9" };
            tableCellProperties1.Append(shading1);
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold()
            };
            run.Append(runProp);
            str = GetStringHoursAndCreditUnits(discipline.TotalHours);
            run.Append(new Text(str));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            for (var i = 0; i < discipline.Semesters.Count; i++)
            {
                #region cell
                tableCell = new TableCell();
                tableCellProperties1 = new TableCellProperties();
                tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D9D9D9" };
                tableCellProperties1.Append(shading1);
                tableCell.Append(tableCellProperties1);

                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Center };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                run = new Run();
                runProp = new RunProperties
                {
                    Bold = new Bold()
                };
                run.Append(runProp);
                str = GetStringHoursAndCreditUnits(discipline.Semesters[i].TotalHours);
                run.Append(new Text(str));
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion
            }

            table.Append(tableRow);
            #endregion

            #endregion

            _body.Append(table);
        }
		internal void Process(TableCell cell, DocxTableProperties docxProperties, DocxNode node)
		{
			TableCellProperties cellProperties = new TableCellProperties();

            ProcessColSpan(node, cellProperties);
            ProcessWidth(node, cellProperties);
			
			if (HasRowSpan)
			{
				cellProperties.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
			}
			
			//Processing border should be after colspan
            ProcessBorders(node, docxProperties, cellProperties);

            string backgroundColor = node.ExtractStyleValue(DocxColor.backGroundColor);
			
			if (!string.IsNullOrEmpty(backgroundColor))
			{
				DocxColor.ApplyBackGroundColor(backgroundColor, cellProperties);
			}

            ProcessVerticalAlignment(node, cellProperties);
			
			if (cellProperties.HasChildren)
			{
				cell.Append(cellProperties);
			}
		}
Exemplo n.º 48
0
        private void GenerateChapterTwo()
        {
            var titlePage = _sessionObjects.TitlePage;

            var paragraph = new Paragraph();
            var runProp = new RunProperties();
            var run = new Run();
            var runs = new List<Run>();

            run.Append(new Text("2. Место учебной дисциплины в структуре основной образовательной программы"));
            var paraProp = GetParagraphProperties("Header1");
            GenerateParagraph(run, paraProp);

            paragraph = new Paragraph();
            paragraph.Append(GetParagraphProperties());
            run = new Run();
            var str = String.Format("Учебная дисциплина «{0}» – дисциплина ", titlePage.Discipline);
            run.Append(new Text(str) { Space = SpaceProcessingModeValues.Preserve });
            paragraph.Append(run);
            run = new Run();
            runProp = new RunProperties { Color = new Color { Val = "FF0000" } };
            run.Append(runProp);
            run.Append(new Text("{описать к какому блоку и циклу принадлежит дисциплина}" ){ Space = SpaceProcessingModeValues.Preserve });
            paragraph.Append(run);
            run = new Run();
            str = String.Format(" федерального государственного образовательного стандарта подготовки {0}ов по направлению «", titlePage.Qualification);
            run.Append(new Text(str) { Space = SpaceProcessingModeValues.Preserve });
            paragraph.Append(run);
            run = new Run();
            runProp = new RunProperties { Color = new Color { Val = "FF0000" } };
            run.Append(runProp);
            run.Append(new Text("{написать направление}") { Space = SpaceProcessingModeValues.Preserve });
            paragraph.Append(run);
            run = new Run();
            str = String.Format("».", titlePage.Qualification);
            run.Append(new Text(str) { Space = SpaceProcessingModeValues.Preserve });
            paragraph.Append(run);
            _body.Append(paragraph);

            var discipline = _additionalObjects.Discipline;
            var num = 0;
            if(discipline.Semesters.Count != 0)
            {
                for(var i = 0; i < discipline.Semesters.Count; i++)
                {
                    num += discipline.Semesters[i].Number;
                }
            }
            var courseNumber = Math.Ceiling( (double)(num / 2) );
            paragraph = new Paragraph();
            paragraph.Append(GetParagraphProperties());
            run = new Run();
            str = String.Format("Дисциплина изучается на {0} курсе, базируется на знаниях студентов, полученных в процессе изучения дисциплин: ", courseNumber);
            run.Append(new Text(str) { Space = SpaceProcessingModeValues.Preserve });
            paragraph.Append(run);
            run = new Run();
            runProp = new RunProperties { Color = new Color { Val = "FF0000" } };
            run.Append(runProp);
            run.Append(new Text("{название дисциплин}") { Space = SpaceProcessingModeValues.Preserve });
            paragraph.Append(run);
            run = new Run();
            str = String.Format(" и может служить основой для изучения следующих учебных дисциплин: ");
            run.Append(new Text(str) { Space = SpaceProcessingModeValues.Preserve });
            paragraph.Append(run);
            run = new Run();
            runProp = new RunProperties { Color = new Color { Val = "FF0000" } };
            run.Append(runProp);
            run.Append(new Text("{название дисциплин}") { Space = SpaceProcessingModeValues.Preserve });
            paragraph.Append(run);

            GenerateParagraph();

            #region table
            var chapterFour = _sessionObjects.ChapterFour;
            var numOfColumn = 10;
            if (chapterFour.Chapters.Rows.Count != 0)
            {
                numOfColumn = chapterFour.Chapters.Rows.Count;
            }

            var table = new Table();
            table.Append(GenerateTableProperties());
            var tableGrid1 = new TableGrid();
            var gridColumn = new GridColumn { Width = "3969" };
            tableGrid1.Append(gridColumn);
            for (var i = 0; i < numOfColumn; i++)
            {
                var gridColumn1 = new GridColumn{ Width = "400" };
                tableGrid1.Append(gridColumn1);
            }
            table.Append(tableGrid1);

            #region Шапка
            #region row
            var tableRow = new TableRow();

            #region cell
            var tableCell = new TableCell();
            TableCellProperties tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });

            tableCell.Append(tableCellProperties1);
            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            var spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            var justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold()
            };
            run.Append(runProp);
            run.Append(new Text("Наименование обеспечиваемых (последующих) дисциплин"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCellProperties1.Append(new GridSpan() { Val = numOfColumn });
            tableCell.Append(tableCellProperties1);
            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("№ разделов данной дисциплины, необходимых для изучения обеспечиваемых (последующих) дисциплин"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            table.Append(tableRow);
            #endregion

            #region row
            tableRow = new TableRow();

            #region cell
            tableCell = new TableCell();
            var tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            for (var i = 0; i < numOfColumn; i++)
            {
                #region cell
                tableCell = new TableCell();
                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Center };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                run = new Run();
                runProp = new RunProperties
                {
                    Bold = new Bold(),
                };
                run.Append(runProp);
                run.Append(new Text((i + 1).ToString()));
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion
            }

            table.Append(tableRow);
            #endregion
            #endregion

            #region данные
            for (var i = 0; i < 3; i++)
            {
                #region row
                tableRow = new TableRow();

                #region cell
                tableCell = new TableCell();
                tableCellProperties1 = new TableCellProperties();
                tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
                tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });

                tableCell.Append(tableCellProperties1);
                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Center };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                run = new Run();
                run.Append(new Text("Название дисциплины 1"));
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion

                for (var j = 0; j < numOfColumn; j++)
                {
                    var rand = new Random(2);
                    #region cell
                    tableCell = new TableCell();
                    tableCellProperties1 = new TableCellProperties();
                    tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
                    tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                    tableCell.Append(tableCellProperties1);
                    paragraph = new Paragraph();
                    paraProp = GetParagraphProperties("TableStyle");
                    spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                    justification = new Justification() { Val = JustificationValues.Center };
                    paraProp.Append(spacingBetweenLines);
                    paraProp.Append(justification);
                    run = new Run();
                    runProp = new RunProperties { Bold = new Bold() };
                    run.Append(runProp);
                    if (rand.Next() == 1)
                    {
                        run.Append(new Text("X"));
                    }
                    paragraph.Append(paraProp);
                    paragraph.Append(run);
                    tableCell.Append(paragraph);
                    tableRow.Append(tableCell);
                    #endregion
                }
                table.Append(tableRow);
                #endregion
            }
            #endregion

            _body.Append(table);
            #endregion

            run = new Run();
            run.Append(new Break { Type = BreakValues.Page });
            GenerateParagraph();
        }
Exemplo n.º 49
0
        private void GenerateChapterSix23()
        {
            var paraProp = new ParagraphProperties();
            var paragraph = new Paragraph();
            var runProp = new RunProperties();
            var run = new Run();

            #region chapterSix23
            var chapterSix23 = _sessionObjects.ChapterSixPartTwoThree;
            runProp = new RunProperties
            {
                Bold = new Bold(),
                Italic = new Italic()
            };
            run.Append(runProp);
            run.Append(new Text(chapterSix23.SubHeader1));
            paraProp = GetParagraphProperties("StyleWithoutIndentation");
            GenerateParagraph(run, paraProp);

            #region table
            var table = new Table();
            table.Append(GenerateTableProperties());
            var tableGrid1 = new TableGrid();
            tableGrid1.Append(new GridColumn { Width = "1843" });
            tableGrid1.Append(new GridColumn { Width = "6716" });
            table.Append(tableGrid1);

            #region header
            #region row
            var tableRow = new TableRow();

            #region cell
            var tableCell = new TableCell();
            TableCellProperties tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });

            tableCell.Append(tableCellProperties1);
            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            var spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            var justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
                Italic = new Italic()
            };
            run.Append(runProp);
            run.Append(new Text("№ Занятия"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCell.Append(tableCellProperties1);
            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
                Italic = new Italic()
            };
            run.Append(runProp);
            run.Append(new Text("Тема смостоятельного занятия"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            table.Append(tableRow);
            #endregion
            #endregion

            #region data
            for (var i = 0; i < chapterSix23.IndependentWork.Rows.Count; i++)
            {
                #region row
                tableRow = new TableRow();

                #region cell
                tableCell = new TableCell();
                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Center };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                run = new Run();
                run.Append(new Text((i + 1).ToString()));
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion

                #region cell
                tableCell = new TableCell();
                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Center };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                run = new Run();
                run.Append(new Text(chapterSix23.IndependentWork.Rows[i].ToString()));
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion

                table.Append(tableRow);
                #endregion
            }
            #endregion
            #endregion

            GenerateParagraph();

            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
                Italic = new Italic()
            };
            run.Append(runProp);
            run.Append(new Text(chapterSix23.SubHeader2));
            paraProp = GetParagraphProperties("StyleWithoutIndentation");
            GenerateParagraph(run, paraProp);

            foreach (var home in chapterSix23.HomeWork)
            {
                run = new Run();
                runProp = new RunProperties
                {
                    Bold = new Bold()
                };
                run.Append(runProp);
                run.Append(new Text(home.Rows[0]["Header"].ToString()));
                paraProp = GetParagraphProperties("StyleWithoutIndentation");
                GenerateParagraph(run, paraProp);

                for (var i = 0; i < home.Rows.Count; i++)
                {
                    paraProp = GetParagraphProperties();

                    run = new Run();
                    var str = String.Format("{0}. {1}", i + 1, home.Rows[i]["Text"]);
                    run.Append(new Text(str));

                    paragraph = new Paragraph();
                    paragraph.Append(paraProp);
                    paragraph.Append(run);
                    _body.Append(paragraph);
                }
            }
            #endregion
        }
Exemplo n.º 50
0
        private void GenerateChapterFourTable2()
        {
            var chapterFour = (ChapterFour)_sessionObjects.ChapterFour;
            var discipline = (Discipline)_additionalObjects.Discipline;

            var paraProp = new ParagraphProperties();
            var paragraph = new Paragraph();
            var runProp = new RunProperties();
            var run = new Run();
            var runs = new List<Run>();

            var table = new Table();
            table.Append(GenerateTableProperties());

            var tableGrid1 = new TableGrid();
            tableGrid1.Append(new GridColumn { Width = "450" });
            tableGrid1.Append(new GridColumn { Width = "3100" });
            tableGrid1.Append(new GridColumn { Width = "800" });
            tableGrid1.Append(new GridColumn { Width = "450" });
            tableGrid1.Append(new GridColumn { Width = "600" });
            tableGrid1.Append(new GridColumn { Width = "600" });
            tableGrid1.Append(new GridColumn { Width = "600" });
            tableGrid1.Append(new GridColumn { Width = "600" });
            tableGrid1.Append(new GridColumn { Width = "650" });
            tableGrid1.Append(new GridColumn { Width = "600" });
            tableGrid1.Append(new GridColumn { Width = "600" });

            table.Append(tableGrid1);

            #region Шапка

            #region row
            var tableRow = new TableRow();

            #region cell
            var tableCell = new TableCell();
            TableCellProperties tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCellProperties1.Append(new TextDirection() { Val = TextDirectionValues.BottomToTopLeftToRight });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            var spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            var justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("Номер раздела"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("Наименование раздела / темы"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCellProperties1.Append(new TextDirection() { Val = TextDirectionValues.BottomToTopLeftToRight });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("Обрабатываемые"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("компетенции"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCellProperties1.Append(new TextDirection() { Val = TextDirectionValues.BottomToTopLeftToRight });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("Семестр"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCellProperties1.Append(new TextDirection() { Val = TextDirectionValues.BottomToTopLeftToRight });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("Неделя семестра"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new GridSpan(){ Val = 6 });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("Часов по учебной (рабочей) программе"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            table.Append(tableRow);
            #endregion

            #region row
            tableRow = new TableRow();

            #region cell
            tableCell = new TableCell();
            var tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCellProperties1.Append(new TextDirection() { Val = TextDirectionValues.BottomToTopLeftToRight });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("Всего в уч. плане по разделу / теме"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new GridSpan(){ Val = 3 });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("Аудиторная работа"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCellProperties1.Append(new TextDirection() { Val = TextDirectionValues.BottomToTopLeftToRight });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("Самостоятельная"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("работа студента"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCellProperties1.Append(new TextDirection() { Val = TextDirectionValues.BottomToTopLeftToRight });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("Экзамен"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            table.Append(tableRow);
            #endregion

            #region row
            tableRow = new TableRow();

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCellProperties1.Append(new TextDirection() { Val = TextDirectionValues.BottomToTopLeftToRight });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("Всего"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new GridSpan(){ Val = 2 });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("В том числе"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            table.Append(tableRow);
            #endregion

            #region row
            tableRow = new TableRow();
            TableRowProperties tableRowProperties1 = new TableRowProperties();
            tableRowProperties1.Append(new TableRowHeight() { Val = (UInt32Value)1775U });
            tableRow.Append(tableRowProperties1);

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCellProperties1.Append(new TextDirection() { Val = TextDirectionValues.BottomToTopLeftToRight });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("Лекции"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProperties1 = new TableCellProperties();
            tableCellProperties1.Append(new VerticalMerge() { Val = MergedCellValues.Restart });
            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
            tableCellProperties1.Append(new TextDirection() { Val = TextDirectionValues.BottomToTopLeftToRight });
            tableCell.Append(tableCellProperties1);

            paragraph = new Paragraph();
            paraProp = GetParagraphProperties("TableStyle");
            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            justification = new Justification() { Val = JustificationValues.Center };
            paraProp.Append(spacingBetweenLines);
            paraProp.Append(justification);
            run = new Run();
            runProp = new RunProperties
            {
                Bold = new Bold(),
            };
            run.Append(runProp);
            run.Append(new Text("Практич. занятия"));
            paragraph.Append(paraProp);
            paragraph.Append(run);
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            #region cell
            tableCell = new TableCell();
            tableCellProp = new TableCellProperties { VerticalMerge = new VerticalMerge() };
            tableCell.Append(tableCellProp);
            paragraph = new Paragraph();
            tableCell.Append(paragraph);
            tableRow.Append(tableCell);
            #endregion

            table.Append(tableRow);
            #endregion
            #endregion

            #region Данные

            var dstTable = chapterFour.DistributionStudyTime;
            var dstSummTable = chapterFour.DistributionStudyTimeSumm;
            var chSummTable = chapterFour.ChaptersSumm;
            for (var k = 0; k < chSummTable.Rows.Count; k++)
            {
                #region row Раздел
                tableRow = new TableRow();

                #region cell
                tableCell = new TableCell();
                tableCellProperties1 = new TableCellProperties();
                tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                tableCell.Append(tableCellProperties1);

                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Center };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                run = new Run();
                runProp = new RunProperties { Bold = new Bold() };
                run.Append(runProp);
                run.Append(new Text(chSummTable.Rows[k]["ChapterIndex"].ToString()));
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion

                #region cell
                tableCell = new TableCell();
                tableCellProperties1 = new TableCellProperties();
                tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                tableCell.Append(tableCellProperties1);

                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Left };
                Indentation indentation = new Indentation() { Left = "87" };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                paraProp.Append(indentation);
                run = new Run();
                runProp = new RunProperties {
                    Italic = new Italic(),
                    Bold = new Bold()
                };
                run.Append(runProp);
                run.Append(new Text(chSummTable.Rows[k]["ChapterName"].ToString()));
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion

                #region cell
                tableCell = new TableCell();
                tableCellProperties1 = new TableCellProperties();
                tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                tableCell.Append(tableCellProperties1);

                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Left };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                run = new Run();
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion

                #region cell
                tableCell = new TableCell();
                tableCellProperties1 = new TableCellProperties();
                tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                tableCell.Append(tableCellProperties1);

                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Left };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                run = new Run();
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion

                #region cell
                tableCell = new TableCell();
                tableCellProperties1 = new TableCellProperties();
                tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                tableCell.Append(tableCellProperties1);

                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Left };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                run = new Run();
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion

                for (var i = 2; i < chSummTable.Columns.Count; i++)
                {
                    #region cell
                    tableCell = new TableCell();
                    tableCellProperties1 = new TableCellProperties();
                    tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                    tableCell.Append(tableCellProperties1);

                    paragraph = new Paragraph();
                    paraProp = GetParagraphProperties("TableStyle");
                    spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                    justification = new Justification() { Val = JustificationValues.Center };
                    paraProp.Append(spacingBetweenLines);
                    paraProp.Append(justification);
                    run = new Run();
                    runProp = new RunProperties { Bold = new Bold() };
                    run.Append(runProp);
                    var num = Helper.ConvertObjectToInt(chSummTable.Rows[k][i]);
                    var str = "";
                    if(num != 0)
                    {
                        str = num.ToString();
                    }
                    run.Append(new Text(str));
                    paragraph.Append(paraProp);
                    paragraph.Append(run);
                    tableCell.Append(paragraph);
                    tableRow.Append(tableCell);
                    #endregion
                }

                table.Append(tableRow);
                #endregion

                var indexTheme = 0;
                for (var i = 0; i < dstTable.Rows.Count; i++)
                {
                    if (Helper.ConvertObjectToInt(dstTable.Rows[i]["Номер раздела"]) == Helper.ConvertObjectToInt(chSummTable.Rows[k]["ChapterIndex"]))
                    {
                        indexTheme++;

                        #region row Тема
                        tableRow = new TableRow();

                        #region cell
                        tableCell = new TableCell();
                        tableCellProperties1 = new TableCellProperties();
                        tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                        tableCell.Append(tableCellProperties1);

                        paragraph = new Paragraph();
                        paraProp = GetParagraphProperties("TableStyle");
                        spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                        justification = new Justification() { Val = JustificationValues.Left };
                        paraProp.Append(spacingBetweenLines);
                        paraProp.Append(justification);
                        run = new Run();
                        paragraph.Append(paraProp);
                        paragraph.Append(run);
                        tableCell.Append(paragraph);
                        tableRow.Append(tableCell);
                        #endregion

                        #region cell
                        tableCell = new TableCell();
                        tableCellProperties1 = new TableCellProperties();
                        tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                        tableCell.Append(tableCellProperties1);

                        paragraph = new Paragraph();
                        paraProp = GetParagraphProperties("TableStyle");
                        spacingBetweenLines = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto };
                        indentation = new Indentation() { Left = "87" };
                        justification = new Justification() { Val = JustificationValues.Left };
                        paraProp.Append(spacingBetweenLines);
                        paraProp.Append(indentation);
                        paraProp.Append(justification);
                        run = new Run();
                        var str = String.Format("Тема {0}.{1}. {2}",
                            Helper.ConvertObjectToInt(chSummTable.Rows[k]["ChapterIndex"]),
                            indexTheme,
                            dstTable.Rows[i]["Наименование темы"]
                            );
                        run.Append(new Text(str));
                        paragraph.Append(paraProp);
                        paragraph.Append(run);
                        tableCell.Append(paragraph);
                        tableRow.Append(tableCell);
                        #endregion

                        #region cell
                        tableCell = new TableCell();
                        tableCellProperties1 = new TableCellProperties();
                        tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                        tableCell.Append(tableCellProperties1);

                        #region компетенции
                        var competence = dstTable.Rows[i]["Компетенции"].ToString().Replace(" ", "").Split(',');
                        foreach (var c in competence)
                        {
                            paragraph = new Paragraph();
                            paraProp = GetParagraphProperties("TableStyle");
                            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                            justification = new Justification() { Val = JustificationValues.Center };
                            paraProp.Append(spacingBetweenLines);
                            paraProp.Append(justification);
                            run = new Run();
                            run.Append(new Text(c));
                            paragraph.Append(paraProp);
                            paragraph.Append(run);
                            tableCell.Append(paragraph);
                        }
                        if (competence.Length == 0)
                        {
                            paragraph = new Paragraph();
                            paraProp = GetParagraphProperties("TableStyle");
                            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                            justification = new Justification() { Val = JustificationValues.Center };
                            paraProp.Append(spacingBetweenLines);
                            paraProp.Append(justification);
                            run = new Run();
                            run.Append(new Text());
                            paragraph.Append(paraProp);
                            paragraph.Append(run);
                            tableCell.Append(paragraph);
                        }
                        #endregion

                        tableRow.Append(tableCell);
                        #endregion

                        #region cell
                        tableCell = new TableCell();
                        tableCellProperties1 = new TableCellProperties();
                        tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                        tableCell.Append(tableCellProperties1);

                        paragraph = new Paragraph();
                        paraProp = GetParagraphProperties("TableStyle");
                        spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                        justification = new Justification() { Val = JustificationValues.Center };
                        paraProp.Append(spacingBetweenLines);
                        paraProp.Append(justification);
                        run = new Run();
                        run.Append(new Text(dstTable.Rows[i]["Семестр"].ToString()));
                        paragraph.Append(paraProp);
                        paragraph.Append(run);
                        tableCell.Append(paragraph);
                        tableRow.Append(tableCell);
                        #endregion

                        #region cell
                        tableCell = new TableCell();
                        tableCellProperties1 = new TableCellProperties();
                        tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                        tableCell.Append(tableCellProperties1);

                        paragraph = new Paragraph();
                        paraProp = GetParagraphProperties("TableStyle");
                        spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                        justification = new Justification() { Val = JustificationValues.Center };
                        paraProp.Append(spacingBetweenLines);
                        paraProp.Append(justification);
                        run = new Run();
                        run.Append(new Text(dstTable.Rows[i]["Неделя семестра"].ToString()));
                        paragraph.Append(paraProp);
                        paragraph.Append(run);
                        tableCell.Append(paragraph);
                        tableRow.Append(tableCell);
                        #endregion

                        //dstSummTable
                        //обнаружил какой-то столбец ChapterIndex, уменьшил фор на 1
                        //dstSummTable.Columns.Count - 1
                        for (var j = 1; j < dstSummTable.Columns.Count - 1; j++)
                        {
                            #region cell
                            tableCell = new TableCell();
                            tableCellProperties1 = new TableCellProperties();
                            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                            tableCell.Append(tableCellProperties1);

                            paragraph = new Paragraph();
                            paraProp = GetParagraphProperties("TableStyle");
                            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                            justification = new Justification() { Val = JustificationValues.Center };
                            paraProp.Append(spacingBetweenLines);
                            paraProp.Append(justification);
                            run = new Run();
                            run.Append(new Text(dstSummTable.Rows[i][j].ToString()));
                            paragraph.Append(paraProp);
                            paragraph.Append(run);
                            tableCell.Append(paragraph);
                            tableRow.Append(tableCell);
                            #endregion
                        }

                        //dstTable
                        for (var j = 5; j < dstTable.Columns.Count; j++)
                        {
                            #region cell
                            tableCell = new TableCell();
                            tableCellProperties1 = new TableCellProperties();
                            tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                            tableCell.Append(tableCellProperties1);

                            paragraph = new Paragraph();
                            paraProp = GetParagraphProperties("TableStyle");
                            spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                            justification = new Justification() { Val = JustificationValues.Center };
                            paraProp.Append(spacingBetweenLines);
                            paraProp.Append(justification);
                            run = new Run();
                            run.Append(new Text(dstTable.Rows[i][j].ToString()));
                            paragraph.Append(paraProp);
                            paragraph.Append(run);
                            tableCell.Append(paragraph);
                            tableRow.Append(tableCell);
                            #endregion
                        }

                        //экзамен. пустая ячейка
                        #region cell
                        tableCell = new TableCell();
                        tableCellProperties1 = new TableCellProperties();
                        tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                        tableCell.Append(tableCellProperties1);

                        paragraph = new Paragraph();
                        paraProp = GetParagraphProperties("TableStyle");
                        spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                        justification = new Justification() { Val = JustificationValues.Center };
                        paraProp.Append(spacingBetweenLines);
                        paraProp.Append(justification);
                        run = new Run();
                        paragraph.Append(paraProp);
                        paragraph.Append(run);
                        tableCell.Append(paragraph);
                        tableRow.Append(tableCell);
                        #endregion

                        table.Append(tableRow);
                        #endregion
                    }
                }
            }

            #region Экзамены
            var chapterNum = chapterFour.Chapters.Rows.Count;
            for (var i = 0; i < discipline.Semesters.Count; i++)
            {
                if (discipline.Semesters[i].ValidationHours != 0)
                {
                    tableRow = new TableRow();

                    #region cell
                    tableCell = new TableCell();
                    tableCellProperties1 = new TableCellProperties();
                    tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                    tableCell.Append(tableCellProperties1);

                    paragraph = new Paragraph();
                    paraProp = GetParagraphProperties("TableStyle");
                    spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                    justification = new Justification() { Val = JustificationValues.Left };
                    paraProp.Append(spacingBetweenLines);
                    paraProp.Append(justification);
                    run = new Run(new Text(chapterNum.ToString()));
                    chapterNum++;
                    paragraph.Append(paraProp);
                    paragraph.Append(run);
                    tableCell.Append(paragraph);
                    tableRow.Append(tableCell);
                    #endregion

                    #region cell
                    tableCell = new TableCell();
                    tableCellProperties1 = new TableCellProperties();
                    tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                    tableCell.Append(tableCellProperties1);

                    paragraph = new Paragraph();
                    paraProp = GetParagraphProperties("TableStyle");
                    spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                    justification = new Justification() { Val = JustificationValues.Left };
                    var indentation = new Indentation() { Left = "87" };
                    paraProp.Append(indentation);
                    paraProp.Append(spacingBetweenLines);
                    paraProp.Append(justification);
                    var str = "Подготовка к " + discipline.Semesters[i].Validation + "у";
                    run = new Run(new Text(str));
                    paragraph.Append(paraProp);
                    paragraph.Append(run);
                    tableCell.Append(paragraph);
                    tableRow.Append(tableCell);
                    #endregion

                    #region cell
                    tableCell = new TableCell();
                    tableCellProperties1 = new TableCellProperties();
                    tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                    tableCell.Append(tableCellProperties1);

                    paragraph = new Paragraph();
                    paraProp = GetParagraphProperties("TableStyle");
                    spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                    justification = new Justification() { Val = JustificationValues.Left };
                    paraProp.Append(spacingBetweenLines);
                    paraProp.Append(justification);
                    run = new Run();
                    paragraph.Append(paraProp);
                    paragraph.Append(run);
                    tableCell.Append(paragraph);
                    tableRow.Append(tableCell);
                    #endregion

                    #region cell
                    tableCell = new TableCell();
                    tableCellProperties1 = new TableCellProperties();
                    tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                    tableCell.Append(tableCellProperties1);

                    paragraph = new Paragraph();
                    paraProp = GetParagraphProperties("TableStyle");
                    spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                    justification = new Justification() { Val = JustificationValues.Center };
                    paraProp.Append(spacingBetweenLines);
                    paraProp.Append(justification);
                    run = new Run(new Text(discipline.Semesters[i].Number.ToString()));
                    paragraph.Append(paraProp);
                    paragraph.Append(run);
                    tableCell.Append(paragraph);
                    tableRow.Append(tableCell);
                    #endregion

                    for (var z = 0; z < 6; z++)
                    {
                        #region cell
                        tableCell = new TableCell();
                        tableCellProperties1 = new TableCellProperties();
                        tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                        tableCell.Append(tableCellProperties1);

                        paragraph = new Paragraph();
                        paraProp = GetParagraphProperties("TableStyle");
                        spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                        justification = new Justification() { Val = JustificationValues.Left };
                        paraProp.Append(spacingBetweenLines);
                        paraProp.Append(justification);
                        run = new Run();
                        paragraph.Append(paraProp);
                        paragraph.Append(run);
                        tableCell.Append(paragraph);
                        tableRow.Append(tableCell);
                        #endregion
                    }

                    #region cell
                    tableCell = new TableCell();
                    tableCellProperties1 = new TableCellProperties();
                    tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                    tableCell.Append(tableCellProperties1);

                    paragraph = new Paragraph();
                    paraProp = GetParagraphProperties("TableStyle");
                    spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                    justification = new Justification() { Val = JustificationValues.Center };
                    paraProp.Append(spacingBetweenLines);
                    paraProp.Append(justification);
                    run = new Run(new Text(discipline.Semesters[i].ValidationHours.ToString()));
                    paragraph.Append(paraProp);
                    paragraph.Append(run);
                    tableCell.Append(paragraph);
                    tableRow.Append(tableCell);
                    #endregion

                    table.Append(tableRow);
                }
            }
            #endregion

            var dstAllSummTable = chapterFour.DistributionStudyTimeCheckSumm;
            for (var i = 0; i < dstAllSummTable.Rows.Count; i++)
            {
                #region row общее количество часов
                tableRow = new TableRow();

                #region cell
                tableCell = new TableCell();
                tableCellProperties1 = new TableCellProperties();
                tableCellProperties1 = new TableCellProperties();
                Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D9D9D9" };
                tableCellProperties1.Append(shading1);
                tableCellProperties1.Append(new GridSpan() { Val = 5 });
                tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                tableCell.Append(tableCellProperties1);

                paragraph = new Paragraph();
                paraProp = GetParagraphProperties("TableStyle");
                spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                justification = new Justification() { Val = JustificationValues.Center };
                paraProp.Append(spacingBetweenLines);
                paraProp.Append(justification);
                run = new Run();
                runProp = new RunProperties
                {
                    Bold = new Bold(),
                };
                run.Append(runProp);
                run.Append(new Text(dstAllSummTable.Rows[i][0].ToString()));
                paragraph.Append(paraProp);
                paragraph.Append(run);
                tableCell.Append(paragraph);
                tableRow.Append(tableCell);
                #endregion

                for (var j = 1; j < dstAllSummTable.Columns.Count; j++)
                {
                    #region cell
                    tableCell = new TableCell();
                    tableCellProperties1 = new TableCellProperties();
                    tableCellProperties1 = new TableCellProperties();
                    shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D9D9D9" };
                    tableCellProperties1.Append(shading1);
                    tableCellProperties1.Append(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center });
                    tableCell.Append(tableCellProperties1);

                    paragraph = new Paragraph();
                    paraProp = GetParagraphProperties("TableStyle");
                    spacingBetweenLines = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                    justification = new Justification() { Val = JustificationValues.Center };
                    paraProp.Append(spacingBetweenLines);
                    paraProp.Append(justification);
                    run = new Run();
                    runProp = new RunProperties
                    {
                        Bold = new Bold(),
                    };
                    run.Append(runProp);
                    var num = Helper.ConvertObjectToInt(dstAllSummTable.Rows[i][j]);
                    var str = "";
                    if (num != 0)
                    {
                        str = num.ToString();
                    }
                    run.Append(new Text(str));
                    paragraph.Append(paraProp);
                    paragraph.Append(run);
                    tableCell.Append(paragraph);
                    tableRow.Append(tableCell);
                    #endregion
                }
                table.Append(tableRow);
                #endregion
            }

            #endregion

            _body.Append(table);

            GenerateParagraph();
        }
        private Table GenerateBasiceReportDataTable()
        {
            Table table1 = new Table();

            TableProperties tableProperties1 = new TableProperties();
            TableStyle tableStyle1 = new TableStyle() { Val = "TableGrid" };
            TablePositionProperties tablePositionProperties1 = new TablePositionProperties() { LeftFromText = 180, RightFromText = 180, VerticalAnchor = VerticalAnchorValues.Text, HorizontalAnchor = HorizontalAnchorValues.Margin, TablePositionXAlignment = HorizontalAlignmentValues.Center, TablePositionY = 103 };
            TableWidth tableWidth1 = new TableWidth() { Width = "15026", Type = TableWidthUnitValues.Dxa };
            TableLook tableLook1 = new TableLook() { Val = "04A0", FirstRow = true, LastRow = false, FirstColumn = true, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = true };

            tableProperties1.Append(tableStyle1);
            tableProperties1.Append(tablePositionProperties1);
            tableProperties1.Append(tableWidth1);
            tableProperties1.Append(tableLook1);

            TableGrid tableGrid1 = new TableGrid();
            GridColumn gridColumn1 = new GridColumn() { Width = "15026" };

            tableGrid1.Append(gridColumn1);

            TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "004E307B", RsidTableRowProperties = "00D273DB" };

            TableCell tableCell1 = new TableCell();

            TableCellProperties tableCellProperties1 = new TableCellProperties();
            TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "15026", Type = TableWidthUnitValues.Dxa };

            tableCellProperties1.Append(tableCellWidth1);

            Paragraph paragraph1 = new Paragraph() { RsidParagraphMarkRevision = "004E307B", RsidParagraphAddition = "004E307B", RsidParagraphProperties = "004E307B", RsidRunAdditionDefault = "004E307B" };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();
            Justification justification1 = new Justification() { Val = JustificationValues.Center };

            paragraphProperties1.Append(justification1);

            paragraph1.Append(paragraphProperties1);

            tableCell1.Append(tableCellProperties1);
            tableCell1.Append(paragraph1);

            tableRow1.Append(tableCell1);

            table1.Append(tableProperties1);
            table1.Append(tableGrid1);
            table1.Append(tableRow1);
            return table1;
        }
        private TableCell BuildCell(string text, int gridSpan = 1, VerticalMerge vm = null, bool bold = false)
        {
            TableCell cell = new TableCell();
            Paragraph p = new Paragraph();
            ParagraphProperties paragraphProperties = new ParagraphProperties();

            Justification justification = new Justification() { Val = JustificationValues.Center };
            paragraphProperties.Append(justification);

            if (bold)
            {
                ParagraphMarkRunProperties paragraphMarkRunProperties = new ParagraphMarkRunProperties();
                Bold boldStyle = new Bold();

                paragraphMarkRunProperties.Append(boldStyle);
                paragraphProperties.Append(paragraphMarkRunProperties);
            }
            p.Append(paragraphProperties);

            if (!string.IsNullOrEmpty(text))
            {
                Run r = new Run();
                RunProperties runProperties = new RunProperties();

                if (bold)
                {
                    Bold boldStyle = new Bold();

                    runProperties.Append(boldStyle);
                }

                r.Append(runProperties);

                Text t = new Text { Text = text };
                r.AppendChild<Text>(t);

                p.AppendChild<Run>(r);
            }

            TableCellProperties cellProperty = new TableCellProperties();
            TableCellVerticalAlignment tableCellVerticalAlignment1 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center };

            cellProperty.Append(tableCellVerticalAlignment1);

            if (gridSpan > 1)
            {
                GridSpan gs = new GridSpan { Val = gridSpan };
                cellProperty.Append(gs);
            }

            if (vm != null)
            {
                cellProperty.Append(vm);
            }

            cell.Append(cellProperty);
            cell.Append(p);

            return cell;
        }
Exemplo n.º 53
0
        private TableCell CreateLastNoBorderCell()
        {
            TableCellProperties tableCellProperties = new TableCellProperties();

            TableCellWidth tableCellWidth = new TableCellWidth() { Type = TableWidthUnitValues.Auto };
            TableCellBorders tableCellBorders1 = new TableCellBorders();
            TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Nil };
            LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Nil };
            BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Nil };
            RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Nil };

            tableCellBorders1.Append(topBorder1);
            tableCellBorders1.Append(leftBorder1);
            tableCellBorders1.Append(bottomBorder1);
            tableCellBorders1.Append(rightBorder1);

            tableCellProperties.Append(tableCellWidth);
            tableCellProperties.Append(tableCellBorders1);

            TableCell tableCell = new TableCell();
            tableCell.Append(tableCellProperties);
            tableCell.Append(CreateEmptyParagraph());
            return tableCell;
        }
Exemplo n.º 54
0
        public TableRow GenerateTableRow(CellProps[] cellProps, UInt32Value height)
        {
            TableRow tableRow1 = new TableRow();
            TableRowProperties tableRowProperties1 = generateTableRowProperties(height);
            tableRow1.Append(tableRowProperties1);

            foreach (CellProps cp in cellProps) {
                if (cp.span == 0) continue;
                TableCell tableCell1 = new TableCell();
                TableCellProperties tableCellProperties1 = new TableCellProperties();

                TableCellBorders tableCellBorders1 = generateTableCellBordersPlain();
                Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" };
                NoWrap noWrap1 = new NoWrap();
                TableCellVerticalAlignment tableCellVerticalAlignment1 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center };
                HideMark hideMark1 = new HideMark();

                if (cp.span > 1) {
                    GridSpan span = new GridSpan() { Val = (Int32Value)cp.span };
                    tableCellProperties1.Append(span);
                }

                tableCellProperties1.Append(tableCellBorders1);
                tableCellProperties1.Append(shading1);
                tableCellProperties1.Append(noWrap1);
                tableCellProperties1.Append(tableCellVerticalAlignment1);
                tableCellProperties1.Append(hideMark1);

                Paragraph paragraph1 = new Paragraph();

                ParagraphProperties paragraphProperties1 = new ParagraphProperties();
                Justification justification1 = new Justification() { Val = cp.align };

                ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
                FontSize fontSize1 = new FontSize() { Val = "18" };
                FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "18" };

                paragraphMarkRunProperties1.Append(fontSize1);
                paragraphMarkRunProperties1.Append(fontSizeComplexScript1);

                paragraphProperties1.Append(justification1);
                paragraphProperties1.Append(paragraphMarkRunProperties1);

                Run run1 = new Run();

                RunProperties runProperties1 = new RunProperties();
                FontSize fontSize2 = new FontSize() { Val = "18" };
                FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "18" };

                runProperties1.Append(fontSize2);
                runProperties1.Append(fontSizeComplexScript2);

                run1.Append(runProperties1);
                if (cp.text != null) {
                    Text text1 = new Text();
                    text1.Text = cp.text;
                    run1.Append(text1);
                }

                paragraph1.Append(paragraphProperties1);
                paragraph1.Append(run1);

                tableCell1.Append(tableCellProperties1);
                tableCell1.Append(paragraph1);
                tableRow1.Append(tableCell1);

            }

            return tableRow1;
        }
Exemplo n.º 55
0
        private TableCell CreateNoBorderCell(string text)
        {
            TableCellProperties tableCellProperties = new TableCellProperties();
            int cellWidth = CalcTextWidth(text.Length);

            TableCellWidth tableCellWidth = new TableCellWidth() { Width = cellWidth.ToString(), Type = TableWidthUnitValues.Dxa };
            TableCellBorders tableCellBorders1 = new TableCellBorders();
            TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Nil };
            LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Nil };
            BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Nil };
            RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Nil };

            tableCellBorders1.Append(topBorder1);
            tableCellBorders1.Append(leftBorder1);
            tableCellBorders1.Append(bottomBorder1);
            tableCellBorders1.Append(rightBorder1);

            tableCellProperties.Append(tableCellWidth);
            tableCellProperties.Append(tableCellBorders1);

            TableCell tableCell = new TableCell();
            tableCell.Append(tableCellProperties);
            tableCell.Append(CreateTextParagraph(text));
            return tableCell;
        }
Exemplo n.º 56
0
        public TableRow GenerateTableFooterRow(CellProps[] cellProps, UInt32Value height)
        {
            // Add table row properties
            TableRow tableRow1 = new TableRow();
            TableRowProperties tableRowProperties1 = generateTableRowProperties(height);
            tableRow1.Append(tableRowProperties1);

            foreach (CellProps cp in cellProps) {
                if (cp.span == 0) continue;
                TableCell tableCell1 = new TableCell();
                TableCellProperties tableCellProperties1 = new TableCellProperties();
                TableCellBorders tableCellBorders1;

                if (cp.boxed) {
                    tableCellBorders1 = generateTableCellBordersBox();
                } else {
                    tableCellBorders1 = generateTableCellBordersPlain();
                }

                Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" };
                NoWrap noWrap1 = new NoWrap();
                TableCellVerticalAlignment tableCellVerticalAlignment1 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center };
                HideMark hideMark1 = new HideMark();

                tableCellProperties1.Append(tableCellBorders1);
                tableCellProperties1.Append(shading1);
                tableCellProperties1.Append(noWrap1);
                tableCellProperties1.Append(tableCellVerticalAlignment1);
                tableCellProperties1.Append(hideMark1);

                Paragraph paragraph1 = new Paragraph();

                ParagraphProperties paragraphProperties1 = new ParagraphProperties();
                Justification justification1 = new Justification() { Val = JustificationValues.Right };

                ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
                Bold bold1 = new Bold();
                BoldComplexScript boldComplexScript1 = new BoldComplexScript();
                Color color1 = new Color() { Val = "333399" };
                FontSize fontSize1 = new FontSize() { Val = "18" };
                FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "18" };

                paragraphMarkRunProperties1.Append(bold1);
                paragraphMarkRunProperties1.Append(boldComplexScript1);
                paragraphMarkRunProperties1.Append(color1);
                paragraphMarkRunProperties1.Append(fontSize1);
                paragraphMarkRunProperties1.Append(fontSizeComplexScript1);

                paragraphProperties1.Append(justification1);
                paragraphProperties1.Append(paragraphMarkRunProperties1);

                Run run1 = new Run();

                RunProperties runProperties1 = new RunProperties();
                Bold bold2 = new Bold();
                BoldComplexScript boldComplexScript2 = new BoldComplexScript();
                Color color2 = new Color() { Val = "333399" };
                FontSize fontSize2 = new FontSize() { Val = "18" };
                FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "18" };

                runProperties1.Append(bold2);
                runProperties1.Append(boldComplexScript2);
                runProperties1.Append(color2);
                runProperties1.Append(fontSize2);
                runProperties1.Append(fontSizeComplexScript2);
                run1.Append(runProperties1);

                if (cp.text != null) {
                    Text text1 = new Text();
                    text1.Text = cp.text;
                    run1.Append(text1);
                }

                paragraph1.Append(paragraphProperties1);
                paragraph1.Append(run1);

                tableCell1.Append(tableCellProperties1);
                tableCell1.Append(paragraph1);
                tableRow1.Append(tableCell1);
            }
            return tableRow1;
        }
Exemplo n.º 57
0
        private TableCell CreateUnderlineCell(int cellWidth)
        {
            TableCellProperties tableCellProperties8 = new TableCellProperties();
            TableCellWidth tableCellWidth8 = new TableCellWidth() { Width = cellWidth.ToString(), Type = TableWidthUnitValues.Dxa };

            TableCellBorders tableCellBorders1 = new TableCellBorders();
            TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Nil };
            LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Nil };
            BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)2U, Space = (UInt32Value)0U };
            RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Nil };

            tableCellBorders1.Append(topBorder1);
            tableCellBorders1.Append(leftBorder1);
            tableCellBorders1.Append(bottomBorder1);
            tableCellBorders1.Append(rightBorder1);

            tableCellProperties8.Append(tableCellWidth8);
            tableCellProperties8.Append(tableCellBorders1);

            TableCell tableCell = new TableCell();
            tableCell.Append(tableCellProperties8);
            tableCell.Append(CreateEmptyParagraph());
            return tableCell;
        }
Exemplo n.º 58
0
        // Creates an Table instance and adds its children.
        public static Table GenerateTable(Document doc, System.Data.DataTable datetable)
        {
            Table table = new Table();
            //
            PageSize pagesize = doc.Body.Descendants<PageSize>().First();
            PageMargin pagemargin = doc.Body.Descendants<PageMargin>().First();
            //
            var AvailableSumWidth = (int)(pagesize.Width - pagemargin.Right - pagemargin.Left);

            TableBorders tborder = new Func<TableBorders>(delegate()
            {
                TableBorders tableBorders1 = new TableBorders();
                TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
                LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
                BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
                RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
                InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
                InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };

                tableBorders1.Append(topBorder1);
                tableBorders1.Append(leftBorder1);
                tableBorders1.Append(bottomBorder1);
                tableBorders1.Append(rightBorder1);
                tableBorders1.Append(insideHorizontalBorder1);
                tableBorders1.Append(insideVerticalBorder1);
                return tableBorders1;
            })();

            table.AppendChild<TableProperties>(new TableProperties(
               new TableStyle() { Val = "a7" },
               tborder,
               new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto },
               new TableLook() { Val = "04A0", FirstRow = true, LastRow = false, FirstColumn = true, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = true }
            ));

            int sumColumn = datetable.Columns.Count;

            int averwidth = AvailableSumWidth / sumColumn;

            Double set_colSumW = 0;
            int remainSumW = 0;
            foreach (System.Data.DataColumn item in datetable.Columns)
            {
                Object col_w = item.ExtendedProperties["width"];
                if (col_w != null) { set_colSumW += Convert.ToDouble(col_w); remainSumW += averwidth; }
            }

            foreach (System.Data.DataColumn item in datetable.Columns)
            {
                Object col_w = item.ExtendedProperties["width"];
                if (col_w != null) item.ExtendedProperties.Add("WordWidth", Math.Floor((remainSumW * Convert.ToDouble(col_w) / set_colSumW)));
                else item.ExtendedProperties.Add("WordWidth", averwidth);
            }

            for (int i = 0; i < sumColumn; i++)
            {
                int col_w = Convert.ToInt32(datetable.Columns[i].ExtendedProperties["WordWidth"]);
                table.AppendChild<GridColumn>(new GridColumn() { Width = col_w.ToString() });
            }
            List<System.Data.DataRow> lstCol = new List<System.Data.DataRow>();
            System.Data.DataRow dr = datetable.NewRow();
            List<object> lstObj = new List<object>();

            foreach (System.Data.DataColumn item in datetable.Columns)
            {
                lstObj.Add(item.ColumnName);
            }

            dr.ItemArray = lstObj.ToArray();
            datetable.Rows.InsertAt(dr, 0);

            foreach (System.Data.DataRow item in datetable.Rows)
            {
                TableRow tableRow = new TableRow() { RsidTableRowAddition = "00D24D12", RsidTableRowProperties = "00D24D12" };
                for (int i = 0; i < sumColumn; i++)
                {
                    int col_w = Convert.ToInt32(datetable.Columns[i].ExtendedProperties["WordWidth"]);

                    string cellValue = item[i].ToString();
                    TableCell tableCell1 = new TableCell();

                    TableCellProperties tableCellProperties1 = new TableCellProperties();
                    TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = col_w.ToString(), Type = TableWidthUnitValues.Dxa };

                    tableCellProperties1.Append(tableCellWidth1);

                    Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "00D24D12", RsidParagraphProperties = "003246FB", RsidRunAdditionDefault = "00D24D12" };

                    Run run1 = new Run();

                    RunProperties runProperties1 = new RunProperties();
                    RunFonts runFonts1 = new RunFonts() { Hint = FontTypeHintValues.EastAsia };

                    runProperties1.Append(runFonts1);
                    Text text1 = new Text();
                    text1.Text = cellValue;

                    run1.Append(runProperties1);
                    run1.Append(text1);
                    BookmarkStart bookmarkStart1 = new BookmarkStart();
                    BookmarkEnd bookmarkEnd1 = new BookmarkEnd();

                    paragraph1.Append(run1);
                    paragraph1.Append(bookmarkStart1);
                    paragraph1.Append(bookmarkEnd1);

                    tableCell1.Append(tableCellProperties1);
                    tableCell1.Append(paragraph1);

                    tableRow.Append(tableCell1);
                }
                table.Append(tableRow);
            }
            return table;
        }
        public byte[] CreateWordDocument(Schema schemaData, string templateLocation)
        {

            byte[] binFile = null;


            byte[] byteArray = File.ReadAllBytes(templateLocation);
            using (MemoryStream mem = new MemoryStream())
            {
                mem.Write(byteArray, 0, (int) byteArray.Length);

                using (WordprocessingDocument doc = WordprocessingDocument.Open(mem, true))
                {
                    Table table = doc.MainDocumentPart.Document.Body.GetFirstChild<Table>();

                    RunFonts textFonts =
                        table.GetFirstChild<TableRow>().GetFirstChild<TableCell>().GetFirstChild<Paragraph>().
                            GetFirstChild<ParagraphProperties>().GetFirstChild<ParagraphMarkRunProperties>().
                            GetFirstChild<RunFonts>();
                    string paragraphPropertiesOuterXml = getParagraphPropertiesXml(textFonts);
                    string runPropertiesOuterXml = getRunPropertiesXml(textFonts);


                    table.Elements<TableRow>().ElementAt(0).Elements<TableCell>().ElementAt(1).Elements<Paragraph>().ElementAt(0).Append(new Run(new RunProperties(runPropertiesOuterXml), new Text(schemaData.Title)));
                    table.Elements<TableRow>().ElementAt(1).Elements<TableCell>().ElementAt(1).Elements<Paragraph>().ElementAt(0).Append(new Run(new RunProperties(runPropertiesOuterXml), new Text(schemaData.Description)));
                    table.Elements<TableRow>().ElementAt(2).Elements<TableCell>().ElementAt(1).Elements<Paragraph>().ElementAt(0).Append(new Run(new RunProperties(runPropertiesOuterXml), new Text(schemaData.SchemaType + TEXT_SCHEMA)));
                    table.Elements<TableRow>().ElementAt(3).Elements<TableCell>().ElementAt(1).Elements<Paragraph>().ElementAt(0).Append(new Run(new RunProperties(runPropertiesOuterXml), new Text(schemaData.RootElementName)));
                    table.Elements<TableRow>().ElementAt(4).Elements<TableCell>().ElementAt(1).Elements<Paragraph>().ElementAt(0).Append(new Run(new RunProperties(runPropertiesOuterXml), new Text(schemaData.NamespaceUri)));


                    // Save properties for metadata row
                    TableRowProperties metaDataRowProperties =
                        table.Elements<TableRow>().ElementAt(5).GetFirstChild<TableRowProperties>();
                    TableCellProperties metaDataCellProperties =
                        table.Elements<TableRow>().ElementAt(5).GetFirstChild<TableCell>().GetFirstChild<TableCellProperties>();
                    ParagraphProperties metaDataParagraphProperties =
                        table.Elements<TableRow>().ElementAt(5).GetFirstChild<TableCell>().GetFirstChild<Paragraph>().GetFirstChild<ParagraphProperties>();
                    RunProperties metaDataRunProperties =
                        table.Elements<TableRow>().ElementAt(5).GetFirstChild<TableCell>().GetFirstChild<Paragraph>().GetFirstChild<Run>().GetFirstChild<RunProperties>();


                    // Clear empty rows
                    foreach (TableRow row in table.Elements<TableRow>())
                    {
                        Text text = row.Elements<TableCell>().ElementAt(1).GetFirstChild<Paragraph>().GetFirstChild<Run>().GetFirstChild<Text>();

                        if (string.IsNullOrEmpty(text.InnerText.Trim()))
                        {
                            table.RemoveChild(row);
                        }
                    }

                    foreach (SchemaField field in schemaData.Fields)
                    {
                        TableRow tr = new TableRow();

                        TableCell tc1 = new TableCell();
                        tc1.Append(new Paragraph(new ParagraphProperties(paragraphPropertiesOuterXml), new Run(new RunProperties(runPropertiesOuterXml), new Text(field.Description))));
                        tr.Append(tc1);

                        TableCell tc2 = new TableCell();
                        tc2.Append(new Paragraph(new ParagraphProperties(paragraphPropertiesOuterXml), new Run(new RunProperties(runPropertiesOuterXml), new Text(field.XmlName))));
                        tr.Append(tc2);

                        TableCell tc3 = new TableCell();
                        tc3.Append(new Paragraph(new ParagraphProperties(paragraphPropertiesOuterXml), new Run(new RunProperties(runPropertiesOuterXml), new Text(field.FieldType))));
                        tr.Append(tc3);

                        TableCell tc4 = new TableCell();
                        tc4.Append(new Paragraph(new ParagraphProperties(paragraphPropertiesOuterXml), new Run(new RunProperties(runPropertiesOuterXml), new Text((field.Required) ? TEXT_YES : TEXT_NO))));
                        tr.Append(tc4);

                        TableCell tc5 = new TableCell();
                        tc5.Append(new Paragraph(new ParagraphProperties(paragraphPropertiesOuterXml), new Run(new RunProperties(runPropertiesOuterXml), new Text((field.MultiValue) ? TEXT_YES : TEXT_NO))));
                        tr.Append(tc5);

                        TableCell tc6 = new TableCell();
                        tc6.Append(new Paragraph(new ParagraphProperties(paragraphPropertiesOuterXml), new Run(new RunProperties(runPropertiesOuterXml), new Text(field.Properties))));
                        tr.Append(tc6);

                        table.Append(tr);
                    }


                    if (schemaData.MetadataFields.Count > 0 && schemaData.SchemaType == "Component")
                    {
                        TableRow tr = new TableRow();
                        TableCell tc = new TableCell();
                        TableCellProperties tcProperties = new TableCellProperties(metaDataCellProperties.OuterXml);
                        GridSpan gridSpan = new GridSpan(){ Val = 6 };
                        tcProperties.Append(gridSpan);

                        tr.Append(new TableRowProperties(metaDataRowProperties.OuterXml));
                        tc.Append(tcProperties);
                        tc.Append(new Paragraph(new ParagraphProperties(metaDataParagraphProperties.OuterXml), new Run(new RunProperties(metaDataRunProperties.OuterXml), new Text(TEXT_METADATA))));
                        tr.Append(tc);
                        table.Append(tr);

                    }


                    foreach (SchemaField field in schemaData.MetadataFields)
                    {
                        TableRow tr = new TableRow();

                        TableCell tc1 = new TableCell();
                        tc1.Append(new Paragraph(new ParagraphProperties(paragraphPropertiesOuterXml), new Run(new RunProperties(runPropertiesOuterXml), new Text(field.Description))));
                        tr.Append(tc1);

                        TableCell tc2 = new TableCell();
                        tc2.Append(new Paragraph(new ParagraphProperties(paragraphPropertiesOuterXml), new Run(new RunProperties(runPropertiesOuterXml), new Text(field.XmlName))));
                        tr.Append(tc2);

                        TableCell tc3 = new TableCell();
                        tc3.Append(new Paragraph(new ParagraphProperties(paragraphPropertiesOuterXml), new Run(new RunProperties(runPropertiesOuterXml), new Text(field.FieldType))));
                        tr.Append(tc3);

                        TableCell tc4 = new TableCell();
                        tc4.Append(new Paragraph(new ParagraphProperties(paragraphPropertiesOuterXml), new Run(new RunProperties(runPropertiesOuterXml), new Text((field.Required) ? TEXT_YES : TEXT_NO))));
                        tr.Append(tc4);

                        TableCell tc5 = new TableCell();
                        tc5.Append(new Paragraph(new ParagraphProperties(paragraphPropertiesOuterXml), new Run(new RunProperties(runPropertiesOuterXml), new Text((field.MultiValue) ? TEXT_YES : TEXT_NO))));
                        tr.Append(tc5);

                        TableCell tc6 = new TableCell();
                        tc6.Append(new Paragraph(new ParagraphProperties(paragraphPropertiesOuterXml), new Run(new RunProperties(runPropertiesOuterXml), new Text(field.Properties))));
                        tr.Append(tc6);

                        table.Append(tr);
                    }
                }

                binFile = mem.ToArray();
            }

            return binFile;
        }
        //[LoginFilter(Order = 0)]
        //[SecurityFilter(Order = 1)]
        private Table GenerateBasiceReportDataTable()
        {
            Table table1 = new Table();

            // Li Zheng 2010.11.21 线框
            BorderValues bv = BorderValues.Single;
            TableBorders tblBorders = new TableBorders();
            tblBorders.TopBorder = new DocumentFormat.OpenXml.Wordprocessing.TopBorder();
            tblBorders.TopBorder.Val = new EnumValue<BorderValues>(bv);
            tblBorders.BottomBorder = new DocumentFormat.OpenXml.Wordprocessing.BottomBorder();
            tblBorders.BottomBorder.Val = new EnumValue<BorderValues>(bv);
            tblBorders.LeftBorder = new DocumentFormat.OpenXml.Wordprocessing.LeftBorder();
            tblBorders.LeftBorder.Val = new EnumValue<BorderValues>(bv);
            tblBorders.RightBorder = new DocumentFormat.OpenXml.Wordprocessing.RightBorder();
            tblBorders.RightBorder.Val = new EnumValue<BorderValues>(bv);
            tblBorders.InsideHorizontalBorder = new DocumentFormat.OpenXml.Wordprocessing.InsideHorizontalBorder();
            tblBorders.InsideHorizontalBorder.Val = bv;
            tblBorders.InsideVerticalBorder = new DocumentFormat.OpenXml.Wordprocessing.InsideVerticalBorder();
            tblBorders.InsideVerticalBorder.Val = bv;

            TableProperties tableProperties1 = new TableProperties();
            TableStyle tableStyle1 = new TableStyle() { Val = "TableGrid", };
            TableWidth tableWidth1 = new TableWidth() { Width = "11157", Type = TableWidthUnitValues.Dxa };//表格宽度

            TableIndentation tableIndentation1 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa };//首字缩进
            TableLook tableLook1 = new TableLook() { Val = "04A0", FirstRow = true, LastRow = false, FirstColumn = true, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = true };

            tableProperties1.Append(tblBorders);
            tableProperties1.Append(tableStyle1);
            tableProperties1.Append(tableWidth1);
            tableProperties1.Append(tableIndentation1);
            tableProperties1.Append(tableLook1);

            TableGrid tableGrid1 = new TableGrid();
            GridColumn gridColumn1 = new GridColumn() { Width = "11157" };

            tableGrid1.Append(gridColumn1);

            TableRow tableRow1 = new TableRow() { RsidTableRowMarkRevision = "00E77591", RsidTableRowAddition = "00E77591", RsidTableRowProperties = "00E77591" };

            TableCell tableCell1 = new TableCell();

            TableCellProperties tableCellProperties1 = new TableCellProperties();
            TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "11157", Type = TableWidthUnitValues.Dxa };
            TableCellVerticalAlignment tableCellVerticalAlignment1 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center };

            tableCellProperties1.Append(tableCellWidth1);
            tableCellProperties1.Append(tableCellVerticalAlignment1);

            Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "005D4399", RsidParagraphProperties = "001D44EB", RsidRunAdditionDefault = "005D4399" };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();
            Justification justification1 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
            RunFonts runFonts1 = new RunFonts() { AsciiTheme = ThemeFontValues.MinorEastAsia, HighAnsiTheme = ThemeFontValues.MinorEastAsia, EastAsiaTheme = ThemeFontValues.MinorEastAsia };

            paragraphMarkRunProperties1.Append(runFonts1);
            paragraphMarkRunProperties1.Append();

            paragraphProperties1.Append(justification1);
            paragraphProperties1.Append(paragraphMarkRunProperties1);
            BookmarkStart bookmarkStart1 = new BookmarkStart() { Name = "_GoBack", Id = "0" };

            paragraph1.Append(paragraphProperties1);
            paragraph1.Append(bookmarkStart1);

            tableCell1.Append(tableCellProperties1);
            tableCell1.Append(paragraph1);

            tableRow1.Append(tableCell1);
            BookmarkEnd bookmarkEnd1 = new BookmarkEnd() { Id = "0" };

            table1.Append(tableProperties1);
            table1.Append(tableGrid1);
            table1.Append(tableRow1);
            table1.Append(bookmarkEnd1);
            return table1;
        }