本文整理匯總了Java中org.kuali.rice.kew.stats.Stats.setDisapprovedNumber方法的典型用法代碼示例。如果您正苦於以下問題:Java Stats.setDisapprovedNumber方法的具體用法?Java Stats.setDisapprovedNumber怎麽用?Java Stats.setDisapprovedNumber使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.kuali.rice.kew.stats.Stats
的用法示例。
在下文中一共展示了Stats.setDisapprovedNumber方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: DocumentsRoutedReport
import org.kuali.rice.kew.stats.Stats; //導入方法依賴的package包/類
@Override
public void DocumentsRoutedReport(Stats stats, Date begDate, Date endDate) throws SQLException {
Query query = getEntityManager().createQuery(STATS_DOCUMENTS_ROUTED_REPORT);
query.setParameter("beginDate", new Timestamp(begDate.getTime()));
query.setParameter("endDate", new Timestamp(endDate.getTime()));
@SuppressWarnings("unchecked")
List<Object[]> resultList = query.getResultList();
for (Object[] result : resultList) {
String actionType = result[1].toString();
String number = result[0].toString();
if (actionType.equals(KewApiConstants.ROUTE_HEADER_CANCEL_CD)) {
stats.setCanceledNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_DISAPPROVED_CD)) {
stats.setDisapprovedNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_ENROUTE_CD)) {
stats.setEnrouteNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_EXCEPTION_CD)) {
stats.setExceptionNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_FINAL_CD)) {
stats.setFinalNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_INITIATED_CD)) {
stats.setInitiatedNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_PROCESSED_CD)) {
stats.setProcessedNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_SAVED_CD)) {
stats.setSavedNumber(number);
}
}
}
示例2: DocumentsRoutedReport
import org.kuali.rice.kew.stats.Stats; //導入方法依賴的package包/類
@Override
public void DocumentsRoutedReport(Stats stats, Date begDate, Date endDate) throws SQLException, LookupException {
Query query = entityManager.createQuery("select count(*) as count, drhv.docRouteStatus from DocumentRouteHeaderValue drhv where drhv.createDate between :beginDate and :endDate group by docRouteStatus");
// Query query = entityManager.createNamedQuery("Stats.DocumentsRoutedReport");
query.setParameter("beginDate", new Timestamp(begDate.getTime()));
query.setParameter("endDate", new Timestamp(endDate.getTime()));
@SuppressWarnings("unchecked")
List<Object[]> resultList = query.getResultList();
for (Object[] result : resultList) {
String actionType = result[1].toString();
String number = result[0].toString();
if (actionType.equals(KewApiConstants.ROUTE_HEADER_CANCEL_CD)) {
stats.setCanceledNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_DISAPPROVED_CD)) {
stats.setDisapprovedNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_ENROUTE_CD)) {
stats.setEnrouteNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_EXCEPTION_CD)) {
stats.setExceptionNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_FINAL_CD)) {
stats.setFinalNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_INITIATED_CD)) {
stats.setInitiatedNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_PROCESSED_CD)) {
stats.setProcessedNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_SAVED_CD)) {
stats.setSavedNumber(number);
}
}
}
示例3: DocumentsRoutedReport
import org.kuali.rice.kew.stats.Stats; //導入方法依賴的package包/類
@Override
public void DocumentsRoutedReport(Stats stats, Date begDate, Date endDate) throws SQLException, LookupException {
LOG.debug("DocumentsRoutedReport()");
PersistenceBroker broker = this.getPersistenceBroker(false);
Connection conn = broker.serviceConnectionManager().getConnection();
PreparedStatement ps = conn.prepareStatement(StatsDAOOjbImpl.SQL_DOCUMENTS_ROUTED);
ps.setTimestamp(1, new Timestamp(begDate.getTime()));
ps.setTimestamp(2, new Timestamp(endDate.getTime()));
ResultSet rs = ps.executeQuery();
while (rs.next()) {
String actionType = rs.getString(2);
String number = new Integer(rs.getInt(1)).toString();
if (actionType.equals(KewApiConstants.ROUTE_HEADER_CANCEL_CD)) {
stats.setCanceledNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_DISAPPROVED_CD)) {
stats.setDisapprovedNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_ENROUTE_CD)) {
stats.setEnrouteNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_EXCEPTION_CD)) {
stats.setExceptionNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_FINAL_CD)) {
stats.setFinalNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_INITIATED_CD)) {
stats.setInitiatedNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_PROCESSED_CD)) {
stats.setProcessedNumber(number);
} else if (actionType.equals(KewApiConstants.ROUTE_HEADER_SAVED_CD)) {
stats.setSavedNumber(number);
}
}
closeDatabaseObjects(rs, ps, conn/*, broker*/);
}