public static List <Dictionary <String, String> > montaLivroOfertasCompleto( LivroOfertasBase livroOferta, int sentido, int casasDecimais) { List <Dictionary <String, String> > mensagem = new List <Dictionary <String, String> >(); List <LOFDadosOferta> livro = null; if (sentido == LivroOfertasBase.LIVRO_COMPRA) { livro = livroOferta.getLivroCompra(); } else { livro = livroOferta.getLivroVenda(); } for (int posicao = 0; posicao < livro.Count; posicao++) { LOFDadosOferta item = livro[posicao]; item.Posicao = posicao; mensagem.Add(LOFDadosOferta.montarRegistroOferta(ConstantesMDS.HTTP_OFERTAS_TIPO_ACAO_INCLUIR, item, casasDecimais)); } return(mensagem); }