Subversion Repositories SmartDukaan

Rev

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

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