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()); } }
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()); } }