Subversion Repositories SmartDukaan

Rev

Rev 33067 | Rev 33143 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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