zoukankan      html  css  js  c++  java
  • Using X++ code Customizations to statusLine

    static void Jimmy_statusLine_CustomText(Args _args)
    {
        str  6 msg;
        ;
        PRINT xSession::numSession();//对话数
        print Con2str(xSession::xppCallStack(),",");//当前的堆栈位置
        print Session::aosClientMode();//Thin
    
        msg = "Expire Date :"+date2str(xinfo::expireDate(),123,2,4,2,4,2);
        msg = " 谢宇帆";
        //Force the text to be shown
        xUserInfo::statusLine_CustomText(true);
    
        //infolog.
        infolog.writeCustomStatlineItem(msg);
        pause;
    
    }
    
    static void Jimmy_statuslineShowInstance()
    {
    //Display Dynamics AX 2009 Client's configuration and database name  in the status line
        str         sSQL;
        int         iDB;
        str         displayStr;
    ;
    
        sSQL = SqlSystem::databaseBackendDesc();//DGQVS004 - AX2009DEV
        iDB = strFind(sSQL, " - ", 2, strLen(sSQL)) + 3;//12
    
        if (iDB < strLen(sSQL))
            sSQL = subStr(sSQL, iDB, strLen(sSQL));//AX2009DEV
    
        displayStr = strFmt("%1%2", xInfo::configuration(), sSQL);//DEV2010,AX2009DEV
        print strlen(displayStr);//Only excepte str 16
        pause;
        xUserInfo::statusLine_CustomText(true);
        infolog.writeCustomStatlineItem(displayStr);
    }
    
    
    
  • 相关阅读:
    POJ 1659 Frogs' Neighborhood
    zoj 2913 Bus Pass(BFS)
    ZOJ 1008 Gnome Tetravex(DFS)
    POJ 1562 Oil Deposits (DFS)
    zoj 2165 Red and Black (DFs)poj 1979
    hdu 3954 Level up
    sgu 249 Matrix
    hdu 4417 Super Mario
    SPOJ (BNUOJ) LCM Sum
    hdu 2665 Kth number 划分树
  • 原文地址:https://www.cnblogs.com/Fandyx/p/1920566.html
Copyright © 2011-2022 走看看