Subversion Repositories SmartDukaan

Rev

Rev 6195 | Rev 6243 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6194 rajveer 1
#set($stats=$action.getStats())
2
#set($amounts=$stats.getAmounts())
3
#set($statusCounts=$stats.getStatusCounts())
4
#set($operatorCounts=$stats.getOperatorCounts())
5
#set($currentOrders=$stats.getCurrentOrders())
6
 
6154 rajveer 7
<html >
8
<head>
6194 rajveer 9
	<title>Recharge Statistics</title>
6154 rajveer 10
</head>
11
<body>
12
	#parse("../content/reports-common.vm")
13
	<div>
6194 rajveer 14
	<h3>Orders By Status</h3>
15
	<table border="1">
16
		<tr>
17
			<th width=50%>Status</th>
18
			<th>Count</th>
19
		</tr>
20
		#foreach ( $status in $statusCounts.keySet() )
21
		<tr>
22
			<td>$action.getStatusDescription($status)</td>
23
			<td align="right">$statusCounts.get($status)</td>
24
		</tr>
25
		#end
26
	</table>
27
 
28
	<br/>
6198 rajveer 29
	<h3>All Orders By Operator</h3>
6194 rajveer 30
	<table border="1">
31
		<tr>
32
			<th width=50%>Operator</th>
33
			<th>Count</th>
34
		</tr>
35
		#foreach ( $operator in $operatorCounts.keySet() )
36
		<tr>
37
			<td>$action.getOperator($operator)</td>
38
			<td align="right">$operatorCounts.get($operator)</td>
39
		</tr>
40
		#end
41
	</table>
42
 
43
	<br/>
44
	<h3>Collection Stats</h3>
45
	<table border="1">
46
		<tr>
47
			<th width=50%>Field</th>
48
			<th>Value</th>
49
		</tr>
50
		#foreach ( $type in $amounts.keySet() )
51
		<tr>
52
			<td>$type</td>
53
			<td align="right">$amounts.get($type)</td>
54
		</tr>
55
		#end
56
	</table>
57
 
58
	#foreach ( $type in $currentOrders.keySet() )
59
	#set($orders = $currentOrders.get($type))
60
	<br/>
61
	<h3>Lastest $type Orders</h3>
62
	<table border="1" width="100%">
63
        <thead>
64
          <tr>
65
            <th width="5%">Order ID</th>
66
			<th width="20%">Order Date</th>
67
			<th width="10%">Operator</th>
68
            <th width="10%">Device</th>
69
			<th width="15%">Status</th>
70
			<th width="30%">Description</th>
71
			<th width="10%">Amount</th>
72
          </tr>
73
        </thead>
74
        <tbody>
6195 rajveer 75
		#foreach($order in $orders)
6194 rajveer 76
		  <tr>
77
            <td>$order.getDisplayId()</td>
78
			<td>$action.getDateTime($order.getCreationTimestamp())</td>
79
			<td>$action.getOperator($order.getOperatorId())</td>
80
			<td>$order.getDeviceNumber()</td>
81
			<td>$order.getStatus()</td>
82
			<td>#if($order.getDescription())$order.getDescription()#end</td>
83
			<td>$order.getTotalAmount()</td>
84
          </tr>
85
		#end
86
        </tbody>
87
	</table>
88
	#end
89
 
6154 rajveer 90
    </div>
91
</body>
92
</html>