本文整理汇总了Java中org.kuali.rice.kew.stats.Stats.setInitiatedNumber方法的典型用法代码示例。如果您正苦于以下问题:Java Stats.setInitiatedNumber方法的具体用法?Java Stats.setInitiatedNumber怎么用?Java Stats.setInitiatedNumber使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.kew.stats.Stats
的用法示例。
在下文中一共展示了Stats.setInitiatedNumber方法的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*/);
}