Показать сообщение отдельно
Старый 24.11.2008, 14:10   #14  
Logger is offline
Logger
Участник
Лучший по профессии 2015
Лучший по профессии 2014
 
3,971 / 3268 (116) ++++++++++
Регистрация: 12.10.2004
Адрес: Москва
Записей в блоге: 2
\Classes\InventUpd_Reservation\updateReserveMore
X++:
    appl.inventUpdateTTSControl().setTTSBeginLock();

    if (movement.mustBeOnhandLocked(false))
        appl.inventUpdateTTSControl().inventItemLocationSelectLocked(movement.itemId());

\Classes\InventUpdateTTSControl\inventItemLocationSelectLocked
X++:
/*
Lock on table inventItemLocation is used for serialisation of updating processes - lock is only used,
if required when instantiating class: InventOnHand (when 'lock' -flag is set to 'true')
*/

public inventItemLocation inventItemLocationSelectLocked(ItemId itemId)
{
    InventItemLocation inventItemLocation;
    ;
   ...
}

\Classes\InventUpdateTTSControl\setTTSBeginLock
X++:
/*
Begin secondary transaction (used to establish serializing lock in table InventItemLocation)
*/
public void setTTSBeginLock()
{
    InventUpdateTTSMode tmpTTSMode;
    ;
    if (!this.mustUseTTSSystem())
        return;
   ...
}
обращаю внимание на этт кусок кода
X++:
    if (!this.mustUseTTSSystem())
        return;