m_pChart=CLuaChartUtil();
m_pChart:SetChart(ui:getDialogName(), 'id_chart');
m_pChart:clean();
local helpWo = CSelectHelp();
local sql = [[
    select top 5 wo_code,da_num,plan_num from plan_wo with(nolock) 
    order by create_time desc
]];
if db:select(sql,'',helpWo) < 0 then
    return ui:tip(db:error());
end
m_pChart:createCurve('生产数量',ui:rgb(255,0,0));
m_pChart:setHelp('生产数量',helpWo,'dc_loc_name','da_num');
m_pChart:setTitle( '产量对比');

m_pChart:createCurve('计划数量',ui:rgb(78,207,231));
m_pChart:setHelp('计划数量',helpWo,'dc_loc_name','plan_num');
Copyright © TouchNet 2015 all right reserved,powered by Gitbook最后修订时间: 2022-06-21 09:21:04

results matching ""

    No results matching ""