Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
33845 tejus.loha 1
<section class="wrapper">
2
    <div class="row">
3
        <div class="col-lg-12">
4
            <h3 class="page-header"> Pending Wod-Finance Mapping</h3>
5
            <ol class="breadcrumb">
6
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
7
                <li><i class="icon_document_alt"></i>Pending Wod-Finance Mapping</li>
8
            </ol>
9
        </div>
10
    </div>
11
 
12
    <div class="col-lg-12">
34080 tejus.loha 13
        <table class="table table-bordered" style="text-align: center" id="wod-fin-mapping-report">
33845 tejus.loha 14
            <thead>
15
            <tr>
16
                <th colspan="4" style="text-align: center">Partner Details</th>
17
                <th colspan="$brandCommits.size()" style="text-align: center">Wod Status</th>
18
                <th colspan="$paperFinanceOptions.size()">Wod Finance mapping Status</th>
19
            </tr>
20
 
21
            <tr>
22
                <th rowspan="2">Id</th>
23
                <th rowspan="2">Code</th>
24
                <th rowspan="2">Outlet Name</th>
25
                <th rowspan="2">City</th>
26
                #foreach($brand in $brandCommits)
27
                    <th rowspan="2">$brand.getBrand()</th>
28
                #end
29
                #foreach($po in $paperFinanceOptions)
30
                    #set($const2 = $serviceBrandsConfigsMap.get($po.getId()).size())
31
                    <th colspan="$const2" style="text-align: center">$po.getName()</th>
32
                #end
33
            </tr>
34
            <tr>
35
                #foreach($po in $paperFinanceOptions)
36
                    #foreach($serviceBrand in $serviceBrandsConfigsMap.get($po.getId()))
37
                        <th>$serviceBrand.getBrand()</th>
38
                    #end
39
                #end
40
            </tr>
41
 
42
            </thead>
43
            <tbody>
44
            <!-- Partner Details-->
45
                #foreach($pop in $partnerOnBoardingPanels)
33908 tejus.loha 46
                <tr>
33845 tejus.loha 47
                    <td>$pop.getId()</td>
48
                    <td>$pop.getCode()</td>
49
                    <td>$pop.getOutLetName()</td>
50
                    <td>$pop.getCity()</td>
51
 
52
                    <!-- Wod Details-->
53
                    #set ($wodFinMappingModel = $wodFinMappingModelMap.get($pop.getCode()))
54
                    #foreach($brand in $brandCommits)
55
                        #set ($model=$wodFinMappingModel.get($brand.getBrand()))
33887 tejus.loha 56
                        #if($model)
33845 tejus.loha 57
                            #if($model.getDmsCode()!="")
34085 tejus.loha 58
                                #if($model.getDmsCode()=="IT_CODE" || $model.getDmsCode()=="TEMPCODE")
59
                                    <td style="background-color:rgba(231,42,42,0.18) ;color: black; font-weight: bold">$model.getDmsCode()</td>
60
                                #elseif($model.getDmsCode()=="LOWCODE")
61
                                    <td style="background-color:rgba(245,221,151,0.38) ;color: black; font-weight: bold">$model.getDmsCode()</td>
62
                                #else
63
                                    <td style="background-color:rgba(150,243,150,0.2) ;color: black; font-weight: bold">$model.getDmsCode()</td>
64
                                #end
33845 tejus.loha 65
                            #else
34085 tejus.loha 66
                                <td style="background-color:rgba(121,144,150,0.41) ;color: black; font-weight: bold">
67
                                    Pending
68
                                </td>
33845 tejus.loha 69
                            #end
70
                        #else
71
                            <td style="color:#0062cc">NA</td>
72
                        #end
73
                    #end
74
 
75
                    <!-- Wod finance mapping Details-->
76
                    #set ($wodFinModelMap = $codeServiceBrandWodFinMappingModelMap.get($pop.getCode()))
77
                    #foreach($po in $paperFinanceOptions)
34080 tejus.loha 78
 
33845 tejus.loha 79
                            #set($brandModelMap = $wodFinModelMap.get($po.getName()))
80
                            #foreach($sb in $serviceBrandsConfigsMap.get($po.getId()))
81
                                #if($brandModelMap.containsKey($sb.getBrand()))
82
                                    #set ($model = $brandModelMap.get($sb.getBrand()))
83
                                    #if($model.getActive())
33927 tejus.loha 84
                                        <td style="color:green ;font-weight: bold">Active</td>
33845 tejus.loha 85
                                    #else
86
                                        <td style="color:red">Pending</td>
87
                                    #end
88
                                #else
89
                                    <td>--</td>
90
                                #end
91
                            #end
34080 tejus.loha 92
 
33845 tejus.loha 93
                    #end
94
                </tr>
95
                #end
96
            </tbody>
97
        </table>
98
    </div>
34080 tejus.loha 99
</section>
100
<script>
101
    $('#wod-fin-mapping-report').DataTable({
102
        paging: true,
103
        searching: true,
104
        ordering: true,
105
        info: true,
106
        lengthChange: true,
107
        autoWidth: false,
108
        "scrollX": true,
34085 tejus.loha 109
        "scrollY": "518px",
110
        scrollCollapse: true,
111
        "fixedHeader": true,
34080 tejus.loha 112
 
113
        fixedColumns: {
114
            leftColumns: 4
115
        },
116
    });
117
</script>