orderstatus

This commit is contained in:
Syed Amir
2017-08-07 14:19:57 +08:00
parent 460d1a8ee1
commit d4f881eb91
3 changed files with 52 additions and 38 deletions
+14
View File
@@ -326,6 +326,15 @@ License: You must have a valid license purchased only from themeforest(the above
<li><input onchange="filterme()" name="status" value="ETD" type="checkbox"/>&nbsp;ETD</li>
</ul>
</th>
<th width="1%"> <a href="javascript:;" class="tooltips" data-placement="bottom" data-original-title="Purchase Order Number"> Delivery Status </a> <br/>
<button type="button" style="text-decoration: none" class="btn btn-link btn-sm dropdown-toggle" data-toggle="dropdown">
<span class="fa fa-filter"></span></button>
<ul class="dropdown-menu">
<li><input onchange="filterme()" name="delivery_status" value="Delivery Request Sent" type="checkbox"/>&nbsp;Delivery Request Sent</li>
<li><input onchange="filterme()" name="delivery_status" value="Delivery Request Accepted" type="checkbox"/>&nbsp;Delivery Request Accepted</li>
<li><input onchange="filterme()" name="delivery_status" value="Delivery Request Refused" type="checkbox"/>&nbsp;Delivery Request Refused</li>
</ul>
</th>
<th width="1%"> Order<br/> Type <br/>
<button type="button" style="text-decoration: none" class="btn btn-link btn-sm dropdown-toggle" data-toggle="dropdown">
<span class="fa fa-filter"></span></button>
@@ -424,6 +433,7 @@ License: You must have a valid license purchased only from themeforest(the above
<td> <center>1</center> </td>
<td> 03-07-2017 </td>
<td> <a href="trackorder.html">Warehouse Received <i class="fa fa-pencil" aria-hidden="true"></i></a> </td>
<td> Delivery Request Sent </td>
<td> PO & SO </td>
<td> <a href="chat.html"> 00005 <span style="margin-bottom: 20px;" class="badge badge-danger">5</span></a> </td>
<td> 123456 </td>
@@ -441,6 +451,7 @@ License: You must have a valid license purchased only from themeforest(the above
<td> <center>2</center> </td>
<td> 02-07-2017 </td>
<td> <a href="trackorder.html">Warehouse Received <i class="fa fa-pencil" aria-hidden="true"></i></a> </td>
<td> Delivery Request Sent </td>
<td> PO & SO </td>
<td> <a href="chat.html">00004 <span style="margin-bottom: 20px;" class="badge badge-danger">10</span></a> </td>
<td> 123456 </td>
@@ -458,6 +469,7 @@ License: You must have a valid license purchased only from themeforest(the above
<td> <center>3</center> </td>
<td> 01-07-2017 </td>
<td> <a href="trackorder.html">Container loading <i class="fa fa-pencil" aria-hidden="true"></i></a> </td>
<td> Delivery Request Sent </td>
<td> PO & SO </td>
<td> <a href="chat.html">00003</a> </td>
<td> 123456 </td>
@@ -475,6 +487,7 @@ License: You must have a valid license purchased only from themeforest(the above
<td> <center>4</center> </td>
<td> 30-06-2017 </td>
<td> <a href="trackorder.html">ETD <i class="fa fa-pencil" aria-hidden="true"></i></a> </td>
<td> Delivery Request Accepted </td>
<td> PO & SO </td>
<td> <a href="chat.html">00002 <span style="margin-bottom: 20px;" class="badge badge-danger">1</span></a> </td>
<td> 123456 </td>
@@ -492,6 +505,7 @@ License: You must have a valid license purchased only from themeforest(the above
<td> <center>5</center> </td>
<td> 29-06-2017 </td>
<td> <a href="trackorder.html">ETD <i class="fa fa-pencil" aria-hidden="true"></i></a> </td>
<td> Delivery Request Completed </td>
<td> PO </td>
<td> <a href="chat.html">00001</a> </td>
<td> 123456 </td>
+6 -6
View File
@@ -289,7 +289,7 @@ License: You must have a valid license purchased only from themeforest(the above
<a href="#tab_1_1" data-toggle="tab">Company Information</a>
</li>
<li>
<a href="#tab_1_2" data-toggle="tab">Warehouse Information</a>
<a href="#tab_1_2" data-toggle="tab">Delivery Information</a>
</li>
<li>
<a href="#tab_1_3" data-toggle="tab">Staff Information</a>
@@ -413,7 +413,7 @@ License: You must have a valid license purchased only from themeforest(the above
</thead>
<tbody>
<tr>
<td class="center editInPlace"> WH A</td>
<td class="center editInPlace"> Address A</td>
<td class="center editInPlace"class="center editInPlace"> 70 McCullough Dr, New Castle, 19720 Delaware, United State of America </td>
<td class="center editInPlace"class="center editInPlace"> Delaware </td>
<td class="center editInPlace"class="center editInPlace"> USA </td>
@@ -421,7 +421,7 @@ License: You must have a valid license purchased only from themeforest(the above
<td style="vertical-align:middle;"> <input type="checkbox" checked class="make-switch" data-size="small" ><br><center><div class="btn-group"><a class="delete" href="javascript:;"> <i class="fa fa-times-circle fa-3" style="color:#c50b0b;"></i> </a></div></center></td>
</tr>
<tr>
<td class="center editInPlace"> WH B</td>
<td class="center editInPlace"> Address B</td>
<td class="center editInPlace"> 96-100 Beaconsfield St., Silverwater, Sydney, 2128 New South Wales, Australia </td>
<td class="center editInPlace"> New South Wales </td>
<td class="center editInPlace"> Australia </td>
@@ -429,7 +429,7 @@ License: You must have a valid license purchased only from themeforest(the above
<td style="vertical-align:middle;"> <input type="checkbox" checked class="make-switch" data-size="small" ><br><center><div class="btn-group"><a class="delete" href="javascript:;"> <i class="fa fa-times-circle fa-3" style="color:#c50b0b;"></i> </a></div></center></td>
</tr>
<tr>
<td class="center editInPlace"> WH C</td>
<td class="center editInPlace"> Address C</td>
<td class="center editInPlace"> FACTORY UNIT A ON 9/F, YOUNG YA INDUSTRIAL BUILDING, NOS. 381-389, SHA TSUI ROAD, TSUEN WAN, NEW TERRITORIES, HONG KONG </td>
<td class="center editInPlace"> TSUEN WAN </td>
<td class="center editInPlace"> HONG KONG </td>
@@ -437,7 +437,7 @@ License: You must have a valid license purchased only from themeforest(the above
<td style="vertical-align:middle;"> <input type="checkbox" checked class="make-switch" data-size="small" ><br><center><div class="btn-group"><a class="delete" href="javascript:;"> <i class="fa fa-times-circle fa-3" style="color:#c50b0b;"></i> </a></div></center></td>
</tr>
<tr>
<td class="center editInPlace"> WH D</td>
<td class="center editInPlace"> Address D</td>
<td class="center editInPlace"> Room I, 9F No.288 South ZhongShan Rd, 210005 Nanjing, JiangSu, China </td>
<td class="center editInPlace"> JiangSu </td>
<td class="center editInPlace"> China </td>
@@ -445,7 +445,7 @@ License: You must have a valid license purchased only from themeforest(the above
<td style="vertical-align:middle;"> <input type="checkbox" class="make-switch" data-size="small" ><br><center><div class="btn-group"><a class="delete" href="javascript:;"> <i class="fa fa-times-circle fa-3" style="color:#c50b0b;"></i> </a></div></center></td>
</tr>
<tr>
<td class="center editInPlace"> WH E</td>
<td class="center editInPlace"> Address E</td>
<td class="center editInPlace"> 70 McCullough Dr, New Castle, 19720 Delaware, United State of America </td>
<td class="center editInPlace"> Delaware </td>
<td class="center editInPlace"> USA </td>
@@ -99,53 +99,60 @@ $(function() {
})
function filterme() {
//build a regex filter string with an or(|) condition
var types = $('input:checkbox[name="date"]:checked').map(function() {
var types = $('input:checkbox[name="status"]:checked').map(function() {
return '^' + this.value + '\$';
}).get().join('|');
//filter in column 0, with an regex, no smart filtering, no inputbox,not case sensitive
otable.fnFilter(types, 1, true, false, false, false);
var types = $('input:checkbox[name="type"]:checked').map(function() {
otable.fnFilter(types, 2, true, false, false, false);
var types = $('input:checkbox[name="delivery_status"]:checked').map(function() {
return '^' + this.value + '\$';
}).get().join('|');
//filter in column 0, with an regex, no smart filtering, no inputbox,not case sensitive
otable.fnFilter(types, 3, true, false, false, false);
var types = $('input:checkbox[name="type"]:checked').map(function() {
return '^' + this.value + '\$';
}).get().join('|');
//filter in column 0, with an regex, no smart filtering, no inputbox,not case sensitive
otable.fnFilter(types, 4, true, false, false, false);
//build a filter string with an or(|) condition
var frees = $('input:checkbox[name="orderno"]:checked').map(function() {
return this.value;
}).get().join('|');
//now filter in column 2, with no regex, no smart filtering, no inputbox,not case sensitive
otable.fnFilter(frees, 4, true, false, false, false);
//build a filter string with an or(|) condition
var frees = $('input:checkbox[name="suppliercode"]:checked').map(function() {
return this.value;
}).get().join('|');
//now filter in column 2, with no regex, no smart filtering, no inputbox,not case sensitive
otable.fnFilter(frees, 5, true, false, false, false);
//build a filter string with an or(|) condition
var frees = $('input:checkbox[name="custcode"]:checked').map(function() {
return this.value;
}).get().join('|');
//now filter in column 2, with no regex, no smart filtering, no inputbox,not case sensitive
otable.fnFilter(frees, 6, true, false, false, false);
//build a filter string with an or(|) condition
var frees = $('input:checkbox[name="pvalue"]:checked').map(function() {
return this.value;
}).get().join('|');
//now filter in column 2, with no regex, no smart filtering, no inputbox,not case sensitive
otable.fnFilter(frees, 7, true, false, false, false);
//build a filter string with an or(|) condition
var frees = $('input:checkbox[name="shipno"]:checked').map(function() {
return this.value;
}).get().join('|');
//now filter in column 2, with no regex, no smart filtering, no inputbox,not case sensitive
otable.fnFilter(frees, 6, true, false, false, false);
//build a filter string with an or(|) condition
var frees = $('input:checkbox[name="suppliercode"]:checked').map(function() {
return this.value;
}).get().join('|');
//now filter in column 2, with no regex, no smart filtering, no inputbox,not case sensitive
otable.fnFilter(frees, 7, true, false, false, false);
//build a filter string with an or(|) condition
var frees = $('input:checkbox[name="custcode"]:checked').map(function() {
return this.value;
}).get().join('|');
//now filter in column 2, with no regex, no smart filtering, no inputbox,not case sensitive
otable.fnFilter(frees, 8, true, false, false, false);
//build a filter string with an or(|) condition
var frees = $('input:checkbox[name="pvalue"]:checked').map(function() {
return this.value;
}).get().join('|');
//now filter in column 2, with no regex, no smart filtering, no inputbox,not case sensitive
otable.fnFilter(frees, 9, true, false, false, false);
//build a filter string with an or(|) condition
var frees = $('input:checkbox[name="eta"]:checked').map(function() {
return this.value;
@@ -153,13 +160,6 @@ function filterme() {
//now filter in column 2, with no regex, no smart filtering, no inputbox,not case sensitive
otable.fnFilter(frees, 10, true, false, false, false);
//build a filter string with an or(|) condition
var frees = $('input:checkbox[name="status"]:checked').map(function() {
return this.value;
}).get().join('|');
//now filter in column 2, with no regex, no smart filtering, no inputbox,not case sensitive
otable.fnFilter(frees, 2, true, false, false, false);
}
$(function() {