Guest User

Untitled

a guest
Dec 12th, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. //((LinkButton)produtos_table.FindControl("Remove_" + funcionario.IdFuncionario.ToString())).Command += new CommandEventHandler(btEliminar_Click);
  2.  
  3. }
  4.  
  5. int produtoid = int.Parse(botao.ID.Split('_')[1]);
  6. float z;
  7. var produto = (from x in context.Produtos
  8. where x.IdProduto == produtoid
  9. select x).SingleOrDefault();
  10.  
  11.  
  12. z = float.Parse(produto.Preco);
  13.  
  14. Faturas.adiciona(produto.IdProduto, produto.Nome, z,texto.Text);
  15.  
  16. }
Add Comment
Please, Sign In to add comment