Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. @{
  2. var cmrData = ((ShipmentController)this.ViewContext.Controller).GetNoCmrs(new List<int>() { 1 });
  3. var invoiceData = ((ShipmentController)this.ViewContext.Controller).GetReadyForInvoice(new List<int>() { 1 });
  4. var filterData = ((ShipmentController)this.ViewContext.Controller).GetNoCmrs(new List<int>() { 1 });
  5. }
  6.  
  7. <table class="table table-hover" id="shipmentOverview">
  8. <tr>
  9. <th>Id</th>
  10. <th>StartDateTime</th>
  11. <th>EndDateTime</th>
  12. </tr>
  13. @foreach (var shipment in filterData)
  14. {
  15. <tr>
  16. <td>@shipment.ShipmentId</td>
  17. <td>@shipment.StartDateTime</td>
  18. <td>@shipment.EndDateTime</td>
  19. </tr>
  20. }
  21. </table>
  22.  
  23. <div id="shipmentDetailFilter">
  24. Shipment Details Filter Options:
  25. <select class="form-control" onchange="loadShipmentsByCondition()" id="conditionSelect">
  26. <option disabled value="" selected="selected">Please select a filter</option>
  27. <option>Ready to be invoiced</option>
  28. <option>CMR not received</option>
  29. </select>
  30. </div>
  31.  
  32. <script>
  33. var x;
  34. function loadShipmentsByCondition() {
  35. x = document.getElementById("conditionSelect").value;
  36. if (x === "CMR not received") {
  37. console.log("CMR");
  38. } else if(x === "Ready to be invoiced") {
  39. console.log("INVOICE");
  40. }
  41. }
  42. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement