Subversion Repositories SmartDukaan

Rev

Rev 6161 | Rev 6195 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6161 Rev 6194
Line -... Line 1...
-
 
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
 
1
<html >
7
<html >
2
<head>
8
<head>
3
	<title>Statistics</title>
9
	<title>Recharge Statistics</title>
4
</head>
10
</head>
5
<body>
11
<body>
6
	#parse("../content/reports-common.vm")
12
	#parse("../content/reports-common.vm")
7
	<h2 >Recharge Orders</h2>
-
 
8
	<div>
13
	<div>
-
 
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/>
-
 
29
	<h3>Successful Orders By Operator</h3>
-
 
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))
9
		<br/>
60
	<br/>
10
		<h3>All Orders</h3>
61
	<h3>Lastest $type Orders</h3>
11
		<table border="1" width="100%">
62
	<table border="1" width="100%">
12
            <thead>
63
        <thead>
13
              <tr>
64
          <tr>
14
                <th width="5%">Order ID</th>
65
            <th width="5%">Order ID</th>
15
				<th width="20%">Order Date</th>
66
			<th width="20%">Order Date</th>
16
				<th width="10%">Operator</th>
67
			<th width="10%">Operator</th>
17
                <th width="10%">Device</th>
68
            <th width="10%">Device</th>
18
				<th width="15%">Status</th>
69
			<th width="15%">Status</th>
19
				<th width="30%">Description</th>
70
			<th width="30%">Description</th>
20
				<th width="10%">Amount</th>
71
			<th width="10%">Amount</th>
21
              </tr>
72
          </tr>
22
            </thead>
73
        </thead>
23
            <tbody>
74
        <tbody>
24
			#foreach($order in $action.getValidOrders())
75
		#foreach($order in $orders())
25
			  <tr>
76
		  <tr>
26
                <td>$order.getDisplayId()</td>
77
            <td>$order.getDisplayId()</td>
27
				<td>$action.getDateTime($order.getCreationTimestamp())</td>
78
			<td>$action.getDateTime($order.getCreationTimestamp())</td>
28
				<td>$action.getOperator($order.getOperatorId())</td>
79
			<td>$action.getOperator($order.getOperatorId())</td>
29
				<td>$order.getDeviceNumber()</td>
80
			<td>$order.getDeviceNumber()</td>
30
				<td>$order.getStatus()</td>
81
			<td>$order.getStatus()</td>
31
				<td>#if($order.getDescription())$order.getDescription()#end</td>
82
			<td>#if($order.getDescription())$order.getDescription()#end</td>
32
				<td>$order.getTotalAmount()</td>
83
			<td>$order.getTotalAmount()</td>
33
              </tr>
84
          </tr>
34
			#end
85
		#end
35
            </tbody>
86
        </tbody>
36
		</table>
87
	</table>
-
 
88
	#end
37
 
89
	
38
    </div>
90
    </div>
39
</body>
91
</body>
40
</html>
92
</html>
41
93