Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
32438 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
    <style>
8
        html, body {
9
            margin-top: 10px;
10
            padding: 0;
11
        }
12
 
13
 
14
        td, th {
15
            font-size: 20px;
16
        }
17
 
18
 
19
        .table td, .table th {
20
            padding: 0.25rem;
21
        }
22
 
23
        tr:first-child.green td {
24
            font-weight: bold;
25
            background-color: #00d6b2;
26
        }
27
 
28
        td {
29
            font-size: 24px;
30
        }
32451 amit.gupta 31
 
32452 amit.gupta 32
        th.gold, tr.gold th {
32460 amit.gupta 33
            border-bottom: 1px solid black;
32451 amit.gupta 34
            background-color: #F8E59C;
32460 amit.gupta 35
            /*border-top:3px solid black;
36
            border-bottom:4px solid black;*/
32451 amit.gupta 37
        }
38
 
32460 amit.gupta 39
        /*td {
40
          border-top:2px solid black !important;
41
        }*/
42
 
32451 amit.gupta 43
        tr.gold:nth-child(odd) {
44
            background-color: #FDF8E3;
45
        }
46
 
32460 amit.gupta 47
        .table, .table th {
48
            border-top: 3px solid black;
49
        }
50
 
32438 amit.gupta 51
    </style>
52
    <link href="../resources/css/brand-logo.css" rel="stylesheet"/>
53
</head>
54
<body>
55
<div class="container-fluid">
32577 tejbeer 56
    <div class="row">
57
        <div class="col-lg-6 purchaseMilestoneContainer"></div>
58
    </div>
32460 amit.gupta 59
    <table class="table" style="border:2px solid black">
32444 amit.gupta 60
        <thead>
61
        <tr>
32449 amit.gupta 62
            #set($colspan=$milestones.size()*3+1)
32451 amit.gupta 63
            <th colspan="$colspan" style="text-align: center;vertical-align: middle;background-color:#EBCA58">Partners
32474 amit.gupta 64
                Split By PO Creation
65
            </th>
66
        </tr>
67
        <tr>
68
            <th class="gold" rowspan="2" style="text-align: center;vertical-align: middle;">RBM</th>
69
            #foreach($milestone in $milestones)
70
                <th class="gold" colspan="3"
71
                    style="text-align: center;vertical-align: middle;border-left:1.5px solid black">$milestone.getValue()</th>
72
            #end
73
        </tr>
74
        <tr style="border-bottom:3px solid black">
75
            #foreach($milestone in $milestones)
76
                <th class="gold" style="border-left:1.5px solid black">LMS</th>
77
                <th class="gold">MTYD</th>
78
                <th class="gold" style="background-color:yellowgreen;border-right:1.5px solid black">MTD</th>
79
            #end
80
        </tr>
81
        </thead>
82
        <tbody>
83
            #foreach($rbmTotalBilliedMilestoneCountEntry in $totalMilestoneCountMap.entrySet())
84
                #set($rbmName = $rbmTotalBilliedMilestoneCountEntry.getKey())
85
            <tr class="gold">
86
                <td style="text-align: center;vertical-align: middle;">
87
                    $rbmName
88
                </td>
89
                #foreach($milestone in $milestones)
90
                    #set($diff = 0)
91
                    <td style="border-left:1.5px solid black">
92
                        #if($poLastMonthMilestoneCountMap.get($rbmName).containsKey($milestone))
93
                            $poLastMonthMilestoneCountMap.get($rbmName).get($milestone)
94
                        #end
95
                    </td>
96
                    <td>
97
                        #if($poTillYesterdayMilestoneCountMap.get($rbmName).containsKey($milestone))
98
                             $poTillYesterdayMilestoneCountMap.get($rbmName).get($milestone)
99
                        #end
100
                    </td>
101
                    <td>
102
                        #if($poMonthTillDateMilestoneCountMap.get($rbmName).containsKey($milestone))
103
                             $poMonthTillDateMilestoneCountMap.get($rbmName).get($milestone)
104
                        #end
105
                    </td>
106
                #end
107
            </tr>
108
            #end
109
        </tbody>
110
        <tfoot>
111
        <tr class="gold">
112
            <th style="text-align: center;vertical-align: middle;">Total</th>
113
            #foreach($milestone in $milestones)
114
                <th style="border-left:1.5px solid black">$poLastMonthAggregatedMilestoneCountMap.get($milestone)</th>
32502 amit.gupta 115
                <th>
116
                    #if($poTillYesterdayAggregatedMilestoneCountMap.get($milestone))
117
                        $poTillYesterdayAggregatedMilestoneCountMap.get($milestone)
118
                    #end
119
                </th>
32474 amit.gupta 120
                <th style="background-color:yellowgreen;">
32502 amit.gupta 121
                    #if($poMonthTillDateAggregatedMilestoneCountMap.get($milestone))
122
                        $poMonthTillDateAggregatedMilestoneCountMap.get($milestone)
123
                    #end
32474 amit.gupta 124
                </th>
125
            #end
126
        </tr>
127
        </tfoot>
128
    </table>
129
    <table class="table" style="border:2px solid black">
130
        <thead>
131
        <tr>
132
            #set($colspan=$milestones.size()*3+1)
133
            <th colspan="$colspan" style="text-align: center;vertical-align: middle;background-color:#EBCA58">Partners
32460 amit.gupta 134
                Split By Actual Billing + Pending PO
32445 amit.gupta 135
            </th>
32444 amit.gupta 136
        </tr>
137
        <tr>
32451 amit.gupta 138
            <th class="gold" rowspan="2" style="text-align: center;vertical-align: middle;">RBM</th>
32444 amit.gupta 139
            #foreach($milestone in $milestones)
32451 amit.gupta 140
                <th class="gold" colspan="3"
32460 amit.gupta 141
                    style="text-align: center;vertical-align: middle;border-left:1.5px solid black">$milestone.getValue()</th>
32444 amit.gupta 142
            #end
143
        </tr>
32460 amit.gupta 144
        <tr style="border-bottom:3px solid black">
32444 amit.gupta 145
            #foreach($milestone in $milestones)
32460 amit.gupta 146
                <th class="gold" style="border-left:1.5px solid black">PMTD</th>
32451 amit.gupta 147
                <th class="gold">MTD</th>
32460 amit.gupta 148
                <th class="gold" style="background-color:yellowgreen;border-right:1.5px solid black">DIFF</th>
32444 amit.gupta 149
            #end
150
        </tr>
151
        </thead>
152
        <tbody>
32460 amit.gupta 153
            #foreach($rbmTotalBilliedMilestoneCountEntry in $totalMilestoneCountMap.entrySet())
154
                #set($rbmName = $rbmTotalBilliedMilestoneCountEntry.getKey())
32451 amit.gupta 155
            <tr class="gold">
32449 amit.gupta 156
                <td style="text-align: center;vertical-align: middle;">
32445 amit.gupta 157
                    $rbmName
158
                </td>
32449 amit.gupta 159
                #foreach($milestone in $milestones)
160
                    #set($diff = 0)
32460 amit.gupta 161
                    <td style="border-left:1.5px solid black">
32449 amit.gupta 162
                        #if($lastDayMilestoneCountMap.get($rbmName).containsKey($milestone))
163
                            $lastDayMilestoneCountMap.get($rbmName).get($milestone)
164
                            #set($diff = $diff - $lastDayMilestoneCountMap.get($rbmName).get($milestone))
165
                        #end
32445 amit.gupta 166
                    </td>
32449 amit.gupta 167
                    <td>
32460 amit.gupta 168
                        #if($rbmTotalBilliedMilestoneCountEntry.getValue().containsKey($milestone))
169
                            #set($diff = $diff + $rbmTotalBilliedMilestoneCountEntry.getValue().get($milestone))
170
                            $rbmTotalBilliedMilestoneCountEntry.getValue().get($milestone)
32449 amit.gupta 171
                        #end
172
                    </td>
32460 amit.gupta 173
                    <td style="background-color:yellowgreen;border-right:1.5px solid black">
174
                        #if($diff != 0)
32449 amit.gupta 175
                            $diff
176
                        #end
177
                    </td>
32445 amit.gupta 178
                #end
179
            </tr>
180
            #end
32444 amit.gupta 181
        </tbody>
32452 amit.gupta 182
        <tfoot>
183
        <tr class="gold">
32460 amit.gupta 184
            <th style="text-align: center;vertical-align: middle;">Total</th>
32452 amit.gupta 185
            #foreach($milestone in $milestones)
32503 amit.gupta 186
                <th style="border-left:1.5px solid black">
187
                    #if($lastDayAggregateMilestoneCountMap.get($milestone))
188
                        $lastDayAggregateMilestoneCountMap.get($milestone)
189
                    #end
190
                </th>
191
                <th>
192
                    #if($totalAggregatedMilestoneCountMap.get($milestone))
193
                        $totalAggregatedMilestoneCountMap.get($milestone)
194
                    #end
195
                </th>
32460 amit.gupta 196
                #set($diff=$totalAggregatedMilestoneCountMap.get($milestone) - $lastDayAggregateMilestoneCountMap.get($milestone))
197
                <th style="background-color:yellowgreen;">
32503 amit.gupta 198
                    #if($diff)
32460 amit.gupta 199
                        $diff
200
                    #end
201
                </th>
32452 amit.gupta 202
            #end
203
        </tr>
204
        </tfoot>
32444 amit.gupta 205
    </table>
32438 amit.gupta 206
</div>
32577 tejbeer 207
<div class="row warehouseMilestone" style="margin: 5px">
208
</div>
209
 
32578 amit.gupta 210
<script type="text/javascript">
211
    context = "${rc.contextPath}";
212
</script>
213
    #parse("include-scripts.vm")
32577 tejbeer 214
 
32578 amit.gupta 215
<script type="text/javascript">
32577 tejbeer 216
 
32578 amit.gupta 217
    function changeWarehousePurchaseMilestone() {
32577 tejbeer 218
        var warehouseId = $('#warehousepurchasemil').val();
219
 
220
 
221
        doGetAjaxRequestHandler(context + "/getPurchaseCountByMileStone?warehouseId="
222
                + warehouseId, function (response) {
223
            $('.purchaseMilestoneContainer').html(response);
224
        });
225
 
226
    }
227
 
32578 amit.gupta 228
    $(document).ready(function () {
229
        doGetAjaxRequestHandler(context + "/getPurchaseCountByMileStone", function (response) {
230
            $('.purchaseMilestoneContainer').html(response);
231
        });
232
    })
32577 tejbeer 233
 
32578 amit.gupta 234
 
32577 tejbeer 235
</script>
236
 
237
 
32438 amit.gupta 238
</body>
239
</html>