Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
33092 tejus.loha 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("reportspricedrop.pricedrops")
5
            </h3>
6
            <ol class="breadcrumb">
7
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage(
8
                    "reportspricedrop.home")</a></li>
9
                <li><i class="icon_document_alt"></i>#springMessage("reportspricedrop.pricedrops")
10
                </li>
11
            </ol>
12
        </div>
13
    </div>
14
 
15
 
16
    <br>
17
    #if($isAdmin)
18
        <div class="row col-lg-12" style="float: right;">
19
            <div class="col-lg-2">
20
                <div class="input-group">
21
                    <input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
22
                           id="typeaheadpartner"
23
                           name="Item" data-provide="typeahead" autocomplete="off"
24
                           style="margin-bottom: 10px;margin-left: 22px"> <input id="partnerId"
25
                                                                                 type="hidden">
26
                    <br>
27
                </div>
28
            </div>
29
        </div>
30
    #end
31
    <div class="row col-lg-12" style="float: right;">
32
 
33
 
34
        #springMessage("reportspricedrop.from") <input type="date" id="startDate-price-drop-report" placeholder=""
35
                                                       name="" value="$startDate">
36
 
37
        #springMessage("reportspricedrop.to") <input type="date" id="endDate-price-drop-report" placeholder=""
38
                                                     value="$endDate">
33067 shampa 39
        <button type="submit" class="price-drop-fetch-report">Fetch Report</button>
33092 tejus.loha 40
        <button type="submit" class="download-price-drop-report">#springMessage(
41
            "reportspricedrop.downloadreport") </button>
33067 shampa 42
 
33092 tejus.loha 43
    </div>
30164 manish 44
    <div class="col-lg-12">
45
        <table class="table table-border table-condensed table-bordered" id="priceDropReportTbl" style="width:100%">
46
 
47
            <thead class="row htable" style="background:#F5F5F5;">
48
            <tr style="color:black;">
33092 tejus.loha 49
 
50
                <th>#springMessage("reportspricedrop.code")</th>
51
                <th>#springMessage("reportspricedrop.pricedropid")</th>
52
                <th>#springMessage("reportspricedrop.brand")</th>
53
                <th>#springMessage("reportspricedrop.modelname")</th>
54
 
55
                <th>#springMessage("reportspricedrop.modelnumber")</th>
56
                <th>#springMessage("reportspricedrop.affectedon")</th>
57
                <th>#springMessage("reportspricedrop.amount")</th>
58
                <th>#springMessage("reportspricedrop.partnerpayout")</th>
59
 
60
                <th>#springMessage("reportspricedrop.imei")</th>
61
                <th>#springMessage("reportspricedrop.status")</th>
62
                <th>#springMessage("reportspricedrop.processedon")</th>
63
                <th>#springMessage("reportspricedrop.reason")</th>
64
 
65
 
66
            </tr>
30164 manish 67
            </thead>
68
            <tbody>
69
                #foreach($pdr in $priceDropReports )
33092 tejus.loha 70
                <tr>
30164 manish 71
                    <td>$pdr.getCode()</td>
72
                    <td>$pdr.getId()</td>
73
                    <td>$pdr.getBrand()</td>
33092 tejus.loha 74
                    <td>$pdr.getModelName()</td>
75
 
30164 manish 76
                    <td>$pdr.getModelNumber()</td>
31373 tejbeer 77
                    <td>$pdr.getAffectedOn().format($dateTimeFormatter)</td>
30164 manish 78
                    <td>$pdr.getAmount()</td>
33092 tejus.loha 79
                    <td>$pdr.getPartnerPayout()</td>
80
 
30164 manish 81
                    <td>$pdr.getImei()</td>
82
                    <td>$pdr.getStatus()</td>
32976 shampa 83
 
33092 tejus.loha 84
 
32976 shampa 85
                    #if($pdr.getUpdateTimestamp())
33092 tejus.loha 86
                        <td>$pdr.getUpdateTimestamp().format($datehiphenFormatter)</td>
30164 manish 87
                    #else
33092 tejus.loha 88
                        <td>--</td>
30164 manish 89
                    #end
33092 tejus.loha 90
 
30164 manish 91
                    #if($pdr.getRejectionReason())
33092 tejus.loha 92
                        <td>$pdr.getRejectionReason()</td>
93
 
30164 manish 94
                    #else
33092 tejus.loha 95
                        <td>--</td>
30164 manish 96
                    #end
33092 tejus.loha 97
 
98
                </tr>
30164 manish 99
                #end
100
 
101
            </tbody>
102
 
103
        </table>
104
    </div>
33092 tejus.loha 105
 
30164 manish 106
</section>
107
 
108
 
109
<script>
110
 
33092 tejus.loha 111
    var dtable = $('#priceDropReportTbl').DataTable(
112
            {
113
                "scrollX": true,
114
                "bPaginate": true,
115
                "bLengthChange": true,
116
                "bFilter": true,
117
                "bInfo": false,
118
                "bAutoWidth": false,
119
 
120
 
121
            });
122
 
123
 
124
</script>
125
#if($isAdmin)
126
<script type="text/javascript">
127
    $(function () {
128
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
129
            partnerId = selectedPartner.partnerId;
130
 
131
            console.log(partnerId);
132
        });
133
    });
134
</script>
135
+#end
30164 manish 136