Subversion Repositories SmartDukaan

Rev

Rev 26374 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26374 Rev 28109
Line 1... Line 1...
1
<style>
1
<style>
2
	.table-striped > tbody > tr:nth-child(odd) > td{
2
.table-striped>tbody>tr:nth-child(odd)>td {
3
  background: white;
3
	background: white;
4
  background-color: white;
4
	background-color: white;
5
}
5
}
-
 
6
 
6
.table-striped > tbody > tr:nth-child(even) > td{
7
.table-striped>tbody>tr:nth-child(even)>td {
7
  background: white;
8
	background: white;
8
  background-color:white;
9
	background-color: white;
9
}
10
}
-
 
11
 
10
.table-striped > tbody > tr:hover > td,
12
.table-striped>tbody>tr:hover>td, .table-striped>tbody>tr:hover {
11
	.table-striped > tbody > tr:hover {
-
 
12
	  background-color: #e98c8f;
13
	background-color: #e98c8f;
13
	  color:white;
14
	color: white;
14
	}
15
}
-
 
16
 
15
	.btn:hover{
17
.btn:hover {
16
  	color: grey;
18
	color: grey;
17
  	text-decoration: none;
19
	text-decoration: none;
18
	}
20
}
-
 
21
 
19
	.btn-primary:hover{
22
.btn-primary:hover {
20
  	color: grey;
23
	color: grey;
21
  	text-decoration: none;
24
	text-decoration: none;
22
	}
25
}
-
 
26
 
23
	.add-to-bag{
27
.add-to-bag {
24
		cursor:pointer;
28
	cursor: pointer;
25
	}
29
}
-
 
30
 
26
	modal-dialog.modal-lg{
31
modal-dialog.modal-lg {
27
		left:10%;
32
	left: 10%;
28
		right:auto;
33
	right: auto;
29
		width:80%;
34
	width: 80%;
30
	}
35
}
-
 
36
 
31
	.modal-content{
37
.modal-content {
32
		background : white;
38
	background: white;
33
	}
39
}
-
 
40
 
34
	.modelHeaderCustom{
41
.modelHeaderCustom {
35
		font-size:14px;
42
	font-size: 14px;
36
		font-weight:bold;
43
	font-weight: bold;
37
	}
44
}
-
 
45
 
38
	hr{
46
hr {
39
		background-color:#007aff;
47
	background-color: #007aff;
40
		border:none;
48
	border: none;
41
		height:1px;
49
	height: 1px;
42
		background:#007aff;
50
	background: #007aff;
43
	}
51
}
44
	tr.selected{background-color:#B0BED9}
-
 
45
 
52
 
-
 
53
tr.selected {
-
 
54
	background-color: #B0BED9
-
 
55
}
46
</style>
56
</style>
47
 
57
 
48
<script>
58
<script>
49
 $(".cancel-order-submit").click(function(){
59
	$(".cancel-order-submit").click(function() {
50
        $("#cancelOrder").modal({backdrop: false});
60
		$("#cancelOrder").modal({
51
        
61
			backdrop : false
52
    });
62
		});
-
 
63
 
53
    
64
	});
-
 
65
 
54
 $(".notify-submit").click(function(){
66
	$(".notify-submit").click(function() {
55
        $("#notifyOrder").modal({backdrop: false});
67
		$("#notifyOrder").modal({
-
 
68
			backdrop : false
56
        
69
		});
-
 
70
 
57
    });
71
	});
58
</script>
72
</script>
59
<section class="wrapper">
73
<section class="wrapper">
60
	<div class="row">
74
	<div class="row">
61
		<div class="col-lg-12">
75
		<div class="col-lg-12">
-
 
76
			<h3 class="page-header">
62
			<h3 class="page-header"><i class="icon_genius"></i>REVIEW ORDER</h3>
77
				<i class="icon_genius"></i>REVIEW ORDER
-
 
78
			</h3>
63
			<ol class="breadcrumb">
79
			<ol class="breadcrumb">
-
 
80
				<li><i class="fa fa-home"></i><a
64
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
81
					href="${rc.contextPath}/dashboard">Home</a></li>
65
				<li><i class="icon_genius"></i>Review Order</li>
82
				<li><i class="icon_genius"></i>Review Order</li>
66
			</ol>
83
			</ol>
67
		</div>
84
		</div>
68
	</div>
85
	</div>
69
	
86
 
70
		
87
	<div class="row">
71
 <div class="row">
88
 
72
	<h4 class="modelHeaderCustom" style="font-size:22px;">Pending Payment Order</h4>
89
 
73
	    		<div class="col-lg-12" id="catalog-container">
90
		<div class="col-lg-12" id="catalog-container">
74
	    			<table class="table table-border table-condensed table-bordered" id="pending-payment-order-table">
91
			<table class="table table-border table-condensed table-bordered"
75
		    			<thead>
92
				id="pending-order-table">
76
				            <tr>
93
 
77
								<th>Item Id</th>
94
				<thead>
78
	    						<th>OrderId</th>
95
					<tr>
79
	    						<th>Description</th>
96
 
80
	    						<th>Transaction Id</th>
97
						<th>Item Id</th>
81
	    						<th>Customer Name </th>
98
						<th>OrderId</th>
82
	    						<th>Mobile</th>
99
						<th>Description</th>
83
	    						<th>Amount</th>
100
						<th>Notify Status</th>
84
	    						<th>Quantity</th>
101
						<th>Notify Cancel Status</th>
85
	    						<th>Created Timestamp</th>
102
						<th>Transactino Id</th>
86
	    						
103
						<th>Customer Name</th>
87
	    					</tr>
104
						<th>Mobile</th>
88
	    						
105
						<th>Qty</th>
89
				        </thead>
106
						<th>City</th>
90
	    				<tbody>
107
						<th>State</th>
91
	    					
108
						<th>Store Code</th>
92
	    				#if(!$pendingPaymentorder.isEmpty())
109
						<th>Created</th>
93
		    					 #foreach($pendingorderDetail in $pendingPaymentorder )
110
						<th>Cancel Order</th>
94
		    					 #if(!($pendingorderDetail.getRefundTimestamp()) && $pendingorderDetail.getWalletAmount()>0)
111
						<th>Notify</th>
95
		    					 	<tr>
112
						<th>Notify</th>
96
		    					 		
113
 
97
	    							    <td>$pendingorderDetail.getLineItem().getItemId()</td>
114
					</tr>
98
		    					       	<td>$pendingorderDetail.getId()</td>
115
 
99
		    					 		<td>$pendingorderDetail.getLineItem().getItem().getItemDescription()</td>
116
				</thead>
100
		    					 		<td>$pendingorderDetail.getTransactionId()</td>
117
				<tbody>
101
		    					 		<td>$pendingorderDetail.getRetailerName()</td>
118
 
102
                                        <td>$pendingorderDetail.getRetailerMobileNumber()</td>		
119
					#if(!$inProcessorder.isEmpty()) #foreach($orderDetail in
103
                                        <td>$pendingorderDetail.getTotalAmount()</td>
120
					$inProcessorder )
104
                                        <td>$pendingorderDetail.getLineItem().getQuantity()</td>	
121
					<tr>
105
                                        <td>$pendingorderDetail.getCreateTimestamp().format($dateTimeFormatter)</td>
122
 
106
                                    
123
						<td>$orderDetail.getLineItem().getItemId()</td>
107
                                       
124
						<td>$orderDetail.getId()</td>
108
                                        				 
125
						<td>$orderDetail.getLineItem().getItem().getItemDescription()</td>
109
	    					</tr>
126
						#if($latestNotifyOrders.get($orderDetail.getId()))
110
	    					 #end
127
						<td>
111
	    					#end
128
							<button type="button" class="btn btn-link mk_button">$latestNotifyOrders.get($orderDetail.getId()).get().getStatus()</button>
112
	    					#end
129
						</td> #else
113
	    				</tbody>
130
						<td></td> #end #if($notifyCancelOrders.get($orderDetail.getId()))
114
	    			</table>
131
						<td>
115
	    		</div>
132
							<button type="button" class="btn btn-link mk_button">notified</button>
116
	    		</div>
133
						</td> #else
117
	    		
134
						<td></td> #end
118
	
135
 
119
	<div class = "row">
136
						<td>$orderDetail.getTransactionId()</td>
120
	<h4 class="modelHeaderCustom" style="font-size:22px;">In Process Order</h4>
137
						<td>$orderDetail.getRetailerName()</td>
121
	
138
						<td>$orderDetail.getRetailerMobileNumber()</td>
122
	 
139
						<td>$orderDetail.getLineItem().getQuantity()</td>
123
	    		<div class="col-lg-12" id="catalog-container">
140
						<td>$orderDetail.getRetailerCity()</td>
124
	    			<table class="table table-border table-condensed table-bordered" id="pending-order-table">
141
						<td>$orderDetail.getRetailerState()</td>
125
		    		
142
						<td>$storeIdAndFofoIdMap.get($orderDetail.getRetailerId())</td>
126
		    			<thead>
143
						<td>$orderDetail.getCreateTimestamp().format($dateTimeFormatter)</td>
127
				            <tr>
144
						<td><button class="btn btn-primary cancellation"
128
				               
145
								data-orderid="$orderDetail.getId()"
129
								<th>Item Id</th>
146
								data-itemid="$orderDetail.getLineItem().getItem().getId()"
130
	    						<th>OrderId</th>
147
								data-toggle="modal" data-target="#cancelOrder" type="button">Cancel</button>
131
	    						<th>Description</th>
148
						</td>
132
	    						<th>Notify Status</th>
149
 
133
	    						<th>Notify Cancel Status</th>
150
						<td><button class="btn btn-primary notify"
134
	    						<th>Transactino Id</th>
151
								onclick="getItemColor($orderDetail.getLineItem().getItem().getCatalogItemId(),$orderDetail.getLineItem().getItem().getId())"
135
	    						<th>Customer Name </th>
152
								data-toggle="modal" data-target="#notifyOrder" type="button">Notify
136
	    						<th>Mobile</th>
153
								Color</button>
137
	    						<th>Qty</th>
154
						<td><button class="btn btn-primary notifyCancel"
138
	    						<th>City</th>
155
								onclick="getItems($orderDetail.getLineItem().getItem().getCatalogItemId(),$orderDetail.getId())"
139
	    						<th>State</th>
156
								data-toggle="modal" data-target="#notifyCancelOrder"
140
	    						<th>Store Code</th>
157
								type="button">Notify Cancel</button></td>
141
	    						<th>Created</th>
158
 
142
	    						<th>Cancel Order</th>
159
 
143
	    						<th>Notify</th>
160
					</tr>
144
	    						<th>Notify</th>
161
					#end #end
145
	    						
162
				</tbody>
146
	    					</tr>	
163
			</table>
147
	    						
164
		</div>
148
				        </thead>
165
	</div>
149
	    				<tbody>
166
 
150
	    					
167
 
151
	    				#if(!$inProcessorder.isEmpty())
168
 
152
		    					 #foreach($orderDetail in $inProcessorder )
-
 
153
		    					 	<tr>
-
 
154
		    					 	   
-
 
155
		    					       	<td>$orderDetail.getLineItem().getItemId()</td>
-
 
156
		    					       	<td>$orderDetail.getId()</td>
-
 
157
		    					 		<td>$orderDetail.getLineItem().getItem().getItemDescription()</td>
-
 
158
		    					 		#if($latestNotifyOrders.get($orderDetail.getId()))
-
 
159
			    					    <td> <button type="button" class="btn btn-link mk_button">$latestNotifyOrders.get($orderDetail.getId()).get().getStatus()</button></td>
-
 
160
			    					    #else
-
 
161
			    					    <td> </td>
-
 
162
			    					    #end
-
 
163
			    					    #if($notifyCancelOrders.get($orderDetail.getId()))
-
 
164
			    					    <td> <button type="button" class="btn btn-link mk_button">notified</button></td>
-
 
165
			    					    #else
-
 
166
			    					    <td> </td>
-
 
167
			    					    #end
-
 
168
			    					    
-
 
169
			    					    <td>$orderDetail.getTransactionId()</td>
-
 
170
		    					 		<td>$orderDetail.getRetailerName()</td>
-
 
171
                                        <td>$orderDetail.getRetailerMobileNumber()</td>
-
 
172
                                        <td>$orderDetail.getLineItem().getQuantity()</td>	
-
 
173
                                        <td>$orderDetail.getRetailerCity()</td>
-
 
174
                                        <td>$orderDetail.getRetailerState()</td>
-
 
175
                                        <td>$storeIdAndFofoIdMap.get($orderDetail.getRetailerId())</td>
-
 
176
                                        <td>$orderDetail.getCreateTimestamp().format($dateTimeFormatter)</td>
-
 
177
                                        <td><button class="btn btn-primary cancellation"  data-orderid="$orderDetail.getId()" data-itemid="$orderDetail.getLineItem().getItem().getId()"  data-toggle="modal" data-target="#cancelOrder" type="button" >Cancel</button>
-
 
178
								     </td>
-
 
179
								     
-
 
180
								     <td><button class="btn btn-primary notify"  onclick="getItemColor($orderDetail.getLineItem().getItem().getCatalogItemId(),$orderDetail.getLineItem().getItem().getId())" data-toggle="modal" data-target="#notifyOrder" type="button" >Notify Color</button>
-
 
181
								       <td><button class="btn btn-primary notifyCancel"  onclick="getItems($orderDetail.getLineItem().getItem().getCatalogItemId(),$orderDetail.getId())" data-toggle="modal" data-target="#notifyCancelOrder" type="button" >Notify Cancel</button>
-
 
182
								     </td>
-
 
183
                                     		    					        
-
 
184
	    							    					 
-
 
185
	    					</tr>
-
 
186
	    					#end
-
 
187
	    					#end
-
 
188
	    				</tbody>
-
 
189
	    			</table>
-
 
190
	    		</div>
-
 
191
	    		</div>
-
 
192
	    		
-
 
193
	    		
-
 
194
	  
-
 
195
	<div class="notify-container">
169
	<div class="notify-container">
196
   <div  class="modal  text-center" id="notifyOrder">
170
		<div class="modal  text-center" id="notifyOrder">
197
	<div class="modal-dialog">
171
			<div class="modal-dialog">
-
 
172
				<div class="modal-content"
198
    <div class="modal-content" style="width:900px;height:600px;overflow:auto;">
173
					style="width: 900px; height: 600px; overflow: auto;"></div>
199
    </div>
-
 
200
    </div>
174
			</div>
201
    </div>
175
		</div>
202
    </div>
176
	</div>
203
    
177
 
204
    	  
178
 
205
	<div class="cancel-order-container">
179
	<div class="cancel-order-container">
206
    <div  class="modal  text-center" id="cancelOrder">
180
		<div class="modal  text-center" id="cancelOrder">
207
	<div class="modal-dialog">
181
			<div class="modal-dialog">
-
 
182
				<div class="modal-content"
208
    <div class="modal-content" style="width:900px;height:600px;overflow:auto;">
183
					style="width: 900px; height: 600px; overflow: auto;"></div>
209
    </div>
-
 
210
    </div>
184
			</div>
211
    </div>
185
		</div>
212
    </div>
186
	</div>
213
    
187
 
214
    <div class="notify-cancel-order-container">
188
	<div class="notify-cancel-order-container">
215
    <div  class="modal  text-center" id="notifyCancelOrder">
189
		<div class="modal  text-center" id="notifyCancelOrder">
216
	<div class="modal-dialog">
190
			<div class="modal-dialog">
-
 
191
				<div class="modal-content"
217
    <div class="modal-content" style="width:900px;height:600px;overflow:auto;">
192
					style="width: 900px; height: 600px; overflow: auto;"></div>
218
    </div>
193
			</div>
219
    </div>
194
		</div>
220
    </div>
195
	</div>
221
    </div>
196
 
222
 
197
 
223
 
198
 
224
		
-
 
225
</section>
199
</section>
226
	    		
200
 
227
 <script type="text/javascript">
201
<script type="text/javascript">
228
 var editor;
202
	var editor;
229
 	
-
 
230
 
203
 
231
 $(document).ready(function() {
204
	$(document).ready(function() {
232
 	
-
 
233
 
205
 
234
  
-
 
235
 
-
 
236
 var dtable =  $('#pending-order-table').DataTable(
206
		var dtable = $('#pending-order-table').DataTable({
237
  {
-
 
238
 
207
 
239
    "bPaginate": true,
208
			"bPaginate" : true,
240
    "bLengthChange": true,
209
			"bLengthChange" : true,
241
    "bFilter": true,
210
			"bFilter" : true,
242
    "bInfo": false,
211
			"bInfo" : false,
243
    "bAutoWidth": false ,
212
			"bAutoWidth" : false,
244
     
-
 
245
    }
-
 
246
     
-
 
247
  );
-
 
248
 
213
 
249
   $('#pending-payment-order-table').DataTable(
-
 
250
  {
214
		}
251
    "bPaginate": true,
-
 
252
    "bLengthChange": true,
-
 
253
    "bFilter": true,
-
 
254
    "bInfo": false,
-
 
255
    "bAutoWidth": false 
-
 
256
    }
215
 
257
  );
216
		);
258
} );
217
	});
259
</script>
218
</script>
260
	    		
-
 
261
	    		
-
 
262
	    		
-
 
263
219
 
-
 
220
 
-
 
221