Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
28758 amit.gupta 1
<style>
2
.working-green
3
{
4
color:green;
5
}
6
.not-working-red
7
{
8
color:red;
9
 
10
.cover-brand {
11
 
12
 
13
}}
14
 
15
 
16
</style    
17
 
18
    <section class="wrapper">
19
    <div class="row">
20
        <div class="col-lg-12">
21
            <h3 class="page-header"><i class="icon_document_alt"></i>Finance Sevices</h3>
22
            <ol class="breadcrumb">
23
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
24
                <li><i class="icon_document_alt"></i>Finance Sevices</li>
25
            </ol>
26
        </div>
27
    </div>
28
 
29
 
30
    <div class="col-lg-12">
31
        <table class="table table-striped table-advance table-hover table-border table-condensed table-bordered" id="financePartnerServices" style="width:100%">
32
 
33
            <thead class="row">
34
 
35
            <tr style="color:black;">
36
                <th rowspan="2">Partner Name</th>    
37
               #foreach($paymentOption in $paymentOptions)
38
                #if($serviceBrandsConfigMap.containsKey($paymentOption.getId()))
39
 
40
                <th colspan="$serviceBrandsConfigMap.get($paymentOption.getId()).size()">
41
                $paymentOption.getName()
42
                </th>
43
 
44
                #end
45
 
46
              #end
47
              </tr>
48
              <tr>
49
              #foreach($paymentOption in $paymentOptions)
50
              #if($serviceBrandsConfigMap.containsKey($paymentOption.getId()))
51
              #foreach($serviceBrand in $serviceBrandsConfigMap.get($paymentOption.getId()))    
52
              <th >
53
              <img src="${brandUrlMap.get($serviceBrand.getBrand())}"
54
                                 class="cover-brand $serviceBrand.getBrand()" id="finBrandUrl" style="height: 30px;">
55
              </th>
56
              #end
57
              #end
58
              #end
59
            </tr>
60
 
61
 
62
            </thead>
63
            <tbody>
28764 amit.gupta 64
             #foreach($entryCr in $cr.entrySet())
65
 
28758 amit.gupta 66
               <tr> 
28847 manish 67
               <td data-id="$entryCr.getKey()">$entryCr.getValue().getBusinessName()</td>
28758 amit.gupta 68
              #foreach($paymentOption in $paymentOptions)
69
              #if($serviceBrandsConfigMap.containsKey($paymentOption.getId()))
70
              #foreach($serviceBrand in $serviceBrandsConfigMap.get($paymentOption.getId())) 
71
 
28847 manish 72
              #if($financeServicesMapOfMap.get($entryCr.getKey()).get($serviceBrand.getId()).getServiceApplicableType() =="YES")
73
 
28800 amit.gupta 74
              #if($financeServicesMapOfMap.get($entryCr.getKey()).get($serviceBrand.getId()).getApplicableType()== "YES") 
75
 
28901 manish 76
		#if($financeServicesMapOfMap.get($entryCr.getKey()).get($serviceBrand.getId()).getCode()) 
28800 amit.gupta 77
 
28901 manish 78
	 		#if($financeServicesMapOfMap.get($entryCr.getKey()).get($serviceBrand.getId()).isActive())
79
 
80
	            #if($financeServicesMapOfMap.get($entryCr.getKey()).get($serviceBrand.getId()).getPartnerStatusType() == "WORKING")
81
 
82
	             	 <td class="working-green">&#10004</td>
83
	    	    #else
84
	           		<td class="not-working-red">&#10006;&#10006;</td>
85
	           	#end
86
	        #else
87
	             <td class="not-working">&#10006;</td>
88
			#end
89
        #else
90
        	#if($financeServicesMapOfMap.get($entryCr.getKey()).get($serviceBrand.getId()).getServiceStatusByCodeTimeStamp())
28883 manish 91
             <td>No Code</td>
92
 
28800 amit.gupta 93
          #else
28883 manish 94
             <td style="color : red;">No Code</td>
95
 
28800 amit.gupta 96
          #end    
97
 
98
             #end
28883 manish 99
 
28758 amit.gupta 100
 
101
             #else
28883 manish 102
 
28800 amit.gupta 103
 
28758 amit.gupta 104
             <td>NA</td>
28800 amit.gupta 105
 
28758 amit.gupta 106
             #end
28847 manish 107
 
108
             #else
28883 manish 109
             <td>SNA </td>
110
 
28847 manish 111
             #end
28758 amit.gupta 112
 
113
              #end
28883 manish 114
              #else
28758 amit.gupta 115
              #end
116
              #end
117
 
118
 
119
 
120
 
121
 
122
				</tr>	
123
           #end
124
            </tbody>
125
 
126
        </table>
127
    </div>
128
 
129
    </section>
130
 
131
    <script>
132
 
133
        var dtable = $('#financePartnerServices').DataTable(
134
                {
135
 
28761 amit.gupta 136
                  "scrollX": true,
28766 amit.gupta 137
            "scrollCollapse": true,
28765 amit.gupta 138
             "scrollY": "700px",
139
               "fixedHeader": true,
140
                  "fixedColumns":   {
28883 manish 141
                    leftColumns: 1
142
                     },
28758 amit.gupta 143
 
144
                });
145
 
146
 
147
 
148
    </script>