Subversion Repositories SmartDukaan

Rev

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

Rev 27046 Rev 28339
Line 1... Line 1...
1
<style>
1
<style>
2
.btn:hover,
-
 
3
.btn:focus {
2
.btn:hover, .btn:focus {
4
  	color: grey;
3
	color: grey;
5
  	text-decoration: none;
4
	text-decoration: none;
6
	}
5
}
7
 
6
 
8
	.modal-dialog.modal-lg{
7
.modal-dialog.modal-lg {
9
		left:10%;
8
	left: 10%;
10
		right:auto;
9
	right: auto;
11
		width:80%;
10
	width: 80%;
12
	}
11
}
-
 
12
 
13
	.modal-content{
13
.modal-content {
14
		background : white;
14
	background: white;
15
	}
15
}
16
	
16
 
17
	.border-highlight{
17
.border-highlight {
18
		border : 3px solid red;
18
	border: 3px solid red;
19
	}
19
}
-
 
20
 
20
	td.highlight{
21
td.highlight {
21
		background-color: yellowgreen !important;
22
	background-color: yellowgreen !important;
22
	}	
23
}
23
</style>
24
</style>
24
 
25
 
25
 
26
 
26
<section class="wrapper">
27
<section class="wrapper">
27
	<div class="row">
28
	<div class="row">
28
		<div class="col-lg-12">
29
		<div class="col-lg-12">
-
 
30
			<h3 class="page-header">
29
			<h3 class="page-header"><i class="icon_document_alt"></i>FOfo Pending Order</h3>
31
				<i class="icon_document_alt"></i>FOfo Pending Order
-
 
32
			</h3>
30
			<ol class="breadcrumb">
33
			<ol class="breadcrumb">
-
 
34
				<li><i class="fa fa-home"></i><a
31
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
35
					href="${rc.contextPath}/dashboard">Home</a></li>
32
				<li><i class="icon_document_alt"></i>Pending Order</li>						  	
36
				<li><i class="icon_document_alt"></i>Pending Order</li>
33
			</ol>
37
			</ol>
34
		</div>
38
		</div>
35
	</div>	
39
	</div>
36
	
40
 
37
	
41
 
38
	
42
 
39
	<div id="pending-order-table">
43
	<div id="pending-order-table">
40
		<div class="row">
44
		<div class="row">
41
	    	<div class="col-lg-6">
45
			<div class="col-lg-12">
-
 
46
 
42
	    		<table class="table table-border table-condensed table-bordered" id="pending-order">
47
				<table class="table table-border table-condensed table-bordered"
-
 
48
					id="pending-order-item">
43
	    		     <thead>
49
					<thead>
44
	    				<tr>
50
						<tr>
45
	    					<th>Id</th>
51
							<th>OrderId</th>
46
	    					<th>First Name</th>
52
							<th>First Name</th>
47
	    					<th>Last Name</th>
53
							<th>Last Name</th>
48
	    					<th>Mobile</th>
54
							<th>Mobile</th>
-
 
55
							<th>Order Status</th> #if($customRetailersMap)
-
 
56
							<th>Partner</th> #end
-
 
57
							<th>Pay Method</th>
-
 
58
							<th>Pay Mode</th>
49
	    					<th>Order Status</th>
59
							<th>Order ItemId</th>
-
 
60
							<th>Item Id</th>
50
	    					#if($customRetailersMap)
61
							<th>item Details</th>
51
	    					<th>Partner</th>
62
							<th>Selling Price</th>
52
	    					#end
63
							<th>Order Item Status</th>
53
	    					<th>Created on </th>
64
							<th>Created on</th>
54
	    					<th>Actions</th>
65
							<th>Actions</th>
55
	    				</tr>
66
						</tr>
56
    				</thead>
67
					</thead>
57
    				<tbody>
68
					<tbody>
58
    					#if(!$pendingOrder.isEmpty())
69
						#if(!$pendingOrder.isEmpty()) #foreach( $request in
59
		    			#foreach( $request in $pendingOrder )
70
						$pendingOrderItem)
60
		    				<tr class="pendingOrder" data="$request.getId()">
71
						<tr class="pendingOrder" data="$request.getItemId()">
-
 
72
							<input type="hidden" id="poItemId" value="$request.getId()" />
-
 
73
							<input type="hidden" id="poId" value="$request.getOrderId()" />
61
		    					<td>$request.getId()</td>
74
							<td>$request.getOrderId()</td>
62
		    					<td>$request.getCustomer().getFirstName()</td>
75
							<td>$request.getPendingOrder().getCustomer().getFirstName()</td>
63
		    					<td>$request.getCustomer().getLastName()</td>
76
							<td>$request.getPendingOrder().getCustomer().getLastName()</td>
64
		    					<td>$request.getCustomer().getMobileNumber()</td>
77
							<td>$request.getPendingOrder().getCustomer().getMobileNumber()</td>
65
		    					<td>$request.getStatus()</td>
78
							<td>$request.getPendingOrder().getStatus()</td>
-
 
79
							#if($customRetailersMap)
66
		    					#if($customRetailersMap.get($request.getFofoId()).getBusinessName())
80
							#if($customRetailersMap.get($request.getPendingOrder().getFofoId()))
67
		    					<td>$customRetailersMap.get($request.getFofoId()).getBusinessName()</td>
81
							<td>$customRetailersMap.get($request.getPendingOrder().getFofoId()).getBusinessName()</td>
68
		    					#else
82
							#else
69
		    					<td> </td>
83
							<td></td> #end #end
-
 
84
							<td>$request.getPendingOrder().getPayMethod()</td>
-
 
85
							#if($request.getPendingOrder().getTotalAmount() ==
-
 
86
							$request.getPendingOrder().getPaidAmount())
-
 
87
							<td>ONLINE</td> #else
70
		    					#end
88
							<td>OFFLINE</td> #end
-
 
89
 
71
		    					
90
							<td>$request.getId()</td>
-
 
91
							<td>$request.getItemId()</td>
-
 
92
							<td>$request.getItemName()</td>
-
 
93
							<td>$request.getSellingPrice()</td>
-
 
94
							<td>$request.getStatus()</td>
72
		    				    <td>$request.getCreateTimestamp().format($dateTimeFormatter)</td>
95
							<td>$request.getCreateTimestamp().format($dateTimeFormatter)</td>
-
 
96
							#if(!$isAdmin)
-
 
97
							#if($inventoryMap.get($request.getItemId()).getAvailability()>0)
73
		    				    <td>
98
							<td>
-
 
99
 
74
		    				    	<button class="btn btn-primary pendingOrderDetail"  data-orderid="$request.getId()"  
100
								<button class="btn btn-primary add-bag-submit"
-
 
101
									data-toggle="modal" data-target="#bagModel" type="button"
75
		    				     		type="button" style="width:100%; border-radius:0px;">View</button>
102
									style="width: 100%; border-radius: 0px;">Add To Bag</button>
76
								     #if($isAdmin)
103
							</td> #else
77
								     	<button class="btn btn-primary pendingOrderCancel"  data-orderid="$request.getId()" type="button" style="width:100%; border-radius:0px;">Cancel</button>
104
							<td style="font-color: red">Out of Stock</td> #end #else
78
								     #end
105
							<td></td> #end
79
								</td>
106
 
80
							 </tr>
107
						</tr>
81
						#end
108
						#end
82
			    		<script type="text/javascript">
109
						<script type="text/javascript">
83
			    			$(document).ready(function() {
110
							$(document).ready(function() {
84
							 	$('#pending-order').dataTable({
111
								$('#pending-order-item').dataTable({
85
								 "bPaginate": true,
112
									"bPaginate" : true,
86
							    "bLengthChange": true,
113
									"bLengthChange" : true,
87
							    "bFilter": true,
114
									"bFilter" : true,
88
							    "bInfo": false,
115
									"bInfo" : false,
89
							    "bAutoWidth": false 
116
									"bAutoWidth" : false
90
								});
117
								});
91
							});
118
							});
92
						</script>	
119
						</script>
93
		    			#else
120
						#else
94
		    				<tr>
121
						<tr>
95
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
122
							<td colspan="12" style="text-align: center;">NO MATCHING
-
 
123
								DATA FOUND FOR CRITERIA</td>
96
		    				</tr>
124
						</tr>
97
	    				#end
125
						#end
98
    				</tbody>
126
					</tbody>
99
    			</table>
127
				</table>
100
    		</div>
128
			</div>
-
 
129
 
-
 
130
 
101
    	
131
 
102
    		<div class="col-lg-6">
132
			<div class="col-lg-6">
103
				<div class="pending-order-container">
133
				<div class="pending-order-container"></div>
104
				</div>
134
			</div>
105
    		</div>
135
		</div>
106
    	</div>
-
 
107
	</div>
136
	</div>
108
</section>
137
</section>
109
    
-
 
110
138
 
-
 
139
 
-
 
140
<div id="bagModel" class="modal" role="dialog">
-
 
141
	<div class="modal-dialog modal-md">
-
 
142
		<!-- Modal content-->
-
 
143
		<div class="modal-content">
-
 
144
			<div class="modal-header">
-
 
145
				<button type="button" class="close" data-dismiss="modal">&times;</button>
-
 
146
				<h4 class="modal-title">Add Item To Bag</h4>
-
 
147
			</div>
-
 
148
			<div class="modal-body" style="min-height: 200px">
-
 
149
				<div id="catalogModalBody">
-
 
150
					<input type="hidden" class="itemId" /> <input type="hidden"
-
 
151
						class="availability" /> <input type="hidden" class="poitemId" />
-
 
152
					<input type="hidden" class="poId" />
-
 
153
					<h4 class="bagModalProductInfo modelHeaderCustom">
-
 
154
						Product Details : <span></span>
-
 
155
					</h4>
-
 
156
					<h4 class="bagModalAvailability modelHeaderCustom">
-
 
157
						Availability : <span></span>
-
 
158
					</h4>
-
 
159
					<h4 class="bagModalEarlyImeis modelHeaderCustom">
-
 
160
						Imeis to bill: <span></span>
-
 
161
					</h4>
-
 
162
					<h4 class="bagModalQuantity modelHeaderCustom">
-
 
163
						Enter Quantity <span> <input type="number" min="1"
-
 
164
							class="form-control quantity"></input>
-
 
165
						</span>
-
 
166
					</h4>
-
 
167
					<hr />
-
 
168
					<span>
-
 
169
						<button type="submit" id="addToBagButton" class="btn btn-primary">Submit!</button>
-
 
170
					</span>
-
 
171
				</div>
-
 
172
			</div>
-
 
173
		</div>
-
 
174
	</div>
-
 
175
</div>
-
 
176