Subversion Repositories SmartDukaan

Rev

Rev 32882 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
32882 amit.gupta 1
<html lang="en">
2
<head>
3
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
4
    <meta http-equiv="refresh" content="180">
5
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
6
          integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
7
    <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" />
8
    <style>
9
        html, body {
10
            margin-top: 10px;
11
            padding: 0;
12
        }
13
 
14
 
15
        td, th {
32913 amit.gupta 16
            font-size: 14px;
32882 amit.gupta 17
        }
18
 
19
 
20
        .table td, .table th {
21
            padding: 0.25rem;
22
        }
23
 
24
        tr:first-child.green td {
25
            font-weight: bold;
26
            background-color: #00d6b2;
27
        }
28
 
29
 
30
        th.gold, tr.gold th {
31
            border-bottom: 1px solid black;
32
            background-color: #F8E59C;
33
            /*border-top:3px solid black;
34
            border-bottom:4px solid black;*/
35
        }
36
 
37
        /*td {
38
          border-top:2px solid black !important;
39
        }*/
40
 
41
        tr.gold:nth-child(odd) {
42
            background-color: #FDF8E3;
43
        }
44
 
45
        .table, .table th {
46
            border-top: 2px solid black;
47
        }
48
 
49
    </style>
50
</head>
51
<body>
52
<div class="container-fluid">
53
    <div class="row">
54
        <div class="col-lg-4 form-group">
55
            <input placeholder = "Duration" id="duration" name="duration" type="text" value="" class="form-control phone input-sm">
56
        </div>
57
        <div class="col-lg-2">
58
            <button class="btn btn-primary btn-change-duration" type="submit" >Update Period</button>
59
        </div>
60
    </div>
61
    <div class="row">
62
        <table class="col-lg-12 table table-bordered" style="border:2px solid black">
63
            <thead>
64
            <tr>
65
                <th class="gold" rowspan="2" style="text-align: center;vertical-align: middle;">RBM</th>
66
                #set($colspan=$milestones.size())
67
                <th colspan="$colspan" style="text-align: center;vertical-align: middle;background-color:#EBCA58">
68
                    Partners
69
                    <!--Split By PO Creation-->
70
                    Split by Billing
71
                </th>
72
                <th colspan="$colspan" style="text-align: center;vertical-align: middle;background-color:#EBCA58">
73
                    Partners
74
                    Split By Actual Billing + PO
75
                </th>
76
            </tr>
77
            <tr>
78
                #foreach($milestone in $milestones)
79
                    <th scope="col" class="gold col-1"
80
                        style="text-align: center;vertical-align: middle;
81
                            #if($velocityCount > 2)
82
                                    background-color: yellowgreen;
83
                            #end"
84
                    >$milestone.getValue()</th>
85
                #end
86
                #foreach($milestone in $milestones)
87
                    <th scope="col" class="gold col-1"
88
                        style="text-align: center;vertical-align: middle;
89
                            #if($velocityCount > 2)
90
                                    background-color: yellowgreen;
91
                            #end"
92
                    >$milestone.getValue()</th>
93
                #end
94
            </tr>
95
            </thead>
96
            <tbody>
97
                #foreach($rbmTotalMilestoneCountEntry in $totalMilestoneCountMap.entrySet())
98
                    #set($rbmName = $rbmTotalMilestoneCountEntry.getKey())
99
                <tr class="gold">
100
                    <td style="text-align: center;vertical-align: middle;">
101
                        $rbmName
102
                    </td>
103
                    <!--Partners Split by Billing-->
104
                    #foreach($milestone in $milestones)
105
                        <td style="text-align: center;
106
                            #if($velocityCount > 2)
107
                                    background-color: yellowgreen;
108
                            #end"
109
                        >
110
                            #if($billedMilestoneCountMap.get($rbmName).containsKey($milestone))
111
                                $billedMilestoneCountMap.get($rbmName).get($milestone)
112
                            #else
113
                                -
114
                            #end
115
                        </td>
116
                    #end
117
                    <!-- Partners Split By Actual Billing + PO -->
118
                    #foreach($milestone in $milestones)
119
                        <td style="text-align: center;
120
                            #if($velocityCount > 2)
121
                                    background-color: yellowgreen;
122
                            #end"
123
                        >
124
                            #if($rbmTotalMilestoneCountEntry.getValue().containsKey($milestone))
125
                                $rbmTotalMilestoneCountEntry.getValue().get($milestone)
126
                            #else
127
                                -
128
                            #end
129
                        </td>
130
                    #end
131
 
132
                </tr>
133
                #end
134
            </tbody>
135
            <tfoot>
136
            <tr class="gold">
137
                <th style="text-align: center;vertical-align: middle;">Total</th>
138
                #foreach($milestone in $milestones)
139
                    <th style="text-align: center;
140
                        #if($velocityCount > 2)
141
                                background-color: yellowgreen;
142
                        #end"
143
                    >
144
                        #if($billedAggregatedMilestoneCountMap.get($milestone))
145
                            $billedAggregatedMilestoneCountMap.get($milestone)
146
                        #else
147
                            -
148
                        #end
149
                    </th>
150
                #end
151
                #foreach($milestone in $milestones)
152
                    <th style="text-align: center;
153
                        #if($velocityCount > 2)
154
                                background-color: yellowgreen;
155
                        #end"
156
                    >
157
                        #if($totalAggregatedMilestoneCountMap.get($milestone))
158
                            $totalAggregatedMilestoneCountMap.get($milestone)
159
                        #else
160
                            -
161
                        #end
162
                    </th>
163
                #end
164
            </tr>
165
            <tr>
166
                <th colspan="3"></th>
167
                <th colspan="3" style="background-color: yellowgreen;text-align: center">$billedGreenCount</th>
168
                <th colspan="2"></th>
169
                <th colspan="3" style="background-color: yellowgreen;text-align: center">$totalGreenCount</th>
170
            </tr>
171
            </tfoot>
172
        </table>
173
    </div>
174
 
175
</div>
176
<div class="row warehouseMilestone" style="margin: 5px">
177
</div>
178
 
179
 
180
<script type="text/javascript">
181
    context = "${rc.contextPath}";
182
</script>
183
    #parse("include-scripts.vm")
184
 
185
<script>
186
    $('input[name="duration"]').daterangepicker(getRangedDatePicker(false, moment("$startDate"), moment("$endDate")));
187
    $(document).ready(function(){
188
        $(".btn-change-duration").click(function (){
189
            let start = getDatesFromPicker($('input[name="duration"]')).startDate;
190
            let end = getDatesFromPicker($('input[name="duration"]')).endDate;
191
            document.location = `/monitor/targets-new?startDate=${start}&endDate=${end}`;
192
        });
193
    });
194
</script>
195
 
196
</body>
197
</html>