konstantin nizhegorodov » 15 апр 2009 23:04
Эти настройки храняться не в Базе. Да и вообще в Смартиме почти все настройки сейчас храняться в XML файлах, обслуживаемых ConfigurationManager и выдаваемых клиентам по запросу через TCP (.NET Remoting).
Я не знаю места, где можно параметр Replace Previous revision выставить для всех операций "на халяву".
Но это абсолютно точно можно сделать, перехватив событие (создав хук для события) Before LoadLCScreen. Смотреть в сторону параметра NM_LFCYC_CHECKIN_MODE:
NM_LFCYC_CHECKIN_MODE
Attribute Name
“CHECKININ_MODE”
Data Type
sdtSmallInt
Life-Cycle Operations
Check In, Release
Applicable Hooks
Before LoadLCScreen – Before [LC Operation]
Description
Specifies the revision of an object to use for the Check In or Release operation.
Possibilities are:
• The operation is performed with current revision of the object
Appears on SMARTEAM – Editor in: Life-cycle screen/General tab/ Current Revision
• The operation is performed with the previous (parent) revision of the object
Appears on SMARTEAM – Editor in: Life-cycle screen/General tab/Replace Previous Revision
• The operation is performed with the user defined revision of the object
Appears on SMARTEAM – Editor in: Life-cycle screen/General tab/User defined revision
The user-defined revision box is shown only if the Tools/Administrator Options/Life-Cycle Options/General/ “Enable user-defined revisions” is set
Values
Value
Description
LFCYC_WorkRev (= 1)
The checked out object is checked in, keeping the same revision. No previous object is deleted.
LFCYC_PrevRev (= 2)
The checked out object is copied to the immediately previous checked in revision. The checked in revision number is used and the checked out object is deleted.
LFCYC_UserRev (= 3)
The checked out object replaces the checked in revision selected by the user. The checked in revision number is used. The replaced version is considered to be the latest.
Смотрите SmarTeam API - и обрящите.