Subversion Repositories SmartDukaan

Rev

Rev 34066 | 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)
34066 aman.kumar 14
        #if($isRBM)
15
            <div style="padding: 5px 10px; margin-top: 2px"
16
                 class="col-lg-2 form-group">
17
                <select class="form-control input-sm" id="fofo-users" name="Item" placeholder="Partners">
18
                    <option value="" disabled selected>Partners</option>
19
                    #foreach($fofoId in $customRetailersMap.keySet())
20
                        <option value="$fofoId"
21
                                data-email="$customRetailersMap.get($fofoId).getEmail()">$customRetailersMap.get($fofoId).getBusinessName()</option>
22
                    #end
23
                </select>
24
            </div>
25
        #else
33091 shampa 26
        <div class="row col-lg-12" style="float: right;">
27
            <div class="col-lg-2">
28
                <div class="input-group">
33179 tejus.loha 29
                    <input placeholder="Partner Name" type="text" class="typeahead form-control" id="typeaheadpartner"
30
                           name="Item" data-provide="typeahead" autocomplete="off"
31
                           style="margin-bottom:10px;margin-left:22px;"> <input id="partnerId" type="hidden">
33091 shampa 32
 
33
                    <br>
34
                    <span class="input-group-btn">
35
						##<button class="btn btn-primary submit" id="retailer-details-search-button"
36
                                                                ## type="button">Go!</button>
37
					</span>
38
                </div>
39
            </div>
40
        </div>
41
    #end
34066 aman.kumar 42
    #end
33010 shampa 43
    <div class="row col-lg-12" style="float: right;">
44
 
45
 
33179 tejus.loha 46
        #springMessage("reportsofferpayoutdump.from") <input type="date" id="startDate-offer-payout-dump" placeholder=""
47
                                                             name="" value="$startDate">
33010 shampa 48
 
33179 tejus.loha 49
        #springMessage("reportsofferpayoutdump.to") <input type="date" id="endDate-offer-payout-dump" placeholder=""
50
                                                           value="$endDate">
51
        <button type="submit" class="offer-payout-fetch-report">#springMessage(
52
            "reportsofferpayoutdump.fetchreport")</button>
53
        <button type="submit" class="download-offer-payout-dump-report">#springMessage(
54
            "reportsofferpayoutdump.downloadreport")</button>
33010 shampa 55
 
56
    </div>
57
 
58
    <div class="col-lg-12">
59
        <table class="table table-border table-condensed table-bordered" id="offerPayoutDumpReportDtable"
60
               style="width:100%">
61
 
62
            <thead class="row htable" style="background:#F5F5F5;">
63
            <tr style="color:black;">
33098 shampa 64
                <th>Offer Id</th>
65
                <th>Brand</th>
33179 tejus.loha 66
                <th>Model Name</th>
33010 shampa 67
                <th>Model Number</th>
68
                <th>Color</th>
33098 shampa 69
                ##<th>Name</th>
33010 shampa 70
                <th>Type</th>
71
                <th>Serial Number</th>
72
                <th>Slab Amount</th>
33179 tejus.loha 73
                <th>Amount</th>
33010 shampa 74
                <th>Description</th>
75
                <th>Created Timestamp</th>
76
                <th>Rejected Timestamp</th>
77
            </tr>
78
            </thead>
79
            <tbody>
80
                #foreach($offerPayoutDumpReport in $offerPayoutDumpReports )
81
                <tr>
33098 shampa 82
                    <td>$offerPayoutDumpReport.getOfferId()</td>
83
                    <td>$offerPayoutDumpReport.getBrand()</td>
33010 shampa 84
                    <td>$offerPayoutDumpReport.getModelName()</td>
85
                    <td>$offerPayoutDumpReport.getModelNumber()</td>
86
                    <td>$offerPayoutDumpReport.getColor()</td>
33098 shampa 87
                    ##<td>$offerPayoutDumpReport.getName()</td>
33010 shampa 88
                    <td>$offerPayoutDumpReport.getType()</td>
89
                    #if($offerPayoutDumpReport.getSerialNumber())
90
                        <td> $offerPayoutDumpReport.getSerialNumber()</td>
91
                    #else
92
                        <td>--</td>
93
                    #end
33179 tejus.loha 94
                    <td><span class="currency">$offerPayoutDumpReport.getSlabAmount()</span></td>
95
                    <td><span class="currency">$offerPayoutDumpReport.getAmount()</span></td>
33010 shampa 96
                    #if($offerPayoutDumpReport.getDescription())
97
                        <td>$offerPayoutDumpReport.getDescription()</td>
98
                    #else
99
                        <td>--</td>
100
                    #end
101
                    <td>$offerPayoutDumpReport.getCreateTimestamp().format($datehiphenFormatter)</td>
102
                    #if($offerPayoutDumpReport.getRejectTimestamp())
103
                        <td>$offerPayoutDumpReport.getRejectTimestamp().format($datehiphenFormatter)</td>
104
                    #else
105
                        <td> --</td>
106
                    #end
107
                </tr>
108
                #end
109
            </tbody>
110
        </table>
111
    </div>
112
</section>
113
 
114
 
115
<script>
116
 
117
 
118
    var dtable = $('#offerPayoutDumpReportDtable').DataTable(
119
            {
120
                "scrollX": true,
121
                "bPaginate": true,
122
                "bLengthChange": true,
123
                "bFilter": true,
124
                "bInfo": false,
125
                "bAutoWidth": false,
126
 
127
 
128
            });
129
 
130
 
131
</script>
33091 shampa 132
#if($isAdmin)
133
<script type="text/javascript">
134
    $(function () {
135
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
136
            partnerId = selectedPartner.partnerId;
137
 
138
            console.log(partnerId);
139
        });
140
    });
34066 aman.kumar 141
    $(function () {
142
        $('#fofo-users').on('change', function () {
143
            var selectedFofoId = $(this).val();
144
            if (selectedFofoId) {
145
                partnerId = selectedFofoId;
146
                console.log("Partner ID set to:", partnerId);
147
            } else {
36080 aman 148
                alert("Please select a valid Partner ID.");
34066 aman.kumar 149
            }
150
        });
151
    });
33091 shampa 152
</script>
153
#end