-
Инициализация всех полей
V.2
X++:static void initAllFields(Common _fromTable, Common _toTable, boolean _skipRefRecId = false) { DictTable dictTable; int i; SysDictField sysDictField; dictTable = new DictTable(_toTable.TableId); if (dictTable) { for (i = 1; i <= dictTable.fieldCnt(); i++) { sysDictField = new SysDictField(dictTable.id(), dictTable.fieldCnt2Id(i)); // Excluding system fields if ( sysDictField && !sysDictField.isSystem()) { // Excluding RefRecId fields by default if ( _skipRefRecId && sysDictField.isDerivedFrom(extendedTypeNum(RefRecId))) { continue; } _toTable.(sysDictField.id()) = _fromTable.(sysDictField.id()); } } } }
Запись от Link размещена 19.11.2014 в 15:30