Guest User

Untitled

a guest
Aug 10th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. consulta2 = "SELECT * FROM TCMOVIMIENTOCONTABLE WHERE CM1_TERCERO LIKE '%" + TBNit.Text + "' AND CM1_TIPO = '" + comboBoxTipo.Text + "' AND CM1_NUM LIKE '%" + TBCausacion.Text + "'";
  2. if (lector.Read())
  3. {
  4. cuenta1 = lector["CM1_CUENTA"].ToString();
  5. //textBox4.Text = cuenta1;
  6. if (int.Parse(cuenta1) == 2365)
  7. {
  8. //MessageBox.Show("Existe 1");
  9. TBRete.Text = lector["CM1_VALORH"].ToString();
  10. }
  11. else if (int.Parse(cuenta1) == 53152001)
  12. {
  13. //MessageBox.Show("Existe 2");
  14. TBRetenAsum.Text = lector["CM1_VALORD"].ToString();
  15. }
  16. else
  17. {
  18. TBTotal1.Text = lector["CM1_VALORH"].ToString();
  19. }
  20. }
Add Comment
Please, Sign In to add comment