Генерация Structure Lotos

Генерация Structure Lotos#

Используется для обработки документов, версий, позиций или связанных записей документа.

Место применения: Сервис > Инструменты > Выполнить JEXL-скрипт

Тип: JEXL-скрипт

sql(`
select t1.gid as "gid"
from mct_specificationver t1
left join mct_specification t2 on t1.idmctdocument = t2.id
where t2.idprj = 651
and t2.idprjver = 452
 `).foreach(function(r){
Mct_StructureGenPkg.checkExistanceInStruct(r.gid);
commit();
Mct_StructureGenPkg.structGenFromDoc(r.gid);
commit();
}) ;