12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <table id="example" class="table display table-striped table-bordered table-hover table-sm compact" cellspacing="0" width="100%">
- <thead>
- <tr>
- <th>Pump Number</th>
- <th>Fuel Grade</th>
- <th>Shift Opening Date</th>
- <th>Shift Closing Date</th>
- <th>Pump Opening Volume</th>
- <th>Pump Closing Volume</th>
- <th>Sale Volume (Closing Volume - Opening Volume)</th>
- <th>Unit Price</th>
- <th>Money (Sale Volume x Unit Price)</th>
- </tr>
- </thead>
- <!-- <tfoot>
- <tr>
- <th>Pump Number</th>
- <th>Fuel Grade</th>
- <th>Shift Opening Date</th>
- <th>Pump Opening Volume</th>
- <th>Shift Closing</th>
- <th>Pump Closing Volume</th>
- <th>Sale Volume (Closing Volume - Opening Volume)</th>
- <th>Unit Price</th>
- <th>Money (Sale Volume x Unit Price)</th>
- </tr>
- </tfoot> -->
- </table>
- <script type="text/javascript">
- $(document).ready(function() {
- var table = $('#example').DataTable( {
- "processing": true,
- "serverSide": false,
-
-
- "responsive": true,
- "pagingType": "full",
- "ajax": "api/v1/ShiftPumpReport/shiftPumpData.txt",
- "dom": 'Bfrtip',
-
-
- "buttons": [
-
-
-
-
-
-
-
-
-
- { "extend": 'print', "text":'Print',"className": 'btn btn-primary' }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ],
- "select": true,
- "columns": [
- { "data": "Fp_Id" },
- { "data": "Grade_Name" },
- { "data": "Open_Date"},
- { "data": "Close_Date" },
- { "data": "Open_Volume" },
- { "data": "Close_Volume" },
- { "data": "Sale_Total" },
- { "data": "Price" },
- { "data": "Money_Total" },
- ],
- "order": [[1, 'asc']],
-
- } );
- } );
- </script>
|