| 7082 |
rajveer |
1 |
#set($txns=$action.getTxns())
|
|
|
2 |
|
|
|
3 |
<html >
|
|
|
4 |
<head>
|
|
|
5 |
<title>Recharge For Store</title>
|
| 7169 |
anupam.sin |
6 |
<link rel="stylesheet" href="css/rechargewebapp.css" type="text/css" />
|
| 7151 |
amit.gupta |
7 |
<script language="javascript" type="text/javascript" src="js/jquery-1.4.2.js"></script>
|
|
|
8 |
<script language="javascript" type="text/javascript" src="js/rechargewebapp.js"></script>
|
| 7169 |
anupam.sin |
9 |
|
|
|
10 |
<style>
|
|
|
11 |
table, td, th
|
|
|
12 |
{
|
|
|
13 |
border:1px solid #2789C1;
|
|
|
14 |
border-collapse:collapse;
|
|
|
15 |
border-spacing:0;
|
|
|
16 |
}
|
|
|
17 |
th
|
|
|
18 |
{
|
|
|
19 |
background-color:#2789C1;
|
|
|
20 |
color:white;
|
|
|
21 |
text-align:center;
|
|
|
22 |
padding:5px;
|
|
|
23 |
}
|
|
|
24 |
td
|
|
|
25 |
{
|
|
|
26 |
text-align:center;
|
|
|
27 |
padding:5px;
|
|
|
28 |
}
|
|
|
29 |
</style>
|
| 7082 |
rajveer |
30 |
</head>
|
|
|
31 |
<body>
|
|
|
32 |
|
| 7169 |
anupam.sin |
33 |
<h3>Search Orders
|
|
|
34 |
<a style="float:right;" href='/rch/home'>Home</a>
|
|
|
35 |
</h3>
|
|
|
36 |
#if($action.getSearchError() != "")
|
|
|
37 |
<div class="padding-row" style="font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
|
|
|
38 |
$action.getSearchError()
|
|
|
39 |
</div>
|
|
|
40 |
#end
|
|
|
41 |
#if($action.getPasswordGeneration() == "SUCCESS")
|
|
|
42 |
<div class="padding-row" style="font-size: 16px;color: #2789C1;text-align: center;border: 1px solid #2789C1;margin: 5px;padding: 5px;">
|
|
|
43 |
Password sent to the registered emailId of this store
|
|
|
44 |
</div>
|
|
|
45 |
#elseif($action.getPasswordGeneration() == "FAIL")
|
|
|
46 |
<div class="padding-row" style="font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
|
|
|
47 |
Password generation failed. Please try again.
|
|
|
48 |
</div>
|
|
|
49 |
#end
|
|
|
50 |
<form style="padding:20px;border-bottom:2px solid #2789C1;" id="search" action="report!search" method="POST">
|
|
|
51 |
<div class="row">
|
|
|
52 |
<div class="text">Please enter the device number : </div>
|
|
|
53 |
<div class="input-div">
|
|
|
54 |
<input class="inputbox padding15" type="text" name="number" value="$action.getNumber()">
|
|
|
55 |
|
|
|
56 |
</div><div class="input-div">
|
|
|
57 |
<input style="" type="submit" value="Search">
|
| 7151 |
amit.gupta |
58 |
</div>
|
| 7169 |
anupam.sin |
59 |
</div>
|
|
|
60 |
#if(!$action.getSearchResult().isEmpty())
|
|
|
61 |
<div style="border-top: 1px solid #BBB;padding: 5px 0px 5px 25px;margin: 5px 0 5px 0;color: #999;">$action.getSearchResult().size() search results</div>
|
|
|
62 |
<table width="100%">
|
|
|
63 |
<thead>
|
|
|
64 |
<tr>
|
|
|
65 |
<th>Order ID</th>
|
|
|
66 |
<th>Order Date</th>
|
|
|
67 |
<th>Operator</th>
|
|
|
68 |
<th>Status</th>
|
|
|
69 |
<th>Description</th>
|
|
|
70 |
<th>Amount</th>
|
|
|
71 |
#if($action.shouldShowReprintColumn())
|
|
|
72 |
<th></th>
|
|
|
73 |
#end
|
|
|
74 |
</tr>
|
|
|
75 |
</thead>
|
|
|
76 |
<tbody>
|
|
|
77 |
#foreach ($order in $action.getSearchResult() )
|
|
|
78 |
<tr>
|
|
|
79 |
<td>$order.getId()</td>
|
|
|
80 |
<td>$action.getDateTime($order.getTransactionTime())</td>
|
|
|
81 |
<td>$action.getOperatorName($order.getOperatorId())</td>
|
|
|
82 |
<td>$order.getStatus()</td>
|
|
|
83 |
<td>$order.getDescription()</td>
|
|
|
84 |
<td>$order.getAmount()</td>
|
|
|
85 |
#if($order.getStatus().getValue() == 5)
|
|
|
86 |
<td><a href='recharge-result!downloadInvoice?rechargeId=$order.getId()'>Invoice</a></td>
|
|
|
87 |
#end
|
|
|
88 |
</tr>
|
|
|
89 |
#end
|
|
|
90 |
</tbody>
|
|
|
91 |
</table>
|
|
|
92 |
#end
|
|
|
93 |
|
| 7151 |
amit.gupta |
94 |
</form>
|
| 7082 |
rajveer |
95 |
<br/>
|
| 7169 |
anupam.sin |
96 |
|
|
|
97 |
<div style="padding-bottom:20px;border-bottom:2px solid #2789C1;">
|
|
|
98 |
<h3>Orders for Today
|
| 7096 |
anupam.sin |
99 |
</h3>
|
| 7169 |
anupam.sin |
100 |
|
| 7172 |
anupam.sin |
101 |
#if($txns.size() == 0)
|
|
|
102 |
<div class="padding-row" style="font-size: 20px; font-weight:bold;color: #AAA;text-align: center;margin: 5px;padding: 5px;">
|
|
|
103 |
NO ORDERS FOR TODAY
|
|
|
104 |
</div>
|
|
|
105 |
#else
|
|
|
106 |
<table width="100%">
|
| 7082 |
rajveer |
107 |
<thead>
|
|
|
108 |
<tr>
|
| 7169 |
anupam.sin |
109 |
<th>Order ID</th>
|
|
|
110 |
<th>Order Date</th>
|
|
|
111 |
<th>Operator</th>
|
|
|
112 |
<th>Device</th>
|
|
|
113 |
<th>Status</th>
|
|
|
114 |
<th>Description</th>
|
|
|
115 |
<th>Amount</th>
|
| 7082 |
rajveer |
116 |
</tr>
|
|
|
117 |
</thead>
|
|
|
118 |
<tbody>
|
| 7096 |
anupam.sin |
119 |
#foreach ( $order in $txns )
|
| 7082 |
rajveer |
120 |
<tr>
|
|
|
121 |
<td>$order.getId()</td>
|
| 7096 |
anupam.sin |
122 |
<td>$action.getDateTime($order.getTransactionTime())</td>
|
|
|
123 |
<td>$action.getOperatorName($order.getOperatorId())</td>
|
| 7082 |
rajveer |
124 |
<td>$order.getDeviceNum()</td>
|
|
|
125 |
<td>$order.getStatus()</td>
|
|
|
126 |
<td>$order.getDescription()</td>
|
|
|
127 |
<td>$order.getAmount()</td>
|
|
|
128 |
</tr>
|
|
|
129 |
#end
|
|
|
130 |
</tbody>
|
|
|
131 |
</table>
|
| 7172 |
anupam.sin |
132 |
#end
|
| 7082 |
rajveer |
133 |
</div>
|
| 7169 |
anupam.sin |
134 |
|
|
|
135 |
<form style='padding:20px;border-bottom:2px solid #2789C1;' id="downloadcollection" action="report!getCollection" method="POST">
|
|
|
136 |
<h3>Collection report for today</h3>
|
|
|
137 |
<div>
|
|
|
138 |
<input style="height: 30px;background-color: orange;cursor: pointer;width: 190px;font-size: 19px;" type="submit" value="Collection Report"/>
|
|
|
139 |
</div>
|
|
|
140 |
</form>
|
|
|
141 |
<br/>
|
|
|
142 |
<form style='padding:20px;border-bottom:2px solid #2789C1;' id="downloadrep" action="report" method="POST">
|
|
|
143 |
<h3>Download Report by Status</h3>
|
|
|
144 |
<div>
|
|
|
145 |
Status:<select name="status">
|
|
|
146 |
<option value="-1">ALL</option>
|
|
|
147 |
<option value="9">INIT</option>
|
|
|
148 |
<option value="5">SUCCESS</option>
|
|
|
149 |
<option value="4">FAILED</option>
|
|
|
150 |
<option value="6">REFUNDED</option>
|
|
|
151 |
<option value="10">UNKNOWN</option>
|
|
|
152 |
</select>
|
|
|
153 |
Date:<select name="dateselector" id="dateselector">
|
|
|
154 |
<option value="1" selected="selected">Today</option>
|
|
|
155 |
<option value="2">Yesterday</option>
|
|
|
156 |
<option value="3">Daterange</option>
|
|
|
157 |
</select>
|
|
|
158 |
<span id="daterange" style="display:none">From:<input maxlength="10" size="8" type="text" name="startDate" style="padding-left:3px"/>(dd/mm/yyyy) To:<input maxlength="10" size="8" type="text" name="endDate" style="padding-left:3px"/>(dd/mm/yyyy)</span>
|
|
|
159 |
</div>
|
|
|
160 |
<br>
|
|
|
161 |
<div>
|
|
|
162 |
<input style="height: 30px;background-color: orange;cursor: pointer;width: 140px;font-size: 21px;" type="submit" value="Download"/>
|
|
|
163 |
</div>
|
|
|
164 |
</form>
|
|
|
165 |
<br/>
|
|
|
166 |
<div style='padding:20px;border-bottom:2px solid #2789C1;'>
|
|
|
167 |
<h3>Request new password</h3>
|
|
|
168 |
<div style='padding:20px;'>
|
|
|
169 |
<a href="report!sendPassword">Click here</a> to request a new password.
|
|
|
170 |
</div>
|
|
|
171 |
</div>
|
|
|
172 |
<br/>
|
| 7082 |
rajveer |
173 |
</body>
|
|
|
174 |
</html>
|