mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-15 10:24:57 +03:00
cb3dda0d53
Раундтрип терял <View>/<Edit> на колонках реквизита (колонка ValueTable/ValueTree с <Type>):
ролевой доступ вида <Edit><xr:Common>false</xr:Common><xr:Value name="Role.X">true</xr:Value></Edit>
(напр. НастройкиУчетаЗарплаты/ФормаДополнительныхДанных — колонки РайонныйКоэффициент/Ссылка).
Механизм xr-флага уже был у самого реквизита (View/Edit) и userVisible — у колонок не подключён.
decompile (Decompile-AttrColumn): захват view/edit через Decompile-XrFlag (bool | {common,roles}).
compile (Emit-AttrColumn, ps1+py): эмиссия <View>/<Edit> через Emit-XrFlag после FunctionalOptions.
(Колонки идут своим путём Decompile-AttrColumn, не через GENERIC_SCALARS — коллизии ключа edit нет.)
Корпус (acc+erp 8.3.24): из 282591 колонок — 14 с <View>, 21 с <Edit> (редко, но реально).
Верификация: таргет-раундтрип 72 форм с колоночными View/Edit → категория закрыта (0 LOST;
остаток — другие категории content/right). Регресс form-compile 43/43 (ps1+py); 1С-cert кейса
table (колоночные View common-only и Edit с ролью грузятся в платформу). spec обновлён.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
51 lines
2.7 KiB
JSON
51 lines
2.7 KiB
JSON
{
|
|
"name": "Форма с таблицей",
|
|
"preRun": [
|
|
{
|
|
"script": "meta-compile/scripts/meta-compile",
|
|
"input": { "type": "DataProcessor", "name": "Таблица" },
|
|
"args": { "-JsonPath": "{inputFile}", "-OutputDir": "{workDir}" }
|
|
},
|
|
{
|
|
"script": "form-add/scripts/form-add",
|
|
"args": { "-ObjectPath": "{workDir}/DataProcessors/Таблица.xml", "-FormName": "Форма" }
|
|
}
|
|
],
|
|
"params": { "outputPath": "DataProcessors/Таблица/Forms/Форма/Ext/Form.xml" },
|
|
"validatePath": "DataProcessors/Таблица/Forms/Форма/Ext/Form.xml",
|
|
"input": {
|
|
"title": "Просмотр данных",
|
|
"elements": [
|
|
{ "table": "Данные", "path": "Данные", "changeRowSet": true, "titleLocation": "top", "height": 80, "heightInTableRows": 5, "headerHeight": 2, "footerHeight": 1, "currentRowUse": "SelectionPresentationAndChoice", "autofill": true, "multipleChoice": true, "searchOnInput": "Use", "markIncomplete": true, "settingsNamedItemDetailedRepresentation": false, "heightControlVariant": "UseHeightInTableRows", "maxRowsCount": 5, "autoMaxRowsCount": false,
|
|
"viewStatusLocation": "None", "searchControlLocation": "None",
|
|
"excludedCommands": ["Add", "Delete", "MoveUp", "MoveDown"],
|
|
"commandBar": { "autofill": false, "children": [
|
|
{ "button": "ПанельОбновить", "command": "Обновить", "checked": true }
|
|
]},
|
|
"contextMenu": { "children": [
|
|
{ "buttonGroup": "МенюГруппа", "children": [
|
|
{ "button": "МенюОбновить", "command": "Обновить" }
|
|
]}
|
|
]},
|
|
"columns": [
|
|
{ "input": "Дата", "path": "Данные.Дата", "fixingInTable": "Left" },
|
|
{ "input": "Сумма", "path": "Данные.Сумма" },
|
|
{ "input": "Комментарий", "path": "Данные.Комментарий" }
|
|
]}
|
|
],
|
|
"attributes": [
|
|
{ "name": "Объект", "type": "DataProcessorObject.Таблица", "main": true },
|
|
{ "name": "Данные", "type": "ValueTable", "useAlways": ["Сумма"], "columns": [
|
|
{ "name": "Дата", "type": "date", "useAlways": true, "view": false },
|
|
{ "name": "Сумма", "type": "decimal(15,2)", "edit": { "common": false, "roles": { "a1b2c3d4-1111-2222-3333-444455556666": true } } },
|
|
{ "name": "Комментарий", "type": "string(200)" },
|
|
{ "name": "Объект", "type": "AnyRef" },
|
|
{ "name": "Источник", "type": "CatalogRef" }
|
|
]}
|
|
],
|
|
"commands": [
|
|
{ "name": "Обновить", "action": "ОбновитьОбработка", "currentRowUse": "Use", "table": "Данные" }
|
|
]
|
|
}
|
|
}
|