zoukankan      html  css  js  c++  java
  • Remark

    // create by kim 20140805
    public void Remark_insertChangeHeader(Editor e)
    {
        userinfo        userInfo;
        ;
        e.unmark();
        e.gotoLine(1);
        e.gotoCol(1);
        select name from userInfo where userInfo.id == curUserId();
        e.insertLines('// '+ strUpr(enum2Value(currentAOLayer())) +' Changed on ' + date2str(today(),123,2,1,3,1,4, DateFlags::FormatAll ) + ' at ' + time2str(timenow(), 1, 1) + ' by ' + curuserid() + ' ' + userInfo.name + '
    ');
    
    }
    

      

    // create by kim 20140805
    void Remark_BeginOrigAndEnd(Editor e)
    {
        userinfo        userInfo;
        int startLine = e.selectionStartLine();
        int endLine   = e.selectionEndLine();
        ;
    
        select name from userInfo where userInfo.id == curUserId();
    
        e.gotoCol(1);
        e.unmark();
        e.gotoLine(startline);
        e.insertLines('	// '+strUpr(enum2str(currentAOLayer()))+ ' on ' + date2str(today(),321,2,3,2,3,4 ) + ' at ' + time2str(timeNow(), 1, 1) + ' Changed by ' +curUserId()+ ' ' + userInfo.name + ' -Begin
    ');
        e.insertLines('	/*' +' Original
    ');
        e.gotoLine(endline+3);
        e.insertLines('	*/' + '
    ');
        e.insertLines('	// '+strUpr(enum2str(currentAOLayer()))+' on ' + date2str(today(),321,2,3,2,3,4 ) + ' at ' + time2str(timeNow(), 1, 1) +  ' Changed by ' +curUserId()+ ' ' + userInfo.name + ' -End
    ');
    
    }
    

      

    // create by kim 20140805
    public void Remark_insertCreateHeader(Editor e)
    {
        userinfo        userInfo;
        ;
        e.unmark();
        e.gotoLine(1);
        e.gotoCol(1);
        select name from userInfo where userInfo.id == curUserId();
    
        e.insertLines('// '+ strUpr(enum2Value(currentAOLayer())) +' Created on ' + date2str(today(),123,2,1,3,1,4, DateFlags::FormatAll ) + ' at ' + time2str(timenow(), 1, 1) + ' by ' + curuserid() + ' ' + userInfo.name + '
    ');
    }
    

      

    // create by kim 20140805
    void Remark_BeginAndEnd(Editor e)
    {
        userinfo        userInfo;
        int startLine = e.selectionStartLine();
        int endLine   = e.selectionEndLine();
        ;
    
        select name from userInfo where userInfo.id == curUserId();
    
        e.gotoCol(1);
        e.unmark();
        e.gotoLine(startline);
        e.insertLines('	// '+strUpr(enum2str(currentAOLayer()))+ ' on ' + date2str(today(),321,2,3,2,3,4 ) + ' at ' + time2str(timeNow(), 1, 1) + ' Changed by ' +curUserId()+ ' ' + userInfo.name + ' -Begin
    ');
        e.gotoLine(endline+2);
        e.insertLines('	// '+strUpr(enum2str(currentAOLayer()))+' on ' + date2str(today(),321,2,3,2,3,4 ) + ' at ' + time2str(timeNow(), 1, 1) +  ' Changed by ' +curUserId()+ ' ' + userInfo.name + ' -End
    ');
    
    }
    

      

  • 相关阅读:
    [代码保留]ORA01033: ORACLE initialization or shutdown in progress
    我的重构步骤:重构两份过程一致、中间数据类型不一致的超长函数
    C# 由UTF8 BOM头引发的两个问题(C#去BOM头)
    XPath 基本语法
    Check Browser Compatibility for CSS3 and HTML5 features
    【Mrak】C# 文本文件 ANSI编码格式 转 UTF8
    SQL 过滤重复数据
    重构具有相似“过程”的代码的经验总结(以方法为例)
    POS 收款机资料整理
    WinForm中的暗杀杀手——相对路径
  • 原文地址:https://www.cnblogs.com/dingkui/p/3892546.html
Copyright © 2011-2022 走看看