stock module-3 vadivel J 25-12-2024
This commit is contained in:
parent
c56fa1d486
commit
042e32839d
@ -1,9 +1,22 @@
|
|||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
.num {
|
.num {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.batch-card-table th,
|
||||||
|
.batch-card-table td {
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
border: 1px solid black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.batch-card-table-cell-space {
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.fht-table,
|
.fht-table,
|
||||||
.fht-table thead,
|
.fht-table thead,
|
||||||
.fht-table tfoot,
|
.fht-table tfoot,
|
||||||
@ -164,7 +177,6 @@
|
|||||||
border-right: 2px solid #ddd;
|
border-right: 2px solid #ddd;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="content-page">
|
<div class="content-page">
|
||||||
@ -186,11 +198,18 @@
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<button type="button" class="btn btn-danger" data-target="#productionBatchCardDetailModalId"
|
||||||
|
data-toggle="modal">
|
||||||
|
Add Production Batch Card
|
||||||
|
</button>
|
||||||
<button type="button" class="btn btn-success" data-target="#coatingMachineDetailModal"
|
<button type="button" class="btn btn-success" data-target="#coatingMachineDetailModal"
|
||||||
data-toggle="modal">
|
data-toggle="modal">
|
||||||
Add New Record
|
Add Shift Record
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -263,9 +282,10 @@
|
|||||||
<?php
|
<?php
|
||||||
$currentDate = date('d-m-Y');
|
$currentDate = date('d-m-Y');
|
||||||
$dateInMonthDmYFormat = DateTime::createFromFormat('Y-m-d', $record['date'])->format('d-m-Y');
|
$dateInMonthDmYFormat = DateTime::createFromFormat('Y-m-d', $record['date'])->format('d-m-Y');
|
||||||
if ($dateInMonthDmYFormat === $currentDate) { echo 'style="background: #cef0ad;"';}
|
if ($dateInMonthDmYFormat === $currentDate) {
|
||||||
?>
|
echo 'style="background: #cef0ad;"';
|
||||||
>
|
}
|
||||||
|
?>>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$date = DateTime::createFromFormat('Y-m-d', $record['date'])->format('d-m-Y');
|
$date = DateTime::createFromFormat('Y-m-d', $record['date'])->format('d-m-Y');
|
||||||
@ -380,7 +400,6 @@
|
|||||||
echo '<option value="' . $formattedHour . ':00 AM"> ' . $formattedHour . ':00 AM</option>';
|
echo '<option value="' . $formattedHour . ':00 AM"> ' . $formattedHour . ':00 AM</option>';
|
||||||
|
|
||||||
echo '<option value="' . $formattedHour . ':30 AM">' . $formattedHour . ':30 AM</option>';
|
echo '<option value="' . $formattedHour . ':30 AM">' . $formattedHour . ':30 AM</option>';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -396,7 +415,6 @@
|
|||||||
echo '<option value="' . $formattedHour . ':00 PM"> ' . $formattedHour . ':00 PM</option>';
|
echo '<option value="' . $formattedHour . ':00 PM"> ' . $formattedHour . ':00 PM</option>';
|
||||||
|
|
||||||
echo '<option value="' . $formattedHour . ':30 PM">' . $formattedHour . ':30 PM</option>';
|
echo '<option value="' . $formattedHour . ':30 PM">' . $formattedHour . ':30 PM</option>';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
@ -420,7 +438,6 @@
|
|||||||
echo '<option value="' . $formattedHour . ':00 AM"> ' . $formattedHour . ':00 AM</option>';
|
echo '<option value="' . $formattedHour . ':00 AM"> ' . $formattedHour . ':00 AM</option>';
|
||||||
|
|
||||||
echo '<option value="' . $formattedHour . ':30 AM">' . $formattedHour . ':30 AM</option>';
|
echo '<option value="' . $formattedHour . ':30 AM">' . $formattedHour . ':30 AM</option>';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -434,7 +451,6 @@
|
|||||||
echo '<option value="' . $formattedHour . ':00 PM"> ' . $formattedHour . ':00 PM</option>';
|
echo '<option value="' . $formattedHour . ':00 PM"> ' . $formattedHour . ':00 PM</option>';
|
||||||
|
|
||||||
echo '<option value="' . $formattedHour . ':30 PM">' . $formattedHour . ':30 PM</option>';
|
echo '<option value="' . $formattedHour . ':30 PM">' . $formattedHour . ':30 PM</option>';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
@ -561,7 +577,6 @@
|
|||||||
echo '<option value="' . $formattedHour . ':00 AM"> ' . $formattedHour . ':00 AM</option>';
|
echo '<option value="' . $formattedHour . ':00 AM"> ' . $formattedHour . ':00 AM</option>';
|
||||||
|
|
||||||
echo '<option value="' . $formattedHour . ':30 AM">' . $formattedHour . ':30 AM</option>';
|
echo '<option value="' . $formattedHour . ':30 AM">' . $formattedHour . ':30 AM</option>';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -576,7 +591,6 @@
|
|||||||
echo '<option value="' . $formattedHour . ':00 PM"> ' . $formattedHour . ':00 PM</option>';
|
echo '<option value="' . $formattedHour . ':00 PM"> ' . $formattedHour . ':00 PM</option>';
|
||||||
|
|
||||||
echo '<option value="' . $formattedHour . ':30 PM">' . $formattedHour . ':30 PM</option>';
|
echo '<option value="' . $formattedHour . ':30 PM">' . $formattedHour . ':30 PM</option>';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
@ -599,7 +613,6 @@
|
|||||||
echo '<option value="' . $formattedHour . ':00 AM"> ' . $formattedHour . ':00 AM</option>';
|
echo '<option value="' . $formattedHour . ':00 AM"> ' . $formattedHour . ':00 AM</option>';
|
||||||
|
|
||||||
echo '<option value="' . $formattedHour . ':30 AM">' . $formattedHour . ':30 AM</option>';
|
echo '<option value="' . $formattedHour . ':30 AM">' . $formattedHour . ':30 AM</option>';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<option value="12:00 PM">12:00 PM</option>
|
<option value="12:00 PM">12:00 PM</option>
|
||||||
@ -613,7 +626,6 @@
|
|||||||
echo '<option value="' . $formattedHour . ':00 PM"> ' . $formattedHour . ':00 PM</option>';
|
echo '<option value="' . $formattedHour . ':00 PM"> ' . $formattedHour . ':00 PM</option>';
|
||||||
|
|
||||||
echo '<option value="' . $formattedHour . ':30 PM">' . $formattedHour . ':30 PM</option>';
|
echo '<option value="' . $formattedHour . ':30 PM">' . $formattedHour . ':30 PM</option>';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
@ -691,9 +703,167 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- productionBatchCardModal -->
|
||||||
|
|
||||||
|
<div class="modal fade" id="productionBatchCardDetailModalId" tabindex="-1" role="dialog"
|
||||||
|
aria-labelledby="productionBatchCardDetailModalLabel" aria-hidden="true">
|
||||||
|
<div class="modal-dialog modal-lg" style="width:1060px !important ;" role="document">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
|
||||||
|
<h5 class="modal-title" id="productionBatchCardDetailModalLabel">
|
||||||
|
Production Batch Card Detail
|
||||||
|
</h5>
|
||||||
|
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- form -->
|
||||||
|
<form method="post" id="productionBatchCardDetailModalFormId"
|
||||||
|
action="<?php echo base_url(); ?>updateBatchCardDetail?month=<?= $month; ?>">
|
||||||
|
|
||||||
|
<div class="modal-body p-4">
|
||||||
|
<div class="table-responsive">
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/js/common.js" charset="utf-8"></script>
|
<table class="batch-card-table">
|
||||||
|
<thead>
|
||||||
|
<!-- Table Header Rows -->
|
||||||
|
<tr>
|
||||||
|
<th rowspan="5" colspan="1">logo</th>
|
||||||
|
<th rowspan="5" colspan="7">resico name</th>
|
||||||
|
<tr>
|
||||||
|
<td colspan="1">one </td>
|
||||||
|
<td colspan="1">one </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="1">one </td>
|
||||||
|
<td colspan="1">one </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="1">one </td>
|
||||||
|
<td colspan="1">one </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="1">one </td>
|
||||||
|
<td colspan="1">one </td>
|
||||||
|
</tr>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th class="batch-card-table-cell-space" colspan="10">Production Batch Card</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th class="batch-card-table-cell-space" >Customer Name</th>
|
||||||
|
<td class="batch-card-table-cell-space"colspan="4">DR Axion India Pvt.Ltd (PCS ROUGH) </td>
|
||||||
|
<th class="batch-card-table-cell-space" >P.Batch No</th>
|
||||||
|
<td class="batch-card-table-cell-space" colspan="4">MI | 12 | 19 | C</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th class="batch-card-table-cell-space">Date</th>
|
||||||
|
<td class="batch-card-table-cell-space" colspan="2">19/12/2024</td>
|
||||||
|
<th class="batch-card-table-cell-space">Shift</th>
|
||||||
|
<td class="batch-card-table-cell-space">III</td>
|
||||||
|
|
||||||
|
<th class="batch-card-table-cell-space">Batch No</th>
|
||||||
|
<td class="batch-card-table-cell-space" colspan="4">123</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th class="batch-card-table-cell-space">Operator</th>
|
||||||
|
<td class="batch-card-table-cell-space" colspan="4">KUMARAN</td>
|
||||||
|
<th class="batch-card-table-cell-space">Helpers</th>
|
||||||
|
<td class="batch-card-table-cell-space" colspan="4">MURUGESAN</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<!-- Sub Header -->
|
||||||
|
<tr>
|
||||||
|
<th class="batch-card-table-cell-space">S.No</th>
|
||||||
|
<th class="batch-card-table-cell-space">Sand</th>
|
||||||
|
<th class="batch-card-table-cell-space">Resin Solid</th>
|
||||||
|
<th class="batch-card-table-cell-space">Hexamine</th>
|
||||||
|
<th class="batch-card-table-cell-space">Water</th>
|
||||||
|
<th class="batch-card-table-cell-space">Catalyst Calcium Stearat</th>
|
||||||
|
<th class="batch-card-table-cell-space">Resin Mixing Time</th>
|
||||||
|
<th class="batch-card-table-cell-space">Hexamine Mixing Time</th>
|
||||||
|
<th class="batch-card-table-cell-space">Catalyst Mixing Time</th>
|
||||||
|
<th class="batch-card-table-cell-space">TS</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>SPEC</th>
|
||||||
|
<th>200KG-300KG</th>
|
||||||
|
<th>3KG-6KG</th>
|
||||||
|
<th>450G-900G</th>
|
||||||
|
<th>900G-1800G</th>
|
||||||
|
<th>150G-300G</th>
|
||||||
|
<th>60-120 SEC</th>
|
||||||
|
<th>60-120 SEC</th>
|
||||||
|
<th>180-300 SEC</th>
|
||||||
|
<th>50-60 KG/CM<sup>2</sup></th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<!-- Data Rows -->
|
||||||
|
<tr>
|
||||||
|
<td>1</td>
|
||||||
|
<td>300</td>
|
||||||
|
<td>5.000</td>
|
||||||
|
<td>7.30</td>
|
||||||
|
<td>1500</td>
|
||||||
|
<td>230</td>
|
||||||
|
<td>60</td>
|
||||||
|
<td>60</td>
|
||||||
|
<td>180</td>
|
||||||
|
<td>54.2</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>2</td>
|
||||||
|
<td>300</td>
|
||||||
|
<td>5.000</td>
|
||||||
|
<td>7.30</td>
|
||||||
|
<td>1500</td>
|
||||||
|
<td>230</td>
|
||||||
|
<td>60</td>
|
||||||
|
<td>60</td>
|
||||||
|
<td>180</td>
|
||||||
|
<td>52.4</td>
|
||||||
|
</tr>
|
||||||
|
<!-- Add more rows dynamically as needed -->
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/js/common.js" charset="utf-8">
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -702,10 +872,12 @@
|
|||||||
function confirmDelete(event) {
|
function confirmDelete(event) {
|
||||||
|
|
||||||
let result = confirm(` Do you Confirm to Delete the Coating Machine Detail?`);
|
let result = confirm(` Do you Confirm to Delete the Coating Machine Detail?`);
|
||||||
if (result) { return result; } else { event.preventDefault(); }
|
if (result) {
|
||||||
|
return result;
|
||||||
|
} else {
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -768,13 +940,11 @@
|
|||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- calculations for some fields needed in onChange while adding coating machine details -->
|
<!-- calculations for some fields needed in onChange while adding coating machine details -->
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
@ -862,7 +1032,6 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- calculations for some fields needed in onChange while editing coating machine details -->
|
<!-- calculations for some fields needed in onChange while editing coating machine details -->
|
||||||
@ -988,7 +1157,6 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
function convertTo24Hr(time) {
|
function convertTo24Hr(time) {
|
||||||
const [timePart, modifier] = time.split(" ");
|
const [timePart, modifier] = time.split(" ");
|
||||||
let [hours, minutes] = timePart.split(":");
|
let [hours, minutes] = timePart.split(":");
|
||||||
@ -1006,8 +1174,6 @@ function convertTo24Hr(time) {
|
|||||||
// Format hours and minutes to ensure two digits
|
// Format hours and minutes to ensure two digits
|
||||||
return `${String(hours).padStart(2, '0')}:${minutes}:00`;
|
return `${String(hours).padStart(2, '0')}:${minutes}:00`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -1018,5 +1184,4 @@ function convertTo24Hr(time) {
|
|||||||
autoclose: true,
|
autoclose: true,
|
||||||
orientation: 'bottom'
|
orientation: 'bottom'
|
||||||
})
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user