function get_help(helpTime)
helpTime:reset();
helpTime:addField('test_col');
helpTime:addField('color');
helpTime:addField('start_time');
helpTime:addField('end_time');
local line = CVector();
line:push_back('1'); line:push_back(ui:rgb(100, 110, 120));
line:push_back('2020-11-11 03:00:00'); line:push_back('2020-11-11 09:00:00');
helpTime:addVectorValue(line);
line:clear();
line:push_back('1'); line:push_back(ui:rgb(100, 0, 0));
line:push_back('2020-11-11 09:00:00'); line:push_back('2020-11-11 12:10:00');
helpTime:addVectorValue(line);
line:clear();
line:push_back('1'); line:push_back(ui:rgb(0, 110, 0));
line:push_back('2020-11-11 12:10:00'); line:push_back('2020-11-11 19:09:00');
helpTime:addVectorValue(line);
line:clear();
line:push_back('1'); line:push_back(ui:rgb(0, 0, 120));
line:push_back('2020-11-11 19:09:00'); line:push_back('2020-11-12 04:00:00');
helpTime:addVectorValue(line);
end
function main()
ui:setProp('id_line_gauge', 'start_time', '2020-11-11 07:00:00');
ui:setProp('id_line_gauge', 'length_time', '20');
local helpTime = CSelectHelp();
get_help(helpTime)
helpTime:dump();
ui:setHelp('id_line_gauge', helpTime);
end
main();