Guest User

Untitled

a guest
Apr 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. 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());
  2. var html3 = itens1.Html();
  3. Item itens = new Item();
  4. itens.quantidade = html3.SelectNodes("//tr[@class='sr']/td")[3].SelectSingleNode("div").InnerText.ToDecimal();
  5. itens.quantidade = html3.SelectNodes("//tr[@class='dr']/td")[3].SelectSingleNode("div").InnerText.ToDecimal();
  6. /*validar valores unitários */
  7. itens.valor_unitario = html3.SelectNodes("//tr[@class='sr']/td")[5].SelectSingleNode("div").InnerText.Trim().ToDecimal();
  8. itens.valor_total = html3.SelectNodes("//tr[@class='sr']/td")[5].SelectSingleNode("div").InnerText.Trim().ToDecimal();
  9. itens.descricao = html3.SelectNodes("//tr[@class='sr']/td")[1].SelectSingleNode("div").InnerText.Trim();
  10. Documento.itens.Add(itens);
Add Comment
Please, Sign In to add comment