Exemplo n.º 1
0
  /**
   * Cuenta el numerode plazos vencidos hasta la fecha actual que son responsabilidad del usuario
   * conectado.
   *
   * @param type
   * @param resp Responsabilidades del usuario conectado (supervisar y sustituir)
   * @return número de plazos vencidos hasta la fecha actual
   * @throws ISPACException
   */
  public int countExpiredTerms(int type, String resp) throws ISPACException {

    DbCnt cnt = context.getConnection();
    try {
      return DeadLineDAO.countTerms(cnt, type, resp);
    } catch (ISPACException ie) {
      throw new ISPACException("Error en invesflowAPI:countTerms()", ie);
    } finally {
      context.releaseConnection(cnt);
    }
  }
Exemplo n.º 2
0
  public IItemCollection getExpiredTerms(int type) throws ISPACException {

    String resp = getRespString();
    DbCnt cnt = context.getConnection();
    try {
      return DeadLineDAO.getTerms(cnt, type, resp).disconnect();
    } catch (ISPACException ie) {
      throw new ISPACException("Error en invesflowAPI:getTerms(" + type + ")", ie);
    } finally {
      context.releaseConnection(cnt);
    }
  }