| 36645 |
vikas |
1 |
<section class="wrapper">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<div class="col-lg-12">
|
|
|
4 |
<h3 class="page-header"><i class="icon_document_alt"></i> $username - Visit Details ($reportDate)</h3>
|
|
|
5 |
<ol class="breadcrumb">
|
|
|
6 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
7 |
<li><a href="javascript:void(0);" class="beat-report">Beat Report</a></li>
|
|
|
8 |
<li><i class="fa fa-user"></i>$username</li>
|
|
|
9 |
</ol>
|
|
|
10 |
</div>
|
|
|
11 |
</div>
|
|
|
12 |
<br>
|
|
|
13 |
<div class="row col-lg-12" style="float: right;">
|
|
|
14 |
<div class="col-lg-3">
|
|
|
15 |
<label>Select Date</label>
|
|
|
16 |
<div class="input-group">
|
|
|
17 |
<input type="date" id="user-detail-date" class="form-control" value="$reportDate" data-userid="$userId">
|
|
|
18 |
<span class="input-group-btn">
|
|
|
19 |
<button type="button" class="btn btn-info user-detail-refresh" data-userid="$userId" style="margin-left:10px;">
|
|
|
20 |
<i class="fa fa-refresh"></i> Refresh
|
|
|
21 |
</button>
|
|
|
22 |
</span>
|
|
|
23 |
</div>
|
|
|
24 |
</div>
|
|
|
25 |
</div>
|
|
|
26 |
<br><br><br>
|
|
|
27 |
|
|
|
28 |
<div class="col-lg-12">
|
|
|
29 |
<div class="row" style="margin-bottom:15px;">
|
|
|
30 |
<div class="col-lg-3">
|
|
|
31 |
<div class="panel panel-default" style="text-align:center; padding:10px;">
|
|
|
32 |
<h4 style="margin:0; color:#1abc9c; font-weight:bold;">$visits.size()</h4>
|
|
|
33 |
<small>Total Visits</small>
|
|
|
34 |
</div>
|
|
|
35 |
</div>
|
|
|
36 |
#set($completedCount = 0)
|
|
|
37 |
#set($pendingCount = 0)
|
|
|
38 |
#set($deferredCount = 0)
|
|
|
39 |
#foreach($v in $visits)
|
|
|
40 |
#if($v.getMarkType() == "CHECKIN-CHECKOUT" || $v.getMarkType() == "CHECKOUT")
|
|
|
41 |
#set($completedCount = $completedCount + 1)
|
|
|
42 |
#elseif($v.getMarkType() == "PENDING" || $v.getMarkType() == "CHECKIN")
|
|
|
43 |
#set($pendingCount = $pendingCount + 1)
|
|
|
44 |
#elseif($v.getMarkType() == "DEFERRED")
|
|
|
45 |
#set($deferredCount = $deferredCount + 1)
|
|
|
46 |
#end
|
|
|
47 |
#end
|
|
|
48 |
<div class="col-lg-3">
|
|
|
49 |
<div class="panel panel-default" style="text-align:center; padding:10px;">
|
|
|
50 |
<h4 style="margin:0; color:#27ae60; font-weight:bold;">$completedCount</h4>
|
|
|
51 |
<small>Completed</small>
|
|
|
52 |
</div>
|
|
|
53 |
</div>
|
|
|
54 |
<div class="col-lg-3">
|
|
|
55 |
<div class="panel panel-default" style="text-align:center; padding:10px;">
|
|
|
56 |
<h4 style="margin:0; color:#e67e22; font-weight:bold;">$pendingCount</h4>
|
|
|
57 |
<small>Pending</small>
|
|
|
58 |
</div>
|
|
|
59 |
</div>
|
|
|
60 |
<div class="col-lg-3">
|
|
|
61 |
<div class="panel panel-default" style="text-align:center; padding:10px;">
|
|
|
62 |
<h4 style="margin:0; color:#e74c3c; font-weight:bold;">$deferredCount</h4>
|
|
|
63 |
<small>Deferred</small>
|
|
|
64 |
</div>
|
|
|
65 |
</div>
|
|
|
66 |
</div>
|
|
|
67 |
|
|
|
68 |
<table class="table table-border table-condensed table-bordered table-striped" id="userDetailTable" style="width:100%">
|
|
|
69 |
<thead>
|
|
|
70 |
<tr style="background:#1abc9c; color:white;">
|
|
|
71 |
<th>#</th>
|
|
|
72 |
<th>Task Name</th>
|
|
|
73 |
<th>Task Type</th>
|
|
|
74 |
<th>Status</th>
|
|
|
75 |
<th>Address</th>
|
|
|
76 |
<th>Check In Time</th>
|
|
|
77 |
<th>Check Out Time</th>
|
|
|
78 |
<th>Time Spent</th>
|
|
|
79 |
<th>Transit Time</th>
|
|
|
80 |
<th>Distance (km)</th>
|
|
|
81 |
<th>Description</th>
|
|
|
82 |
<th style="min-width:80px;">Attachment</th>
|
|
|
83 |
</tr>
|
|
|
84 |
</thead>
|
|
|
85 |
<tbody>
|
|
|
86 |
#set($idx = 1)
|
|
|
87 |
#foreach($v in $visits)
|
|
|
88 |
<tr>
|
|
|
89 |
<td>$idx</td>
|
|
|
90 |
<td>$!v.getTaskName()</td>
|
|
|
91 |
<td>$!v.getTaskType()</td>
|
|
|
92 |
<td>
|
|
|
93 |
#if($v.getMarkType() == "CHECKIN-CHECKOUT" || $v.getMarkType() == "CHECKOUT")
|
|
|
94 |
<span class="label label-success">$v.getMarkType()</span>
|
|
|
95 |
#elseif($v.getMarkType() == "PENDING" || $v.getMarkType() == "CHECKIN")
|
|
|
96 |
<span class="label label-warning">$v.getMarkType()</span>
|
|
|
97 |
#elseif($v.getMarkType() == "DEFERRED")
|
|
|
98 |
<span class="label label-danger">$v.getMarkType()</span>
|
|
|
99 |
#else
|
|
|
100 |
<span class="label label-default">$!v.getMarkType()</span>
|
|
|
101 |
#end
|
|
|
102 |
</td>
|
|
|
103 |
<td>$!v.getAddress()</td>
|
|
|
104 |
<td>$!v.getCheckInTime()</td>
|
|
|
105 |
<td>$!v.getCheckOutTime()</td>
|
|
|
106 |
<td>$!v.getTimeSpent()</td>
|
|
|
107 |
<td>$!v.getTransitTime()</td>
|
|
|
108 |
<td>$!v.getTotalDistance()</td>
|
|
|
109 |
<td>$!v.getTaskDescription()</td>
|
|
|
110 |
<td>#if($v.getAttachment() && $v.getAttachment() != "")<a href="https://partners.smartdukaan.com/document/$v.getAttachment()" target="_blank"><i class="fa fa-paperclip"></i> View</a>#else--#end</td>
|
|
|
111 |
</tr>
|
|
|
112 |
#set($idx = $idx + 1)
|
|
|
113 |
#end
|
|
|
114 |
</tbody>
|
|
|
115 |
</table>
|
|
|
116 |
</div>
|
|
|
117 |
</section>
|
|
|
118 |
|
|
|
119 |
<script>
|
|
|
120 |
$('#userDetailTable').DataTable({
|
|
|
121 |
"scrollX": true,
|
|
|
122 |
"bPaginate": true,
|
|
|
123 |
"bLengthChange": true,
|
|
|
124 |
"bFilter": true,
|
|
|
125 |
"bInfo": true,
|
|
|
126 |
"bAutoWidth": false
|
|
|
127 |
});
|
|
|
128 |
</script>
|