예제 #1
0
 // Creates a WordprocessingDocument.
 public void CreatePackage(string filePath, objPatientContract obj)
 {
     using (WordprocessingDocument package = WordprocessingDocument.Create(filePath, WordprocessingDocumentType.Document))
     {
         CreateParts(package, obj);
     }
 }
예제 #2
0
        // Adds child parts and generates content of the specified part.
        private void CreateParts(WordprocessingDocument document, objPatientContract obj)
        {
            ExtendedFilePropertiesPart extendedFilePropertiesPart1 = document.AddNewPart<ExtendedFilePropertiesPart>("rId3");
            GenerateExtendedFilePropertiesPart1Content(extendedFilePropertiesPart1);

            MainDocumentPart mainDocumentPart1 = document.AddMainDocumentPart();
            GenerateMainDocumentPart1Content(mainDocumentPart1, obj);

            FooterPart footerPart1 = mainDocumentPart1.AddNewPart<FooterPart>("rId8");
            GenerateFooterPart1Content(footerPart1);

            DocumentSettingsPart documentSettingsPart1 = mainDocumentPart1.AddNewPart<DocumentSettingsPart>("rId3");
            GenerateDocumentSettingsPart1Content(documentSettingsPart1);

            HeaderPart headerPart1 = mainDocumentPart1.AddNewPart<HeaderPart>("rId7");
            GenerateHeaderPart1Content(headerPart1);

            StylesWithEffectsPart stylesWithEffectsPart1 = mainDocumentPart1.AddNewPart<StylesWithEffectsPart>("rId2");
            GenerateStylesWithEffectsPart1Content(stylesWithEffectsPart1);

            StyleDefinitionsPart styleDefinitionsPart1 = mainDocumentPart1.AddNewPart<StyleDefinitionsPart>("rId1");
            GenerateStyleDefinitionsPart1Content(styleDefinitionsPart1);

            EndnotesPart endnotesPart1 = mainDocumentPart1.AddNewPart<EndnotesPart>("rId6");
            GenerateEndnotesPart1Content(endnotesPart1);

            FootnotesPart footnotesPart1 = mainDocumentPart1.AddNewPart<FootnotesPart>("rId5");
            GenerateFootnotesPart1Content(footnotesPart1);

            ThemePart themePart1 = mainDocumentPart1.AddNewPart<ThemePart>("rId10");
            GenerateThemePart1Content(themePart1);

            WebSettingsPart webSettingsPart1 = mainDocumentPart1.AddNewPart<WebSettingsPart>("rId4");
            GenerateWebSettingsPart1Content(webSettingsPart1);

            FontTablePart fontTablePart1 = mainDocumentPart1.AddNewPart<FontTablePart>("rId9");
            GenerateFontTablePart1Content(fontTablePart1);

            SetPackageProperties(document);
        }
예제 #3
0
        public string PrintContractForPatient(objPatientContract obj)
        {
            string       fileName = "contract_" + obj.SampleID.ToString() + ".rtf";
            FileInfo     fso      = new FileInfo(AppDomain.CurrentDomain.BaseDirectory + "\\\\contracts\\\\" + fileName);
            FileStream   myFile   = fso.Create();
            StreamWriter strWr    = new StreamWriter(myFile, Encoding.GetEncoding("WINDOWS-1251"));
            string       sRTF;

            sRTF = "{\\rtf1\\ansi\\ansicpg1251\\uc1\\deff0\\stshfdbch0\\stshfloch0\\stshfhich0\\stshfbi0\\deflang1049\\deflangfe1049\\margl720\\margr720\\margt720\\margb720\\";
            strWr.WriteLine(sRTF);
            sRTF = "{\\fonttbl {\\f0\\froman Times New Roman;}{\\f1\\fswiss Arial;}{\\f2\\fmodern Verdana;}}";
            strWr.WriteLine(sRTF);

            sRTF = "{\\info{\\title Contract " + obj.SampleID.ToString() + "}{\\author IAC Laboratory}}";
            strWr.WriteLine(sRTF);


            sRTF = "{\\header\\pard\\qc\\b{\\fs16\\f2 \\b Смоленская государственная медицинская академия \\b0\\par\\b Научно-исследовательский институт антимикробной химиотерапии \\b0\\par\\b Клинико-диагностическая лаборатория, тел. 45-06-13 \\b0\\par\\par\\par}}";
            strWr.WriteLine(sRTF);
            sRTF = "{\\footer\\pard\\qc\\brdrt\\brdrs\\brdrw10\\brsp100\\fs18 Страница {\\field{\\*\\fldinst PAGE}{\\fldrslt 1}} из {\\field{\\*\\fldinst NUMPAGES}{\\fldrslt 1}} \\par}";
            strWr.WriteLine(sRTF);
            sRTF = "\\qc\\fs20\\f0\\b ДОГОВОР № " + obj.SampleID.ToString() + "\\b0\\cf0";
            strWr.WriteLine(sRTF);
            sRTF = "\\line\\bНА ОКАЗАНИЕ МЕДИЦИНСКИХ УСЛУГ \\b0\\cf0";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("{");
            strWr.WriteLine("\\par\\par\\fs20\\f0 ");

            sRTF = "\\trowd\\trgaph30\\trleft0\\trrh262\\cellx5000\\cellx10500" +
                   "\\pard\\intbl\\ql\\b\\ г.Смоленск \\b0\\cell" +
                   "\\pard\\intbl\\qr\\b\\ " + DateTime.Now.ToShortDateString() + " г. \\b0\\cell" +
                   "\\pard\\intbl\\row";
            strWr.WriteLine(sRTF);
            strWr.WriteLine("}");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\bГосударственное бюджетное образовательное учреждение высшего профессионального образования «Смоленская государственная медицинская академия» " +
                   "Министерства  здравоохранения Российской Федерации (ГБОУ ВПО СГМА Минздрава России), \\b0 в дальнейшем \\b«Исполнитель»\\b0, в лице директора НИИАХ Козлова Романа Сергеевича, " +
                   "действующего на основании Доверенности № 31 от 9 января 2013 г. и лицензий № ФС-67-01-000825, от 20 декабря 2012 г., № ФС-67-01-000826 от 20 декабря 2012 г. и № 67.СО.02.001.Л.000006.02.01 от 19 февраля 2010 г.," +
                   " с одной стороны, и гр. \\b" + obj.PatientFIO + "\\b0 " + "  " + obj.BirthDate + " г.р.";
            if (obj.PatientSex == "мужской")
            {
                sRTF = sRTF + " именуемый ";
            }
            else
            {
                sRTF = sRTF + " именуемая ";
            }

            sRTF = sRTF + "в дальнейшем \\b«Заказчик»\\b0, с другой стороны, заключили настоящий договор о нижеследующем:";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("\\par\\par\\qc\\fs20\\f0  \\b 1.ПРЕДМЕТ ДОГОВОРА" +
                            "\\b0\\cf0");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\b 1.1. \\b0 По настоящему договору \\b«Исполнитель» \\b0 обязуется оказывать медицинские услуги \\b«Заказчику»\\b0, " +
                   " а \\b«Заказчик» \\b0 обязуется принять и оплатить оказанные услуги.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 1.2. \\b«Исполнитель» \\b0 обязуется оказать медицинские услуги в форме диагностических услуг в НИИ Антимикробной химиотерапии, " +
                   "расположенном по адресу г.Смоленск, ул.Кирова 46а.";
            strWr.WriteLine(sRTF);

            //if (obj.AnalysisList != null)
            //{
            //    sRTF = "\\par\\par\\qj\\fs20\\f0\\b Микробиологические анализы: \\b0";
            //    strWr.WriteLine(sRTF);
            //    strWr.WriteLine("{");
            //    strWr.WriteLine("\\par\\par\\fs20\\f0 ");

            //    foreach (var item in obj.AnalysisList)
            //    {
            //        sRTF = "\\trowd\\trgaph30\\trleft0\\trrh262\\cellx500\\cellx10500\\cellx11500";
            //        strWr.WriteLine(sRTF);
            //        sRTF = "\\pard\\intbl\\ql\\b\\ " + item.AnalysisPosition + " \\b0\\cell" +
            //"\\pard\\intbl\\qr\\b\\ " + item.AnalysisDescription + " \\b0\\cell" +
            //"\\pard\\intbl\\qr\\b\\ " + item.AnalysisPrice + " руб. 00 коп. \\b0\\cell";
            //        sRTF = "\\pard\\intbl\\row";
            //        strWr.WriteLine(sRTF);
            //    }
            //    sRTF = "}";
            //    strWr.WriteLine(sRTF);
            //}

            //if (obj.AddServiceList  != null)
            //{
            //    sRTF = "\\par\\par\\qj\\fs20\\f0\\b Дополнительные услуги: \\b0";
            //    strWr.WriteLine(sRTF);
            //    strWr.WriteLine("{");
            //    strWr.WriteLine("\\par\\par\\fs20\\f0 ");

            //    foreach (var item in obj.AddServiceList)
            //    {
            //        sRTF = "\\trowd\\trgaph30\\trleft0\\trrh262\\cellx500\\cellx10500\\cellx11500";
            //        strWr.WriteLine(sRTF);
            //        sRTF = "\\pard\\intbl\\ql\\b\\ " + item.AddServicePosition + " \\b0\\cell" +
            //"\\pard\\intbl\\qr\\b\\ " + item.AddServiceDescription  + " \\b0\\cell" +
            //"\\pard\\intbl\\qr\\b\\ " + item.AddServicePrice  + " руб. 00 коп. \\b0\\cell";
            //        sRTF = "\\pard\\intbl\\row";
            //        strWr.WriteLine(sRTF);
            //    }
            //    sRTF = "}";
            //    strWr.WriteLine(sRTF);
            //}


            strWr.WriteLine("\\par\\par\\qc\\fs20\\f0  \\b 2.ЦЕНА УСЛУГ. ПОРЯДОК РАСЧЕТОВ ПО ДОГОВОРУ" +
                            "\\b0\\cf0");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\b 2.1. \\b0 Стоимость оказываемых медицинских услуг составляет \\b" + " " + obj.TotalSum + " руб. 00 коп. \\b0 " +
                   "НДС не облагается.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 2.2. \\b0 В случае оказания дополнительных медицинских услуг сумма договора может быть изменена \\b«Исполнителем» \\b0 " +
                   " в одностороннем порядке в соответствии с утвержденным Прейскурантом цен на медицинские услуги.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 2.3. \\b0Стоимость оказываемых медицинских услуг определяется согласно утвержденному Прейскуранту цен на медицинские услуги.";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("\\par\\par\\qc\\fs20\\f0  \\b 3.ОБЯЗАТЕЛЬСТВА СТОРОН" +
                            "\\b0\\cf0");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\b 3.1. «Исполнитель» обязуется:";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.1.1 \\b0 оказать услуги надлежащего качества;";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.1.2 \\b0 хранить в тайне информацию о факте обращения \\b«Заказчика» \\b0за медицинской помощью, состоянии его здоровья, диагнозе его заболевания и иные сведения, " +
                   "полученные при  его  обследовании и лечении  (врачебная тайна),  за исключением  случаев, предусмотренных частью 4 ст. 13 ФЗ от 21.11.2011 года № 323 «Об основах охраны здоровья граждан в Российской Федерации»;";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.1.3 \\b0 обеспечить \\b«Заказчика» \\b0 бесплатной, доступной и достоверной информацией, включающей в себя сведения о местонахождении \\b«Исполнителя» \\b0" +
                   "(месте его государственной регистрации), режиме работы, перечне платных медицинских услуг с указанием стоимости, об условиях предоставления и получения этих услуг, а также сведения о квалификации и сертификации специалистов;";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.1.4 \\b0оказывать \\b«Заказчику» \\b0 оказывать  «Заказчику»  услуги,  предусмотренные п. 1.2. настоящего Договора,  а  при  необходимости  и  дополнительные услуги в соответствии с требованиями " +
                   " стандартов и требований к медицинским услугам на территории РФ";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.1.5 \\b0с согласия \\b«Заказчика» \\b0 или его представителя допускается передача сведений, составляющих врачебную тайну другим лицам, в том числе должностным лицам, в интересах диагностики и лечения \\b«Заказчика». \\b0";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.1.6 \\b0предоставление сведений, составляющие врачебную тайну, без согласия \\b«Заказчика» \\b0допускается с согласия его представителя в целях диагностики и лечения \\b«Заказчика» \\b0, не способного по состоянию здоровья выразить свою волю и в иных случаях, предусмотренных законодательством РФ.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.1.7 «Исполнитель» \\b0несет ответственность перед \\b«Заказчиком» \\b0за неисполнение или   ненадлежащее исполнение условий настоящего Договора, несоблюдение требований, предъявляемых " +
                   "к методам диагностики разрешенным на территории Российской Федерации, а также в случае причинения вреда здоровью и жизни Заказчика в следствии, грубого нарушения установленных норм регулирующих оказание услуги. ";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.2. «Заказчик» обязуется:";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.2.1 \\b0предварительно 100% оплатить медицинские услуги,  согласно прейскуранту цен действующему на день оказания услуг, при этом по желанию предоставлять свои паспортные данные.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.2.2 \\b0строго соблюдать рекомендации \\b«Исполнителя» \\b0связанные с оказанием медицинских услуг по настоящему договору. " +
                   "Соблюдать режимы гигиены, питания и физической активности, рекомендованные \\b«Исполнителем». \\b0";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("\\par\\par\\par\\qc\\fs20\\f0  \\b 4.РАЗРЕШЕНИЕ СПОРОВ" +
                            "\\b0\\cf0");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\b 4.1 \\b0Все споры и разногласия, которые могут возникнуть между сторонами по вопросам, не нашедшим своего разрешения в тексте данного договора, будут разрешаться путем переговоров на основе действующего законодательства РФ.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 4.2 \\b0При не урегулировании в процессе переговоров спорных вопросов, споры разрешаются в судебном порядке, установленном действующим законодательством РФ.";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("\\par\\par\\qc\\fs20\\f0  \\b 5.ОТВЕТСТВЕННОСТЬ СТОРОН" +
                            "\\b0\\cf0");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\b 5.1 \\b0За неисполнение или ненадлежащее исполнение обязательств по настоящему договору «Стороны» несут ответственность в соответствии с действующим законодательством РФ.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 5.2 \\b0При наличии претензий \\b«Заказчика» \\b0по качеству оказанных услуг, \\b«Исполнитель» \\b0обязан устранить данные претензии в сроки, установленные для выполнения технологического процесса и исправить допущенные ошибки за свой счет.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 5.3 \\b0Применение и исполнение санкций не освобождает «Стороны» от выполнения принятых на себя обязательств по настоящему договору.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 5.4 \\b0Ни одна из сторон не будет нести ответственность за полное или частичное неисполнение своих обязанностей, если неисполнение будет являться следствием обстоятельств непреодолимой " +
                   "силы, таких как пожар, наводнение, землетрясение, забастовки и другие стихийные бедствия, война и военные действия или другие обстоятельства, находящиеся вне контроля Сторон, препятствующих выполнению настоящего Договора, а также по иным основаниям, предусмотренным законом.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 5.5 \\b0Все споры, претензии и разногласия, которые могут возникнуть между Сторонами, будут разрешаться путем переговоров.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 5.6 \\b0В  случае  невозможности   разрешения  споров  и разногласий путем  переговоров, они подлежат разрешению судом в установленном  законодательством Российской Федерации порядке.";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("\\par\\par\\qc\\fs20\\f0  \\b 6.СРОК ДЕЙСТВИЯ ДОГОВОРА" +
                            "\\b0\\cf0");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\b 6.1 \\b0Настоящий договор заключен с " + obj.DateContractStart + " г. по  " + obj.DateContractEnd + " г.";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("\\par\\par\\qc\\fs20\\f0  \\b 7.ПРОЧИЕ УСЛОВИЯ" +
                            "\\b0\\cf0");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\b 7.1 \\b0Все дополнительные соглашения Сторон, акты и иные приложения к настоящему договору, подписываемые Сторонами при исполнении настоящего договора, являются его неотъемлемой частью.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 7.2 \\b0Настоящий договор составлен в двух экземплярах, имеющих одинаковую юридическую силу, по одному для каждой из Сторон.";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("\\par\\par\\qc\\fs20\\f0  \\b 8.АДРЕСА И БАНКОВСКИЕ РЕКВИЗИТЫ " +
                            "\\b0\\cf0");

            strWr.WriteLine("{");
            strWr.WriteLine("\\par\\par\\fs20\\f0 ");

            sRTF = "\\trowd\\trgaph30\\trleft0\\trrh262" +
                   "\\cellx5500\\cellx11000" +
                   "\\pard\\intbl\\ql\\b\\ " +
                   "\\bИсполнитель: \\b0\\line ГБОУ ВПО  СГМА Минздрава России, \\line 2140149, г.  Смоленск, ул. Крупской, д. 28. \\line ИНН 6731001113 КПП 673101001 УФК по Смоленской области (ГБОУ ВПО СГМА Минздрава России) \\line л/с 20636У00230 \\line Р/сч 40501810066142000001 \\line ГРКЦ ГУ Банка России по Смоленской области г. Смоленск " +
                   "\\b0\\cell" +
                   "\\pard\\intbl\\ql\\b\\ " +
                   "\\bЗаказчик \\b0\\line " +
                   " \\b0\\cell" +
                   "\\pard\\intbl\\row";
            strWr.WriteLine(sRTF);
            sRTF = "\\trowd\\trgaph30\\trleft0\\trrh262" +
                   "\\cellx5500\\cellx11000" +
                   "\\pard\\intbl\\ql\\ " +
                   "\\line\\line\\line\\line\\line ________________________/  Р.С.Козлов  / \\line МП" +
                   "\\b0\\cell" +
                   "\\pard\\intbl\\ql\\ " +
                   "\\line\\line\\line\\line\\line _______________________/  " + obj.PatientFIO + " / \\line  МП  " +
                   " \\b0\\cell" +
                   "\\pard\\intbl\\row";
            strWr.WriteLine(sRTF);
            strWr.WriteLine("}");

            // Завершаем формирование файла
            sRTF = "}";
            strWr.WriteLine(sRTF);


            // Закрываем сесию
            strWr.Close();
            myFile.Close();
            return(AppDomain.CurrentDomain.BaseDirectory + "\\\\contracts\\\\" + fileName);
            //  return AppDomain.CurrentDomain.BaseDirectory + "\\\\contracts\\\\" + fileName;
            //  return  Htmlresponse.Write("<META HTTP-EQUIV=""REFRESH"" Content=""0;URL=.\\Reports\\" & sFileName & """>")
        }
예제 #4
0
        public string PrintContractForPatient(objPatientContract obj)
        {
            string fileName = "contract_" + obj.SampleID.ToString() + ".rtf";
            FileInfo fso = new FileInfo(AppDomain.CurrentDomain.BaseDirectory + "\\\\contracts\\\\" + fileName);
            FileStream myFile = fso.Create();
            StreamWriter strWr = new StreamWriter(myFile, Encoding.GetEncoding("WINDOWS-1251"));
            string sRTF;

            sRTF = "{\\rtf1\\ansi\\ansicpg1251\\uc1\\deff0\\stshfdbch0\\stshfloch0\\stshfhich0\\stshfbi0\\deflang1049\\deflangfe1049\\margl720\\margr720\\margt720\\margb720\\";
            strWr.WriteLine(sRTF);
            sRTF = "{\\fonttbl {\\f0\\froman Times New Roman;}{\\f1\\fswiss Arial;}{\\f2\\fmodern Verdana;}}";
            strWr.WriteLine(sRTF);

            sRTF = "{\\info{\\title Contract " + obj.SampleID.ToString() + "}{\\author IAC Laboratory}}";
            strWr.WriteLine(sRTF);

            sRTF = "{\\header\\pard\\qc\\b{\\fs16\\f2 \\b Смоленская государственная медицинская академия \\b0\\par\\b Научно-исследовательский институт антимикробной химиотерапии \\b0\\par\\b Клинико-диагностическая лаборатория, тел. 45-06-13 \\b0\\par\\par\\par}}";
            strWr.WriteLine(sRTF);
            sRTF = "{\\footer\\pard\\qc\\brdrt\\brdrs\\brdrw10\\brsp100\\fs18 Страница {\\field{\\*\\fldinst PAGE}{\\fldrslt 1}} из {\\field{\\*\\fldinst NUMPAGES}{\\fldrslt 1}} \\par}";
            strWr.WriteLine(sRTF);
            sRTF = "\\qc\\fs20\\f0\\b ДОГОВОР № " + obj.SampleID.ToString() + "\\b0\\cf0";
            strWr.WriteLine(sRTF);
            sRTF = "\\line\\bНА ОКАЗАНИЕ МЕДИЦИНСКИХ УСЛУГ \\b0\\cf0";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("{");
            strWr.WriteLine("\\par\\par\\fs20\\f0 ");

            sRTF = "\\trowd\\trgaph30\\trleft0\\trrh262\\cellx5000\\cellx10500" +
                   "\\pard\\intbl\\ql\\b\\ г.Смоленск \\b0\\cell" +
                   "\\pard\\intbl\\qr\\b\\ " + DateTime.Now.ToShortDateString() + " г. \\b0\\cell" +
                   "\\pard\\intbl\\row";
            strWr.WriteLine(sRTF);
            strWr.WriteLine("}");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\bГосударственное бюджетное образовательное учреждение высшего профессионального образования «Смоленская государственная медицинская академия» " +
                    "Министерства  здравоохранения Российской Федерации (ГБОУ ВПО СГМА Минздрава России), \\b0 в дальнейшем \\b«Исполнитель»\\b0, в лице директора НИИАХ Козлова Романа Сергеевича, " +
                    "действующего на основании Доверенности № 31 от 9 января 2013 г. и лицензий № ФС-67-01-000825, от 20 декабря 2012 г., № ФС-67-01-000826 от 20 декабря 2012 г. и № 67.СО.02.001.Л.000006.02.01 от 19 февраля 2010 г.," +
                    " с одной стороны, и гр. \\b" + obj.PatientFIO + "\\b0 " + "  " + obj.BirthDate + " г.р.";
            if (obj.PatientSex == "мужской")
            {
                sRTF = sRTF + " именуемый ";
            }
            else
            {
                sRTF = sRTF + " именуемая ";
            }

            sRTF = sRTF + "в дальнейшем \\b«Заказчик»\\b0, с другой стороны, заключили настоящий договор о нижеследующем:";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("\\par\\par\\qc\\fs20\\f0  \\b 1.ПРЕДМЕТ ДОГОВОРА" +
                     "\\b0\\cf0");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\b 1.1. \\b0 По настоящему договору \\b«Исполнитель» \\b0 обязуется оказывать медицинские услуги \\b«Заказчику»\\b0, " +
                " а \\b«Заказчик» \\b0 обязуется принять и оплатить оказанные услуги.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 1.2. \\b«Исполнитель» \\b0 обязуется оказать медицинские услуги в форме диагностических услуг в НИИ Антимикробной химиотерапии, " +
                "расположенном по адресу г.Смоленск, ул.Кирова 46а.";
            strWr.WriteLine(sRTF);

            //if (obj.AnalysisList != null)
            //{
            //    sRTF = "\\par\\par\\qj\\fs20\\f0\\b Микробиологические анализы: \\b0";
            //    strWr.WriteLine(sRTF);
            //    strWr.WriteLine("{");
            //    strWr.WriteLine("\\par\\par\\fs20\\f0 ");

            //    foreach (var item in obj.AnalysisList)
            //    {
            //        sRTF = "\\trowd\\trgaph30\\trleft0\\trrh262\\cellx500\\cellx10500\\cellx11500";
            //        strWr.WriteLine(sRTF);
            //        sRTF = "\\pard\\intbl\\ql\\b\\ " + item.AnalysisPosition + " \\b0\\cell" +
            //"\\pard\\intbl\\qr\\b\\ " + item.AnalysisDescription + " \\b0\\cell" +
            //"\\pard\\intbl\\qr\\b\\ " + item.AnalysisPrice + " руб. 00 коп. \\b0\\cell";
            //        sRTF = "\\pard\\intbl\\row";
            //        strWr.WriteLine(sRTF);
            //    }
            //    sRTF = "}";
            //    strWr.WriteLine(sRTF);
            //}

            //if (obj.AddServiceList  != null)
            //{
            //    sRTF = "\\par\\par\\qj\\fs20\\f0\\b Дополнительные услуги: \\b0";
            //    strWr.WriteLine(sRTF);
            //    strWr.WriteLine("{");
            //    strWr.WriteLine("\\par\\par\\fs20\\f0 ");

            //    foreach (var item in obj.AddServiceList)
            //    {
            //        sRTF = "\\trowd\\trgaph30\\trleft0\\trrh262\\cellx500\\cellx10500\\cellx11500";
            //        strWr.WriteLine(sRTF);
            //        sRTF = "\\pard\\intbl\\ql\\b\\ " + item.AddServicePosition + " \\b0\\cell" +
            //"\\pard\\intbl\\qr\\b\\ " + item.AddServiceDescription  + " \\b0\\cell" +
            //"\\pard\\intbl\\qr\\b\\ " + item.AddServicePrice  + " руб. 00 коп. \\b0\\cell";
            //        sRTF = "\\pard\\intbl\\row";
            //        strWr.WriteLine(sRTF);
            //    }
            //    sRTF = "}";
            //    strWr.WriteLine(sRTF);
            //}

            strWr.WriteLine("\\par\\par\\qc\\fs20\\f0  \\b 2.ЦЕНА УСЛУГ. ПОРЯДОК РАСЧЕТОВ ПО ДОГОВОРУ" +
             "\\b0\\cf0");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\b 2.1. \\b0 Стоимость оказываемых медицинских услуг составляет \\b" + " " + obj.TotalSum + " руб. 00 коп. \\b0 " +
               "НДС не облагается.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 2.2. \\b0 В случае оказания дополнительных медицинских услуг сумма договора может быть изменена \\b«Исполнителем» \\b0 " +
                " в одностороннем порядке в соответствии с утвержденным Прейскурантом цен на медицинские услуги.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 2.3. \\b0Стоимость оказываемых медицинских услуг определяется согласно утвержденному Прейскуранту цен на медицинские услуги.";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("\\par\\par\\qc\\fs20\\f0  \\b 3.ОБЯЗАТЕЛЬСТВА СТОРОН" +
             "\\b0\\cf0");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\b 3.1. «Исполнитель» обязуется:";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.1.1 \\b0 оказать услуги надлежащего качества;";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.1.2 \\b0 хранить в тайне информацию о факте обращения \\b«Заказчика» \\b0за медицинской помощью, состоянии его здоровья, диагнозе его заболевания и иные сведения, " +
                "полученные при  его  обследовании и лечении  (врачебная тайна),  за исключением  случаев, предусмотренных частью 4 ст. 13 ФЗ от 21.11.2011 года № 323 «Об основах охраны здоровья граждан в Российской Федерации»;";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.1.3 \\b0 обеспечить \\b«Заказчика» \\b0 бесплатной, доступной и достоверной информацией, включающей в себя сведения о местонахождении \\b«Исполнителя» \\b0" +
                "(месте его государственной регистрации), режиме работы, перечне платных медицинских услуг с указанием стоимости, об условиях предоставления и получения этих услуг, а также сведения о квалификации и сертификации специалистов;";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.1.4 \\b0оказывать \\b«Заказчику» \\b0 оказывать  «Заказчику»  услуги,  предусмотренные п. 1.2. настоящего Договора,  а  при  необходимости  и  дополнительные услуги в соответствии с требованиями " +
                " стандартов и требований к медицинским услугам на территории РФ";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.1.5 \\b0с согласия \\b«Заказчика» \\b0 или его представителя допускается передача сведений, составляющих врачебную тайну другим лицам, в том числе должностным лицам, в интересах диагностики и лечения \\b«Заказчика». \\b0";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.1.6 \\b0предоставление сведений, составляющие врачебную тайну, без согласия \\b«Заказчика» \\b0допускается с согласия его представителя в целях диагностики и лечения \\b«Заказчика» \\b0, не способного по состоянию здоровья выразить свою волю и в иных случаях, предусмотренных законодательством РФ.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.1.7 «Исполнитель» \\b0несет ответственность перед \\b«Заказчиком» \\b0за неисполнение или   ненадлежащее исполнение условий настоящего Договора, несоблюдение требований, предъявляемых " +
                "к методам диагностики разрешенным на территории Российской Федерации, а также в случае причинения вреда здоровью и жизни Заказчика в следствии, грубого нарушения установленных норм регулирующих оказание услуги. ";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.2. «Заказчик» обязуется:";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.2.1 \\b0предварительно 100% оплатить медицинские услуги,  согласно прейскуранту цен действующему на день оказания услуг, при этом по желанию предоставлять свои паспортные данные.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 3.2.2 \\b0строго соблюдать рекомендации \\b«Исполнителя» \\b0связанные с оказанием медицинских услуг по настоящему договору. " +
                "Соблюдать режимы гигиены, питания и физической активности, рекомендованные \\b«Исполнителем». \\b0";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("\\par\\par\\par\\qc\\fs20\\f0  \\b 4.РАЗРЕШЕНИЕ СПОРОВ" +
            "\\b0\\cf0");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\b 4.1 \\b0Все споры и разногласия, которые могут возникнуть между сторонами по вопросам, не нашедшим своего разрешения в тексте данного договора, будут разрешаться путем переговоров на основе действующего законодательства РФ.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 4.2 \\b0При не урегулировании в процессе переговоров спорных вопросов, споры разрешаются в судебном порядке, установленном действующим законодательством РФ.";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("\\par\\par\\qc\\fs20\\f0  \\b 5.ОТВЕТСТВЕННОСТЬ СТОРОН" +
            "\\b0\\cf0");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\b 5.1 \\b0За неисполнение или ненадлежащее исполнение обязательств по настоящему договору «Стороны» несут ответственность в соответствии с действующим законодательством РФ.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 5.2 \\b0При наличии претензий \\b«Заказчика» \\b0по качеству оказанных услуг, \\b«Исполнитель» \\b0обязан устранить данные претензии в сроки, установленные для выполнения технологического процесса и исправить допущенные ошибки за свой счет.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 5.3 \\b0Применение и исполнение санкций не освобождает «Стороны» от выполнения принятых на себя обязательств по настоящему договору.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 5.4 \\b0Ни одна из сторон не будет нести ответственность за полное или частичное неисполнение своих обязанностей, если неисполнение будет являться следствием обстоятельств непреодолимой " +
                "силы, таких как пожар, наводнение, землетрясение, забастовки и другие стихийные бедствия, война и военные действия или другие обстоятельства, находящиеся вне контроля Сторон, препятствующих выполнению настоящего Договора, а также по иным основаниям, предусмотренным законом.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 5.5 \\b0Все споры, претензии и разногласия, которые могут возникнуть между Сторонами, будут разрешаться путем переговоров.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 5.6 \\b0В  случае  невозможности   разрешения  споров  и разногласий путем  переговоров, они подлежат разрешению судом в установленном  законодательством Российской Федерации порядке.";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("\\par\\par\\qc\\fs20\\f0  \\b 6.СРОК ДЕЙСТВИЯ ДОГОВОРА" +
                "\\b0\\cf0");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\b 6.1 \\b0Настоящий договор заключен с " + obj.DateContractStart + " г. по  " + obj.DateContractEnd + " г.";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("\\par\\par\\qc\\fs20\\f0  \\b 7.ПРОЧИЕ УСЛОВИЯ" +
                "\\b0\\cf0");

            sRTF = "\\par\\par\\qj\\fs20\\f0\\b 7.1 \\b0Все дополнительные соглашения Сторон, акты и иные приложения к настоящему договору, подписываемые Сторонами при исполнении настоящего договора, являются его неотъемлемой частью.";
            strWr.WriteLine(sRTF);

            sRTF = "\\line\\b 7.2 \\b0Настоящий договор составлен в двух экземплярах, имеющих одинаковую юридическую силу, по одному для каждой из Сторон.";
            strWr.WriteLine(sRTF);

            strWr.WriteLine("\\par\\par\\qc\\fs20\\f0  \\b 8.АДРЕСА И БАНКОВСКИЕ РЕКВИЗИТЫ " +
               "\\b0\\cf0");

            strWr.WriteLine("{");
            strWr.WriteLine("\\par\\par\\fs20\\f0 ");

            sRTF = "\\trowd\\trgaph30\\trleft0\\trrh262" +
                   "\\cellx5500\\cellx11000" +
                   "\\pard\\intbl\\ql\\b\\ " +
                    "\\bИсполнитель: \\b0\\line ГБОУ ВПО  СГМА Минздрава России, \\line 2140149, г.  Смоленск, ул. Крупской, д. 28. \\line ИНН 6731001113 КПП 673101001 УФК по Смоленской области (ГБОУ ВПО СГМА Минздрава России) \\line л/с 20636У00230 \\line Р/сч 40501810066142000001 \\line ГРКЦ ГУ Банка России по Смоленской области г. Смоленск " +
                     "\\b0\\cell" +
                   "\\pard\\intbl\\ql\\b\\ " +
                   "\\bЗаказчик \\b0\\line " +
                     " \\b0\\cell" +
                   "\\pard\\intbl\\row";
            strWr.WriteLine(sRTF);
            sRTF = "\\trowd\\trgaph30\\trleft0\\trrh262" +
                   "\\cellx5500\\cellx11000" +
                   "\\pard\\intbl\\ql\\ " +
                   "\\line\\line\\line\\line\\line ________________________/  Р.С.Козлов  / \\line МП" +
                     "\\b0\\cell" +
                   "\\pard\\intbl\\ql\\ " +
                   "\\line\\line\\line\\line\\line _______________________/  " + obj.PatientFIO + " / \\line  МП  " +
                     " \\b0\\cell" +
                   "\\pard\\intbl\\row";
            strWr.WriteLine(sRTF);
            strWr.WriteLine("}");

            // Завершаем формирование файла
            sRTF = "}";
            strWr.WriteLine(sRTF);

            // Закрываем сесию
            strWr.Close();
            myFile.Close();
            return AppDomain.CurrentDomain.BaseDirectory + "\\\\contracts\\\\" + fileName;
            //  return AppDomain.CurrentDomain.BaseDirectory + "\\\\contracts\\\\" + fileName;
            //  return  Htmlresponse.Write("<META HTTP-EQUIV=""REFRESH"" Content=""0;URL=.\\Reports\\" & sFileName & """>")
        }
예제 #5
0
        // Generates content of mainDocumentPart1.
        private void GenerateMainDocumentPart1Content(MainDocumentPart mainDocumentPart1, objPatientContract obj)
        {
            Document document1 = new Document() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 wp14" } };
            document1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas");
            document1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
            document1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
            document1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
            document1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
            document1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
            document1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing");
            document1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing");
            document1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
            document1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
            document1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
            document1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup");
            document1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk");
            document1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml");
            document1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape");

            Body body1 = new Body();

            Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();
            WidowControl widowControl1 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE1 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN1 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent1 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
            RunFonts runFonts1 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" };
            FontSize fontSize1 = new FontSize() { Val = "24" };
            FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "24" };

            paragraphMarkRunProperties1.Append(runFonts1);
            paragraphMarkRunProperties1.Append(fontSize1);
            paragraphMarkRunProperties1.Append(fontSizeComplexScript1);

            paragraphProperties1.Append(widowControl1);
            paragraphProperties1.Append(autoSpaceDE1);
            paragraphProperties1.Append(autoSpaceDN1);
            paragraphProperties1.Append(adjustRightIndent1);
            paragraphProperties1.Append(spacingBetweenLines1);
            paragraphProperties1.Append(paragraphMarkRunProperties1);

            paragraph1.Append(paragraphProperties1);

            Paragraph paragraph2 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties2 = new ParagraphProperties();
            WidowControl widowControl2 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE2 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN2 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent2 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines2 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties2 = new ParagraphMarkRunProperties();
            RunFonts runFonts2 = new RunFonts() { Ascii = "New Roman", HighAnsi = "New Roman", EastAsia = "New Roman", ComplexScript = "Times New Roman" };
            FontSize fontSize2 = new FontSize() { Val = "24" };
            FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "24" };

            paragraphMarkRunProperties2.Append(runFonts2);
            paragraphMarkRunProperties2.Append(fontSize2);
            paragraphMarkRunProperties2.Append(fontSizeComplexScript2);

            paragraphProperties2.Append(widowControl2);
            paragraphProperties2.Append(autoSpaceDE2);
            paragraphProperties2.Append(autoSpaceDN2);
            paragraphProperties2.Append(adjustRightIndent2);
            paragraphProperties2.Append(spacingBetweenLines2);
            paragraphProperties2.Append(paragraphMarkRunProperties2);

            paragraph2.Append(paragraphProperties2);

            Paragraph paragraph3 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties3 = new ParagraphProperties();
            WidowControl widowControl3 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE3 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN3 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent3 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines3 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification1 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties3 = new ParagraphMarkRunProperties();
            RunFonts runFonts3 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize3 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties3.Append(runFonts3);
            paragraphMarkRunProperties3.Append(fontSize3);
            paragraphMarkRunProperties3.Append(fontSizeComplexScript3);

            paragraphProperties3.Append(widowControl3);
            paragraphProperties3.Append(autoSpaceDE3);
            paragraphProperties3.Append(autoSpaceDN3);
            paragraphProperties3.Append(adjustRightIndent3);
            paragraphProperties3.Append(spacingBetweenLines3);
            paragraphProperties3.Append(justification1);
            paragraphProperties3.Append(paragraphMarkRunProperties3);

            Run run1 = new Run();

            RunProperties runProperties1 = new RunProperties();
            RunFonts runFonts4 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize4 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript() { Val = "20" };

            runProperties1.Append(runFonts4);
            runProperties1.Append(fontSize4);
            runProperties1.Append(fontSizeComplexScript4);
            Text text1 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text1.Text = " ";

            run1.Append(runProperties1);
            run1.Append(text1);

            Run run2 = new Run() { RsidRunAddition = "00D60978" };

            RunProperties runProperties2 = new RunProperties();
            RunFonts runFonts5 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold1 = new Bold();
            BoldComplexScript boldComplexScript1 = new BoldComplexScript();
            FontSize fontSize5 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript5 = new FontSizeComplexScript() { Val = "20" };

            runProperties2.Append(runFonts5);
            runProperties2.Append(bold1);
            runProperties2.Append(boldComplexScript1);
            runProperties2.Append(fontSize5);
            runProperties2.Append(fontSizeComplexScript5);
            Text text2 = new Text();
            text2.Text = "МИКРОБИОЛОГИЧЕСКОЕ ИССЛЕДОВАНИЕ";

            run2.Append(runProperties2);
            run2.Append(text2);

            Run run3 = new Run();

            RunProperties runProperties3 = new RunProperties();
            RunFonts runFonts6 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold2 = new Bold();
            BoldComplexScript boldComplexScript2 = new BoldComplexScript();
            FontSize fontSize6 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript6 = new FontSizeComplexScript() { Val = "20" };

            runProperties3.Append(runFonts6);
            runProperties3.Append(bold2);
            runProperties3.Append(boldComplexScript2);
            runProperties3.Append(fontSize6);
            runProperties3.Append(fontSizeComplexScript6);
            Text text3 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text3.Text = " № ";

            run3.Append(runProperties3);
            run3.Append(text3);

            Run run4 = new Run() { RsidRunAddition = "00D60978" };

            RunProperties runProperties4 = new RunProperties();
            RunFonts runFonts7 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold3 = new Bold();
            BoldComplexScript boldComplexScript3 = new BoldComplexScript();
            FontSize fontSize7 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript7 = new FontSizeComplexScript() { Val = "20" };

            runProperties4.Append(runFonts7);
            runProperties4.Append(bold3);
            runProperties4.Append(boldComplexScript3);
            runProperties4.Append(fontSize7);
            runProperties4.Append(fontSizeComplexScript7);
            Text text4 = new Text();
            text4.Text = obj.SampleID ;

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

            paragraph3.Append(paragraphProperties3);
            paragraph3.Append(run1);
            paragraph3.Append(run2);
            paragraph3.Append(run3);
            paragraph3.Append(run4);

            Paragraph paragraph4 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties4 = new ParagraphProperties();
            WidowControl widowControl4 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE4 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN4 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent4 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines4 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification2 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties4 = new ParagraphMarkRunProperties();
            RunFonts runFonts8 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize8 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript8 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties4.Append(runFonts8);
            paragraphMarkRunProperties4.Append(fontSize8);
            paragraphMarkRunProperties4.Append(fontSizeComplexScript8);

            paragraphProperties4.Append(widowControl4);
            paragraphProperties4.Append(autoSpaceDE4);
            paragraphProperties4.Append(autoSpaceDN4);
            paragraphProperties4.Append(adjustRightIndent4);
            paragraphProperties4.Append(spacingBetweenLines4);
            paragraphProperties4.Append(justification2);
            paragraphProperties4.Append(paragraphMarkRunProperties4);

            paragraph4.Append(paragraphProperties4);

            Table table1 = new Table();

            TableProperties tableProperties1 = new TableProperties();
            TableStyle tableStyle1 = new TableStyle() { Val = "a3" };
            TableWidth tableWidth1 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto };

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

            tableBorders1.Append(topBorder1);
            tableBorders1.Append(leftBorder1);
            tableBorders1.Append(bottomBorder1);
            tableBorders1.Append(rightBorder1);
            tableBorders1.Append(insideHorizontalBorder1);
            tableBorders1.Append(insideVerticalBorder1);
            TableLayout tableLayout1 = new TableLayout() { Type = TableLayoutValues.Fixed };
            TableLook tableLook1 = new TableLook() { Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false };

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

            TableGrid tableGrid1 = new TableGrid();
            GridColumn gridColumn1 = new GridColumn() { Width = "3500" };
            GridColumn gridColumn2 = new GridColumn() { Width = "5500" };

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

            TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00D60978" };

            TableRowProperties tableRowProperties1 = new TableRowProperties();
            TableRowHeight tableRowHeight1 = new TableRowHeight() { Val = (UInt32Value)262U };

            tableRowProperties1.Append(tableRowHeight1);

            TableCell tableCell1 = new TableCell();

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

            tableCellProperties1.Append(tableCellWidth1);

            Paragraph paragraph5 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties5 = new ParagraphProperties();
            WidowControl widowControl5 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE5 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN5 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent5 = new AdjustRightIndent() { Val = false };

            ParagraphMarkRunProperties paragraphMarkRunProperties5 = new ParagraphMarkRunProperties();
            RunFonts runFonts9 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize9 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript9 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties5.Append(runFonts9);
            paragraphMarkRunProperties5.Append(fontSize9);
            paragraphMarkRunProperties5.Append(fontSizeComplexScript9);

            paragraphProperties5.Append(widowControl5);
            paragraphProperties5.Append(autoSpaceDE5);
            paragraphProperties5.Append(autoSpaceDN5);
            paragraphProperties5.Append(adjustRightIndent5);
            paragraphProperties5.Append(paragraphMarkRunProperties5);

            Run run5 = new Run();

            RunProperties runProperties5 = new RunProperties();
            RunFonts runFonts10 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold4 = new Bold();
            BoldComplexScript boldComplexScript4 = new BoldComplexScript();
            FontSize fontSize10 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript10 = new FontSizeComplexScript() { Val = "20" };

            runProperties5.Append(runFonts10);
            runProperties5.Append(bold4);
            runProperties5.Append(boldComplexScript4);
            runProperties5.Append(fontSize10);
            runProperties5.Append(fontSizeComplexScript10);
            Text text5 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text5.Text = "Лечебное учреждение: ";

            run5.Append(runProperties5);
            run5.Append(text5);

            paragraph5.Append(paragraphProperties5);
            paragraph5.Append(run5);

            tableCell1.Append(tableCellProperties1);
            tableCell1.Append(paragraph5);

            TableCell tableCell2 = new TableCell();

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

            tableCellProperties2.Append(tableCellWidth2);

            Paragraph paragraph6 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties6 = new ParagraphProperties();
            WidowControl widowControl6 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE6 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN6 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent6 = new AdjustRightIndent() { Val = false };

            ParagraphMarkRunProperties paragraphMarkRunProperties6 = new ParagraphMarkRunProperties();
            RunFonts runFonts11 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize11 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript11 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties6.Append(runFonts11);
            paragraphMarkRunProperties6.Append(fontSize11);
            paragraphMarkRunProperties6.Append(fontSizeComplexScript11);

            paragraphProperties6.Append(widowControl6);
            paragraphProperties6.Append(autoSpaceDE6);
            paragraphProperties6.Append(autoSpaceDN6);
            paragraphProperties6.Append(adjustRightIndent6);
            paragraphProperties6.Append(paragraphMarkRunProperties6);

            Run run6 = new Run();

            RunProperties runProperties6 = new RunProperties();
            RunFonts runFonts12 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize12 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript12 = new FontSizeComplexScript() { Val = "20" };

            runProperties6.Append(runFonts12);
            runProperties6.Append(fontSize12);
            runProperties6.Append(fontSizeComplexScript12);
            Text text6 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text6.Text = obj.Clinic ;

            run6.Append(runProperties6);
            run6.Append(text6);

            paragraph6.Append(paragraphProperties6);
            paragraph6.Append(run6);

            tableCell2.Append(tableCellProperties2);
            tableCell2.Append(paragraph6);

            tableRow1.Append(tableRowProperties1);
            tableRow1.Append(tableCell1);
            tableRow1.Append(tableCell2);

            TableRow tableRow2 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00D60978" };

            TableRowProperties tableRowProperties2 = new TableRowProperties();
            TableRowHeight tableRowHeight2 = new TableRowHeight() { Val = (UInt32Value)262U };

            tableRowProperties2.Append(tableRowHeight2);

            TableCell tableCell3 = new TableCell();

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

            tableCellProperties3.Append(tableCellWidth3);

            Paragraph paragraph7 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties7 = new ParagraphProperties();
            WidowControl widowControl7 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE7 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN7 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent7 = new AdjustRightIndent() { Val = false };

            ParagraphMarkRunProperties paragraphMarkRunProperties7 = new ParagraphMarkRunProperties();
            RunFonts runFonts13 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize13 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript13 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties7.Append(runFonts13);
            paragraphMarkRunProperties7.Append(fontSize13);
            paragraphMarkRunProperties7.Append(fontSizeComplexScript13);

            paragraphProperties7.Append(widowControl7);
            paragraphProperties7.Append(autoSpaceDE7);
            paragraphProperties7.Append(autoSpaceDN7);
            paragraphProperties7.Append(adjustRightIndent7);
            paragraphProperties7.Append(paragraphMarkRunProperties7);

            Run run7 = new Run();

            RunProperties runProperties7 = new RunProperties();
            RunFonts runFonts14 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold5 = new Bold();
            BoldComplexScript boldComplexScript5 = new BoldComplexScript();
            FontSize fontSize14 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript14 = new FontSizeComplexScript() { Val = "20" };

            runProperties7.Append(runFonts14);
            runProperties7.Append(bold5);
            runProperties7.Append(boldComplexScript5);
            runProperties7.Append(fontSize14);
            runProperties7.Append(fontSizeComplexScript14);
            Text text7 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text7.Text = "Врач: ";

            run7.Append(runProperties7);
            run7.Append(text7);

            paragraph7.Append(paragraphProperties7);
            paragraph7.Append(run7);

            tableCell3.Append(tableCellProperties3);
            tableCell3.Append(paragraph7);

            TableCell tableCell4 = new TableCell();

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

            tableCellProperties4.Append(tableCellWidth4);

            Paragraph paragraph8 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties8 = new ParagraphProperties();
            WidowControl widowControl8 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE8 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN8 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent8 = new AdjustRightIndent() { Val = false };

            ParagraphMarkRunProperties paragraphMarkRunProperties8 = new ParagraphMarkRunProperties();
            RunFonts runFonts15 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize15 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript15 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties8.Append(runFonts15);
            paragraphMarkRunProperties8.Append(fontSize15);
            paragraphMarkRunProperties8.Append(fontSizeComplexScript15);

            paragraphProperties8.Append(widowControl8);
            paragraphProperties8.Append(autoSpaceDE8);
            paragraphProperties8.Append(autoSpaceDN8);
            paragraphProperties8.Append(adjustRightIndent8);
            paragraphProperties8.Append(paragraphMarkRunProperties8);
            ProofError proofError1 = new ProofError() { Type = ProofingErrorValues.SpellStart };

            Run run8 = new Run();

            RunProperties runProperties8 = new RunProperties();
            RunFonts runFonts16 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize16 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript16 = new FontSizeComplexScript() { Val = "20" };

            runProperties8.Append(runFonts16);
            runProperties8.Append(fontSize16);
            runProperties8.Append(fontSizeComplexScript16);
            Text text8 = new Text();
            text8.Text = obj.DoctorFIO ;

            run8.Append(runProperties8);
            run8.Append(text8);
            ProofError proofError2 = new ProofError() { Type = ProofingErrorValues.SpellEnd };

            Run run9 = new Run();

            RunProperties runProperties9 = new RunProperties();
            RunFonts runFonts17 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize17 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript17 = new FontSizeComplexScript() { Val = "20" };

            runProperties9.Append(runFonts17);
            runProperties9.Append(fontSize17);
            runProperties9.Append(fontSizeComplexScript17);
            Text text9 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text9.Text = "";

            run9.Append(runProperties9);
            run9.Append(text9);

            paragraph8.Append(paragraphProperties8);
            paragraph8.Append(proofError1);
            paragraph8.Append(run8);
            paragraph8.Append(proofError2);
            paragraph8.Append(run9);

            tableCell4.Append(tableCellProperties4);
            tableCell4.Append(paragraph8);
            BookmarkStart bookmarkStart1 = new BookmarkStart() { Name = "_GoBack", Id = "0" };
            BookmarkEnd bookmarkEnd1 = new BookmarkEnd() { Id = "0" };

            tableRow2.Append(tableRowProperties2);
            tableRow2.Append(tableCell3);
            tableRow2.Append(tableCell4);
            tableRow2.Append(bookmarkStart1);
            tableRow2.Append(bookmarkEnd1);

            TableRow tableRow3 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00D60978" };

            TableRowProperties tableRowProperties3 = new TableRowProperties();
            TableRowHeight tableRowHeight3 = new TableRowHeight() { Val = (UInt32Value)262U };

            tableRowProperties3.Append(tableRowHeight3);

            TableCell tableCell5 = new TableCell();

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

            tableCellProperties5.Append(tableCellWidth5);

            Paragraph paragraph9 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties9 = new ParagraphProperties();
            WidowControl widowControl9 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE9 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN9 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent9 = new AdjustRightIndent() { Val = false };

            ParagraphMarkRunProperties paragraphMarkRunProperties9 = new ParagraphMarkRunProperties();
            RunFonts runFonts18 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize18 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript18 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties9.Append(runFonts18);
            paragraphMarkRunProperties9.Append(fontSize18);
            paragraphMarkRunProperties9.Append(fontSizeComplexScript18);

            paragraphProperties9.Append(widowControl9);
            paragraphProperties9.Append(autoSpaceDE9);
            paragraphProperties9.Append(autoSpaceDN9);
            paragraphProperties9.Append(adjustRightIndent9);
            paragraphProperties9.Append(paragraphMarkRunProperties9);

            Run run10 = new Run();

            RunProperties runProperties10 = new RunProperties();
            RunFonts runFonts19 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold6 = new Bold();
            BoldComplexScript boldComplexScript6 = new BoldComplexScript();
            FontSize fontSize19 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript19 = new FontSizeComplexScript() { Val = "20" };

            runProperties10.Append(runFonts19);
            runProperties10.Append(bold6);
            runProperties10.Append(boldComplexScript6);
            runProperties10.Append(fontSize19);
            runProperties10.Append(fontSizeComplexScript19);
            Text text10 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text10.Text = "Пациент: ";

            run10.Append(runProperties10);
            run10.Append(text10);

            paragraph9.Append(paragraphProperties9);
            paragraph9.Append(run10);

            tableCell5.Append(tableCellProperties5);
            tableCell5.Append(paragraph9);

            TableCell tableCell6 = new TableCell();

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

            tableCellProperties6.Append(tableCellWidth6);

            Paragraph paragraph10 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties10 = new ParagraphProperties();
            WidowControl widowControl10 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE10 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN10 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent10 = new AdjustRightIndent() { Val = false };

            ParagraphMarkRunProperties paragraphMarkRunProperties10 = new ParagraphMarkRunProperties();
            RunFonts runFonts20 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize20 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript20 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties10.Append(runFonts20);
            paragraphMarkRunProperties10.Append(fontSize20);
            paragraphMarkRunProperties10.Append(fontSizeComplexScript20);

            paragraphProperties10.Append(widowControl10);
            paragraphProperties10.Append(autoSpaceDE10);
            paragraphProperties10.Append(autoSpaceDN10);
            paragraphProperties10.Append(adjustRightIndent10);
            paragraphProperties10.Append(paragraphMarkRunProperties10);

            Run run11 = new Run();

            RunProperties runProperties11 = new RunProperties();
            RunFonts runFonts21 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize21 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript21 = new FontSizeComplexScript() { Val = "20" };

            runProperties11.Append(runFonts21);
            runProperties11.Append(fontSize21);
            runProperties11.Append(fontSizeComplexScript21);
            Text text11 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text11.Text = obj.PatientFIO ;

            run11.Append(runProperties11);
            run11.Append(text11);

            paragraph10.Append(paragraphProperties10);
            paragraph10.Append(run11);

            tableCell6.Append(tableCellProperties6);
            tableCell6.Append(paragraph10);

            tableRow3.Append(tableRowProperties3);
            tableRow3.Append(tableCell5);
            tableRow3.Append(tableCell6);

            TableRow tableRow4 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00D60978" };

            TableRowProperties tableRowProperties4 = new TableRowProperties();
            TableRowHeight tableRowHeight4 = new TableRowHeight() { Val = (UInt32Value)262U };

            tableRowProperties4.Append(tableRowHeight4);

            TableCell tableCell7 = new TableCell();

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

            tableCellProperties7.Append(tableCellWidth7);

            Paragraph paragraph11 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties11 = new ParagraphProperties();
            WidowControl widowControl11 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE11 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN11 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent11 = new AdjustRightIndent() { Val = false };

            ParagraphMarkRunProperties paragraphMarkRunProperties11 = new ParagraphMarkRunProperties();
            RunFonts runFonts22 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize22 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript22 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties11.Append(runFonts22);
            paragraphMarkRunProperties11.Append(fontSize22);
            paragraphMarkRunProperties11.Append(fontSizeComplexScript22);

            paragraphProperties11.Append(widowControl11);
            paragraphProperties11.Append(autoSpaceDE11);
            paragraphProperties11.Append(autoSpaceDN11);
            paragraphProperties11.Append(adjustRightIndent11);
            paragraphProperties11.Append(paragraphMarkRunProperties11);

            Run run12 = new Run();

            RunProperties runProperties12 = new RunProperties();
            RunFonts runFonts23 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold7 = new Bold();
            BoldComplexScript boldComplexScript7 = new BoldComplexScript();
            FontSize fontSize23 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript23 = new FontSizeComplexScript() { Val = "20" };

            runProperties12.Append(runFonts23);
            runProperties12.Append(bold7);
            runProperties12.Append(boldComplexScript7);
            runProperties12.Append(fontSize23);
            runProperties12.Append(fontSizeComplexScript23);
            Text text12 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text12.Text = "Дата рождения: ";

            run12.Append(runProperties12);
            run12.Append(text12);

            paragraph11.Append(paragraphProperties11);
            paragraph11.Append(run12);

            tableCell7.Append(tableCellProperties7);
            tableCell7.Append(paragraph11);

            TableCell tableCell8 = new TableCell();

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

            tableCellProperties8.Append(tableCellWidth8);

            Paragraph paragraph12 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties12 = new ParagraphProperties();
            WidowControl widowControl12 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE12 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN12 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent12 = new AdjustRightIndent() { Val = false };

            ParagraphMarkRunProperties paragraphMarkRunProperties12 = new ParagraphMarkRunProperties();
            RunFonts runFonts24 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize24 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript24 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties12.Append(runFonts24);
            paragraphMarkRunProperties12.Append(fontSize24);
            paragraphMarkRunProperties12.Append(fontSizeComplexScript24);

            paragraphProperties12.Append(widowControl12);
            paragraphProperties12.Append(autoSpaceDE12);
            paragraphProperties12.Append(autoSpaceDN12);
            paragraphProperties12.Append(adjustRightIndent12);
            paragraphProperties12.Append(paragraphMarkRunProperties12);

            Run run13 = new Run();

            RunProperties runProperties13 = new RunProperties();
            RunFonts runFonts25 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize25 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript25 = new FontSizeComplexScript() { Val = "20" };

            runProperties13.Append(runFonts25);
            runProperties13.Append(fontSize25);
            runProperties13.Append(fontSizeComplexScript25);
            Text text13 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text13.Text = obj.BirthDate ;

            run13.Append(runProperties13);
            run13.Append(text13);

            paragraph12.Append(paragraphProperties12);
            paragraph12.Append(run13);

            tableCell8.Append(tableCellProperties8);
            tableCell8.Append(paragraph12);

            tableRow4.Append(tableRowProperties4);
            tableRow4.Append(tableCell7);
            tableRow4.Append(tableCell8);

            TableRow tableRow5 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00D60978" };

            TableRowProperties tableRowProperties5 = new TableRowProperties();
            TableRowHeight tableRowHeight5 = new TableRowHeight() { Val = (UInt32Value)262U };

            tableRowProperties5.Append(tableRowHeight5);

            TableCell tableCell9 = new TableCell();

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

            tableCellProperties9.Append(tableCellWidth9);

            Paragraph paragraph13 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties13 = new ParagraphProperties();
            WidowControl widowControl13 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE13 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN13 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent13 = new AdjustRightIndent() { Val = false };

            ParagraphMarkRunProperties paragraphMarkRunProperties13 = new ParagraphMarkRunProperties();
            RunFonts runFonts26 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize26 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript26 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties13.Append(runFonts26);
            paragraphMarkRunProperties13.Append(fontSize26);
            paragraphMarkRunProperties13.Append(fontSizeComplexScript26);

            paragraphProperties13.Append(widowControl13);
            paragraphProperties13.Append(autoSpaceDE13);
            paragraphProperties13.Append(autoSpaceDN13);
            paragraphProperties13.Append(adjustRightIndent13);
            paragraphProperties13.Append(paragraphMarkRunProperties13);

            Run run14 = new Run();

            RunProperties runProperties14 = new RunProperties();
            RunFonts runFonts27 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold8 = new Bold();
            BoldComplexScript boldComplexScript8 = new BoldComplexScript();
            FontSize fontSize27 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript27 = new FontSizeComplexScript() { Val = "20" };

            runProperties14.Append(runFonts27);
            runProperties14.Append(bold8);
            runProperties14.Append(boldComplexScript8);
            runProperties14.Append(fontSize27);
            runProperties14.Append(fontSizeComplexScript27);
            Text text14 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text14.Text = "Клинический материал: ";

            run14.Append(runProperties14);
            run14.Append(text14);

            paragraph13.Append(paragraphProperties13);
            paragraph13.Append(run14);

            tableCell9.Append(tableCellProperties9);
            tableCell9.Append(paragraph13);

            TableCell tableCell10 = new TableCell();

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

            tableCellProperties10.Append(tableCellWidth10);

            Paragraph paragraph14 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties14 = new ParagraphProperties();
            WidowControl widowControl14 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE14 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN14 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent14 = new AdjustRightIndent() { Val = false };

            ParagraphMarkRunProperties paragraphMarkRunProperties14 = new ParagraphMarkRunProperties();
            RunFonts runFonts28 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize28 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript28 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties14.Append(runFonts28);
            paragraphMarkRunProperties14.Append(fontSize28);
            paragraphMarkRunProperties14.Append(fontSizeComplexScript28);

            paragraphProperties14.Append(widowControl14);
            paragraphProperties14.Append(autoSpaceDE14);
            paragraphProperties14.Append(autoSpaceDN14);
            paragraphProperties14.Append(adjustRightIndent14);
            paragraphProperties14.Append(paragraphMarkRunProperties14);

            Run run15 = new Run();

            RunProperties runProperties15 = new RunProperties();
            RunFonts runFonts29 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize29 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript29 = new FontSizeComplexScript() { Val = "20" };

            runProperties15.Append(runFonts29);
            runProperties15.Append(fontSize29);
            runProperties15.Append(fontSizeComplexScript29);
            Text text15 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text15.Text = obj.ClinicMaterial ;

            run15.Append(runProperties15);
            run15.Append(text15);

            paragraph14.Append(paragraphProperties14);
            paragraph14.Append(run15);

            tableCell10.Append(tableCellProperties10);
            tableCell10.Append(paragraph14);

            tableRow5.Append(tableRowProperties5);
            tableRow5.Append(tableCell9);
            tableRow5.Append(tableCell10);

            TableRow tableRow6 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00D60978" };

            TableRowProperties tableRowProperties6 = new TableRowProperties();
            TableRowHeight tableRowHeight6 = new TableRowHeight() { Val = (UInt32Value)262U };

            tableRowProperties6.Append(tableRowHeight6);

            TableCell tableCell11 = new TableCell();

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

            tableCellProperties11.Append(tableCellWidth11);

            Paragraph paragraph15 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties15 = new ParagraphProperties();
            WidowControl widowControl15 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE15 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN15 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent15 = new AdjustRightIndent() { Val = false };

            ParagraphMarkRunProperties paragraphMarkRunProperties15 = new ParagraphMarkRunProperties();
            RunFonts runFonts30 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize30 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript30 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties15.Append(runFonts30);
            paragraphMarkRunProperties15.Append(fontSize30);
            paragraphMarkRunProperties15.Append(fontSizeComplexScript30);

            paragraphProperties15.Append(widowControl15);
            paragraphProperties15.Append(autoSpaceDE15);
            paragraphProperties15.Append(autoSpaceDN15);
            paragraphProperties15.Append(adjustRightIndent15);
            paragraphProperties15.Append(paragraphMarkRunProperties15);

            Run run16 = new Run();

            RunProperties runProperties16 = new RunProperties();
            RunFonts runFonts31 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold9 = new Bold();
            BoldComplexScript boldComplexScript9 = new BoldComplexScript();
            FontSize fontSize31 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript31 = new FontSizeComplexScript() { Val = "20" };

            runProperties16.Append(runFonts31);
            runProperties16.Append(bold9);
            runProperties16.Append(boldComplexScript9);
            runProperties16.Append(fontSize31);
            runProperties16.Append(fontSizeComplexScript31);
            Text text16 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text16.Text = "Дата доставки материала: ";

            run16.Append(runProperties16);
            run16.Append(text16);

            paragraph15.Append(paragraphProperties15);
            paragraph15.Append(run16);

            tableCell11.Append(tableCellProperties11);
            tableCell11.Append(paragraph15);

            TableCell tableCell12 = new TableCell();

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

            tableCellProperties12.Append(tableCellWidth12);

            Paragraph paragraph16 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties16 = new ParagraphProperties();
            WidowControl widowControl16 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE16 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN16 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent16 = new AdjustRightIndent() { Val = false };

            ParagraphMarkRunProperties paragraphMarkRunProperties16 = new ParagraphMarkRunProperties();
            RunFonts runFonts32 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize32 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript32 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties16.Append(runFonts32);
            paragraphMarkRunProperties16.Append(fontSize32);
            paragraphMarkRunProperties16.Append(fontSizeComplexScript32);

            paragraphProperties16.Append(widowControl16);
            paragraphProperties16.Append(autoSpaceDE16);
            paragraphProperties16.Append(autoSpaceDN16);
            paragraphProperties16.Append(adjustRightIndent16);
            paragraphProperties16.Append(paragraphMarkRunProperties16);

            Run run17 = new Run();

            RunProperties runProperties17 = new RunProperties();
            RunFonts runFonts33 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize33 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript33 = new FontSizeComplexScript() { Val = "20" };

            runProperties17.Append(runFonts33);
            runProperties17.Append(fontSize33);
            runProperties17.Append(fontSizeComplexScript33);
            Text text17 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text17.Text = obj.DateDeliverySample ;

            run17.Append(runProperties17);
            run17.Append(text17);

            paragraph16.Append(paragraphProperties16);
            paragraph16.Append(run17);

            tableCell12.Append(tableCellProperties12);
            tableCell12.Append(paragraph16);

            tableRow6.Append(tableRowProperties6);
            tableRow6.Append(tableCell11);
            tableRow6.Append(tableCell12);

            TableRow tableRow7 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00D60978" };

            TableRowProperties tableRowProperties7 = new TableRowProperties();
            TableRowHeight tableRowHeight7 = new TableRowHeight() { Val = (UInt32Value)262U };

            tableRowProperties7.Append(tableRowHeight7);

            TableCell tableCell13 = new TableCell();

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

            tableCellProperties13.Append(tableCellWidth13);

            Paragraph paragraph17 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00D60978" };

            ParagraphProperties paragraphProperties17 = new ParagraphProperties();
            WidowControl widowControl17 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE17 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN17 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent17 = new AdjustRightIndent() { Val = false };

            ParagraphMarkRunProperties paragraphMarkRunProperties17 = new ParagraphMarkRunProperties();
            RunFonts runFonts34 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize34 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript34 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties17.Append(runFonts34);
            paragraphMarkRunProperties17.Append(fontSize34);
            paragraphMarkRunProperties17.Append(fontSizeComplexScript34);

            paragraphProperties17.Append(widowControl17);
            paragraphProperties17.Append(autoSpaceDE17);
            paragraphProperties17.Append(autoSpaceDN17);
            paragraphProperties17.Append(adjustRightIndent17);
            paragraphProperties17.Append(paragraphMarkRunProperties17);

            Run run18 = new Run();

            RunProperties runProperties18 = new RunProperties();
            RunFonts runFonts35 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold10 = new Bold();
            BoldComplexScript boldComplexScript10 = new BoldComplexScript();
            FontSize fontSize35 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript35 = new FontSizeComplexScript() { Val = "20" };

            runProperties18.Append(runFonts35);
            runProperties18.Append(bold10);
            runProperties18.Append(boldComplexScript10);
            runProperties18.Append(fontSize35);
            runProperties18.Append(fontSizeComplexScript35);
            Text text18 = new Text();
            text18.Text = "Дата забора материала:";

            run18.Append(runProperties18);
            run18.Append(text18);

            Run run19 = new Run();

            RunProperties runProperties19 = new RunProperties();
            RunFonts runFonts36 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold11 = new Bold();
            BoldComplexScript boldComplexScript11 = new BoldComplexScript();
            FontSize fontSize36 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript36 = new FontSizeComplexScript() { Val = "20" };

            runProperties19.Append(runFonts36);
            runProperties19.Append(bold11);
            runProperties19.Append(boldComplexScript11);
            runProperties19.Append(fontSize36);
            runProperties19.Append(fontSizeComplexScript36);
            Text text19 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text19.Text = "";

            run19.Append(runProperties19);
            run19.Append(text19);

            paragraph17.Append(paragraphProperties17);
            paragraph17.Append(run18);
            paragraph17.Append(run19);

            tableCell13.Append(tableCellProperties13);
            tableCell13.Append(paragraph17);

            TableCell tableCell14 = new TableCell();

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

            tableCellProperties14.Append(tableCellWidth14);

            Paragraph paragraph18 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00D60978" };

            ParagraphProperties paragraphProperties18 = new ParagraphProperties();
            WidowControl widowControl18 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE18 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN18 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent18 = new AdjustRightIndent() { Val = false };

            ParagraphMarkRunProperties paragraphMarkRunProperties18 = new ParagraphMarkRunProperties();
            RunFonts runFonts37 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize37 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript37 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties18.Append(runFonts37);
            paragraphMarkRunProperties18.Append(fontSize37);
            paragraphMarkRunProperties18.Append(fontSizeComplexScript37);

            paragraphProperties18.Append(widowControl18);
            paragraphProperties18.Append(autoSpaceDE18);
            paragraphProperties18.Append(autoSpaceDN18);
            paragraphProperties18.Append(adjustRightIndent18);
            paragraphProperties18.Append(paragraphMarkRunProperties18);

            Run run20 = new Run();

            RunProperties runProperties20 = new RunProperties();
            RunFonts runFonts38 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize38 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript38 = new FontSizeComplexScript() { Val = "20" };

            runProperties20.Append(runFonts38);
            runProperties20.Append(fontSize38);
            runProperties20.Append(fontSizeComplexScript38);
            Text text20 = new Text();
            text20.Text = obj.DateRecieveSample;

            run20.Append(runProperties20);
            run20.Append(text20);

            paragraph18.Append(paragraphProperties18);
            paragraph18.Append(run20);

            tableCell14.Append(tableCellProperties14);
            tableCell14.Append(paragraph18);

            tableRow7.Append(tableRowProperties7);
            tableRow7.Append(tableCell13);
            tableRow7.Append(tableCell14);

            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);

            Paragraph paragraph19 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties19 = new ParagraphProperties();
            WidowControl widowControl19 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE19 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN19 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent19 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines5 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification3 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties19 = new ParagraphMarkRunProperties();
            RunFonts runFonts39 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize39 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript39 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties19.Append(runFonts39);
            paragraphMarkRunProperties19.Append(fontSize39);
            paragraphMarkRunProperties19.Append(fontSizeComplexScript39);

            paragraphProperties19.Append(widowControl19);
            paragraphProperties19.Append(autoSpaceDE19);
            paragraphProperties19.Append(autoSpaceDN19);
            paragraphProperties19.Append(adjustRightIndent19);
            paragraphProperties19.Append(spacingBetweenLines5);
            paragraphProperties19.Append(justification3);
            paragraphProperties19.Append(paragraphMarkRunProperties19);

            paragraph19.Append(paragraphProperties19);

            Paragraph paragraph20 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties20 = new ParagraphProperties();
            WidowControl widowControl20 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE20 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN20 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent20 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines6 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification4 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties20 = new ParagraphMarkRunProperties();
            RunFonts runFonts40 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize40 = new FontSize() { Val = "20" };
            FontSizeComplexScript fontSizeComplexScript40 = new FontSizeComplexScript() { Val = "20" };

            paragraphMarkRunProperties20.Append(runFonts40);
            paragraphMarkRunProperties20.Append(fontSize40);
            paragraphMarkRunProperties20.Append(fontSizeComplexScript40);

            paragraphProperties20.Append(widowControl20);
            paragraphProperties20.Append(autoSpaceDE20);
            paragraphProperties20.Append(autoSpaceDN20);
            paragraphProperties20.Append(adjustRightIndent20);
            paragraphProperties20.Append(spacingBetweenLines6);
            paragraphProperties20.Append(justification4);
            paragraphProperties20.Append(paragraphMarkRunProperties20);

            paragraph20.Append(paragraphProperties20);

            Paragraph paragraph21 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties21 = new ParagraphProperties();
            WidowControl widowControl21 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE21 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN21 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent21 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines7 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties21 = new ParagraphMarkRunProperties();
            RunFonts runFonts41 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize41 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript41 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties21.Append(runFonts41);
            paragraphMarkRunProperties21.Append(fontSize41);
            paragraphMarkRunProperties21.Append(fontSizeComplexScript41);

            paragraphProperties21.Append(widowControl21);
            paragraphProperties21.Append(autoSpaceDE21);
            paragraphProperties21.Append(autoSpaceDN21);
            paragraphProperties21.Append(adjustRightIndent21);
            paragraphProperties21.Append(spacingBetweenLines7);
            paragraphProperties21.Append(paragraphMarkRunProperties21);

            Run run21 = new Run();

            RunProperties runProperties21 = new RunProperties();
            RunFonts runFonts42 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize42 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript42 = new FontSizeComplexScript() { Val = "16" };

            runProperties21.Append(runFonts42);
            runProperties21.Append(fontSize42);
            runProperties21.Append(fontSizeComplexScript42);
            Text text21 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text21.Text = " ";

            run21.Append(runProperties21);
            run21.Append(text21);

            Run run22 = new Run();

            RunProperties runProperties22 = new RunProperties();
            RunFonts runFonts43 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold12 = new Bold();
            BoldComplexScript boldComplexScript12 = new BoldComplexScript();
            FontSize fontSize43 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript43 = new FontSizeComplexScript() { Val = "16" };

            runProperties22.Append(runFonts43);
            runProperties22.Append(bold12);
            runProperties22.Append(boldComplexScript12);
            runProperties22.Append(fontSize43);
            runProperties22.Append(fontSizeComplexScript43);
            Text text22 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text22.Text = "Список заказанных анализов ";

            run22.Append(runProperties22);
            run22.Append(text22);

            paragraph21.Append(paragraphProperties21);
            paragraph21.Append(run21);
            paragraph21.Append(run22);

            Paragraph paragraph22 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties22 = new ParagraphProperties();
            WidowControl widowControl22 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE22 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN22 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent22 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines8 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties22 = new ParagraphMarkRunProperties();
            RunFonts runFonts44 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize44 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript44 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties22.Append(runFonts44);
            paragraphMarkRunProperties22.Append(fontSize44);
            paragraphMarkRunProperties22.Append(fontSizeComplexScript44);

            paragraphProperties22.Append(widowControl22);
            paragraphProperties22.Append(autoSpaceDE22);
            paragraphProperties22.Append(autoSpaceDN22);
            paragraphProperties22.Append(adjustRightIndent22);
            paragraphProperties22.Append(spacingBetweenLines8);
            paragraphProperties22.Append(paragraphMarkRunProperties22);

            paragraph22.Append(paragraphProperties22);

            /////////////////////////////
            // ТАБЛИЦА СПИСОК АНАЛИЗОВ //
            //////////////////////////////////////////////////////////////////////
            Table table2 = new Table();

            TableProperties tableProperties2 = new TableProperties();
            TableWidth tableWidth2 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto };
            TableIndentation tableIndentation1 = new TableIndentation() { Width = 30, Type = TableWidthUnitValues.Dxa };

            TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault();
            TableCellLeftMargin tableCellLeftMargin1 = new TableCellLeftMargin() { Width = 30, Type = TableWidthValues.Dxa };
            TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin() { Width = 30, Type = TableWidthValues.Dxa };

            tableCellMarginDefault1.Append(tableCellLeftMargin1);
            tableCellMarginDefault1.Append(tableCellRightMargin1);
            TableLook tableLook2 = new TableLook() { Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false };

            tableProperties2.Append(tableWidth2);
            tableProperties2.Append(tableIndentation1);
            tableProperties2.Append(tableCellMarginDefault1);
            tableProperties2.Append(tableLook2);

            TableGrid tableGrid2 = new TableGrid();
            GridColumn gridColumn3 = new GridColumn() { Width = "500" };
            GridColumn gridColumn4 = new GridColumn() { Width = "1000" };
            GridColumn gridColumn5 = new GridColumn() { Width = "5500" };
            GridColumn gridColumn6 = new GridColumn() { Width = "1500" };

            tableGrid2.Append(gridColumn3);
            tableGrid2.Append(gridColumn4);
            tableGrid2.Append(gridColumn5);
            tableGrid2.Append(gridColumn6);

            //
            // новая строка таблицы
            //

            TableRow tableRow8 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00B819CE" };

            TableRowProperties tableRowProperties8 = new TableRowProperties();
            TableRowHeight tableRowHeight8 = new TableRowHeight() { Val = (UInt32Value)262U };
            TableHeader tableHeader1 = new TableHeader();

            tableRowProperties8.Append(tableRowHeight8);
            tableRowProperties8.Append(tableHeader1);

            TableCell tableCell15 = new TableCell();

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

            TableCellBorders tableCellBorders1 = new TableCellBorders();
            TopBorder topBorder2 = new TopBorder() { Val = BorderValues.Nil };
            LeftBorder leftBorder2 = new LeftBorder() { Val = BorderValues.Nil };
            BottomBorder bottomBorder2 = new BottomBorder() { Val = BorderValues.Nil };
            RightBorder rightBorder2 = new RightBorder() { Val = BorderValues.Nil };

            tableCellBorders1.Append(topBorder2);
            tableCellBorders1.Append(leftBorder2);
            tableCellBorders1.Append(bottomBorder2);
            tableCellBorders1.Append(rightBorder2);

            tableCellProperties15.Append(tableCellWidth15);
            tableCellProperties15.Append(tableCellBorders1);

            Paragraph paragraph23 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties23 = new ParagraphProperties();
            WidowControl widowControl23 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE23 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN23 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent23 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines9 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties23 = new ParagraphMarkRunProperties();
            RunFonts runFonts45 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize45 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript45 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties23.Append(runFonts45);
            paragraphMarkRunProperties23.Append(fontSize45);
            paragraphMarkRunProperties23.Append(fontSizeComplexScript45);

            paragraphProperties23.Append(widowControl23);
            paragraphProperties23.Append(autoSpaceDE23);
            paragraphProperties23.Append(autoSpaceDN23);
            paragraphProperties23.Append(adjustRightIndent23);
            paragraphProperties23.Append(spacingBetweenLines9);
            paragraphProperties23.Append(paragraphMarkRunProperties23);

            Run run23 = new Run();

            RunProperties runProperties23 = new RunProperties();
            RunFonts runFonts46 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold13 = new Bold();
            BoldComplexScript boldComplexScript13 = new BoldComplexScript();
            Italic italic1 = new Italic();
            ItalicComplexScript italicComplexScript1 = new ItalicComplexScript();
            FontSize fontSize46 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript46 = new FontSizeComplexScript() { Val = "16" };
            Underline underline1 = new Underline() { Val = UnderlineValues.Single };

            runProperties23.Append(runFonts46);
            runProperties23.Append(bold13);
            runProperties23.Append(boldComplexScript13);
            runProperties23.Append(italic1);
            runProperties23.Append(italicComplexScript1);
            runProperties23.Append(fontSize46);
            runProperties23.Append(fontSizeComplexScript46);
            runProperties23.Append(underline1);
            Text text23 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text23.Text = "№ ";

            run23.Append(runProperties23);
            run23.Append(text23);

            paragraph23.Append(paragraphProperties23);
            paragraph23.Append(run23);

            tableCell15.Append(tableCellProperties15);
            tableCell15.Append(paragraph23);

            TableCell tableCell16 = new TableCell();

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

            TableCellBorders tableCellBorders2 = new TableCellBorders();
            TopBorder topBorder3 = new TopBorder() { Val = BorderValues.Nil };
            LeftBorder leftBorder3 = new LeftBorder() { Val = BorderValues.Nil };
            BottomBorder bottomBorder3 = new BottomBorder() { Val = BorderValues.Nil };
            RightBorder rightBorder3 = new RightBorder() { Val = BorderValues.Nil };

            tableCellBorders2.Append(topBorder3);
            tableCellBorders2.Append(leftBorder3);
            tableCellBorders2.Append(bottomBorder3);
            tableCellBorders2.Append(rightBorder3);

            tableCellProperties16.Append(tableCellWidth16);
            tableCellProperties16.Append(tableCellBorders2);

            Paragraph paragraph24 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties24 = new ParagraphProperties();
            WidowControl widowControl24 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE24 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN24 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent24 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines10 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification5 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties24 = new ParagraphMarkRunProperties();
            RunFonts runFonts47 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize47 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript47 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties24.Append(runFonts47);
            paragraphMarkRunProperties24.Append(fontSize47);
            paragraphMarkRunProperties24.Append(fontSizeComplexScript47);

            paragraphProperties24.Append(widowControl24);
            paragraphProperties24.Append(autoSpaceDE24);
            paragraphProperties24.Append(autoSpaceDN24);
            paragraphProperties24.Append(adjustRightIndent24);
            paragraphProperties24.Append(spacingBetweenLines10);
            paragraphProperties24.Append(justification5);
            paragraphProperties24.Append(paragraphMarkRunProperties24);

            Run run24 = new Run();

            RunProperties runProperties24 = new RunProperties();
            RunFonts runFonts48 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold14 = new Bold();
            BoldComplexScript boldComplexScript14 = new BoldComplexScript();
            Italic italic2 = new Italic();
            ItalicComplexScript italicComplexScript2 = new ItalicComplexScript();
            FontSize fontSize48 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript48 = new FontSizeComplexScript() { Val = "16" };
            Underline underline2 = new Underline() { Val = UnderlineValues.Single };

            runProperties24.Append(runFonts48);
            runProperties24.Append(bold14);
            runProperties24.Append(boldComplexScript14);
            runProperties24.Append(italic2);
            runProperties24.Append(italicComplexScript2);
            runProperties24.Append(fontSize48);
            runProperties24.Append(fontSizeComplexScript48);
            runProperties24.Append(underline2);
            Text text24 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text24.Text = "Код ";

            run24.Append(runProperties24);
            run24.Append(text24);

            paragraph24.Append(paragraphProperties24);
            paragraph24.Append(run24);

            tableCell16.Append(tableCellProperties16);
            tableCell16.Append(paragraph24);

            TableCell tableCell17 = new TableCell();

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

            TableCellBorders tableCellBorders3 = new TableCellBorders();
            TopBorder topBorder4 = new TopBorder() { Val = BorderValues.Nil };
            LeftBorder leftBorder4 = new LeftBorder() { Val = BorderValues.Nil };
            BottomBorder bottomBorder4 = new BottomBorder() { Val = BorderValues.Nil };
            RightBorder rightBorder4 = new RightBorder() { Val = BorderValues.Nil };

            tableCellBorders3.Append(topBorder4);
            tableCellBorders3.Append(leftBorder4);
            tableCellBorders3.Append(bottomBorder4);
            tableCellBorders3.Append(rightBorder4);

            tableCellProperties17.Append(tableCellWidth17);
            tableCellProperties17.Append(tableCellBorders3);

            Paragraph paragraph25 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties25 = new ParagraphProperties();
            WidowControl widowControl25 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE25 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN25 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent25 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines11 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties25 = new ParagraphMarkRunProperties();
            RunFonts runFonts49 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize49 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript49 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties25.Append(runFonts49);
            paragraphMarkRunProperties25.Append(fontSize49);
            paragraphMarkRunProperties25.Append(fontSizeComplexScript49);

            paragraphProperties25.Append(widowControl25);
            paragraphProperties25.Append(autoSpaceDE25);
            paragraphProperties25.Append(autoSpaceDN25);
            paragraphProperties25.Append(adjustRightIndent25);
            paragraphProperties25.Append(spacingBetweenLines11);
            paragraphProperties25.Append(paragraphMarkRunProperties25);

            Run run25 = new Run();

            RunProperties runProperties25 = new RunProperties();
            RunFonts runFonts50 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold15 = new Bold();
            BoldComplexScript boldComplexScript15 = new BoldComplexScript();
            Italic italic3 = new Italic();
            ItalicComplexScript italicComplexScript3 = new ItalicComplexScript();
            FontSize fontSize50 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript50 = new FontSizeComplexScript() { Val = "16" };
            Underline underline3 = new Underline() { Val = UnderlineValues.Single };

            runProperties25.Append(runFonts50);
            runProperties25.Append(bold15);
            runProperties25.Append(boldComplexScript15);
            runProperties25.Append(italic3);
            runProperties25.Append(italicComplexScript3);
            runProperties25.Append(fontSize50);
            runProperties25.Append(fontSizeComplexScript50);
            runProperties25.Append(underline3);
            Text text25 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text25.Text = "Тип анализа ";

            run25.Append(runProperties25);
            run25.Append(text25);

            paragraph25.Append(paragraphProperties25);
            paragraph25.Append(run25);

            tableCell17.Append(tableCellProperties17);
            tableCell17.Append(paragraph25);

            TableCell tableCell18 = new TableCell();

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

            TableCellBorders tableCellBorders4 = new TableCellBorders();
            TopBorder topBorder5 = new TopBorder() { Val = BorderValues.Nil };
            LeftBorder leftBorder5 = new LeftBorder() { Val = BorderValues.Nil };
            BottomBorder bottomBorder5 = new BottomBorder() { Val = BorderValues.Nil };
            RightBorder rightBorder5 = new RightBorder() { Val = BorderValues.Nil };

            tableCellBorders4.Append(topBorder5);
            tableCellBorders4.Append(leftBorder5);
            tableCellBorders4.Append(bottomBorder5);
            tableCellBorders4.Append(rightBorder5);

            tableCellProperties18.Append(tableCellWidth18);
            tableCellProperties18.Append(tableCellBorders4);

            Paragraph paragraph26 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties26 = new ParagraphProperties();
            WidowControl widowControl26 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE26 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN26 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent26 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines12 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties26 = new ParagraphMarkRunProperties();
            RunFonts runFonts51 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize51 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript51 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties26.Append(runFonts51);
            paragraphMarkRunProperties26.Append(fontSize51);
            paragraphMarkRunProperties26.Append(fontSizeComplexScript51);

            paragraphProperties26.Append(widowControl26);
            paragraphProperties26.Append(autoSpaceDE26);
            paragraphProperties26.Append(autoSpaceDN26);
            paragraphProperties26.Append(adjustRightIndent26);
            paragraphProperties26.Append(spacingBetweenLines12);
            paragraphProperties26.Append(paragraphMarkRunProperties26);

            Run run26 = new Run();

            RunProperties runProperties26 = new RunProperties();
            RunFonts runFonts52 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold16 = new Bold();
            BoldComplexScript boldComplexScript16 = new BoldComplexScript();
            Italic italic4 = new Italic();
            ItalicComplexScript italicComplexScript4 = new ItalicComplexScript();
            FontSize fontSize52 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript52 = new FontSizeComplexScript() { Val = "16" };
            Underline underline4 = new Underline() { Val = UnderlineValues.Single };

            runProperties26.Append(runFonts52);
            runProperties26.Append(bold16);
            runProperties26.Append(boldComplexScript16);
            runProperties26.Append(italic4);
            runProperties26.Append(italicComplexScript4);
            runProperties26.Append(fontSize52);
            runProperties26.Append(fontSizeComplexScript52);
            runProperties26.Append(underline4);
            Text text26 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text26.Text = "Стоимость ";

            run26.Append(runProperties26);
            run26.Append(text26);

            paragraph26.Append(paragraphProperties26);
            paragraph26.Append(run26);

            tableCell18.Append(tableCellProperties18);
            tableCell18.Append(paragraph26);

            tableRow8.Append(tableRowProperties8);
            tableRow8.Append(tableCell15);
            tableRow8.Append(tableCell16);
            tableRow8.Append(tableCell17);
            tableRow8.Append(tableCell18);

            TableRow tableRow9 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00B819CE" };

            TableRowProperties tableRowProperties9 = new TableRowProperties();
            TableRowHeight tableRowHeight9 = new TableRowHeight() { Val = (UInt32Value)262U };

            tableRowProperties9.Append(tableRowHeight9);

            TableCell tableCell19 = new TableCell();

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

            TableCellBorders tableCellBorders5 = new TableCellBorders();
            TopBorder topBorder6 = new TopBorder() { Val = BorderValues.Nil };
            LeftBorder leftBorder6 = new LeftBorder() { Val = BorderValues.Nil };
            BottomBorder bottomBorder6 = new BottomBorder() { Val = BorderValues.Nil };
            RightBorder rightBorder6 = new RightBorder() { Val = BorderValues.Nil };

            tableCellBorders5.Append(topBorder6);
            tableCellBorders5.Append(leftBorder6);
            tableCellBorders5.Append(bottomBorder6);
            tableCellBorders5.Append(rightBorder6);

            tableCellProperties19.Append(tableCellWidth19);
            tableCellProperties19.Append(tableCellBorders5);

            Paragraph paragraph27 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties27 = new ParagraphProperties();
            WidowControl widowControl27 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE27 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN27 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent27 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines13 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties27 = new ParagraphMarkRunProperties();
            RunFonts runFonts53 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize53 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript53 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties27.Append(runFonts53);
            paragraphMarkRunProperties27.Append(fontSize53);
            paragraphMarkRunProperties27.Append(fontSizeComplexScript53);

            paragraphProperties27.Append(widowControl27);
            paragraphProperties27.Append(autoSpaceDE27);
            paragraphProperties27.Append(autoSpaceDN27);
            paragraphProperties27.Append(adjustRightIndent27);
            paragraphProperties27.Append(spacingBetweenLines13);
            paragraphProperties27.Append(paragraphMarkRunProperties27);
            //
            //Закончился ввод шапки таблицы
            //

            //
            //Началось заполнение данных таблицы
            //
            foreach (var itemAnalysis in obj.AnalysisList)
            {
                Run run27 = new Run();

                RunProperties runProperties27 = new RunProperties();
                RunFonts runFonts54 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
                FontSize fontSize54 = new FontSize() { Val = "16" };
                FontSizeComplexScript fontSizeComplexScript54 = new FontSizeComplexScript() { Val = "16" };

                runProperties27.Append(runFonts54);
                runProperties27.Append(fontSize54);
                runProperties27.Append(fontSizeComplexScript54);
                Text text27 = new Text() { Space = SpaceProcessingModeValues.Preserve };
                text27.Text = itemAnalysis.AnalysisPosition ;

                run27.Append(runProperties27);
                run27.Append(text27);

                paragraph27.Append(paragraphProperties27);
                paragraph27.Append(run27);

                tableCell19.Append(tableCellProperties19);
                tableCell19.Append(paragraph27);

                TableCell tableCell20 = new TableCell();

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

                TableCellBorders tableCellBorders6 = new TableCellBorders();
                TopBorder topBorder7 = new TopBorder() { Val = BorderValues.Nil };
                LeftBorder leftBorder7 = new LeftBorder() { Val = BorderValues.Nil };
                BottomBorder bottomBorder7 = new BottomBorder() { Val = BorderValues.Nil };
                RightBorder rightBorder7 = new RightBorder() { Val = BorderValues.Nil };

                tableCellBorders6.Append(topBorder7);
                tableCellBorders6.Append(leftBorder7);
                tableCellBorders6.Append(bottomBorder7);
                tableCellBorders6.Append(rightBorder7);

                tableCellProperties20.Append(tableCellWidth20);
                tableCellProperties20.Append(tableCellBorders6);

                Paragraph paragraph28 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

                ParagraphProperties paragraphProperties28 = new ParagraphProperties();
                WidowControl widowControl28 = new WidowControl() { Val = false };
                AutoSpaceDE autoSpaceDE28 = new AutoSpaceDE() { Val = false };
                AutoSpaceDN autoSpaceDN28 = new AutoSpaceDN() { Val = false };
                AdjustRightIndent adjustRightIndent28 = new AdjustRightIndent() { Val = false };
                SpacingBetweenLines spacingBetweenLines14 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                Justification justification6 = new Justification() { Val = JustificationValues.Center };

                ParagraphMarkRunProperties paragraphMarkRunProperties28 = new ParagraphMarkRunProperties();
                RunFonts runFonts55 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
                FontSize fontSize55 = new FontSize() { Val = "16" };
                FontSizeComplexScript fontSizeComplexScript55 = new FontSizeComplexScript() { Val = "16" };

                paragraphMarkRunProperties28.Append(runFonts55);
                paragraphMarkRunProperties28.Append(fontSize55);
                paragraphMarkRunProperties28.Append(fontSizeComplexScript55);

                paragraphProperties28.Append(widowControl28);
                paragraphProperties28.Append(autoSpaceDE28);
                paragraphProperties28.Append(autoSpaceDN28);
                paragraphProperties28.Append(adjustRightIndent28);
                paragraphProperties28.Append(spacingBetweenLines14);
                paragraphProperties28.Append(justification6);
                paragraphProperties28.Append(paragraphMarkRunProperties28);

                Run run28 = new Run();

                RunProperties runProperties28 = new RunProperties();
                RunFonts runFonts56 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
                FontSize fontSize56 = new FontSize() { Val = "16" };
                FontSizeComplexScript fontSizeComplexScript56 = new FontSizeComplexScript() { Val = "16" };

                runProperties28.Append(runFonts56);
                runProperties28.Append(fontSize56);
                runProperties28.Append(fontSizeComplexScript56);
                Text text28 = new Text() { Space = SpaceProcessingModeValues.Preserve };
                text28.Text = itemAnalysis.AnalysisCode ;

                run28.Append(runProperties28);
                run28.Append(text28);

                paragraph28.Append(paragraphProperties28);
                paragraph28.Append(run28);

                tableCell20.Append(tableCellProperties20);
                tableCell20.Append(paragraph28);

                TableCell tableCell21 = new TableCell();

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

                TableCellBorders tableCellBorders7 = new TableCellBorders();
                TopBorder topBorder8 = new TopBorder() { Val = BorderValues.Nil };
                LeftBorder leftBorder8 = new LeftBorder() { Val = BorderValues.Nil };
                BottomBorder bottomBorder8 = new BottomBorder() { Val = BorderValues.Nil };
                RightBorder rightBorder8 = new RightBorder() { Val = BorderValues.Nil };

                tableCellBorders7.Append(topBorder8);
                tableCellBorders7.Append(leftBorder8);
                tableCellBorders7.Append(bottomBorder8);
                tableCellBorders7.Append(rightBorder8);

                tableCellProperties21.Append(tableCellWidth21);
                tableCellProperties21.Append(tableCellBorders7);

                Paragraph paragraph29 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

                ParagraphProperties paragraphProperties29 = new ParagraphProperties();
                WidowControl widowControl29 = new WidowControl() { Val = false };
                AutoSpaceDE autoSpaceDE29 = new AutoSpaceDE() { Val = false };
                AutoSpaceDN autoSpaceDN29 = new AutoSpaceDN() { Val = false };
                AdjustRightIndent adjustRightIndent29 = new AdjustRightIndent() { Val = false };
                SpacingBetweenLines spacingBetweenLines15 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

                ParagraphMarkRunProperties paragraphMarkRunProperties29 = new ParagraphMarkRunProperties();
                RunFonts runFonts57 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
                FontSize fontSize57 = new FontSize() { Val = "16" };
                FontSizeComplexScript fontSizeComplexScript57 = new FontSizeComplexScript() { Val = "16" };

                paragraphMarkRunProperties29.Append(runFonts57);
                paragraphMarkRunProperties29.Append(fontSize57);
                paragraphMarkRunProperties29.Append(fontSizeComplexScript57);

                paragraphProperties29.Append(widowControl29);
                paragraphProperties29.Append(autoSpaceDE29);
                paragraphProperties29.Append(autoSpaceDN29);
                paragraphProperties29.Append(adjustRightIndent29);
                paragraphProperties29.Append(spacingBetweenLines15);
                paragraphProperties29.Append(paragraphMarkRunProperties29);

                Run run29 = new Run();

                RunProperties runProperties29 = new RunProperties();
                RunFonts runFonts58 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
                FontSize fontSize58 = new FontSize() { Val = "16" };
                FontSizeComplexScript fontSizeComplexScript58 = new FontSizeComplexScript() { Val = "16" };

                runProperties29.Append(runFonts58);
                runProperties29.Append(fontSize58);
                runProperties29.Append(fontSizeComplexScript58);
                Text text29 = new Text() { Space = SpaceProcessingModeValues.Preserve };
                text29.Text = itemAnalysis.AnalysisDescription ;

                run29.Append(runProperties29);
                run29.Append(text29);

                paragraph29.Append(paragraphProperties29);
                paragraph29.Append(run29);

                tableCell21.Append(tableCellProperties21);
                tableCell21.Append(paragraph29);

                TableCell tableCell22 = new TableCell();

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

                TableCellBorders tableCellBorders8 = new TableCellBorders();
                TopBorder topBorder9 = new TopBorder() { Val = BorderValues.Nil };
                LeftBorder leftBorder9 = new LeftBorder() { Val = BorderValues.Nil };
                BottomBorder bottomBorder9 = new BottomBorder() { Val = BorderValues.Nil };
                RightBorder rightBorder9 = new RightBorder() { Val = BorderValues.Nil };

                tableCellBorders8.Append(topBorder9);
                tableCellBorders8.Append(leftBorder9);
                tableCellBorders8.Append(bottomBorder9);
                tableCellBorders8.Append(rightBorder9);

                tableCellProperties22.Append(tableCellWidth22);
                tableCellProperties22.Append(tableCellBorders8);

                Paragraph paragraph30 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

                ParagraphProperties paragraphProperties30 = new ParagraphProperties();
                WidowControl widowControl30 = new WidowControl() { Val = false };
                AutoSpaceDE autoSpaceDE30 = new AutoSpaceDE() { Val = false };
                AutoSpaceDN autoSpaceDN30 = new AutoSpaceDN() { Val = false };
                AdjustRightIndent adjustRightIndent30 = new AdjustRightIndent() { Val = false };
                SpacingBetweenLines spacingBetweenLines16 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

                ParagraphMarkRunProperties paragraphMarkRunProperties30 = new ParagraphMarkRunProperties();
                RunFonts runFonts59 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
                FontSize fontSize59 = new FontSize() { Val = "16" };
                FontSizeComplexScript fontSizeComplexScript59 = new FontSizeComplexScript() { Val = "16" };

                paragraphMarkRunProperties30.Append(runFonts59);
                paragraphMarkRunProperties30.Append(fontSize59);
                paragraphMarkRunProperties30.Append(fontSizeComplexScript59);

                paragraphProperties30.Append(widowControl30);
                paragraphProperties30.Append(autoSpaceDE30);
                paragraphProperties30.Append(autoSpaceDN30);
                paragraphProperties30.Append(adjustRightIndent30);
                paragraphProperties30.Append(spacingBetweenLines16);
                paragraphProperties30.Append(paragraphMarkRunProperties30);

                Run run30 = new Run();

                RunProperties runProperties30 = new RunProperties();
                RunFonts runFonts60 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
                FontSize fontSize60 = new FontSize() { Val = "16" };
                FontSizeComplexScript fontSizeComplexScript60 = new FontSizeComplexScript() { Val = "16" };

                runProperties30.Append(runFonts60);
                runProperties30.Append(fontSize60);
                runProperties30.Append(fontSizeComplexScript60);
                Text text30 = new Text() { Space = SpaceProcessingModeValues.Preserve };
                text30.Text = itemAnalysis.AnalysisPrice ;

                run30.Append(runProperties30);
                run30.Append(text30);

                paragraph30.Append(paragraphProperties30);
                paragraph30.Append(run30);

                tableCell22.Append(tableCellProperties22);
                tableCell22.Append(paragraph30);

                tableRow9.Append(tableRowProperties9);
                tableRow9.Append(tableCell19);
                tableRow9.Append(tableCell20);
                tableRow9.Append(tableCell21);
                tableRow9.Append(tableCell22);
            }

            //
            //Заканчиваем ввод таблицы
            //
            table2.Append(tableProperties2);
            table2.Append(tableGrid2);
            table2.Append(tableRow8);
            table2.Append(tableRow9);

            Paragraph paragraph31 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties31 = new ParagraphProperties();
            WidowControl widowControl31 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE31 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN31 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent31 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines17 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties31 = new ParagraphMarkRunProperties();
            RunFonts runFonts61 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize61 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript61 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties31.Append(runFonts61);
            paragraphMarkRunProperties31.Append(fontSize61);
            paragraphMarkRunProperties31.Append(fontSizeComplexScript61);

            paragraphProperties31.Append(widowControl31);
            paragraphProperties31.Append(autoSpaceDE31);
            paragraphProperties31.Append(autoSpaceDN31);
            paragraphProperties31.Append(adjustRightIndent31);
            paragraphProperties31.Append(spacingBetweenLines17);
            paragraphProperties31.Append(paragraphMarkRunProperties31);

            paragraph31.Append(paragraphProperties31);

            Paragraph paragraph32 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties32 = new ParagraphProperties();
            WidowControl widowControl32 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE32 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN32 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent32 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines18 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties32 = new ParagraphMarkRunProperties();
            RunFonts runFonts62 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize62 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript62 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties32.Append(runFonts62);
            paragraphMarkRunProperties32.Append(fontSize62);
            paragraphMarkRunProperties32.Append(fontSizeComplexScript62);

            paragraphProperties32.Append(widowControl32);
            paragraphProperties32.Append(autoSpaceDE32);
            paragraphProperties32.Append(autoSpaceDN32);
            paragraphProperties32.Append(adjustRightIndent32);
            paragraphProperties32.Append(spacingBetweenLines18);
            paragraphProperties32.Append(paragraphMarkRunProperties32);

            paragraph32.Append(paragraphProperties32);

            Paragraph paragraph33 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties33 = new ParagraphProperties();
            WidowControl widowControl33 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE33 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN33 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent33 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines19 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties33 = new ParagraphMarkRunProperties();
            RunFonts runFonts63 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize63 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript63 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties33.Append(runFonts63);
            paragraphMarkRunProperties33.Append(fontSize63);
            paragraphMarkRunProperties33.Append(fontSizeComplexScript63);

            paragraphProperties33.Append(widowControl33);
            paragraphProperties33.Append(autoSpaceDE33);
            paragraphProperties33.Append(autoSpaceDN33);
            paragraphProperties33.Append(adjustRightIndent33);
            paragraphProperties33.Append(spacingBetweenLines19);
            paragraphProperties33.Append(paragraphMarkRunProperties33);

            Run run31 = new Run();

            RunProperties runProperties31 = new RunProperties();
            RunFonts runFonts64 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize64 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript64 = new FontSizeComplexScript() { Val = "16" };

            runProperties31.Append(runFonts64);
            runProperties31.Append(fontSize64);
            runProperties31.Append(fontSizeComplexScript64);
            Text text31 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text31.Text = " ";

            run31.Append(runProperties31);
            run31.Append(text31);

            Run run32 = new Run();

            RunProperties runProperties32 = new RunProperties();
            RunFonts runFonts65 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold17 = new Bold();
            BoldComplexScript boldComplexScript17 = new BoldComplexScript();
            FontSize fontSize65 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript65 = new FontSizeComplexScript() { Val = "16" };

            runProperties32.Append(runFonts65);
            runProperties32.Append(bold17);
            runProperties32.Append(boldComplexScript17);
            runProperties32.Append(fontSize65);
            runProperties32.Append(fontSizeComplexScript65);
            Text text32 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text32.Text = "Дополнительные услуги ";

            run32.Append(runProperties32);
            run32.Append(text32);

            paragraph33.Append(paragraphProperties33);
            paragraph33.Append(run31);
            paragraph33.Append(run32);

            Paragraph paragraph34 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties34 = new ParagraphProperties();
            WidowControl widowControl34 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE34 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN34 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent34 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines20 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties34 = new ParagraphMarkRunProperties();
            RunFonts runFonts66 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize66 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript66 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties34.Append(runFonts66);
            paragraphMarkRunProperties34.Append(fontSize66);
            paragraphMarkRunProperties34.Append(fontSizeComplexScript66);

            paragraphProperties34.Append(widowControl34);
            paragraphProperties34.Append(autoSpaceDE34);
            paragraphProperties34.Append(autoSpaceDN34);
            paragraphProperties34.Append(adjustRightIndent34);
            paragraphProperties34.Append(spacingBetweenLines20);
            paragraphProperties34.Append(paragraphMarkRunProperties34);

            paragraph34.Append(paragraphProperties34);

            /////////////////////////////////////////////
            // Начинается ввод таблицы с дополнительными услугами
            ////////////////////////////////////////////////
            Table table3 = new Table();

            TableProperties tableProperties3 = new TableProperties();
            TableWidth tableWidth3 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto };
            TableIndentation tableIndentation2 = new TableIndentation() { Width = 30, Type = TableWidthUnitValues.Dxa };
            TableLayout tableLayout2 = new TableLayout() { Type = TableLayoutValues.Fixed };

            TableCellMarginDefault tableCellMarginDefault2 = new TableCellMarginDefault();
            TableCellLeftMargin tableCellLeftMargin2 = new TableCellLeftMargin() { Width = 30, Type = TableWidthValues.Dxa };
            TableCellRightMargin tableCellRightMargin2 = new TableCellRightMargin() { Width = 30, Type = TableWidthValues.Dxa };

            tableCellMarginDefault2.Append(tableCellLeftMargin2);
            tableCellMarginDefault2.Append(tableCellRightMargin2);
            TableLook tableLook3 = new TableLook() { Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false };

            tableProperties3.Append(tableWidth3);
            tableProperties3.Append(tableIndentation2);
            tableProperties3.Append(tableLayout2);
            tableProperties3.Append(tableCellMarginDefault2);
            tableProperties3.Append(tableLook3);

            TableGrid tableGrid3 = new TableGrid();
            GridColumn gridColumn7 = new GridColumn() { Width = "500" };
            GridColumn gridColumn8 = new GridColumn() { Width = "1000" };
            GridColumn gridColumn9 = new GridColumn() { Width = "5500" };
            GridColumn gridColumn10 = new GridColumn() { Width = "1500" };

            tableGrid3.Append(gridColumn7);
            tableGrid3.Append(gridColumn8);
            tableGrid3.Append(gridColumn9);
            tableGrid3.Append(gridColumn10);

            //
            // Пошло заполнение данных
            //
            foreach (var itemAddService in obj.AddServiceList)
            {
                TableRow tableRow10 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00B819CE" };

                TableRowProperties tableRowProperties10 = new TableRowProperties();
                TableRowHeight tableRowHeight10 = new TableRowHeight() { Val = (UInt32Value)262U };

                tableRowProperties10.Append(tableRowHeight10);

                TableCell tableCell23 = new TableCell();

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

                TableCellBorders tableCellBorders9 = new TableCellBorders();
                TopBorder topBorder10 = new TopBorder() { Val = BorderValues.Nil };
                LeftBorder leftBorder10 = new LeftBorder() { Val = BorderValues.Nil };
                BottomBorder bottomBorder10 = new BottomBorder() { Val = BorderValues.Nil };
                RightBorder rightBorder10 = new RightBorder() { Val = BorderValues.Nil };

                tableCellBorders9.Append(topBorder10);
                tableCellBorders9.Append(leftBorder10);
                tableCellBorders9.Append(bottomBorder10);
                tableCellBorders9.Append(rightBorder10);

                tableCellProperties23.Append(tableCellWidth23);
                tableCellProperties23.Append(tableCellBorders9);

                Paragraph paragraph35 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

                ParagraphProperties paragraphProperties35 = new ParagraphProperties();
                WidowControl widowControl35 = new WidowControl() { Val = false };
                AutoSpaceDE autoSpaceDE35 = new AutoSpaceDE() { Val = false };
                AutoSpaceDN autoSpaceDN35 = new AutoSpaceDN() { Val = false };
                AdjustRightIndent adjustRightIndent35 = new AdjustRightIndent() { Val = false };
                SpacingBetweenLines spacingBetweenLines21 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

                ParagraphMarkRunProperties paragraphMarkRunProperties35 = new ParagraphMarkRunProperties();
                RunFonts runFonts67 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
                FontSize fontSize67 = new FontSize() { Val = "16" };
                FontSizeComplexScript fontSizeComplexScript67 = new FontSizeComplexScript() { Val = "16" };

                paragraphMarkRunProperties35.Append(runFonts67);
                paragraphMarkRunProperties35.Append(fontSize67);
                paragraphMarkRunProperties35.Append(fontSizeComplexScript67);

                paragraphProperties35.Append(widowControl35);
                paragraphProperties35.Append(autoSpaceDE35);
                paragraphProperties35.Append(autoSpaceDN35);
                paragraphProperties35.Append(adjustRightIndent35);
                paragraphProperties35.Append(spacingBetweenLines21);
                paragraphProperties35.Append(paragraphMarkRunProperties35);

                Run run33 = new Run();

                RunProperties runProperties33 = new RunProperties();
                RunFonts runFonts68 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
                FontSize fontSize68 = new FontSize() { Val = "16" };
                FontSizeComplexScript fontSizeComplexScript68 = new FontSizeComplexScript() { Val = "16" };

                runProperties33.Append(runFonts68);
                runProperties33.Append(fontSize68);
                runProperties33.Append(fontSizeComplexScript68);
                Text text33 = new Text() { Space = SpaceProcessingModeValues.Preserve };
                text33.Text = itemAddService.AddServicePosition ;

                run33.Append(runProperties33);
                run33.Append(text33);

                paragraph35.Append(paragraphProperties35);
                paragraph35.Append(run33);

                tableCell23.Append(tableCellProperties23);
                tableCell23.Append(paragraph35);

                TableCell tableCell24 = new TableCell();

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

                TableCellBorders tableCellBorders10 = new TableCellBorders();
                TopBorder topBorder11 = new TopBorder() { Val = BorderValues.Nil };
                LeftBorder leftBorder11 = new LeftBorder() { Val = BorderValues.Nil };
                BottomBorder bottomBorder11 = new BottomBorder() { Val = BorderValues.Nil };
                RightBorder rightBorder11 = new RightBorder() { Val = BorderValues.Nil };

                tableCellBorders10.Append(topBorder11);
                tableCellBorders10.Append(leftBorder11);
                tableCellBorders10.Append(bottomBorder11);
                tableCellBorders10.Append(rightBorder11);

                tableCellProperties24.Append(tableCellWidth24);
                tableCellProperties24.Append(tableCellBorders10);

                Paragraph paragraph36 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

                ParagraphProperties paragraphProperties36 = new ParagraphProperties();
                WidowControl widowControl36 = new WidowControl() { Val = false };
                AutoSpaceDE autoSpaceDE36 = new AutoSpaceDE() { Val = false };
                AutoSpaceDN autoSpaceDN36 = new AutoSpaceDN() { Val = false };
                AdjustRightIndent adjustRightIndent36 = new AdjustRightIndent() { Val = false };
                SpacingBetweenLines spacingBetweenLines22 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                Justification justification7 = new Justification() { Val = JustificationValues.Center };

                ParagraphMarkRunProperties paragraphMarkRunProperties36 = new ParagraphMarkRunProperties();
                RunFonts runFonts69 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
                FontSize fontSize69 = new FontSize() { Val = "16" };
                FontSizeComplexScript fontSizeComplexScript69 = new FontSizeComplexScript() { Val = "16" };

                paragraphMarkRunProperties36.Append(runFonts69);
                paragraphMarkRunProperties36.Append(fontSize69);
                paragraphMarkRunProperties36.Append(fontSizeComplexScript69);

                paragraphProperties36.Append(widowControl36);
                paragraphProperties36.Append(autoSpaceDE36);
                paragraphProperties36.Append(autoSpaceDN36);
                paragraphProperties36.Append(adjustRightIndent36);
                paragraphProperties36.Append(spacingBetweenLines22);
                paragraphProperties36.Append(justification7);
                paragraphProperties36.Append(paragraphMarkRunProperties36);

                Run run34 = new Run();

                RunProperties runProperties34 = new RunProperties();
                RunFonts runFonts70 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
                FontSize fontSize70 = new FontSize() { Val = "16" };
                FontSizeComplexScript fontSizeComplexScript70 = new FontSizeComplexScript() { Val = "16" };

                runProperties34.Append(runFonts70);
                runProperties34.Append(fontSize70);
                runProperties34.Append(fontSizeComplexScript70);
                Text text34 = new Text() { Space = SpaceProcessingModeValues.Preserve };
                text34.Text = itemAddService.AddServiceCode ;

                run34.Append(runProperties34);
                run34.Append(text34);

                paragraph36.Append(paragraphProperties36);
                paragraph36.Append(run34);

                tableCell24.Append(tableCellProperties24);
                tableCell24.Append(paragraph36);

                TableCell tableCell25 = new TableCell();

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

                TableCellBorders tableCellBorders11 = new TableCellBorders();
                TopBorder topBorder12 = new TopBorder() { Val = BorderValues.Nil };
                LeftBorder leftBorder12 = new LeftBorder() { Val = BorderValues.Nil };
                BottomBorder bottomBorder12 = new BottomBorder() { Val = BorderValues.Nil };
                RightBorder rightBorder12 = new RightBorder() { Val = BorderValues.Nil };

                tableCellBorders11.Append(topBorder12);
                tableCellBorders11.Append(leftBorder12);
                tableCellBorders11.Append(bottomBorder12);
                tableCellBorders11.Append(rightBorder12);

                tableCellProperties25.Append(tableCellWidth25);
                tableCellProperties25.Append(tableCellBorders11);

                Paragraph paragraph37 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

                ParagraphProperties paragraphProperties37 = new ParagraphProperties();
                WidowControl widowControl37 = new WidowControl() { Val = false };
                AutoSpaceDE autoSpaceDE37 = new AutoSpaceDE() { Val = false };
                AutoSpaceDN autoSpaceDN37 = new AutoSpaceDN() { Val = false };
                AdjustRightIndent adjustRightIndent37 = new AdjustRightIndent() { Val = false };
                SpacingBetweenLines spacingBetweenLines23 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

                ParagraphMarkRunProperties paragraphMarkRunProperties37 = new ParagraphMarkRunProperties();
                RunFonts runFonts71 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
                FontSize fontSize71 = new FontSize() { Val = "16" };
                FontSizeComplexScript fontSizeComplexScript71 = new FontSizeComplexScript() { Val = "16" };

                paragraphMarkRunProperties37.Append(runFonts71);
                paragraphMarkRunProperties37.Append(fontSize71);
                paragraphMarkRunProperties37.Append(fontSizeComplexScript71);

                paragraphProperties37.Append(widowControl37);
                paragraphProperties37.Append(autoSpaceDE37);
                paragraphProperties37.Append(autoSpaceDN37);
                paragraphProperties37.Append(adjustRightIndent37);
                paragraphProperties37.Append(spacingBetweenLines23);
                paragraphProperties37.Append(paragraphMarkRunProperties37);

                Run run35 = new Run();

                RunProperties runProperties35 = new RunProperties();
                RunFonts runFonts72 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
                FontSize fontSize72 = new FontSize() { Val = "16" };
                FontSizeComplexScript fontSizeComplexScript72 = new FontSizeComplexScript() { Val = "16" };

                runProperties35.Append(runFonts72);
                runProperties35.Append(fontSize72);
                runProperties35.Append(fontSizeComplexScript72);
                Text text35 = new Text() { Space = SpaceProcessingModeValues.Preserve };
                text35.Text = itemAddService.AddServiceDescription ;

                run35.Append(runProperties35);
                run35.Append(text35);

                paragraph37.Append(paragraphProperties37);
                paragraph37.Append(run35);

                tableCell25.Append(tableCellProperties25);
                tableCell25.Append(paragraph37);

                TableCell tableCell26 = new TableCell();

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

                TableCellBorders tableCellBorders12 = new TableCellBorders();
                TopBorder topBorder13 = new TopBorder() { Val = BorderValues.Nil };
                LeftBorder leftBorder13 = new LeftBorder() { Val = BorderValues.Nil };
                BottomBorder bottomBorder13 = new BottomBorder() { Val = BorderValues.Nil };
                RightBorder rightBorder13 = new RightBorder() { Val = BorderValues.Nil };

                tableCellBorders12.Append(topBorder13);
                tableCellBorders12.Append(leftBorder13);
                tableCellBorders12.Append(bottomBorder13);
                tableCellBorders12.Append(rightBorder13);

                tableCellProperties26.Append(tableCellWidth26);
                tableCellProperties26.Append(tableCellBorders12);

                Paragraph paragraph38 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

                ParagraphProperties paragraphProperties38 = new ParagraphProperties();
                WidowControl widowControl38 = new WidowControl() { Val = false };
                AutoSpaceDE autoSpaceDE38 = new AutoSpaceDE() { Val = false };
                AutoSpaceDN autoSpaceDN38 = new AutoSpaceDN() { Val = false };
                AdjustRightIndent adjustRightIndent38 = new AdjustRightIndent() { Val = false };
                SpacingBetweenLines spacingBetweenLines24 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

                ParagraphMarkRunProperties paragraphMarkRunProperties38 = new ParagraphMarkRunProperties();
                RunFonts runFonts73 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
                FontSize fontSize73 = new FontSize() { Val = "16" };
                FontSizeComplexScript fontSizeComplexScript73 = new FontSizeComplexScript() { Val = "16" };

                paragraphMarkRunProperties38.Append(runFonts73);
                paragraphMarkRunProperties38.Append(fontSize73);
                paragraphMarkRunProperties38.Append(fontSizeComplexScript73);

                paragraphProperties38.Append(widowControl38);
                paragraphProperties38.Append(autoSpaceDE38);
                paragraphProperties38.Append(autoSpaceDN38);
                paragraphProperties38.Append(adjustRightIndent38);
                paragraphProperties38.Append(spacingBetweenLines24);
                paragraphProperties38.Append(paragraphMarkRunProperties38);

                Run run36 = new Run();

                RunProperties runProperties36 = new RunProperties();
                RunFonts runFonts74 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
                FontSize fontSize74 = new FontSize() { Val = "16" };
                FontSizeComplexScript fontSizeComplexScript74 = new FontSizeComplexScript() { Val = "16" };

                runProperties36.Append(runFonts74);
                runProperties36.Append(fontSize74);
                runProperties36.Append(fontSizeComplexScript74);
                Text text36 = new Text() { Space = SpaceProcessingModeValues.Preserve };
                text36.Text = itemAddService.AddServicePrice ;

                run36.Append(runProperties36);
                run36.Append(text36);

                paragraph38.Append(paragraphProperties38);
                paragraph38.Append(run36);

                tableCell26.Append(tableCellProperties26);
                tableCell26.Append(paragraph38);

                tableRow10.Append(tableRowProperties10);
                tableRow10.Append(tableCell23);
                tableRow10.Append(tableCell24);
                tableRow10.Append(tableCell25);
                tableRow10.Append(tableCell26);

                table3.Append(tableProperties3);
                table3.Append(tableGrid3);
                table3.Append(tableRow10);
            }

            Paragraph paragraph39 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties39 = new ParagraphProperties();
            WidowControl widowControl39 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE39 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN39 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent39 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines25 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties39 = new ParagraphMarkRunProperties();
            RunFonts runFonts75 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize75 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript75 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties39.Append(runFonts75);
            paragraphMarkRunProperties39.Append(fontSize75);
            paragraphMarkRunProperties39.Append(fontSizeComplexScript75);

            paragraphProperties39.Append(widowControl39);
            paragraphProperties39.Append(autoSpaceDE39);
            paragraphProperties39.Append(autoSpaceDN39);
            paragraphProperties39.Append(adjustRightIndent39);
            paragraphProperties39.Append(spacingBetweenLines25);
            paragraphProperties39.Append(paragraphMarkRunProperties39);

            paragraph39.Append(paragraphProperties39);

            Paragraph paragraph40 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties40 = new ParagraphProperties();
            WidowControl widowControl40 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE40 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN40 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent40 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines26 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties40 = new ParagraphMarkRunProperties();
            RunFonts runFonts76 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize76 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript76 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties40.Append(runFonts76);
            paragraphMarkRunProperties40.Append(fontSize76);
            paragraphMarkRunProperties40.Append(fontSizeComplexScript76);

            paragraphProperties40.Append(widowControl40);
            paragraphProperties40.Append(autoSpaceDE40);
            paragraphProperties40.Append(autoSpaceDN40);
            paragraphProperties40.Append(adjustRightIndent40);
            paragraphProperties40.Append(spacingBetweenLines26);
            paragraphProperties40.Append(paragraphMarkRunProperties40);

            paragraph40.Append(paragraphProperties40);

            Paragraph paragraph41 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties41 = new ParagraphProperties();
            WidowControl widowControl41 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE41 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN41 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent41 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines27 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties41 = new ParagraphMarkRunProperties();
            RunFonts runFonts77 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize77 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript77 = new FontSizeComplexScript() { Val = "18" };

            paragraphMarkRunProperties41.Append(runFonts77);
            paragraphMarkRunProperties41.Append(fontSize77);
            paragraphMarkRunProperties41.Append(fontSizeComplexScript77);

            paragraphProperties41.Append(widowControl41);
            paragraphProperties41.Append(autoSpaceDE41);
            paragraphProperties41.Append(autoSpaceDN41);
            paragraphProperties41.Append(adjustRightIndent41);
            paragraphProperties41.Append(spacingBetweenLines27);
            paragraphProperties41.Append(paragraphMarkRunProperties41);

            Run run37 = new Run();

            RunProperties runProperties37 = new RunProperties();
            RunFonts runFonts78 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize78 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript78 = new FontSizeComplexScript() { Val = "18" };

            runProperties37.Append(runFonts78);
            runProperties37.Append(fontSize78);
            runProperties37.Append(fontSizeComplexScript78);
            Text text37 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text37.Text = " ";

            run37.Append(runProperties37);
            run37.Append(text37);

            Run run38 = new Run();

            RunProperties runProperties38 = new RunProperties();
            RunFonts runFonts79 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            Bold bold18 = new Bold();
            BoldComplexScript boldComplexScript18 = new BoldComplexScript();
            FontSize fontSize79 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript79 = new FontSizeComplexScript() { Val = "18" };

            runProperties38.Append(runFonts79);
            runProperties38.Append(bold18);
            runProperties38.Append(boldComplexScript18);
            runProperties38.Append(fontSize79);
            runProperties38.Append(fontSizeComplexScript79);
            Text text38 = new Text();
            text38.Text = "Итого на общую сумму: " + obj.TotalSum ;

            run38.Append(runProperties38);
            run38.Append(text38);

            paragraph41.Append(paragraphProperties41);
            paragraph41.Append(run37);
            paragraph41.Append(run38);

            Paragraph paragraph42 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties42 = new ParagraphProperties();
            WidowControl widowControl42 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE42 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN42 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent42 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines28 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties42 = new ParagraphMarkRunProperties();
            RunFonts runFonts80 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize80 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript80 = new FontSizeComplexScript() { Val = "18" };

            paragraphMarkRunProperties42.Append(runFonts80);
            paragraphMarkRunProperties42.Append(fontSize80);
            paragraphMarkRunProperties42.Append(fontSizeComplexScript80);

            paragraphProperties42.Append(widowControl42);
            paragraphProperties42.Append(autoSpaceDE42);
            paragraphProperties42.Append(autoSpaceDN42);
            paragraphProperties42.Append(adjustRightIndent42);
            paragraphProperties42.Append(spacingBetweenLines28);
            paragraphProperties42.Append(paragraphMarkRunProperties42);

            paragraph42.Append(paragraphProperties42);

            Paragraph paragraph43 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties43 = new ParagraphProperties();
            WidowControl widowControl43 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE43 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN43 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent43 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines29 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties43 = new ParagraphMarkRunProperties();
            RunFonts runFonts81 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize81 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript81 = new FontSizeComplexScript() { Val = "18" };

            paragraphMarkRunProperties43.Append(runFonts81);
            paragraphMarkRunProperties43.Append(fontSize81);
            paragraphMarkRunProperties43.Append(fontSizeComplexScript81);

            paragraphProperties43.Append(widowControl43);
            paragraphProperties43.Append(autoSpaceDE43);
            paragraphProperties43.Append(autoSpaceDN43);
            paragraphProperties43.Append(adjustRightIndent43);
            paragraphProperties43.Append(spacingBetweenLines29);
            paragraphProperties43.Append(paragraphMarkRunProperties43);

            paragraph43.Append(paragraphProperties43);

            Paragraph paragraph44 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties44 = new ParagraphProperties();
            WidowControl widowControl44 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE44 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN44 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent44 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines30 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties44 = new ParagraphMarkRunProperties();
            RunFonts runFonts82 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize82 = new FontSize() { Val = "18" };
            FontSizeComplexScript fontSizeComplexScript82 = new FontSizeComplexScript() { Val = "18" };

            paragraphMarkRunProperties44.Append(runFonts82);
            paragraphMarkRunProperties44.Append(fontSize82);
            paragraphMarkRunProperties44.Append(fontSizeComplexScript82);

            paragraphProperties44.Append(widowControl44);
            paragraphProperties44.Append(autoSpaceDE44);
            paragraphProperties44.Append(autoSpaceDN44);
            paragraphProperties44.Append(adjustRightIndent44);
            paragraphProperties44.Append(spacingBetweenLines30);
            paragraphProperties44.Append(paragraphMarkRunProperties44);

            paragraph44.Append(paragraphProperties44);

            Table table4 = new Table();

            TableProperties tableProperties4 = new TableProperties();
            TableWidth tableWidth4 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto };
            TableIndentation tableIndentation3 = new TableIndentation() { Width = 30, Type = TableWidthUnitValues.Dxa };
            TableLayout tableLayout3 = new TableLayout() { Type = TableLayoutValues.Fixed };

            TableCellMarginDefault tableCellMarginDefault3 = new TableCellMarginDefault();
            TableCellLeftMargin tableCellLeftMargin3 = new TableCellLeftMargin() { Width = 30, Type = TableWidthValues.Dxa };
            TableCellRightMargin tableCellRightMargin3 = new TableCellRightMargin() { Width = 30, Type = TableWidthValues.Dxa };

            tableCellMarginDefault3.Append(tableCellLeftMargin3);
            tableCellMarginDefault3.Append(tableCellRightMargin3);
            TableLook tableLook4 = new TableLook() { Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false };

            tableProperties4.Append(tableWidth4);
            tableProperties4.Append(tableIndentation3);
            tableProperties4.Append(tableLayout3);
            tableProperties4.Append(tableCellMarginDefault3);
            tableProperties4.Append(tableLook4);

            TableGrid tableGrid4 = new TableGrid();
            GridColumn gridColumn11 = new GridColumn() { Width = "2000" };
            GridColumn gridColumn12 = new GridColumn() { Width = "2000" };
            GridColumn gridColumn13 = new GridColumn() { Width = "2500" };
            GridColumn gridColumn14 = new GridColumn() { Width = "3000" };

            tableGrid4.Append(gridColumn11);
            tableGrid4.Append(gridColumn12);
            tableGrid4.Append(gridColumn13);
            tableGrid4.Append(gridColumn14);

            TableRow tableRow11 = new TableRow() { RsidTableRowAddition = "00900A10", RsidTableRowProperties = "00B819CE" };

            TableRowProperties tableRowProperties11 = new TableRowProperties();
            TableRowHeight tableRowHeight11 = new TableRowHeight() { Val = (UInt32Value)262U };
            TableHeader tableHeader2 = new TableHeader();

            tableRowProperties11.Append(tableRowHeight11);
            tableRowProperties11.Append(tableHeader2);

            TableCell tableCell27 = new TableCell();

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

            TableCellBorders tableCellBorders13 = new TableCellBorders();
            TopBorder topBorder14 = new TopBorder() { Val = BorderValues.Nil };
            LeftBorder leftBorder14 = new LeftBorder() { Val = BorderValues.Nil };
            BottomBorder bottomBorder14 = new BottomBorder() { Val = BorderValues.Nil };
            RightBorder rightBorder14 = new RightBorder() { Val = BorderValues.Nil };

            tableCellBorders13.Append(topBorder14);
            tableCellBorders13.Append(leftBorder14);
            tableCellBorders13.Append(bottomBorder14);
            tableCellBorders13.Append(rightBorder14);

            tableCellProperties27.Append(tableCellWidth27);
            tableCellProperties27.Append(tableCellBorders13);

            Paragraph paragraph45 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties45 = new ParagraphProperties();
            WidowControl widowControl45 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE45 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN45 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent45 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines31 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties45 = new ParagraphMarkRunProperties();
            RunFonts runFonts83 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize83 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript83 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties45.Append(runFonts83);
            paragraphMarkRunProperties45.Append(fontSize83);
            paragraphMarkRunProperties45.Append(fontSizeComplexScript83);

            paragraphProperties45.Append(widowControl45);
            paragraphProperties45.Append(autoSpaceDE45);
            paragraphProperties45.Append(autoSpaceDN45);
            paragraphProperties45.Append(adjustRightIndent45);
            paragraphProperties45.Append(spacingBetweenLines31);
            paragraphProperties45.Append(paragraphMarkRunProperties45);

            Run run39 = new Run();

            RunProperties runProperties39 = new RunProperties();
            RunFonts runFonts84 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize84 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript84 = new FontSizeComplexScript() { Val = "16" };

            runProperties39.Append(runFonts84);
            runProperties39.Append(fontSize84);
            runProperties39.Append(fontSizeComplexScript84);
            Text text39 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text39.Text = "Подпись пациента:  ";

            run39.Append(runProperties39);
            run39.Append(text39);

            paragraph45.Append(paragraphProperties45);
            paragraph45.Append(run39);

            tableCell27.Append(tableCellProperties27);
            tableCell27.Append(paragraph45);

            TableCell tableCell28 = new TableCell();

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

            TableCellBorders tableCellBorders14 = new TableCellBorders();
            TopBorder topBorder15 = new TopBorder() { Val = BorderValues.Nil };
            LeftBorder leftBorder15 = new LeftBorder() { Val = BorderValues.Nil };
            BottomBorder bottomBorder15 = new BottomBorder() { Val = BorderValues.Nil };
            RightBorder rightBorder15 = new RightBorder() { Val = BorderValues.Nil };

            tableCellBorders14.Append(topBorder15);
            tableCellBorders14.Append(leftBorder15);
            tableCellBorders14.Append(bottomBorder15);
            tableCellBorders14.Append(rightBorder15);

            tableCellProperties28.Append(tableCellWidth28);
            tableCellProperties28.Append(tableCellBorders14);

            Paragraph paragraph46 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties46 = new ParagraphProperties();
            WidowControl widowControl46 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE46 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN46 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent46 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines32 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification8 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties46 = new ParagraphMarkRunProperties();
            RunFonts runFonts85 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize85 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript85 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties46.Append(runFonts85);
            paragraphMarkRunProperties46.Append(fontSize85);
            paragraphMarkRunProperties46.Append(fontSizeComplexScript85);

            paragraphProperties46.Append(widowControl46);
            paragraphProperties46.Append(autoSpaceDE46);
            paragraphProperties46.Append(autoSpaceDN46);
            paragraphProperties46.Append(adjustRightIndent46);
            paragraphProperties46.Append(spacingBetweenLines32);
            paragraphProperties46.Append(justification8);
            paragraphProperties46.Append(paragraphMarkRunProperties46);

            Run run40 = new Run();

            RunProperties runProperties40 = new RunProperties();
            RunFonts runFonts86 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize86 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript86 = new FontSizeComplexScript() { Val = "16" };

            runProperties40.Append(runFonts86);
            runProperties40.Append(fontSize86);
            runProperties40.Append(fontSizeComplexScript86);
            Text text40 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text40.Text = "___________________ ";

            run40.Append(runProperties40);
            run40.Append(text40);

            paragraph46.Append(paragraphProperties46);
            paragraph46.Append(run40);

            tableCell28.Append(tableCellProperties28);
            tableCell28.Append(paragraph46);

            TableCell tableCell29 = new TableCell();

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

            TableCellBorders tableCellBorders15 = new TableCellBorders();
            TopBorder topBorder16 = new TopBorder() { Val = BorderValues.Nil };
            LeftBorder leftBorder16 = new LeftBorder() { Val = BorderValues.Nil };
            BottomBorder bottomBorder16 = new BottomBorder() { Val = BorderValues.Nil };
            RightBorder rightBorder16 = new RightBorder() { Val = BorderValues.Nil };

            tableCellBorders15.Append(topBorder16);
            tableCellBorders15.Append(leftBorder16);
            tableCellBorders15.Append(bottomBorder16);
            tableCellBorders15.Append(rightBorder16);

            tableCellProperties29.Append(tableCellWidth29);
            tableCellProperties29.Append(tableCellBorders15);

            Paragraph paragraph47 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties47 = new ParagraphProperties();
            WidowControl widowControl47 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE47 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN47 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent47 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines33 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification9 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties47 = new ParagraphMarkRunProperties();
            RunFonts runFonts87 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize87 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript87 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties47.Append(runFonts87);
            paragraphMarkRunProperties47.Append(fontSize87);
            paragraphMarkRunProperties47.Append(fontSizeComplexScript87);

            paragraphProperties47.Append(widowControl47);
            paragraphProperties47.Append(autoSpaceDE47);
            paragraphProperties47.Append(autoSpaceDN47);
            paragraphProperties47.Append(adjustRightIndent47);
            paragraphProperties47.Append(spacingBetweenLines33);
            paragraphProperties47.Append(justification9);
            paragraphProperties47.Append(paragraphMarkRunProperties47);

            Run run41 = new Run();

            RunProperties runProperties41 = new RunProperties();
            RunFonts runFonts88 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize88 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript88 = new FontSizeComplexScript() { Val = "16" };

            runProperties41.Append(runFonts88);
            runProperties41.Append(fontSize88);
            runProperties41.Append(fontSizeComplexScript88);
            Text text41 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text41.Text = "("+obj.PatientFIO + ")";

            run41.Append(runProperties41);
            run41.Append(text41);

            paragraph47.Append(paragraphProperties47);
            paragraph47.Append(run41);

            tableCell29.Append(tableCellProperties29);
            tableCell29.Append(paragraph47);

            TableCell tableCell30 = new TableCell();

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

            TableCellBorders tableCellBorders16 = new TableCellBorders();
            TopBorder topBorder17 = new TopBorder() { Val = BorderValues.Nil };
            LeftBorder leftBorder17 = new LeftBorder() { Val = BorderValues.Nil };
            BottomBorder bottomBorder17 = new BottomBorder() { Val = BorderValues.Nil };
            RightBorder rightBorder17 = new RightBorder() { Val = BorderValues.Nil };

            tableCellBorders16.Append(topBorder17);
            tableCellBorders16.Append(leftBorder17);
            tableCellBorders16.Append(bottomBorder17);
            tableCellBorders16.Append(rightBorder17);

            tableCellProperties30.Append(tableCellWidth30);
            tableCellProperties30.Append(tableCellBorders16);

            Paragraph paragraph48 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00B819CE", RsidRunAdditionDefault = "00900A10" };

            ParagraphProperties paragraphProperties48 = new ParagraphProperties();
            WidowControl widowControl48 = new WidowControl() { Val = false };
            AutoSpaceDE autoSpaceDE48 = new AutoSpaceDE() { Val = false };
            AutoSpaceDN autoSpaceDN48 = new AutoSpaceDN() { Val = false };
            AdjustRightIndent adjustRightIndent48 = new AdjustRightIndent() { Val = false };
            SpacingBetweenLines spacingBetweenLines34 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            ParagraphMarkRunProperties paragraphMarkRunProperties48 = new ParagraphMarkRunProperties();
            RunFonts runFonts89 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize89 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript89 = new FontSizeComplexScript() { Val = "16" };

            paragraphMarkRunProperties48.Append(runFonts89);
            paragraphMarkRunProperties48.Append(fontSize89);
            paragraphMarkRunProperties48.Append(fontSizeComplexScript89);

            paragraphProperties48.Append(widowControl48);
            paragraphProperties48.Append(autoSpaceDE48);
            paragraphProperties48.Append(autoSpaceDN48);
            paragraphProperties48.Append(adjustRightIndent48);
            paragraphProperties48.Append(spacingBetweenLines34);
            paragraphProperties48.Append(paragraphMarkRunProperties48);

            Run run42 = new Run();

            RunProperties runProperties42 = new RunProperties();
            RunFonts runFonts90 = new RunFonts() { Ascii = "Verdana", HighAnsi = "Verdana", EastAsia = "New Roman", ComplexScript = "Verdana" };
            FontSize fontSize90 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript90 = new FontSizeComplexScript() { Val = "16" };

            runProperties42.Append(runFonts90);
            runProperties42.Append(fontSize90);
            runProperties42.Append(fontSizeComplexScript90);
            Text text42 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text42.Text = "Дата: " + DateTime.Now;

            run42.Append(runProperties42);
            run42.Append(text42);

            paragraph48.Append(paragraphProperties48);
            paragraph48.Append(run42);

            tableCell30.Append(tableCellProperties30);
            tableCell30.Append(paragraph48);

            tableRow11.Append(tableRowProperties11);
            tableRow11.Append(tableCell27);
            tableRow11.Append(tableCell28);
            tableRow11.Append(tableCell29);
            tableRow11.Append(tableCell30);

            table4.Append(tableProperties4);
            table4.Append(tableGrid4);
            table4.Append(tableRow11);
            Paragraph paragraph49 = new Paragraph() { RsidParagraphAddition = "00900A10", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00900A10" };
            Paragraph paragraph50 = new Paragraph() { RsidParagraphMarkRevision = "00900A10", RsidParagraphAddition = "00945FC6", RsidParagraphProperties = "00900A10", RsidRunAdditionDefault = "00945FC6" };

            SectionProperties sectionProperties1 = new SectionProperties() { RsidRPr = "00900A10", RsidR = "00945FC6" };
            HeaderReference headerReference1 = new HeaderReference() { Type = HeaderFooterValues.Default, Id = "rId7" };
            FooterReference footerReference1 = new FooterReference() { Type = HeaderFooterValues.Default, Id = "rId8" };
            PageSize pageSize1 = new PageSize() { Width = (UInt32Value)12240U, Height = (UInt32Value)15840U };
            PageMargin pageMargin1 = new PageMargin() { Top = 1134, Right = (UInt32Value)850U, Bottom = 1134, Left = (UInt32Value)1701U, Header = (UInt32Value)720U, Footer = (UInt32Value)720U, Gutter = (UInt32Value)0U };
            Columns columns1 = new Columns() { Space = "720" };
            NoEndnote noEndnote1 = new NoEndnote();

            sectionProperties1.Append(headerReference1);
            sectionProperties1.Append(footerReference1);
            sectionProperties1.Append(pageSize1);
            sectionProperties1.Append(pageMargin1);
            sectionProperties1.Append(columns1);
            sectionProperties1.Append(noEndnote1);

            body1.Append(paragraph1);
            body1.Append(paragraph2);
            body1.Append(paragraph3);
            body1.Append(paragraph4);
            body1.Append(table1);
            body1.Append(paragraph19);
            body1.Append(paragraph20);
            body1.Append(paragraph21);
            body1.Append(paragraph22);
            body1.Append(table2);
            body1.Append(paragraph31);
            body1.Append(paragraph32);
            body1.Append(paragraph33);
            body1.Append(paragraph34);
            body1.Append(table3);
            body1.Append(paragraph39);
            body1.Append(paragraph40);
            body1.Append(paragraph41);
            body1.Append(paragraph42);
            body1.Append(paragraph43);
            body1.Append(paragraph44);
            body1.Append(table4);
            body1.Append(paragraph49);
            body1.Append(paragraph50);
            body1.Append(sectionProperties1);

            document1.Append(body1);

            mainDocumentPart1.Document = document1;
        }
예제 #6
0
        public void PrintPatientContract(int id)
        {
            try
            {
                objPatientContract obj = new objPatientContract();
                var sp = dbm.Samples
                    .Include(o => o.Patient)
                    .Include(o => o.Clinic)
                      .Include(o => o.Clinic.ClinicGroup)
                      .Include(o => o.ClinicMaterial)
                      .Include(o => o.Doctor)
                      .SingleOrDefault(o => o.SampleID == id);
                obj.SampleID = sp.SampleID.ToString();
                obj.Clinic = sp.Clinic.ClinicGroup.Description + " - " + sp.Clinic.Description;
                if (sp.SamplePaymentTypeID == 1)
                {
                    obj.Clinic += " (О)";
                }
                else
                {
                    obj.Clinic += " (К)";
                }
                obj.DoctorFIO = sp.Doctor.Lastname + " " + sp.Doctor.Initials;
                obj.PatientFIO = sp.Patient.Lastname + " " + sp.Patient.Initials;
                obj.PatientSex = sp.Patient.Sex;
                obj.BirthDate = DateTime.Parse(sp.Patient.Birthdate.ToString()).ToShortDateString();
                obj.ClinicMaterial = sp.ClinicMaterial.Description;
                obj.DateDeliverySample = sp.DatetimeDelivery.ToString();
                obj.DateRecieveSample = sp.DatetimeCapture.ToString();
                obj.DateContractStart = DateTime.Now.ToShortDateString();
                obj.DateContractEnd = DateTime.Now.AddDays(5).ToShortDateString();

                decimal total = 0;
                var al = dbm.vwMBAnalysisForSampleWithPrices.Where(o => o.SampleID == id).OrderBy(o => o.MBAnalysisTypesDesc).ToList();
                int cntAl = 0;
                obj.AnalysisList = new List<TableAnalysisItem>();
                foreach (var itemal in al)
                {
                    cntAl++;
                    total += (decimal)itemal.Price;
                    obj.AnalysisList.Add(new TableAnalysisItem
                    {
                        AnalysisPosition = cntAl.ToString(),
                        AnalysisCode = itemal.Code,
                        AnalysisDescription = itemal.MBAnalysisTypesDesc,
                        AnalysisPrice = itemal.Price.ToString()
                    });
                }

                var ads = dbm.SamplesAndAdditionalServices.Include(o => o.AdditionalService).Where(o => o.SampleID == id).OrderBy(o => o.AdditionalService.Description).ToList();
                int cntAds = 0;
                obj.AddServiceList = new List<TableAddServiceItem>();
                foreach (var itemads in ads)
                {
                    cntAds++;
                    total += (decimal)itemads.AdditionalService.Price;
                    obj.AddServiceList.Add(new TableAddServiceItem
                    {
                        AddServicePosition = cntAds.ToString(),
                        AddServiceCode = "-",
                        AddServiceDescription = itemads.AdditionalService.Description,
                        AddServicePrice = itemads.AdditionalService.Price.ToString()
                    });
                }
                int sum = (int)total;
                obj.TotalSum = sum.ToString();
                //new Diagnostics_FP.GeneratedXML.GeneratedPatientContract().CreatePackage(AppDomain.CurrentDomain.BaseDirectory + "Output" + obj.SampleID + ".docx", obj);
                //   string path = AppDomain.CurrentDomain.BaseDirectory;
                //  string fileName = "Output.docx";

                Printing objPrinter = new Printing();
                string resAddress = objPrinter.PrintContractForPatient(obj);
                Response.ContentType = "application/text";
                Response.AddHeader("Content-Disposition", @"filename=""contract_" + obj.SampleID.ToString() + ".rtf");
                Response.TransmitFile(@resAddress);
            }
            catch (DataException ex)
            {
                string strMessage = "Ошибка " + ex.Message + ". Попробуйте повторить действие. В случае постоянного возникновения ошибки обратитесь к администратору";
                Response.Write(strMessage);
            }
        }