Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PreparedStatement pst = cn.prepareStatement(sSQL);
- pst.setString (1, dts.getConsecutivo());
- pst.setInt (2, dts.getId_proveedor());
- pst.setString (3, dts.getProducto());
- pst.setDouble (4, dts.getCantidad());
- pst.setDouble (5, dts.getFvalor());
- pst.setDate (6, dts.getFechaini());
- pst.setDate (7, dts.getFechafin());
- pst.setString (8, dts.getConcepto());
- int n = pst.executeUpdate();
- if (n != 0) {
- return true;
- } else {
- return false;
- }
- } catch (Exception e) {
- JOptionPane.showConfirmDialog(null, e);
- }
- return false;
- }
Add Comment
Please, Sign In to add comment