Subversion Repositories SmartDukaan

Rev

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

Rev 30780 Rev 31833
Line 38... Line 38...
38
        <tr>
38
        <tr>
39
            <th rowspan="2">RBM</th>
39
            <th rowspan="2">RBM</th>
40
            <th rowspan="2">Count</th>
40
            <th rowspan="2">Count</th>
41
            <th colspan="2">Collection</th>
41
            <th colspan="2">Collection</th>
42
            <th colspan="2">Secondary</th>
42
            <th colspan="2">Secondary</th>
43
            <th rowspan="2" style="width: 60%">Partner Status</th>
43
            <th rowspan="2" style="width: 20%" colspan="5">Active</th>
-
 
44
            <th rowspan="2" style="width: 20%" colspan="5">Low Sale</th>
-
 
45
            <th rowspan="2" style="width: 20%" colspan="5">Disputed</th>
44
        </tr>
46
        </tr>
45
        <tr>
47
        <tr>
46
            <th>Target</th>
48
            <th>Target</th>
47
            <th>Achieved</th>
49
            <th>Achieved</th>
48
            <th>Target</th>
50
            <th>Target</th>
49
            <th>Achieved</th>
51
            <th>Achieved</th>
-
 
52
            <th>Plan Today</th>
-
 
53
            <th>Carry Fwd</th>
-
 
54
            <th>Untouched</th>
-
 
55
            <th>Plan Fut</th>
-
 
56
            <th>Normal</th>
-
 
57
            <th>Plan Today</th>
-
 
58
            <th>Carry Fwd</th>
-
 
59
            <th>Untouched</th>
-
 
60
            <th>Plan Fut</th>
-
 
61
            <th>Normal</th>
-
 
62
            <th>Plan Today</th>
-
 
63
            <th>Carry Fwd</th>
-
 
64
            <th>Untouched</th>
-
 
65
            <th>Plan Fut</th>
-
 
66
            <th>Normal</th>
-
 
67
 
50
        </tr>
68
        </tr>
51
        </thead>
69
        </thead>
52
        <tbody>
70
        <tbody>
53
            #foreach($summaryModel in $summaryModels)
71
            #foreach($summaryModel in $summaryModels)
54
            <tr>
72
            <tr>
Line 56... Line 74...
56
                <td>$summaryModel.getPartnersCommunicated()</td>
74
                <td>$summaryModel.getPartnersCommunicated()</td>
57
                <td class="currency">$summaryModel.getCollectionTarget()</td>
75
                <td class="currency">$summaryModel.getCollectionTarget()</td>
58
                <td class="currency">$summaryModel.getCollection()</td>
76
                <td class="currency">$summaryModel.getCollection()</td>
59
                <td class="currency">$summaryModel.getSecondaryTarget()</td>
77
                <td class="currency">$summaryModel.getSecondaryTarget()</td>
60
                <td class="currency">$summaryModel.getSecondary()</td>
78
                <td class="currency">$summaryModel.getSecondary()</td>
61
                <td>
79
                #foreach($entry in $summaryModel.setChartLeadModelMap().entrySet())
-
 
80
 
62
                    #set($datasets = $summaryModel.getChartLeadModel().getData().getDatasets().get(0))
81
                    #set($datasets = $entry.getData().getDatasets().get(0))
63
                    #set($dataPoints=$datasets.getData())
82
                    #set($dataPoints=$datasets.getData())
64
                    #set($bgColors=$datasets.getBackgroundColor())
83
                    #set($bgColors=$datasets.getBackgroundColor())
65
                    #set($labels = $summaryModel.getChartLeadModel().getData().getLabels())
84
                    #set($labels = $summaryModel.getChartLeadModel().getData().getLabels())
66
                    #set($total=0)
85
                    #set($total=0)
67
                    #foreach($dataPoint in $dataPoints)
86
                    #foreach($dataPoint in $dataPoints)
68
                        #if($dataPoint)
-
 
69
                            #set($total=$total+$dataPoint)
-
 
70
                        #end
-
 
71
                    #end
-
 
72
                    #foreach($dataPoint in $dataPoints)
-
 
73
                        #if($dataPoint)
-
 
74
                            #set($percentage=($dataPoint*100)/$total)
-
 
75
                        #else
-
 
76
                            #set($percentage=0)
-
 
77
                        #end
-
 
78
                        #set($count = $velocityCount - 1)
87
                        #set($count = $velocityCount - 1)
79
                        <div style="display:inline;background-color: $bgColors.get($count);width:$percentage%;margin:0;padding:0 ">$labels.get($count)
88
                        <td>$bgColors.get($count),$labels.get($count)
80
                            - #if(!$dataPoint) 0 #else $dataPoint #end</div>
89
                            - #if(!$dataPoint) 0 #else $dataPoint #end
-
 
90
                        </td>
81
                    #end
91
                    #end
82
                </td>
92
                #end
83
            </tr>
93
            </tr>
84
            #end
94
            #end
85
        </tbody>
95
        </tbody>
86
    </table>
96
    </table>
87
</div>
97
</div>