Exemplo n.º 1
0
 public ArrayList InsertGrantMenusuario(ArrayList<Parametro> param, Connection objCnx)
     throws UnknownException {
   try {
     ArrayList result;
     String fun = "{call NewSpInsertGrantMenusuario(?,?)}";
     Consultas query = new Consultas();
     result = query.funcionSQLServerResultSet(fun, param, objCnx);
     result.add(objCnx);
     return result;
   } catch (Exception ex) {
     Logger.getLogger(DaoItem.class.getName()).log(Level.SEVERE, null, ex);
     throw new UnknownException(ex.getMessage());
   }
 }
Exemplo n.º 2
0
 public ArrayList generarDocumentoVenta(ArrayList<Parametro> param, Connection objCnx)
     throws UnknownException {
   try {
     ArrayList result;
     String fun = "{call NewSpGenerarVenta(?,?,?,?,?,?,?)}";
     Consultas query = new Consultas();
     result = query.funcionSQLServerResultSet(fun, param, objCnx);
     result.add(objCnx);
     return result;
   } catch (Exception ex) {
     Logger.getLogger(DaoCabeceraVenta.class.getName()).log(Level.SEVERE, null, ex);
     throw new UnknownException(ex.getMessage());
   }
 }