Guest User

Untitled

a guest
Apr 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. PreparedStatement pst = cn.prepareStatement(sSQL);
  2.  
  3. pst.setString (1, dts.getConsecutivo());
  4. pst.setInt (2, dts.getId_proveedor());
  5. pst.setString (3, dts.getProducto());
  6. pst.setDouble (4, dts.getCantidad());
  7. pst.setDouble (5, dts.getFvalor());
  8. pst.setDate (6, dts.getFechaini());
  9. pst.setDate (7, dts.getFechafin());
  10. pst.setString (8, dts.getConcepto());
  11.  
  12.  
  13. int n = pst.executeUpdate();
  14. if (n != 0) {
  15. return true;
  16. } else {
  17. return false;
  18. }
  19.  
  20. } catch (Exception e) {
  21. JOptionPane.showConfirmDialog(null, e);
  22. }
  23. return false;
  24. }
Add Comment
Please, Sign In to add comment