Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @{
- ViewBag.Title = "Ritasi";
- }
- <div class="row">
- <div class="col-xs-12">
- <div id="" style="overflow:scroll; height:630px;">
- <table id="tableRitasiMain" class="table table-striped table-bordered table-hover">
- <thead>
- <tr class="center">
- <th>IDS</th>
- <th>No</th>
- <th>FROM</th>
- <th>TO</th>
- <th>TRUCK</th>
- <th>OPR. TRUCK</th>
- <th>TF. TRUCK</th>
- <th>EXCAVATOR</th>
- <th>OPR. EXCA</th>
- <th>TF. EXCA</th>
- <th>Material</th>
- <th>Block ID</th>
- <th>Polygon ID</th>
- <th>Time Start</th>
- <th>Time Load Start</th>
- <th>Time Load End</th>
- <th>Time Dump Start</th>
- <th>Time Dump End</th>
- <th>Time Empty</th>
- <th>Log Date</th>
- <th>Log By</th>
- </tr>
- </thead>
- <tbody>
- </tbody>
- </table>
- </div>
- <div class="space-6"></div>
- </div>
- </div>
- <script type="text/javascript">
- var dataTablesList = null;
- $(document).ready(function () {
- $('.statusNav').removeClass('active'); $('#navRitasi').closest('li').addClass('active');
- dataTablesList = $('#tableRitasiMain').css('width', '').DataTable({
- "processing": true, // for show progress bar
- "serverSide": true, // for process server side
- "filter": false, // this is for disable filter (search box)
- "orderMulti": false, // for disable multiple column at once
- "pageLength": 10,
- "pagingType": "full_numbers",
- "colReorder": true,
- "drawCallback": function (settings) {
- $('#tableRitasiMain_paginate').addClass('text-right')
- $('#tableRitasiMain_paginate').removeClass('dataTables_paginate');
- var widthTable = $('#tableRitasiMain').css('width');
- $('#tableRitasiMain_wrapper').css('width', widthTable);
- },
- "ajax": {
- "url": '@Url.Action("getListRitasiRecord", "Ritasi")',
- "type": "POST",
- "contentType": "application/json",
- 'data': function (d) {
- // var equ_accpac = $('#src_equipment').val();
- // var operator = $('#src_employee').val();
- // var shift = $('#src_shift').val();
- // var start_date = $('#src_start_date').val();
- // var end_date = $('#src_end_date').val();
- var sortby = d.columns[d.order[0].column].data;
- var data = {
- start: d.start,
- length: d.length,
- sortby: sortby,
- sortdir: d.order[0].dir
- // equ_accpac: equ_accpac,
- // operators: operator,
- // shift: shift,
- // start_date: start_date,
- // end_date: end_date
- }
- return JSON.stringify(data);
- }
- },
- "columnDefs":
- [{
- "targets": [0],
- "visible": false,
- "searchable": false,
- "orderable": false
- },
- {
- "targets": [1],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center",
- "modifier" : true
- },
- {
- "targets": [2],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "inputEdit",
- render: function (data, type, row) {
- return '<input type="text" id="Editbox1" class="myedit" " name="number" value="-1" spellcheck="false">'
- }
- },
- {
- "targets": [3],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [4],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [5],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [6],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [7],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [8],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [9],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [10],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [11],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [12],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [13],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [14],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [15],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [16],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [17],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [18],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- },
- {
- "targets": [19],
- "visible": true,
- "searchable": false,
- "orderable": true,
- "className": "center"
- },
- {
- "targets": [20],
- "visible": true,
- "searchable": false,
- "orderable": false,
- "className": "center"
- }],
- "columns": [
- { "data": "IDS", "name": "IDS", "autoWidth": true },
- { "data": "rownum", "name": "rownum", "title": "No", "autoWidth": true },
- { "data": "loc_name_from", "title": "FROM", "name": "loc_name_from", "search": "", "value": "test", "autoWidth": false },
- { "data": "loc_name_to", "title": "TO", "name": "loc_name_to", "autoWidth": true },
- { "data": "truck_id", "title": "TRUCK", "name": "truck_id", "autoWidth": true },
- { "data": "operator_name", "title": "OPR TRUCK", "name": "operator_name", "autoWidth": true },
- { "data": "tf_truck", "title": "TF TRUCK", "name": "tf_truck", "autoWidth": true },
- { "data": "escavator_id", "title": "EXCAVATOR", "name": "escavator_id", "autoWidth": true },
- { "data": "operator_escavator_name", "title": "OPR EXCA", "name": "operator_escavator_name", "autoWidth": true },
- { "data": "tf_exca", "title": "TF EXCA", "name": "tf_exca", "autoWidth": true },
- { "data": "material_typ_name", "title": "Material", "name": "material_typ_name", "autoWidth": true },
- { "data": "block_id", "title": "Block ID", "name": "block_id", "autoWidth": true },
- { "data": "polygon_id", "title": "Polygon ID", "name": "polygon_id", "autoWidth": true },
- { "data": "time_start", "title": "Time Start", "name": "time_start", "autoWidth": true },
- { "data": "time_load_start", "title": "Time Load Start", "name": "time_load_start", "autoWidth": true },
- { "data": "time_load_end", "title": "Time Load End", "name": "time_load_end", "autoWidth": true },
- { "data": "time_dump_start", "title": "Time Dump Start", "name": "time_dump_start", "autoWidth": true },
- { "data": "time_dump_end", "title": "Time Dump End", "name": "time_dump_end", "autoWidth": true },
- { "data": "time_empty", "title": "Time Empty", "name": "time_empty", "autoWidth": true },
- { "data": "log_dt_show", "title": "Log Date", "name": "log_dt_show", "autoWidth": true },
- { "data": "log_by_name", "title": "Log By", "name": "log_by_name", "autoWidth": true }
- ]
- });
- })
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement