mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-08-02 01:37:45 +03:00
Две bug-фиксы для шаблонов:
1. PS-quirk: \$widths = if (\$t.widths) { @(\$t.widths) } else { @() }
разворачивал одно-элементный массив в строку, после чего \$widths[0]
возвращал первый Char (например '1' для "15.625"), а [double][Char]'1'=49.
Заменил if-expression на обычный if-statement.
2. Indent в <dcsat:appearance>: компайлер ставил 4 таба вместо 5
(и 5 вместо 6 у items внутри). Поправлено в обоих рантаймах.
sample30: −552 строки (2666 → 2114).
229 lines
10 KiB
XML
229 lines
10 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<DataCompositionSchema xmlns="http://v8.1c.ru/8.1/data-composition-system/schema"
|
|
xmlns:dcscom="http://v8.1c.ru/8.1/data-composition-system/common"
|
|
xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core"
|
|
xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings"
|
|
xmlns:v8="http://v8.1c.ru/8.1/data/core"
|
|
xmlns:v8ui="http://v8.1c.ru/8.1/data/ui"
|
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
<dataSource>
|
|
<name>ИсточникДанных1</name>
|
|
<dataSourceType>Local</dataSourceType>
|
|
</dataSource>
|
|
<dataSet xsi:type="DataSetQuery">
|
|
<name>Тест</name>
|
|
<field xsi:type="DataSetFieldField">
|
|
<dataPath>Поле</dataPath>
|
|
<field>Поле</field>
|
|
<valueType>
|
|
<v8:Type>xs:string</v8:Type>
|
|
<v8:StringQualifiers>
|
|
<v8:Length>0</v8:Length>
|
|
<v8:AllowedLength>Variable</v8:AllowedLength>
|
|
</v8:StringQualifiers>
|
|
</valueType>
|
|
</field>
|
|
<dataSource>ИсточникДанных1</dataSource>
|
|
<query>ВЫБРАТЬ * ИЗ Справочник.Сотрудники</query>
|
|
</dataSet>
|
|
<template>
|
|
<name>СмешанныйМакет</name>
|
|
<template xmlns:dcsat="http://v8.1c.ru/8.1/data-composition-system/area-template" xsi:type="dcsat:AreaTemplate">
|
|
<dcsat:item xsi:type="dcsat:TableRow">
|
|
<dcsat:tableCell>
|
|
<dcsat:item xsi:type="dcsat:Field">
|
|
<dcsat:value xsi:type="v8:LocalStringType">
|
|
<v8:item>
|
|
<v8:lang>ru</v8:lang>
|
|
<v8:content>A</v8:content>
|
|
</v8:item>
|
|
</dcsat:value>
|
|
</dcsat:item>
|
|
<dcsat:appearance>
|
|
<dcscor:item>
|
|
<dcscor:parameter>ЦветФона</dcscor:parameter>
|
|
<dcscor:value xmlns:d8p1="http://v8.1c.ru/8.1/data/ui/style" xsi:type="v8ui:Color">d8p1:ReportGroup1BackColor</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>ЦветГраницы</dcscor:parameter>
|
|
<dcscor:value xmlns:d8p1="http://v8.1c.ru/8.1/data/ui/style" xsi:type="v8ui:Color">d8p1:ReportLineColor</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>СтильГраницы</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Line" width="0" gap="false">
|
|
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">None</v8ui:style>
|
|
</dcscor:value>
|
|
<dcscor:item>
|
|
<dcscor:parameter>СтильГраницы.Слева</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Line" width="1" gap="false">
|
|
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
|
|
</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>СтильГраницы.Сверху</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Line" width="1" gap="false">
|
|
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
|
|
</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>СтильГраницы.Справа</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Line" width="1" gap="false">
|
|
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
|
|
</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>СтильГраницы.Снизу</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Line" width="1" gap="false">
|
|
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
|
|
</dcscor:value>
|
|
</dcscor:item>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>Шрифт</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Font" faceName="Arial" height="10" bold="false" italic="false" underline="false" strikeout="false" kind="Absolute" scale="100"/>
|
|
</dcscor:item>
|
|
</dcsat:appearance>
|
|
</dcsat:tableCell>
|
|
<dcsat:tableCell>
|
|
<dcsat:item xsi:type="dcsat:Field">
|
|
<dcsat:value xsi:type="v8:LocalStringType">
|
|
<v8:item>
|
|
<v8:lang>ru</v8:lang>
|
|
<v8:content>B</v8:content>
|
|
</v8:item>
|
|
</dcsat:value>
|
|
</dcsat:item>
|
|
<dcsat:appearance>
|
|
<dcscor:item>
|
|
<dcscor:parameter>ЦветФона</dcscor:parameter>
|
|
<dcscor:value xmlns:d8p1="http://v8.1c.ru/8.1/data/ui/style" xsi:type="v8ui:Color">d8p1:ReportHeaderBackColor</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>ЦветГраницы</dcscor:parameter>
|
|
<dcscor:value xmlns:d8p1="http://v8.1c.ru/8.1/data/ui/style" xsi:type="v8ui:Color">d8p1:ReportLineColor</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>СтильГраницы</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Line" width="0" gap="false">
|
|
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">None</v8ui:style>
|
|
</dcscor:value>
|
|
<dcscor:item>
|
|
<dcscor:parameter>СтильГраницы.Слева</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Line" width="1" gap="false">
|
|
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
|
|
</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>СтильГраницы.Сверху</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Line" width="1" gap="false">
|
|
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
|
|
</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>СтильГраницы.Справа</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Line" width="1" gap="false">
|
|
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
|
|
</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>СтильГраницы.Снизу</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Line" width="1" gap="false">
|
|
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
|
|
</dcscor:value>
|
|
</dcscor:item>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>Шрифт</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Font" faceName="Arial" height="10" bold="false" italic="false" underline="false" strikeout="false" kind="Absolute" scale="100"/>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>ГоризонтальноеПоложение</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:HorizontalAlign">Center</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>Размещение</dcscor:parameter>
|
|
<dcscor:value xsi:type="dcscor:DataCompositionTextPlacementType">Wrap</dcscor:value>
|
|
</dcscor:item>
|
|
</dcsat:appearance>
|
|
</dcsat:tableCell>
|
|
<dcsat:tableCell>
|
|
<dcsat:item xsi:type="dcsat:Field">
|
|
<dcsat:value xsi:type="v8:LocalStringType">
|
|
<v8:item>
|
|
<v8:lang>ru</v8:lang>
|
|
<v8:content>C</v8:content>
|
|
</v8:item>
|
|
</dcsat:value>
|
|
</dcsat:item>
|
|
<dcsat:appearance>
|
|
<dcscor:item>
|
|
<dcscor:parameter>ЦветФона</dcscor:parameter>
|
|
<dcscor:value xmlns:d8p1="http://v8.1c.ru/8.1/data/ui/style" xsi:type="v8ui:Color">d8p1:ReportGroup1BackColor</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>ЦветГраницы</dcscor:parameter>
|
|
<dcscor:value xmlns:d8p1="http://v8.1c.ru/8.1/data/ui/style" xsi:type="v8ui:Color">d8p1:ReportLineColor</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>СтильГраницы</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Line" width="0" gap="false">
|
|
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">None</v8ui:style>
|
|
</dcscor:value>
|
|
<dcscor:item>
|
|
<dcscor:parameter>СтильГраницы.Слева</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Line" width="1" gap="false">
|
|
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
|
|
</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>СтильГраницы.Сверху</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Line" width="1" gap="false">
|
|
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
|
|
</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>СтильГраницы.Справа</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Line" width="1" gap="false">
|
|
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
|
|
</dcscor:value>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>СтильГраницы.Снизу</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Line" width="1" gap="false">
|
|
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
|
|
</dcscor:value>
|
|
</dcscor:item>
|
|
</dcscor:item>
|
|
<dcscor:item>
|
|
<dcscor:parameter>Шрифт</dcscor:parameter>
|
|
<dcscor:value xsi:type="v8ui:Font" faceName="Arial" height="10" bold="false" italic="false" underline="false" strikeout="false" kind="Absolute" scale="100"/>
|
|
</dcscor:item>
|
|
</dcsat:appearance>
|
|
</dcsat:tableCell>
|
|
</dcsat:item>
|
|
</template>
|
|
</template>
|
|
<settingsVariant>
|
|
<dcsset:name>Основной</dcsset:name>
|
|
<dcsset:presentation xsi:type="v8:LocalStringType">
|
|
<v8:item>
|
|
<v8:lang>ru</v8:lang>
|
|
<v8:content>Основной</v8:content>
|
|
</v8:item>
|
|
</dcsset:presentation>
|
|
<dcsset:settings xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows">
|
|
<dcsset:selection>
|
|
</dcsset:selection>
|
|
<dcsset:item xsi:type="dcsset:StructureItemGroup">
|
|
<dcsset:order>
|
|
<dcsset:item xsi:type="dcsset:OrderItemAuto"/>
|
|
</dcsset:order>
|
|
<dcsset:selection>
|
|
<dcsset:item xsi:type="dcsset:SelectedItemAuto"/>
|
|
</dcsset:selection>
|
|
</dcsset:item>
|
|
</dcsset:settings>
|
|
</settingsVariant>
|
|
</DataCompositionSchema>
|