Разработка программных средств формирования групповой спецификации в среде Creo

Разработка программного продукта для экспорта спецификации из приложения PartList. Выбор метода передачи информации в файл, формата для представления. Разработка конвертера, реализация пользовательского интерфейса. Обоснование актуальности разработки.

Рубрика Программирование, компьютеры и кибернетика
Вид дипломная работа
Язык русский
Дата добавления 25.09.2014
Размер файла 2,6 M

Отправить свою хорошую работу в базу знаний просто. Используйте форму, расположенную ниже

Студенты, аспиранты, молодые ученые, использующие базу знаний в своей учебе и работе, будут вам очень благодарны.

</fo: table-cell>

<fo: table-cell column-number="4" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="7" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="8" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="9" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="10" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="11" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="12" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="13" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

</fo: table-row>

</fo: table-body>

<fo: table-body>

<fo: table-row line-height="19.64mm" font-size="12pt" font-family="GOST_B" text-align="center">

<fo: table-cell column-number="1" border-left-style="solid" border-right-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" border-right-style="solid" border-after-style="solid">

<fo: block-container line-height="15mm" top="8mm" left="-3mm" position="absolute" reference-orientation="90">

<fo: block>Код</fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="3" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="7" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="8" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="9" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="10" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="11" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="12" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="13" border-right-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

</fo: table-row>

</fo: table-body>

</fo: table>

<! - -*** Page 1, after, 2 ***-->

<fo: table>

<fo: table-column column-number="1" column-width="167mm"/>

<fo: table-column column-number="2" column-width="15mm"/>

<fo: table-column column-number="3" column-width="45mm"/>

<fo: table-column column-number="4" column-width="60mm"/>

<fo: table-body>

<fo: table-row line-height="7.14mm" font-size="12pt" font-family="GOST_B">

<fo: table-cell column-number="1" border-left-style="solid" border-right-style="dashed">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" border-right-style="dashed" border-after-style="dashed">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-right-style="dashed" border-after-style="dashed">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-right-style="solid" border-after-style="dashed">

<fo: block>&#160; </fo: block>

</fo: table-cell>

</fo: table-row>

</fo: table-body>

<fo: table-body>

<fo: table-row line-height="7.14mm" font-family="GOST_B">

<fo: table-cell column-number="1" border-left-style="solid" border-right-style="dashed">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="3">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-right-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

</fo: table-row>

</fo: table-body>

</fo: table>

<! - -*** Page 1, after, 3 ***-->

<fo: table>

<fo: table-column column-number="1" column-width="102mm"/>

<fo: table-column column-number="2" column-width="8mm"/>

<fo: table-column column-number="3" column-width="12mm"/>

<fo: table-column column-number="4" column-width="20mm"/>

<fo: table-column column-number="5" column-width="15mm"/>

<fo: table-column column-number="6" column-width="10mm"/>

<fo: table-column column-number="7" column-width="120mm"/>

<fo: table-body line-height="4.63mm" font-size="10pt" font-family="GOST_B" text-align="center">

<fo: table-row>

<fo: table-cell column-number="1" border-left-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" border-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-before-style="solid" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-before-style="solid" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-before-style="solid" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-before-style="solid" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="7" border-before-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

</fo: table-row>

<fo: table-row>

<fo: table-cell column-number="1" border-left-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" column-width="8mm" border-start-style="solid" border-after-style="solid" border-end-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-after-style="solid" border-right-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="7" border-right-style="solid" border-after-style="solid" number-rows-spanned="2">

<fo: block text-align="center" font-size="18pt" font-family="GOST_B">

<xsl: value-of select="stamp/@OBOZNACHENIE"/>

</fo: block>

</fo: table-cell>

</fo: table-row>

<fo: table-row>

<fo: table-cell column-number="1" border-left-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" column-width="8mm" border-start-style="solid" border-after-style="solid" border-right-style="solid">

<fo: block>

Изм

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-after-style="solid" border-right-style="solid">

<fo: block>

Лист

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-after-style="solid" border-right-style="solid">

<fo: block>

№ докум.

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-after-style="solid" border-right-style="solid">

<fo: block>

Подп.

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-after-style="solid" border-right-style="solid">

<fo: block>

Дата

</fo: block>

</fo: table-cell>

</fo: table-row>

</fo: table-body>

</fo: table>

<! - _____________________________________________________________ - ->

<! - -Нижняя область штампа (часть 2),1й страницы - ->

<fo: table>

<fo: table-column column-number="1" column-width="102mm"/>

<fo: table-column column-number="2" column-width="20mm"/>

<fo: table-column column-number="3" column-width="20mm"/>

<fo: table-column column-number="4" column-width="15mm"/>

<fo: table-column column-number="5" column-width="10mm"/>

<fo: table-column column-number="6" column-width="70mm"/>

<fo: table-column column-number="7" column-width="5mm"/>

<fo: table-column column-number="8" column-width="5mm"/>

<fo: table-column column-number="9" column-width="5mm"/>

<fo: table-column column-number="10" column-width="15mm"/>

<fo: table-column column-number="11" column-width="20mm"/>

<fo: table-body line-height="4.64mm" font-size="10pt" start-indent="1mm" font-family="GOST_B">

<fo: table-row>

<fo: table-cell column-number="1" border-left-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" border-start-style="solid" border-after-style="solid" border-end-style="solid">

<fo: block> Разраб. </fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-after-style="solid" border-right-style="solid">

<fo: block>

<xsl: value-of select="stamp/@RAZRABOTAL"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-right-style="solid">

<fo: block font-size="12pt" text-align="center">

<xsl: value-of select="stamp/@NAIMENOVANIE_1"/>

</fo: block>

</fo: table-cell>

<fo: table-cell number-columns-spanned="3" border-after-style="solid" border-right-style="solid">

<fo: block text-align="center"> Лит. </fo: block>

</fo: table-cell>

<fo: table-cell border-after-style="solid" border-right-style="solid">

<fo: block text-align="center"> Лист </fo: block>

</fo: table-cell>

<fo: table-cell border-after-style="solid" border-right-style="solid">

<fo: block text-align="center"> Листов </fo: block>

</fo: table-cell>

</fo: table-row>

<fo: table-row>

<fo: table-cell column-number="1" border-left-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" border-start-style="solid" border-after-style="solid" border-end-style="solid">

<fo: block> Пров. </fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-after-style="solid" border-right-style="solid">

<fo: block>

<xsl: value-of select="stamp/@PROVERIL"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-right-style="solid">

<fo: block font-size="12pt" text-align="center">

<xsl: value-of select="stamp/@NAIMENOVANIE_2"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="7" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="8" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="9" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="10" border-after-style="solid" border-right-style="solid" text-align="center">

<fo: block>

<fo: page-number/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="11" border-after-style="solid" border-right-style="solid" text-align="center">

<fo: block>

<xsl: value-of select="stamp/@kpage"/>

</fo: block>

</fo: table-cell>

</fo: table-row>

<fo: table-row>

<fo: table-cell column-number="1" border-left-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" border-start-style="solid" border-after-style="solid" border-end-style="solid">

<fo: block> &#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-right-style="solid">

<fo: block font-size="12pt" text-align="center">

<xsl: value-of select="stamp/@NAIMENOVANIE_3"/>

</fo: block>

</fo: table-cell>

<fo: table-cell number-columns-spanned="5" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

</fo: table-row>

<fo: table-row>

<fo: table-cell column-number="1" border-left-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" border-start-style="solid" border-after-style="solid" border-end-style="solid">

<fo: block> Н. Контр. </fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-after-style="solid" border-right-style="solid">

<fo: block>

<xsl: value-of select="stamp/@N_KONTROL"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-right-style="solid">

<fo: block font-size="12pt" text-align="center">

<xsl: value-of select="stamp/@NAIMENOVANIE_4"/>

</fo: block>

</fo: table-cell>

<fo: table-cell number-columns-spanned="5" border-right-style="solid">

<fo: block font-size="14pt" text-align="center" font-family="GOST_B">

<xsl: value-of select="stamp/@NAZVANIE_ORGANIZACII_1"/>

</fo: block>

</fo: table-cell>

</fo: table-row>

<fo: table-row>

<fo: table-cell column-number="1" border-left-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" border-start-style="solid" border-after-style="solid" border-end-style="solid">

<fo: block> Утв. </fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-after-style="solid" border-right-style="solid">

<fo: block>

<xsl: value-of select="stamp/@UTVERDIL"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-after-style="solid" border-right-style="solid">

<fo: block font-size="12pt" text-align="center">

<xsl: value-of select="stamp/@NAIMENOVANIE_5"/>

</fo: block>

</fo: table-cell>

<fo: table-cell number-columns-spanned="5" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

</fo: table-row>

</fo: table-body>

</fo: table>

</fo: static-content>

<! - -_______________________________________________________-->

<! - -Создаём потоковый объект, который будет включать в себе выводимый текст-->

<fo: flow flow-name="xsl-region-body">

<xsl: apply-templates select="* [12>position ()] "/>

</fo: flow>

</fo: page-sequence>

<! - ***************************************************** - ->

<fo: page-sequence master-reference="page2">

<! - -ШАПКА ТАБЛИЦЫ И ШТАМПА - ->

<fo: static-content flow-name="xsl-region-before">

<fo: table>

<fo: table-column column-number="1" column-width="35mm"/>

<fo: table-column column-number="2" column-width="35mm"/>

<fo: table-column column-number="3" column-width="20mm"/>

<fo: table-column column-number="4" column-width="20mm"/>

<fo: table-column column-number="5" column-width="35mm"/>

<fo: table-column column-number="6" column-width="22mm"/>

<fo: table-column column-number="7" column-width="60mm"/>

<fo: table-column column-number="8" column-width="60mm"/>

<fo: table-body font-family="GOST_B" font-size="10pt" text-align="center">

<fo: table-row line-height="5.75mm" >

<fo: table-cell column-number="1" border-style="solid">

<fo: block> Инв. № подл. </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" border-before-style="solid" border-after-style="solid" border-right-style="solid">

<fo: block> Подп. и дата </fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-before-style="solid" border-after-style="solid" border-right-style="solid">

<fo: block> Взам. инв. № </fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-before-style="solid" border-after-style="solid" border-right-style="solid">

<fo: block> Инв. № дубл </fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-before-style="solid" border-after-style="solid" border-right-style="solid">

<fo: block> Подп. и дата </fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-right-style="dashed">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="7" border-before-style="dashed" border-right-style="dashed">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="8" border-before-style="dashed" border-right-style="dashed">

<fo: block></fo: block>

</fo: table-cell>

</fo: table-row>

<fo: table-row line-height="5.75mm">

<fo: table-cell column-number="1" border-after-style="solid" border-left-style="solid" border-right-style="solid">

<fo: block> &#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-after-style="solid" border-right-style="dashed">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="7" border-after-style="solid" border-right-style="dashed">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="8" border-after-style="solid" border-right-style="dashed">

<fo: block></fo: block>

</fo: table-cell>

</fo: table-row>

</fo: table-body>

</fo: table>

<fo: table table-layout="fixed" width="287mm">

<fo: table-column column-number="1" column-width="7.5mm"/>

<fo: table-column column-number="2" column-width="7.5mm"/>

<fo: table-column column-number="3" column-width="10mm"/>

<fo: table-column column-number="4" column-width="60mm"/>

<fo: table-column column-number="5" column-width="60mm"/>

<fo: table-column column-number="6" column-width="10mm"/>

<fo: table-column column-number="7" column-width="10mm"/>

<fo: table-column column-number="8" column-width="10mm"/>

<fo: table-column column-number="9" column-width="10mm"/>

<fo: table-column column-number="10" column-width="10mm"/>

<fo: table-column column-number="11" column-width="10mm"/>

<fo: table-column column-number="12" column-width="10mm"/>

<fo: table-column column-number="13" column-width="10mm"/>

<fo: table-column column-number="14" column-width="10mm"/>

<fo: table-column column-number="15" column-width="10mm"/>

<fo: table-column column-number="16" column-width="42mm"/>

<fo: table-body line-height="5mm" font-family="GOST_B">

<fo: table-row>

<fo: table-cell column-number="1" border-left-style="solid" border-right-style="solid">

<fo: block-container line-height="7.5mm" top="1mm" position="absolute" reference-orientation="90">

<fo: block text-align="right" font-size="12pt">

Формат

</fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="2" border-right-style="solid">

<fo: block-container line-height="7.5mm" top="2mm" position="absolute" reference-orientation="90">

<fo: block text-align="right" font-size="12pt">

Зона

</fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="3" border-right-style="solid">

<fo: block-container line-height="10mm" top="1mm" position="absolute" reference-orientation="90">

<fo: block text-align="right" font-size="12pt">

Позиция

</fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="4" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell number-columns-spanned="10" column-number="6" border-right-style="solid" border-after-style="solid">

<fo: block font-size="14pt">

Кол. на исполнение

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="16" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

</fo: table-row>

</fo: table-body>

<fo: table-body line-height="5mm" font-family="GOST_B">

<fo: table-row >

<fo: table-cell column-number="1" border-left-style="solid" border-right-style="solid">

<fo: block-container line-height="7.5mm" top="1mm" position="absolute" reference-orientation="90">

<fo: block></fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="2" border-right-style="solid">

<fo: block-container line-height="7.5mm" top="2mm" position="absolute" reference-orientation="90">

<fo: block></fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="3" border-right-style="solid">

<fo: block-container line-height="10mm" top="1mm" position="absolute" reference-orientation="90">

<fo: block ></fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="4" border-right-style="solid">

<fo: block font-size="16pt" text-align="center">

Обозначение

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-right-style="solid">

<fo: block font-size="16pt" text-align="center">

Наименование

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-right-style="solid">

<fo: block-container line-height="10mm" position="absolute" text-align="center">

<fo: block>

</fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="7" border-right-style="solid">

<fo: block-container line-height="10mm" position="absolute" text-align="center">

<fo: block>

01

</fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="8" border-right-style="solid">

<fo: block-container line-height="10mm" position="absolute" text-align="center">

<fo: block>

02

</fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="9" border-right-style="solid">

<fo: block-container line-height="10mm" position="absolute" text-align="center">

<fo: block>

03

</fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="10" border-right-style="solid">

<fo: block-container line-height="10mm" position="absolute" text-align="center">

<fo: block>

04

</fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="11" border-right-style="solid">

<fo: block-container line-height="10mm" position="absolute" text-align="center">

<fo: block>

05

</fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="12" border-right-style="solid">

<fo: block-container line-height="10mm" position="absolute" text-align="center">

<fo: block>

06

</fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="13" border-right-style="solid">

<fo: block-container line-height="10mm" position="absolute" text-align="center">

<fo: block>

07

</fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="14" border-right-style="solid">

<fo: block-container line-height="10mm" position="absolute" text-align="center">

<fo: block>

08

</fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="15" border-right-style="solid">

<fo: block-container line-height="10mm" position="absolute" text-align="center">

<fo: block>

09

</fo: block>

</fo: block-container>

</fo: table-cell>

<fo: table-cell column-number="16" border-right-style="solid" text-align="center">

<fo: block font-size="16pt">

Примечание

</fo: block>

</fo: table-cell>

</fo: table-row>

</fo: table-body>

<fo: table-body line-height="5mm" font-family="GOST_B">

<fo: table-row>

<fo: table-cell column-number="1" border-after-style="solid" border-start-style="solid" border-right-style="solid">

<fo: block>

&#160;

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="7" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="8" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="9" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="10" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="11" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="12" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="13" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="14" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="15" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="16" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

</fo: table-row>

</fo: table-body>

</fo: table>

</fo: static-content>

<! - ______________________________________________________ - ->

<! - -Нижняя область штампа, 2й и последующих страниц-->

<fo: static-content flow-name="xsl-region-after">

<fo: table>

<fo: table-column column-number="1" column-width="102mm"/>

<fo: table-column column-number="2" column-width="8mm"/>

<fo: table-column column-number="3" column-width="12mm"/>

<fo: table-column column-number="4" column-width="20mm"/>

<fo: table-column column-number="5" column-width="15mm"/>

<fo: table-column column-number="6" column-width="10mm"/>

<fo: table-column column-number="7" column-width="110mm"/>

<fo: table-column column-number="8" column-width="10mm"/>

<fo: table-body line-height="4.65mm" font-size="10pt" font-family="GOST_B" text-align="center">

<fo: table-row>

<fo: table-cell column-number="1" border-left-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" border-after-style="solid" border-left-style="solid" border-right-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="7" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="8" border-right-style="solid">

<fo: block-container line-height="7mm" position="absolute">

<fo: block border-after-style="solid">Лист</fo: block>

</fo: block-container>

</fo: table-cell>

</fo: table-row>

<fo: table-row>

<fo: table-cell column-number="1" border-left-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" column-width="8mm" border-after-style="solid" border-left-style="solid" border-right-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-after-style="solid" border-right-style="solid">

<fo: block> </fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-after-style="solid" border-right-style="solid">

<fo: block></fo: block>

</fo: table-cell>

<fo: table-cell column-number="7" border-right-style="solid">

<fo: block text-align="center" font-size="18pt" font-family="GOST_B">

<xsl: value-of select="stamp/@OBOZNACHENIE"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="8" border-right-style="solid">

<fo: block-container top="3.5mm" position="absolute">

<fo: block>

<fo: page-number/>

</fo: block>

</fo: block-container>

</fo: table-cell>

</fo: table-row>

<fo: table-row>

<fo: table-cell column-number="1" border-left-style="solid" border-after-style="solid">

<fo: block>&#160; </fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" column-width="8mm" border-bottom-style="solid" border-left-style="solid" border-right-style="solid">

<fo: block>

Изм

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-after-style="solid" border-right-style="solid">

<fo: block>

Лист

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-after-style="solid" border-right-style="solid">

<fo: block>

№ докум.

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-after-style="solid" border-right-style="solid">

<fo: block>

Подп.

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-after-style="solid" border-right-style="solid">

<fo: block>

Дата

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="7" border-after-style="solid" border-right-style="solid">

<fo: block text-align="center" font-size="18pt" font-family="GOST_B">

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="8" border-right-style="solid" border-after-style="solid" text-align="center">

<fo: block></fo: block>

</fo: table-cell>

</fo: table-row>

</fo: table-body>

</fo: table>

</fo: static-content>

<! - ______________________________________________________ - ->

<fo: flow flow-name="xsl-region-body">

<xsl: apply-templates select="* [position () >11] " mode="page_B"/>

</fo: flow>

</fo: page-sequence>

</fo: root>

</xsl: template>

<xsl: template match="line | section">

<fo: table table-layout="fixed" width="287mm">

<fo: table-column column-number="1" column-width="7.5mm"/>

<fo: table-column column-number="2" column-width="7.5mm"/>

<fo: table-column column-number="3" column-width="10mm"/>

<fo: table-column column-number="4" column-width="60mm"/>

<fo: table-column column-number="5" column-width="60mm"/>

<fo: table-column column-number="6" column-width="10mm"/>

<fo: table-column column-number="7" column-width="10mm"/>

<fo: table-column column-number="8" column-width="10mm"/>

<fo: table-column column-number="9" column-width="10mm"/>

<fo: table-column column-number="10" column-width="10mm"/>

<fo: table-column column-number="11" column-width="10mm"/>

<fo: table-column column-number="12" column-width="10mm"/>

<fo: table-column column-number="13" column-width="10mm"/>

<fo: table-column column-number="14" column-width="10mm"/>

<fo: table-column column-number="15" column-width="10mm"/>

<fo: table-column column-number="16" column-width="42mm"/>

<fo: table-body line-height="7.64mm" font-size="12pt" font-family="GOST_B" start-indent="1mm">

<fo: table-row>

<fo: table-cell column-number="1" border-start-style="solid" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@FORM"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@ZONE"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@POZICIA"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-after-style="solid" border-end-style="solid">

<fo: block>

<xsl: value-of select="@OBOZNACHENIE"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-after-style="solid" border-end-style="solid">

<fo: block>

<fo: block text-align="center" font-style="backslant" text-decoration="underline">

<xsl: value-of select="@s_NAIMENOVANIE"/>

</fo: block>

<xsl: value-of select="@NAIMENOVANIE"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_0"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="7" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_1"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="8" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_2"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="9" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_3"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="10" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_4"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="11" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_5"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="12" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_6"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="13" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_7"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="14" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_8"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="15" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_9"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="16" border-after-style="solid" border-end-style="solid">

<fo: block>

<xsl: value-of select="@PRIMECHANIE"/>

</fo: block>

<fo: block-container line-height="3.82mm" position="absolute">

<fo: block font-size="10pt">

<xsl: value-of select="@PRIMECHANIE_1"/>

</fo: block>

</fo: block-container>

<fo: block-container top="3.82mm" line-height="3.82mm" position="absolute">

<fo: block font-size="10pt">

<xsl: value-of select="@PRIMECHANIE_2"/>

</fo: block>

</fo: block-container>

</fo: table-cell>

</fo: table-row>

</fo: table-body>

</fo: table>

</xsl: template>

<! - page_B // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /-->

<xsl: template match="line | section" mode="page_B">

<fo: table table-layout="fixed" width="185mm">

<fo: table-column column-number="1" column-width="7.5mm"/>

<fo: table-column column-number="2" column-width="7.5mm"/>

<fo: table-column column-number="3" column-width="10mm"/>

<fo: table-column column-number="4" column-width="60mm"/>

<fo: table-column column-number="5" column-width="60mm"/>

<fo: table-column column-number="6" column-width="10mm"/>

<fo: table-column column-number="7" column-width="10mm"/>

<fo: table-column column-number="8" column-width="10mm"/>

<fo: table-column column-number="9" column-width="10mm"/>

<fo: table-column column-number="10" column-width="10mm"/>

<fo: table-column column-number="11" column-width="10mm"/>

<fo: table-column column-number="12" column-width="10mm"/>

<fo: table-column column-number="13" column-width="10mm"/>

<fo: table-column column-number="14" column-width="10mm"/>

<fo: table-column column-number="15" column-width="10mm"/>

<fo: table-column column-number="16" column-width="42mm"/>

<fo: table-body line-height="7.805mm" font-size="12pt" font-family="GOST_B" start-indent="1mm">

<fo: table-row>

<fo: table-cell column-number="1" border-start-style="solid" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@FORM"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="2" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@ZONE"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="3" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@POZICIA"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="4" border-after-style="solid" border-end-style="solid">

<fo: block>

<xsl: value-of select="@OBOZNACHENIE"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="5" border-after-style="solid" border-end-style="solid">

<fo: block>

<fo: block text-align="center" font-style="backslant" text-decoration="underline">

<xsl: value-of select="@s_NAIMENOVANIE"/>

</fo: block>

<xsl: value-of select="@NAIMENOVANIE"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="6" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_0"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="7" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_1"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="8" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_2"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="9" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_3"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="10" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_4"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="11" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_5"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="12" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_6"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="13" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_7"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="14" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_8"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="15" border-after-style="solid" border-end-style="solid">

<fo: block text-align="center">

<xsl: value-of select="@KOL-VO_9"/>

</fo: block>

</fo: table-cell>

<fo: table-cell column-number="16" border-after-style="solid" border-end-style="solid">

<fo: block>

<xsl: value-of select="@PRIMECHANIE"/>

</fo: block>

<fo: block-container line-height="3.82mm" position="absolute">

<fo: block font-size="10pt">

<xsl: value-of select="@PRIMECHANIE_1"/>

</fo: block>

</fo: block-container>

<fo: block-container top="3.82mm" line-height="3.82mm" position="absolute">

<fo: block font-size="10pt">

<xsl: value-of select="@PRIMECHANIE_2"/>

</fo: block>

</fo: block-container>

</fo: table-cell>

</fo: table-row>

</fo: table-body>

</fo: table>

</xsl: template>

</xsl: stylesheet>

Приложение B

КОД ФУНКЦИЙ, ПРЕОБРАЗУЮЩИХ XML В XML

bool CXMLСonverterDlg:: Converting_XML_in_XML (wchar_t *sDir, wchar_t *sPartDir)

{

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

// sDir - содержит полный путь к xml-файлу

// sPartDir - содержит имя xml-файла без расширения

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

UpdateData (TRUE);

HANDLE hFile = CreateFile (sDir,GENERIC_READ,0,0,OPEN_EXISTING,0,0);

if (hFile == INVALID_HANDLE_VALUE) return true;

DWORD fileSize = GetFileSize (hFile,0);

// Выделяем память для проецирования туда содержимого файла

char *fileBuffer = new char [fileSize];

// Число реально прочитанных байт

DWORD bytesRead;

BOOL bReadWriteError = ReadFile (hFile,fileBuffer,fileSize,&bytesRead,0);

if (! bReadWriteError) return true;

CloseHandle (hFile);

CString teg;

// Позиция в файле

DWORD positionStart;

BOOL GroupSpecification = FALSE;

DWORD K = 29, T = 32;

if ( (m_sPattern == "ГрупСпец_Ф1_gost-B_0-9") || ( (m_sPattern == "ГрупСпец_Ф1_gost-\

B_10-19")) || ( (m_sPattern == "ГрупСпец_Ф1_gost-B_20-29")))

{

GroupSpecification = TRUE;

K = 10;

T =19;

}

// Counter_of_lines - считает количество тегов в xml-файле

DWORD counter = Counter_of_lines (fileBuffer,fileSize,K,T);

// [0] - Позиция первого символа тега section или строки располагающейся в начале // конце таблицы

// [1] - Определяет, что это секция или строка, которую необходимо перенести

// [2] - Определяет количство добавляемых строк перед объектом section

DWORD **positionSectionStart = new DWORD* [counter];

for (DWORD n=0; n<counter; n++)

positionSectionStart [n] = new DWORD [3];

DWORD *positionSectionEnd = new DWORD [counter];

DWORD positionLineEnd, positionStampBefore = 0;

DWORD section10_29 = - 1, **positionSection10_29;

positionSection10_29 = new DWORD* [counter];

for (DWORD n=0; n<counter; n++)

positionSection10_29 [n] = new DWORD [2];

DWORD sizeLine10_29 = 0;

DWORD kline_before = 1, kline_after = 2;

if (m_yes_kline == TRUE)

{

kline_before = m_kline_before;

kline_after = m_kline_after;

}

// Количество секций

DWORD section = 0;

DWORD line = 0, kline, nline = 0;

bool bSection = false;

bool bLine = false;

char sLine [] = "<line FORM=\"&#160; \"/>";

DWORD sizeLine = sizeof (sLine) - 1; // Минус завершающий символ

// Общий размер строк добавляемых до и после разделов

DWORD sizeAllLine = 0;

for (DWORD i = 0; i<fileSize; i++)

{

if (fileBuffer [i] == '<')

{

positionStart = i;

do{

i++;

if (fileBuffer [i]! = ' ')

{

if (fileBuffer [i+1]! = ' ') teg += fileBuffer [i];


Подобные документы

Работы в архивах красиво оформлены согласно требованиям ВУЗов и содержат рисунки, диаграммы, формулы и т.д.
PPT, PPTX и PDF-файлы представлены только в архивах.
Рекомендуем скачать работу.