Subversion Repositories SmartDukaan

Rev

Rev 6247 | 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>
6299 rajveer 68
            <th width="9%">Device</th>
6194 rajveer 69
			<th width="15%">Status</th>
70
			<th width="30%">Description</th>
6299 rajveer 71
			<th width="4%">Amount</th>
72
			<th width="6%">UserId</th>
73
			<th width="5%">Plan</th>
6194 rajveer 74
          </tr>
75
        </thead>
76
        <tbody>
6195 rajveer 77
		#foreach($order in $orders)
6194 rajveer 78
		  <tr>
79
            <td>$order.getDisplayId()</td>
80
			<td>$action.getDateTime($order.getCreationTimestamp())</td>
81
			<td>$action.getOperator($order.getOperatorId())</td>
82
			<td>$order.getDeviceNumber()</td>
83
			<td>$order.getStatus()</td>
84
			<td>#if($order.getDescription())$order.getDescription()#end</td>
85
			<td>$order.getTotalAmount()</td>
6299 rajveer 86
			<td>$order.getUserId()</td>
6247 rajveer 87
			<td>#if($order.getPlan() && $action.getPlanString($order.getPlan()))$action.getPlanString($order.getPlan())#end</td>
6194 rajveer 88
          </tr>
89
		#end
90
        </tbody>
91
	</table>
92
	#end
93
 
6154 rajveer 94
    </div>
95
</body>
96
</html>