Subversion Repositories SmartDukaan

Rev

Rev 30038 | Rev 30774 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30038 Rev 30771
Line 18... Line 18...
18
 
18
 
19
        .table td, .table th {
19
        .table td, .table th {
20
            padding: 0.25rem;
20
            padding: 0.25rem;
21
        }
21
        }
22
 
22
 
23
        tr:first-child td {
23
        /*tr:first-child td {
24
            font-weight: bold;
24
            font-weight: bold;
25
            background-color: #00d6b2;
25
            background-color: #00d6b2;
26
        }
26
        }*/
27
 
27
 
28
        td {
28
        td {
29
            font-size: 24px;
29
            font-size: 24px;
30
        }
30
        }
31
    </style>
31
    </style>
32
    <link href="../resources/css/brand-logo.css" rel="stylesheet"/>
32
    <link href="../resources/css/brand-logo.css" rel="stylesheet"/>
33
</head>
33
</head>
34
<body>
34
<body>
35
<div class="container-fluid">
35
<div class="container-fluid">
36
    #foreach($brands in $brandParts)
-
 
37
        <table class="table table-bordered table-striped">
36
    <table class="table table-bordered table-striped">
38
            <thead>
37
        <thead>
39
            <tr>
38
        <tr>
40
                <th rowspan="2">Region</th>
39
            <th rowspan="2">RBM</th>
-
 
40
            <th rowspan="2">Count</th>
-
 
41
            <th colspan="2">Collection</th>
41
                #foreach($brand in $brands)
42
            <th colspan="2">Secondary</th>
42
                    <th colspan="3" class="$brand.toLowerCase()"><p>$brand</p></th>
43
            <th rowspan="2" style="width: 60%">Partner Status</th>
-
 
44
        </tr>
-
 
45
        <tr>
-
 
46
            <th>Target</th>
-
 
47
            <th>Acieved</th>
-
 
48
            <th>Target</th>
43
                #end
49
            <th>Acieved</th>
44
            </tr>
50
        </tr>
-
 
51
        </thead>
-
 
52
        <tbody>
-
 
53
            #foreach($summaryModel in $summaryModels)
45
            <tr>
54
            <tr>
46
                #foreach($brand in $brands)
55
                <td>$summaryModel.getAuthName()</td>
47
                    <th>TODAY PO</th>
56
                <td>$summaryModel.getPartnersCommunicated()</td>
48
                    <th>TODAY PO<br> Billed</th>
57
                <td class="currency">$summaryModel.getCollectionTarget()</td>
49
                    <th>Total Billed</th>
58
                <td class="currency">$summaryModel.getCollection()</td>
50
                #end
59
                <td class="currency">$summaryModel.getSecondaryTarget()</td>
51
            </tr>
-
 
52
            </thead>
-
 
53
            <tbody>
-
 
54
                #foreach($brandRegionModelEntry in $brandRegionModelMap.entrySet())
60
                <td class="currency">$summaryModel.getSecondary()</td>
55
                <tr>
61
                <td>
56
                    <td><b>$warehouseMap.get($brandRegionModelEntry.getKey())</b></td>
62
                    #set($datasets = $summaryModel.getChartLeadModel().getData().getDatasets().get(0))
57
                    #foreach($brand in $brands)
63
                    #set($dataPoints=$datasets.getData())
58
                        #set($obj = $brandRegionModelEntry.getValue().get($brand))
64
                    #set($bgColors=$datasets.getBackgroundColor())
59
                        #if($obj.getTodayPOValue())
-
 
60
                            <td class="currency">$obj.getTodayPOValue()</td>
65
                    #set($labels = $summaryModel.getChartLeadModel().getData().getLabels())
61
                        #else
-
 
62
                            <td>-</td>
66
                    #foreach($dataPoint in $dataPoints)
63
                        #end
-
 
64
                        #if($obj.getTodayPOBilledValue())
67
                        #set($count = $velocityCount - 1)
65
                            <td class="currency">$obj.getTodayPOBilledValue()</td>
68
                        <span style="background-color: $bgColors.get($count)">$labels.get($count)
66
                        #else
-
 
67
                            <td>-</td>
-
 
68
                        #end
-
 
69
                        #if($obj.getTodayBilledValue())
-
 
70
                            <td class="currency">$obj.getTodayBilledValue()</td>
69
                            - #if($dataPoint) $dataPoint #else 0#end</span>
71
                        #else
-
 
72
                            <td>-</td>
-
 
73
                        #end
-
 
74
                    #end
70
                    #end
75
 
-
 
76
                </tr>
71
                </td>
77
                #end
-
 
78
            </tbody>
72
            </tr>
79
        </table>
-
 
80
    </div>
-
 
81
    #end
-
 
82
<div class="container">
-
 
83
    <h3>Total Collection</h3>
-
 
84
    <div class="row">
-
 
85
        #foreach($warehouseEntry in $warehouseMap.entrySet())
-
 
86
            <div class="col-lg-3" style="font-size: 24px">
-
 
87
                $warehouseEntry.getValue() -
-
 
88
                #if($warehouseCollectionMap.get($warehouseEntry.getKey()))
-
 
89
                    <span class="currency">$warehouseCollectionMap.get($warehouseEntry.getKey())</span>
-
 
90
                #else
-
 
91
                    0
-
 
92
                #end
73
            #end
93
            </div>
74
        </tbody>
94
        #end
-
 
95
    </div>
75
    </table>
96
</div>
76
</div>
97
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
77
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
98
        integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
78
        integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
99
        crossorigin="anonymous"></script>
79
        crossorigin="anonymous"></script>
100
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
80
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"