zoaoo

博客园 首页 新随笔 联系 订阅 管理
static void RecordSortedList(Args _args)
{
    SalesLine           localSalesLine,fetchSalesLine;
    RecordSortedList    recordSorteList = new RecordSortedList(tablenum(SalesLine));
    ;
    
    recordSorteList.sortOrder(fieldnum(SalesLine, InventTransId));
    while select localSalesLine
        where localSalesLine.createdDateTime >= datetimeutil::addDays(datetimeutil::utcNow(),-10)
        
    {
        recordSorteList.ins(localSalesLine);
    }
    recordSorteList.first(fetchSalesLine);
    while(fetchSalesLine)
    {
        info (fetchSalesLine.SalesId);
        if (!recordSorteList.next(fetchSalesLine))
        {
            break;
        }
    }
}

 

posted on 2017-09-14 15:33  zoaoo  阅读(189)  评论(0编辑  收藏  举报