Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Response itens1 = bot.Get("http://portaldocidadao.tce.sc.gov.br/" + html2.SelectSingleNode("//table[@id='de1']/tr[@class='sr']").Attributes["onclick"].Value.CopyBetween("location.href='", "'").Trim());
- var html3 = itens1.Html();
- Item itens = new Item();
- itens.quantidade = html3.SelectNodes("//tr[@class='sr']/td")[3].SelectSingleNode("div").InnerText.ToDecimal();
- itens.quantidade = html3.SelectNodes("//tr[@class='dr']/td")[3].SelectSingleNode("div").InnerText.ToDecimal();
- /*validar valores unitários */
- itens.valor_unitario = html3.SelectNodes("//tr[@class='sr']/td")[5].SelectSingleNode("div").InnerText.Trim().ToDecimal();
- itens.valor_total = html3.SelectNodes("//tr[@class='sr']/td")[5].SelectSingleNode("div").InnerText.Trim().ToDecimal();
- itens.descricao = html3.SelectNodes("//tr[@class='sr']/td")[1].SelectSingleNode("div").InnerText.Trim();
- Documento.itens.Add(itens);
Add Comment
Please, Sign In to add comment