AX2012修改properties字体

参考自http://www.ithao123.cn/wenku/list_310_2.html

static void GD_Eric_ChangeUserinfoFont(Args _args)
{
    UserInfo    curUserInfo;
    container   curCon;
    ;
    ttsBegin;
    select firstOnly forUpdate curUserInfo where curUserInfo.id == curUserId();
    if(curUserInfo)
    {
        curUserInfo.propertyFontName    = "Tahoma";
        curUserInfo.formFontName          = "Tahoma";
        curUserInfo.reportFontName        = "Tahoma";
        curUserInfo.doUpdate();
        curCon = ["Proper:"+curUserInfo.propertyFontName,curUserInfo.formFontSize,"Report:"+curUserInfo.reportFontName,curUserInfo.reportFontSize];
        info(con2Str(curCon));
    }
    ttsCommit;
}

posted @ 2016-05-27 19:51  cnaxuser  阅读(189)  评论(0编辑  收藏  举报