{ "name": "Макет с параметрами и несколькими областями", "preRun": [ { "script": "mxl-compile/scripts/mxl-compile", "input": { "columns": 5, "fonts": { "default": { "face": "Arial", "size": 10 }, "bold": { "face": "Arial", "size": 10, "bold": true } }, "styles": { "bordered": { "border": "all" }, "bordered-right": { "border": "all", "align": "right" }, "total": { "font": "bold", "border": "top", "align": "right" } }, "areas": [ { "name": "Заголовок", "rows": [ { "cells": [{ "col": 1, "span": 5, "param": "ТекстЗаголовка" }] } ] }, { "name": "Поставщик", "rows": [ { "cells": [ { "col": 1, "span": 2, "text": "Поставщик:" }, { "col": 3, "span": 3, "param": "ПредставлениеПоставщика", "detail": "Поставщик" } ]} ] }, { "name": "Строка", "rows": [ { "rowStyle": "bordered", "cells": [ { "col": 1, "param": "НомерСтроки" }, { "col": 2, "param": "Товар", "detail": "Номенклатура" }, { "col": 3, "style": "bordered-right", "param": "Количество" }, { "col": 4, "style": "bordered-right", "param": "Цена" }, { "col": 5, "style": "bordered-right", "param": "Сумма" } ]} ] }, { "name": "Итого", "rows": [ { "cells": [ { "col": 4, "style": "total", "text": "Итого:" }, { "col": 5, "style": "total", "param": "Всего" } ]} ] } ] }, "args": { "-JsonPath": "{inputFile}", "-OutputPath": "Template.xml" }, "cwd": "{workDir}" } ], "params": { "templatePath": "Template.xml" }, "expect": { "stdoutContains": "Строка" } }