Показать сообщение отдельно
Старый 14.07.2008, 11:20   #15  
Poleax is offline
Poleax
Модератор
Аватар для Poleax
MCP
MCBMSS
Злыдни
 
1,353 / 595 (22) +++++++
Регистрация: 17.02.2005
Адрес: msk
Записей в блоге: 34
Ок, нашел.
код метода выглядит оказывается так:
X++:
/*
This method shouldn't be overlayered, use the startupPost() method instead !
*/
void startup(str startupCommand)      // ax32.exe -startupcmd=xxx
{
    ;
    this.reIndexNative();
    SysUserLog::logUserLogin();

    if (startupCommand)
    {
        sysStartupCmd = SysStartupCmd::construct(startupCommand);
        if (sysStartupCmd)
            sysStartupCmd.applInit();
    }

    // Fill out table releaseUpdateVersionInfo with data so fromVersion and toVersion can be computed
    // Must be called before isRunningMode()
    releaseUpdateTmpVersionInfo::fillOutMajorMinorBuildDotBuild(releaseUpdateTmpVersionInfo);

    if (this.isRunningMode())
    {
        if (!SysApplicationSetup::checkDatamodel(SysApplicationSetupMode::initBaseData))
        {
            SysApplicationSetup::saveApplicationVersion(SysApplicationSetupMode::initBaseData);
            this.initBaseData();
        }
        this.setCharMax();
        if (infolog)
            infolog.isoCurrencyCode(CompanyInfo::find().CurrencyCode);

        if (!Session::isServer())
        {
            SysSecurity::validateDomainSetup();
        }
        SysOracleStatisticsSetup::checkForOracleStatistcs();
    }
    else
    {
        xAccessRightsList::moveAdminToSecuritykeys();
//        isUpgradeBatchServer = ReleaseUpdateRunning::start();
    }
    LanguageTable::checkLanguageTable();
/*
    if (hasGUI() && !isUpgradeBatchServer)
    {
        SysCheckList::runCheckList();
    }
*/
    LanguageTable::checkStartUpLanguage();

    super(startupCommand);

    // Prevent call to smmInit during installation of Axapta
    if (!appl.isConfigMode())
    {
        // Initialize the CRM init class
        smmInit::initFromServer();
    }

    this.startupPost();

    if (startupCommand && sysStartupCmd)
        sysStartupCmd.applRun();
}
уже закоментирован, при чем на слое sys ;-)
X++:
if (hasGUI() && !isUpgradeBatchServer)
    {
        SysCheckList::runCheckList();
    }