Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- consulta2 = "SELECT * FROM TCMOVIMIENTOCONTABLE WHERE CM1_TERCERO LIKE '%" + TBNit.Text + "' AND CM1_TIPO = '" + comboBoxTipo.Text + "' AND CM1_NUM LIKE '%" + TBCausacion.Text + "'";
- if (lector.Read())
- {
- cuenta1 = lector["CM1_CUENTA"].ToString();
- //textBox4.Text = cuenta1;
- if (int.Parse(cuenta1) == 2365)
- {
- //MessageBox.Show("Existe 1");
- TBRete.Text = lector["CM1_VALORH"].ToString();
- }
- else if (int.Parse(cuenta1) == 53152001)
- {
- //MessageBox.Show("Existe 2");
- TBRetenAsum.Text = lector["CM1_VALORD"].ToString();
- }
- else
- {
- TBTotal1.Text = lector["CM1_VALORH"].ToString();
- }
- }
Add Comment
Please, Sign In to add comment