Subversion Repositories SmartDukaan

Rev

Rev 32444 | Rev 32449 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
32444 amit.gupta 1
##$currentMonthPartnerMap.toString()
32445 amit.gupta 2
##$lastDayMilestoneCountMap.toString()
32438 amit.gupta 3
<html lang="en">
4
<head>
5
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6
    <meta http-equiv="refresh" content="180">
7
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
8
          integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
9
    <style>
10
        html, body {
11
            margin-top: 10px;
12
            padding: 0;
13
        }
14
 
15
 
16
        td, th {
17
            font-size: 20px;
18
        }
19
 
20
 
21
        .table td, .table th {
22
            padding: 0.25rem;
23
        }
24
 
25
        tr:first-child.green td {
26
            font-weight: bold;
27
            background-color: #00d6b2;
28
        }
29
 
30
        td {
31
            font-size: 24px;
32
        }
33
    </style>
34
    <link href="../resources/css/brand-logo.css" rel="stylesheet"/>
35
</head>
36
<body>
37
<div class="container-fluid">
32444 amit.gupta 38
    <table class="table table-bordered table-striped">
39
        <thead>
40
        <tr>
32445 amit.gupta 41
            #set($colspan=$milestones.size()*2+2)
42
            <th colspan="$colspan" style="text-align: center;vertical-align: middle;">Partners Split By Actual Billing
43
            </th>
32444 amit.gupta 44
        </tr>
45
        <tr>
32445 amit.gupta 46
            <th rowspan="2" style="text-align: center;vertical-align: middle;">RBM</th>
47
            <th rowspan="2" style="text-align: center;vertical-align: middle;">State</th>
32444 amit.gupta 48
            #foreach($milestone in $milestones)
49
                <th colspan="2">$milestone.getValue()</th>
50
            #end
51
        </tr>
52
        <tr>
53
            #foreach($milestone in $milestones)
32445 amit.gupta 54
                <th>YMTD</th>
32444 amit.gupta 55
                <th>MTD</th>
56
            #end
57
        </tr>
58
        </thead>
59
        <tbody>
32445 amit.gupta 60
            #foreach($currentMonthEntry in $currentMonthPartnerMap.entrySet())
61
                #set($rbmName = $currentMonthEntry.getKey())
62
            <tr>
63
                <td rowspan="$currentMonthEntry.getValue().size()" style="text-align: center;vertical-align: middle;">
64
                    $rbmName
65
                </td>
66
                #set($i=0)
67
                #foreach($stateMonthEntry in $currentMonthEntry.getValue().entrySet())
68
                    #if($i>0)
69
                    <tr>
70
                    #end
71
                    #set($state=$stateMonthEntry.getKey())
72
                    #set($milestoneValueMap=$stateMonthEntry.getValue())
73
                    <td>
74
                        $state
75
                    </td>
76
                    #foreach($milestone in $milestones)
77
                        <td>
78
                            #if($lastDayMilestoneCountMap.get($rbmName).get($state).containsKey($milestone))
79
                                $lastDayMilestoneCountMap.get($rbmName).get($state).get($milestone)
80
                            #else
81
                                -
82
                            #end
83
                        </td>
84
                        <td>
85
                            #if($milestoneValueMap.containsKey($milestone))
86
                                $milestoneValueMap.get($milestone)
87
                            #else
88
                                -
89
                            #end
90
                        </td>
91
                    #end
92
                    #if($i>0)
93
                    </tr>
94
                    #end
95
                    #set($i=$i+1)
96
                #end
97
            </tr>
98
            #end
32444 amit.gupta 99
        </tbody>
100
    </table>
32438 amit.gupta 101
</div>
102
</body>
103
</html>