Master module : GWM

This commit is contained in:
Smart 2024-10-23 09:25:25 +05:30
parent b993986afa
commit 719cb24f47
9 changed files with 35 additions and 119 deletions

View File

@ -41,21 +41,23 @@
<!-- Start Content-->
<div class="container-fluid">
<!-- start page title -->
<div>
<div class="row">
<div class="col-12">
<div class="page-title-box page-title-box-alt">
<div class="page-title-right">
<ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript: void(0);">Master Details</a></li>
<li class="breadcrumb-item active">
<h4 class="page-title">Asset Details</h4>
</li>
</ol>
<div class="page-title-box page-title-box-alt">
<div class="page-title-right">
<ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript: void(0);">Master Details</a></li>
<li class="breadcrumb-item active">
<h4 class="page-title">Asset Details</h4>
</li>
</ol>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="card">
@ -73,7 +75,7 @@
</form>
<div class="card-body">
<table class="table dt-responsive nowrap w-100" id="asset_list_table" style="background-color:#fff;">
<table class="table dt-responsive nowrap w-100" id="asset_list_table" >
<thead>
<tr>
<th>Created Date</th>
@ -134,26 +136,8 @@
</div>
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/js/common.js" charset="utf-8"></script>
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
<!-- <script type="text/javascript">
$(function () {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
$('#datatable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
// "columnDefs" : [{"targets":7, "type":"date-eu"}],
"aaSorting": [[ 7, "desc" ]],
"info": true,
"autoWidth": true
});
});
</script> -->
<!-- <script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script> -->
<script>
@ -162,7 +146,7 @@
var table = $('#asset_list_table').DataTable({
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
'csv', 'excel', 'pdf'
],
pageLength: 10, // Default rows per page
lengthMenu: [

View File

@ -175,24 +175,8 @@
</div>
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/js/common.js" charset="utf-8"></script>
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
<!-- <script type="text/javascript">
$(function() {
$.fn.dataTable.moment('DD-MM-YYYY');
$('#configtable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"aaSorting": [
[3, "desc"]
],
"info": true,
"autoWidth": true
});
});
</script> -->
<script>
$(document).ready(function() {
$.fn.dataTable.ext.type.order['date-eu-pre'] = function(date) {
@ -204,7 +188,7 @@
var table = $('#config_list_table').DataTable({
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
'csv', 'excel', 'pdf'
],
pageLength: 10, // Default rows per page
lengthMenu: [

View File

@ -53,7 +53,6 @@
</li>
</ol>
</div>
<h4 class="page-title">Cost Details</h4>
<a data-toggle="modal" href="#ccwizard" data-id="0" data-name="" class="btn btn-success">Add New Cost List</a>
</div>
</div>
@ -80,11 +79,10 @@
<thead>
<tr>
<th>Create Date</th>
<th>Create Time</th>
<th>Cost Center Code</th>
<th>Cost Center Name</th>
<th>Created By</th>
<th>Active</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
@ -98,10 +96,8 @@
?>
<tr>
<td><?php echo $date; ?></td>
<td><?php echo $time; ?></td>
<td><?php echo $record->code ?></td>
<td><?php echo $record->CostCenterName ?></td>
<!-- <td><?php echo $record->ApprovedBy ?></td> -->
<td><?php echo $record->FirstName ?></td>
<td><?php
$R = '';
@ -227,7 +223,7 @@
var table = $('#cost_listing').DataTable({
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
'csv', 'excel', 'pdf'
],
pageLength: 10, // Default rows per page
lengthMenu: [

View File

@ -166,7 +166,7 @@
var table = $('#department_list_table').DataTable({
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
'csv', 'excel', 'pdf'
],
pageLength: 10, // Default rows per page
lengthMenu: [

View File

@ -115,9 +115,9 @@
<thead>
<tr>
<th style="text-align:center !important;">Machine Name</th>
<th style="text-align:center !important;">Machine Type</th>
<th style="text-align:center !important;">Energy Type</th>
<th >Machine Name</th>
<th >Machine Type</th>
<th >Energy Type</th>
<th style="text-align:center !important;">Action</th>
</tr>
</thead>
@ -128,9 +128,9 @@
foreach ($masterData as $record) {
?>
<td align="center"><?php echo $record['machine_name']; ?></td>
<td align="center"><?php echo $record['machine_type'] ?></td>
<td align="center"><?php echo $record['energy_type'] ?></td>
<td ><?php echo $record['machine_name']; ?></td>
<td ><?php echo $record['machine_type'] ?></td>
<td ><?php echo $record['energy_type'] ?></td>
<td align="center">
<a data-toggle="tooltip"
href="<?php echo base_url()?>loadView_updateFactoryMachineMasterDetail?id=<?php echo $record['id'] ?>"
@ -172,24 +172,7 @@
</div>
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/js/common.js" charset="utf-8"></script>
<!-- <script type="text/javascript">
$(function () {
$('#datatable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": true,
"pageLength": 10,
"lengthMenu": [10, 25, 50, 100]
});
});
</script> -->
<script>
$(document).ready(function() {
$.fn.dataTable.ext.type.order['date-eu-pre'] = function(date) {
@ -201,7 +184,7 @@
var table = $('#datatable').DataTable({
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
'csv', 'excel', 'pdf'
],
pageLength: 10, // Default rows per page
lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] ], // Rows per page options

View File

@ -135,23 +135,7 @@
</div>
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/js/common.js" charset="utf-8"></script>
<!-- <script type="text/javascript">
$(function () {
$('#datatable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": true,
"aaSorting": [[ 0, "desc" ]],
});
});
</script> -->
<script>
$.fn.dataTable.ext.type.order['date-eu-pre'] = function(date) {
var dateSplit = date.split('-');
@ -162,7 +146,7 @@
var table = $('#raw_material_list_table').DataTable({
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
'csv', 'excel', 'pdf'
],
pageLength: 10, // Default rows per page
lengthMenu: [

View File

@ -149,18 +149,7 @@
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/js/common.js" charset="utf-8"></script>
<script type="text/javascript">
// $(function () {
// $('#datatable').DataTable({
// "paging": true,
// "lengthChange": true,
// "searching": true,
// "ordering": true,
// "info": true,
// "autoWidth": true
// });
// });
function deletesupplier(sid) {
alert(sid);
var answer = confirm(" Do you want to delete the Supplier from the List?")
@ -193,7 +182,7 @@
var table = $('#datatable').DataTable({
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
'csv', 'excel', 'pdf'
],
pageLength: 10, // Default rows per page
lengthMenu: [

View File

@ -117,11 +117,9 @@
<thead>
<tr>
<th>Create Date</th>
<th>Create Time</th>
<th>Transporter ID</th>
<th>Transporter Name</th>
<th>Created By</th>
<th>Active</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
@ -135,8 +133,6 @@
?>
<tr>
<td><?php echo $date; ?></td>
<td><?php echo $time; ?></td>
<td><?php echo $record->id ?></td>
<td><?php echo $record->name ?></td>
<td><?php echo $record->FirstName ?></td>
<td><?php
@ -256,7 +252,7 @@
var table = $('#transporter_list').DataTable({
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
'csv', 'excel', 'pdf'
],
pageLength: 10, // Default rows per page
lengthMenu: [

View File

@ -199,7 +199,7 @@
var table = $('#user_list_table').DataTable({
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
'csv', 'excel', 'pdf'
],
pageLength: 10, // Default rows per page
lengthMenu: [