Цитата:
Сообщение от
MikeR
Олег, там используется перебор коллекции
X++:
while (mi.....more())
Это немного другое дело, здесь очевидно, надо было использовать запросную часть.
Ок. BOMDesignerCtrl\canMoveNode
X++:
while (true)
{
if (bomTableMove.RecId == bomTableDrop.RecId)
{
dropParent = tree.getParent(curParent);
bomTableDropParent = node2BOMTable.lookup(dropParent);
return bomTableMoveParent.RecId != bomTableDropParent.RecId || dropParent == rootId;
}
else
{
curParent = tree.getParent(curParent);
if (curParent == rootId)
return true;
bomTableDrop = node2BOMTable.lookup(curParent);
}
}