Subversion Repositories SmartDukaan

Rev

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