mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-14 01:44:57 +03:00
48b08d77e5
Кейсы создают исходник через preRun (skd-compile), декомпилируют его и сравнивают workDir со снапшотом (Template.xml + decompiled.json): - minimal-query — базовый DataSetQuery - fields-types-and-restrictions — типы, роли, restrictions, multilang title, appearance, composite type, presentationExpression - calc-total-params — calculatedFields, totalFields, parameters с autoDates/valueList/hidden/availableValues - templates-with-style-merge-drilldown — built-in стили header/data, merge >/|, drilldown свёртка - variant-full — selection с folder, filter Or, conditionalAppearance, outputParameters, dataParameters="auto", structure shorthand, groupTemplates - dataset-types — DataSetQuery + DataSetObject + DataSetUnion Все 6 passes на runtime=powershell. Готовая база для регрессии при питон-порте (можно прогнать тот же набор через --runtime python). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
61 lines
2.5 KiB
JSON
61 lines
2.5 KiB
JSON
{
|
||
"name": "settingsVariant — selection с folder, filter Or, conditionalAppearance, structure shorthand, dataParameters auto",
|
||
"preRun": [
|
||
{
|
||
"script": "skd-compile/scripts/skd-compile",
|
||
"input": {
|
||
"dataSets": [{
|
||
"name": "Тест",
|
||
"query": "ВЫБРАТЬ * ИЗ Справочник.Номенклатура",
|
||
"fields": [
|
||
"Организация: CatalogRef.Организации @dimension",
|
||
"Номенклатура: CatalogRef.Номенклатура @dimension",
|
||
"Сумма: decimal(15,2)",
|
||
"Количество: decimal(15,3)",
|
||
"Статус: string"
|
||
]
|
||
}],
|
||
"parameters": [
|
||
"Период: StandardPeriod = LastMonth @autoDates",
|
||
"Активные: boolean = true"
|
||
],
|
||
"templates": [{"name": "Шапка", "style": "header", "rows": [["Орг", "Сум"]]}],
|
||
"groupTemplates": [{"groupName": "ДанныеОтчета", "templateType": "GroupHeader", "template": "Шапка"}],
|
||
"settingsVariants": [{
|
||
"name": "Основной",
|
||
"title": "Основной вариант",
|
||
"settings": {
|
||
"selection": [
|
||
"Организация",
|
||
{ "folder": "Объёмы", "items": ["Сумма", "Количество"] },
|
||
"Auto"
|
||
],
|
||
"filter": [
|
||
"Организация = _ @off @user",
|
||
{ "group": "Or", "items": [
|
||
{ "field": "Статус", "op": "=", "value": "Активен" },
|
||
{ "field": "Сумма", "op": ">", "value": 1000 }
|
||
]}
|
||
],
|
||
"order": ["Сумма desc", "Auto"],
|
||
"conditionalAppearance": [{
|
||
"filter": ["Сумма > 10000"],
|
||
"appearance": { "ЦветТекста": "style:НегативныйТекстЦвет" },
|
||
"presentation": "Большие суммы",
|
||
"viewMode": "Normal",
|
||
"userSettingID": "auto"
|
||
}],
|
||
"outputParameters": { "Заголовок": "Сводка по организациям" },
|
||
"dataParameters": "auto",
|
||
"structure": "Организация > Номенклатура > details"
|
||
}
|
||
}]
|
||
},
|
||
"args": { "-DefinitionFile": "{inputFile}", "-OutputPath": "Template.xml" },
|
||
"cwd": "{workDir}"
|
||
}
|
||
],
|
||
"params": { "templatePath": "Template.xml" },
|
||
"outputPath": "decompiled.json"
|
||
}
|