Rev 6247 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#set($stats=$action.getStats())#set($amounts=$stats.getAmounts())#set($statusCounts=$stats.getStatusCounts())#set($operatorCounts=$stats.getOperatorCounts())#set($currentOrders=$stats.getCurrentOrders())<html ><head><title>Recharge Statistics</title></head><body>#parse("../content/reports-common.vm")<div><h3>Orders By Status</h3><table border="1"><tr><th width=50%>Status</th><th>Count</th></tr>#foreach ( $status in $statusCounts.keySet() )<tr><td>$action.getStatusDescription($status)</td><td align="right">$statusCounts.get($status)</td></tr>#end</table><br/><h3>All Orders By Operator</h3><table border="1"><tr><th width=50%>Operator</th><th>Count</th></tr>#foreach ( $operator in $operatorCounts.keySet() )<tr><td>$action.getOperator($operator)</td><td align="right">$operatorCounts.get($operator)</td></tr>#end</table><br/><h3>Collection Stats</h3><table border="1"><tr><th width=50%>Field</th><th>Value</th></tr>#foreach ( $type in $amounts.keySet() )<tr><td>$type</td><td align="right">$amounts.get($type)</td></tr>#end</table>#foreach ( $type in $currentOrders.keySet() )#set($orders = $currentOrders.get($type))<br/><h3>Lastest $type Orders</h3><table border="1" width="100%"><thead><tr><th width="5%">Order ID</th><th width="16%">Order Date</th><th width="10%">Operator</th><th width="9%">Device</th><th width="15%">Status</th><th width="30%">Description</th><th width="4%">Amount</th><th width="6%">UserId</th><th width="5%">Plan</th></tr></thead><tbody>#foreach($order in $orders)<tr><td>$order.getDisplayId()</td><td>$action.getDateTime($order.getCreationTimestamp())</td><td>$action.getOperator($order.getOperatorId())</td><td>$order.getDeviceNumber()</td><td>$order.getStatus()</td><td>#if($order.getDescription())$order.getDescription()#end</td><td>$order.getTotalAmount()</td><td>$order.getUserId()</td><td>#if($order.getPlan() && $action.getPlanString($order.getPlan()))$action.getPlanString($order.getPlan())#end</td></tr>#end</tbody></table>#end</div></body></html>