changes in master details-3 vadivel J 21-11-2024
This commit is contained in:
parent
14d177c493
commit
599e3efd7b
@ -132,6 +132,8 @@ $routes->post('savedepartment', 'Department::savedepartment');
|
|||||||
$routes->get('editOlddepartment', 'Department::viewdepartment');
|
$routes->get('editOlddepartment', 'Department::viewdepartment');
|
||||||
$routes->post('editdepartment', 'Department::editdepartment');
|
$routes->post('editdepartment', 'Department::editdepartment');
|
||||||
$routes->get('exportdepartment', 'Department::exportdepartment');
|
$routes->get('exportdepartment', 'Department::exportdepartment');
|
||||||
|
$routes->get('reActivateDepartment', 'Department::reActivateDepartment');
|
||||||
|
$routes->get('deleteDepartment', 'Department::deleteDepartment');
|
||||||
|
|
||||||
$routes->get('batchcard/getHistListing', 'Batchcard::getHistListing');
|
$routes->get('batchcard/getHistListing', 'Batchcard::getHistListing');
|
||||||
|
|
||||||
|
|||||||
@ -143,6 +143,16 @@ class Department extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function reActivateDepartment(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function deleteDepartment(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function viewdepartment($SID = '')
|
function viewdepartment($SID = '')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -132,6 +132,15 @@ function getdepcode()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function reActivateDepartment(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function deleteDepartment(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -110,7 +110,7 @@
|
|||||||
<th>Department Code</th>
|
<th>Department Code</th>
|
||||||
<th>Department Name</th>
|
<th>Department Name</th>
|
||||||
<th>Head Department</th>
|
<th>Head Department</th>
|
||||||
<th>IsActive</th>
|
<th>Action</th>
|
||||||
<!-- <th>Action</th> -->
|
<!-- <th>Action</th> -->
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -127,15 +127,17 @@
|
|||||||
$cdate = date('d-m-Y', strtotime($record->CreatedDt));
|
$cdate = date('d-m-Y', strtotime($record->CreatedDt));
|
||||||
} ?>
|
} ?>
|
||||||
<td><?php echo $cdate; ?> </td>
|
<td><?php echo $cdate; ?> </td>
|
||||||
<td><a href="<?php echo base_url() . 'editOlddepartment/?SID=' . $record->DEPCode ?>" data-toggle="tooltip" title="<?php echo $record->DEPCode ?> - Click here to view Department details"><?php echo $record->DEPCode; ?></a></u></td>
|
<td><?php echo $record->DEPCode;?></td>
|
||||||
<td><?php echo $record->DepartmentName ?></td>
|
<td><?php echo $record->DepartmentName ?></td>
|
||||||
<td><?php echo $record->HeadDept ?></td>
|
<td><?php echo $record->HeadDept ?></td>
|
||||||
<td><?php if ($record->IsActive == 1) {
|
<td><?php if ($record->IsActive == 0) { ?>
|
||||||
echo "Active";
|
<a href="<?php echo base_url() . 'reActivateDepartment/?SID=' . $record->DEPCode ?>" data-toggle="tooltip" title="<?php echo $record->DEPCode ?> - Click here to Re activate Department Details"><i class="fas fa-key"></i></a></u>
|
||||||
} else {
|
<?php } else { ?>
|
||||||
echo "In Active";
|
<a href="<?php echo base_url() . 'editOlddepartment/?SID=' . $record->DEPCode ?>" data-toggle="tooltip" title="<?php echo $record->DEPCode ?> - Click here to View Department Details"><i class="fas fa-edit"></i></a></u>
|
||||||
} ?></td>
|
|
||||||
<!-- <td><a data-toggle="tooltip" "><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the department details"></i> </a></td> -->
|
<a href="<?php echo base_url() . 'deleteDepartment/?SID=' . $record->DEPCode ?>" data-toggle="tooltip" title="<?php echo $record->DEPCode ?> - Click here to Delete Department Details"><i class="fas fa-trash"></i></a></u>
|
||||||
|
<?php } ?>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user