How to modify Code Comments[AX2012]

// This is a framework class. Customizing this class may cause problems with future upgrades to the software.
class XppSource
{
    #define.defaultIndentColumns(4)
    #xppTexts

    int     indentLevel;
    Source  source;
}
// VAR Changed on 08 Nov 2012 at 13:55:27 by JXie7519
Source comment()
{
    UserInfo    UserInfo;
    Name        name;
;
    /* Original
    source += strfmt("// #! INCIDENT !#.LAST.%1.%2:", date2str(systemdateget(), 123,2,2,2,2,2, DateFlags::None), curuserId());
    */

    // VAR Changed on 08 Nov 2012 at 13:55:27 by JXie7519 - start
    select firstOnly UserInfo where UserInfo.id == curUserId();

    name = subStr(UserInfo.networkAlias, strLen(UserInfo.networkAlias) - 3, strlen(UserInfo.networkAlias));
    name = Global::isInteger(name) ? name : UserInfo.id;

    source += "// " + strUpr(enum2str(currentAOLayer())) + " Changed on " + date2str(today(),321,2,3,2,3,4, DateFlags::FormatAll ) + " at " + time2str(timenow(), 1, 1) + " by " + name + " - start" + '
' + "
" +
       "	" + "// " + strUpr(enum2str(currentAOLayer())) + " Changed on " + date2str(today(),321,2,3,2,3,4, DateFlags::FormatAll ) + " at " + time2str(timenow(), 1, 1) + " by " + name + " - end";// + '
';
    // VAR Changed on 08 Nov 2012 at 13:55:27 by JXie7519 - end

    return source;
}
原文地址:https://www.cnblogs.com/Fandyx/p/3146203.html