Subversion Repositories SmartDukaan

Rev

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

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