Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
29966 amit.gupta 1
<html lang="en">
2
<head>
29983 amit.gupta 3
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
31538 amit.gupta 4
    <meta http-equiv="refresh" content="180">
29988 amit.gupta 5
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
6
          integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
29966 amit.gupta 7
    <style>
8
        html, body {
29983 amit.gupta 9
            margin-top: 10px;
29966 amit.gupta 10
            padding: 0;
11
        }
12
 
13
 
14
        td, th {
29981 amit.gupta 15
            font-size: 20px;
29966 amit.gupta 16
        }
17
 
29988 amit.gupta 18
 
19
        .table td, .table th {
20
            padding: 0.25rem;
21
        }
22
 
30786 amit.gupta 23
        tr:first-child.green td {
29981 amit.gupta 24
            font-weight: bold;
29982 amit.gupta 25
            background-color: #00d6b2;
29981 amit.gupta 26
        }
29982 amit.gupta 27
 
28
        td {
29983 amit.gupta 29
            font-size: 24px;
29982 amit.gupta 30
        }
29966 amit.gupta 31
    </style>
32
    <link href="../resources/css/brand-logo.css" rel="stylesheet"/>
33
</head>
34
<body>
33953 ranu 35
<h3>RBM Wise Today's ARR (Basis Product Movement)</h3>
36
    #parse("rbm-today-arr.vm")
37
<br>
32938 amit.gupta 38
#if($isGtEqL2)
29994 amit.gupta 39
<div class="container-fluid">
29983 amit.gupta 40
    #foreach($brands in $brandParts)
41
        <table class="table table-bordered table-striped">
29966 amit.gupta 42
            <thead>
43
            <tr>
33791 amit.gupta 44
                <th rowspan="2">AuthUser</th>
29966 amit.gupta 45
                #foreach($brand in $brands)
46
                    <th colspan="3" class="$brand.toLowerCase()"><p>$brand</p></th>
47
                #end
48
            </tr>
49
            <tr>
50
                #foreach($brand in $brands)
51
                    <th>TODAY PO</th>
33801 amit.gupta 52
                    <th>Partner Count</th>
29966 amit.gupta 53
                    <th>Total Billed</th>
54
                #end
55
            </tr>
56
            </thead>
57
            <tbody>
58
                #foreach($brandRegionModelEntry in $brandRegionModelMap.entrySet())
30786 amit.gupta 59
                <tr class="green">
33791 amit.gupta 60
                    <td><b>$authUserMap.get($brandRegionModelEntry.getKey())</b></td>
29966 amit.gupta 61
                    #foreach($brand in $brands)
62
                        #set($obj = $brandRegionModelEntry.getValue().get($brand))
29972 amit.gupta 63
                        #if($obj.getTodayPOValue())
30036 amit.gupta 64
                            <td class="currency">$obj.getTodayPOValue()</td>
29972 amit.gupta 65
                        #else
66
                            <td>-</td>
67
                        #end
33801 amit.gupta 68
                        #if($obj.getPartiesBilled())
69
                            <td>$obj.getPartiesBilled()</td>
29972 amit.gupta 70
                        #else
71
                            <td>-</td>
72
                        #end
73
                        #if($obj.getTodayBilledValue())
30036 amit.gupta 74
                            <td class="currency">$obj.getTodayBilledValue()</td>
29972 amit.gupta 75
                        #else
76
                            <td>-</td>
77
                        #end
29966 amit.gupta 78
                    #end
79
 
80
                </tr>
81
                #end
82
            </tbody>
83
        </table>
29983 amit.gupta 84
    #end
30787 amit.gupta 85
</div>
32938 amit.gupta 86
#if($partnerTypeRegionModelMap)
31538 amit.gupta 87
<div class="container-fluid">
33953 ranu 88
    ##    <table class="table table-bordered table-striped">
89
##        <thead>
90
##        <tr>
91
##            <th>Regionwise Billed Partners</th>
92
##            #foreach($partnerType in $partnerTypes)
93
##                <th>$partnerType.getValue()<br>Today/MTD/Total</th>
94
##            #end
95
##        </tr>
96
##        </thead>
97
##        <tbody>
98
##            #foreach($authUserEntry in $authUserMap.entrySet())
99
##                #if($authUserEntry.getKey()!=0)
100
##                <tr>
101
##                    <td><b>$authUserEntry.getValue()</b></td>
102
##                    #foreach($partnerType in $partnerTypes)
103
##                        <td>
104
##                            #if($partnerTypeRegionModelMap.containsKey($warehouseEntry.getKey()))
105
##                                #if($partnerTypeRegionModelMap.get($warehouseEntry.getKey()).containsKey($partnerType.getValue()))
106
##                                    #set ($partnerTypeRegionModel=$partnerTypeRegionModelMap.get($warehouseEntry.getKey()).get($partnerType.getValue()))
107
##                                    $partnerTypeRegionModel.getTodayCount()/$partnerTypeRegionModel.getMtdCount()
108
##                                    /$partnerTypeRegionModel.getTotalCount()
109
##                                #else
110
##                                    -
111
##                                #end
112
##                            #else
113
##                                -
114
##                            #end
115
##                        </td>
116
##                    #end
117
##                </tr>
118
##                #end
119
##            #end
120
##        </tbody>
121
##    </table>
31538 amit.gupta 122
</div>
32938 amit.gupta 123
#end
31254 amit.gupta 124
<div class="container-fluid ">
33700 amit.gupta 125
    <h3>Total Collection(Overall Collection/Limit Utilization))</h3>
29994 amit.gupta 126
    <div class="row">
127
        #foreach($warehouseEntry in $warehouseMap.entrySet())
31345 amit.gupta 128
            <div class="col-lg-2" style="font-size: 20px">
29994 amit.gupta 129
                $warehouseEntry.getValue() -
130
                #if($warehouseCollectionMap.get($warehouseEntry.getKey()))
31250 amit.gupta 131
                    <span class="currency">$warehouseCollectionMap.get($warehouseEntry.getKey())</span>
29994 amit.gupta 132
                #else
133
 
134
                #end
31242 amit.gupta 135
                /
31250 amit.gupta 136
                #if($warehousePgCollectionMap.get($warehouseEntry.getKey()))
31251 amit.gupta 137
                    <span class="currency">$warehousePgCollectionMap.get($warehouseEntry.getKey())</span>
31242 amit.gupta 138
                #else
139
 
140
                #end
141
 
29994 amit.gupta 142
            </div>
143
        #end
144
    </div>
30784 amit.gupta 145
</div>
30783 amit.gupta 146
    #parse("today_target.vm")
32938 amit.gupta 147
#end
29983 amit.gupta 148
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
149
        integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
150
        crossorigin="anonymous"></script>
151
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
152
        integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
153
        crossorigin="anonymous"></script>
154
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
155
        integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
156
        crossorigin="anonymous"></script>
30036 amit.gupta 157
<script type="text/javascript">
158
    function numberToComma(x) {
29966 amit.gupta 159
 
30036 amit.gupta 160
        x = x.toString();
161
        x = x.split('.');
162
        var x1 = x[0];
163
        var x2 = x.length > 1 && x[1] != '0' ? '.' + x[1] : '';
164
        var lastThree = x1.substring(x1.length - 3);
165
        var otherNumbers = x1.substring(0, x1.length - 3);
166
        if (x1.charAt(x1.length - 4) == ',' || x1.charAt(x1.length - 4) == '-') {
167
            console.log(lastThree)
168
        } else {
169
            if (otherNumbers != '')
170
                lastThree = ',' + lastThree;
171
        }
172
        return otherNumbers.replace(/\B(?=(\d{2})+(?!\d))/g, ",") + (lastThree)
173
                + x2;
174
 
175
    }
176
 
177
    $(document).ready(function () {
178
        $('.currency').each(function (index, ele) {
179
            if (!isNaN(parseInt($(ele).html()))) {
180
                $(ele).html(numberToComma($(ele).html()));
181
            }
182
        });
183
    })
184
</script>
29966 amit.gupta 185
</body>
186
</html>