Subversion Repositories SmartDukaan

Rev

Rev 6198 | Rev 6244 | 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>
6243 rajveer 66
			<th width="16%">Order Date</th>
6194 rajveer 67
			<th width="10%">Operator</th>
68
            <th width="10%">Device</th>
69
			<th width="15%">Status</th>
70
			<th width="30%">Description</th>
6243 rajveer 71
			<th width="7%">Amount</th>
72
			<th width="7%">Plan</th>
6194 rajveer 73
          </tr>
74
        </thead>
75
        <tbody>
6195 rajveer 76
		#foreach($order in $orders)
6194 rajveer 77
		  <tr>
78
            <td>$order.getDisplayId()</td>
79
			<td>$action.getDateTime($order.getCreationTimestamp())</td>
80
			<td>$action.getOperator($order.getOperatorId())</td>
81
			<td>$order.getDeviceNumber()</td>
82
			<td>$order.getStatus()</td>
83
			<td>#if($order.getDescription())$order.getDescription()#end</td>
84
			<td>$order.getTotalAmount()</td>
6243 rajveer 85
			<td>#if($order.getPlan())$order.getPlan()#end</td>
6194 rajveer 86
          </tr>
87
		#end
88
        </tbody>
89
	</table>
90
	#end
91
 
6154 rajveer 92
    </div>
93
</body>
94
</html>