Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
33010 shampa 1
<section class="wrapper">
2
    <div class="row">
3
        <div class="col-lg-12">
4
            <h3 class="page-header"><i class="icon_document_alt"></i>#springMessage("reportsofferpayoutdump.offerpayoutdumpreport")</h3>
5
            <ol class="breadcrumb">
6
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage("reportsofferpayoutdump.home")</a></li>
7
                <li><i class="icon_document_alt"></i>#springMessage("reportsofferpayoutdump.offerpayoutdumpreport")</li>
8
            </ol>
9
        </div>
10
    </div>
33091 shampa 11
    #if($isAdmin)
12
        <div class="row col-lg-12" style="float: right;">
13
            <div class="col-lg-2">
14
                <div class="input-group">
33097 shampa 15
                    <input placeholder="Partner Name" type="text" class="typeahead form-control" id="typeaheadpartner" name="Item" data-provide="typeahead" autocomplete="off"  style="margin-bottom:10px;margin-left:22px;"> <input id="partnerId" type="hidden">
33091 shampa 16
 
17
                    <br>
18
                    <span class="input-group-btn">
19
						##<button class="btn btn-primary submit" id="retailer-details-search-button"
20
                                                                ## type="button">Go!</button>
21
					</span>
22
                </div>
23
            </div>
24
        </div>
25
    #end
33010 shampa 26
    <div class="row col-lg-12" style="float: right;">
27
 
28
 
29
        #springMessage("reportsofferpayoutdump.from") <input type="date" id="startDate-offer-payout-dump" placeholder="" name="" value="$startDate">
30
 
31
        #springMessage("reportsofferpayoutdump.to") <input type="date" id="endDate-offer-payout-dump" placeholder="" value="$endDate">
33091 shampa 32
        <button type="submit" class="offer-payout-fetch-report">#springMessage("reportsofferpayoutdump.fetchreport")</button>
33
        <button type="submit" class="download-offer-payout-dump-report">#springMessage("reportsofferpayoutdump.downloadreport")</button>
33010 shampa 34
 
35
    </div>
36
 
37
    <div class="col-lg-12">
38
        <table class="table table-border table-condensed table-bordered" id="offerPayoutDumpReportDtable"
39
               style="width:100%">
40
 
41
            <thead class="row htable" style="background:#F5F5F5;">
42
            <tr style="color:black;">
43
 
44
 
33098 shampa 45
                <th>Offer Id</th>
46
                <th>Brand</th>
33010 shampa 47
                <th>Model Name </th>
48
                <th>Model Number</th>
49
 
33098 shampa 50
 
33010 shampa 51
                <th>Color</th>
52
 
53
 
33098 shampa 54
 
55
                ##<th>Name</th>
33010 shampa 56
                <th>Type</th>
57
                <th>Serial Number</th>
58
                <th>Slab Amount</th>
59
 
60
 
61
 
62
 
63
 
64
 
65
 
66
 
67
                <th>Description</th>
68
                <th>Created Timestamp</th>
69
                <th>Rejected Timestamp</th>
70
 
71
            </tr>
72
            </thead>
73
            <tbody>
74
                #foreach($offerPayoutDumpReport in $offerPayoutDumpReports )
75
                <tr>
76
 
77
 
33098 shampa 78
                    <td>$offerPayoutDumpReport.getOfferId()</td>
79
                    <td>$offerPayoutDumpReport.getBrand()</td>
33010 shampa 80
                    <td>$offerPayoutDumpReport.getModelName()</td>
81
                    <td>$offerPayoutDumpReport.getModelNumber()</td>
82
 
83
 
33098 shampa 84
 
33010 shampa 85
                    <td>$offerPayoutDumpReport.getColor()</td>
86
 
87
 
88
 
33098 shampa 89
                    ##<td>$offerPayoutDumpReport.getName()</td>
33010 shampa 90
 
33098 shampa 91
 
33010 shampa 92
                    <td>$offerPayoutDumpReport.getType()</td>
93
 
94
                    #if($offerPayoutDumpReport.getSerialNumber())
95
                        <td> $offerPayoutDumpReport.getSerialNumber()</td>
96
                    #else
97
 
98
                        <td>--</td>
99
                    #end
100
                    <td>$offerPayoutDumpReport.getSlabAmount()</td>
101
 
102
 
103
 
104
 
105
 
106
                    #if($offerPayoutDumpReport.getDescription())
107
                        <td>$offerPayoutDumpReport.getDescription()</td>
108
 
109
                    #else
110
                        <td>--</td>
111
                    #end
112
                    <td>$offerPayoutDumpReport.getCreateTimestamp().format($datehiphenFormatter)</td>
113
 
114
                    #if($offerPayoutDumpReport.getRejectTimestamp())
115
 
116
                        <td>$offerPayoutDumpReport.getRejectTimestamp().format($datehiphenFormatter)</td>
117
                    #else
118
                        <td> --</td>
119
                    #end
120
 
121
 
122
                </tr>
123
                #end
124
 
125
            </tbody>
126
 
127
        </table>
128
    </div>
129
 
130
</section>
131
 
132
 
133
<script>
134
 
135
 
136
    var dtable = $('#offerPayoutDumpReportDtable').DataTable(
137
            {
138
                "scrollX": true,
139
                "bPaginate": true,
140
                "bLengthChange": true,
141
                "bFilter": true,
142
                "bInfo": false,
143
                "bAutoWidth": false,
144
 
145
 
146
            });
147
 
148
 
149
</script>
33091 shampa 150
#if($isAdmin)
151
<script type="text/javascript">
152
    $(function () {
153
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
154
            partnerId = selectedPartner.partnerId;
155
 
156
            console.log(partnerId);
157
        });
158
    });
159
</script>
160
#end