diff --git a/app/Controllers/Employeedetails.php b/app/Controllers/Employeedetails.php
index 0c9a425f..12c5e7fd 100755
--- a/app/Controllers/Employeedetails.php
+++ b/app/Controllers/Employeedetails.php
@@ -198,6 +198,40 @@ class Employeedetails extends BaseController
/**
* This function is used to save the new Employee form in the database
*/
+ /**
+ * This function is used to save the new Employee form in the database
+ */
+ /**
+ * This function is used to save the new Employee form in the database
+ */
+ /**
+ * This function is used to save the new Employee form in the database
+ */
+ /**
+ * This function is used to save the new Employee form in the database
+ */
+ /**
+ * This function is used to save the new Employee form in the database
+ */
+ /**
+ * This function is used to save the new Employee form in the database
+ */
+ /**
+ * This function is used to save the new Employee form in the database
+ */
+ /**
+ * This function is used to save the new Employee form in the database
+ */
+ /**
+ * This function is used to save the new Employee form in the database
+ */
+ /**
+ * This function is used to save the new Employee form in the database
+ */
+ /**
+ * This function is used to save the new Employee form in the database
+ */
+
function AddNewEmployee()
{
@@ -365,16 +399,15 @@ class Employeedetails extends BaseController
$this->empFiles->save([
'file_name' => $fileNames[$index], // User-entered file name
'emp_file' => $newName, // New file name
- 'emp_id' => $result,
+ 'emp_id' => $result['EmpID'],
'path' => $path
-
]);
}
}
}
- $EmpID = $result;
+ $EmpID = $result['EmpID'];
$Total_Salary = $this->request->getPost('Total_salary');
$Basic_Pay = $this->request->getPost('Basic_Pay');
$HRA_Rate = $this->request->getPost('HRA_Rate');
@@ -627,13 +660,46 @@ class Employeedetails extends BaseController
}
}
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
/* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+ /* To Update the employee details*/
+
+
function UpdateEmployee()
{
- $EmpId = $this->request->getPost('employeeid');
+ $EmpId = $this->request->getGet('empId');
- $EmpId = $this->request->getPost('employeeid');
$PictureName = $this->request->getPost('Image');
$ModifyPictureName = $this->request->getPost('ModifyImage');
$Picture = "";
@@ -853,9 +919,8 @@ class Employeedetails extends BaseController
$this->empFiles->save([
'file_name' => $fileNames[$index], // User-entered file name
'emp_file' => $newName, // New file name
- 'emp_id' => $result,
+ 'emp_id' => $EmpId,
'path' => $path
-
]);
}
}
diff --git a/app/Models/EmpFilesModel.php b/app/Models/EmpFilesModel.php
index 7fb6f630..78ee5d28 100755
--- a/app/Models/EmpFilesModel.php
+++ b/app/Models/EmpFilesModel.php
@@ -21,4 +21,3 @@ class EmpFilesModel extends Model
];
}
-?>
\ No newline at end of file
diff --git a/app/Views/addEmployeenew.php b/app/Views/addEmployeenew.php
index df24d29d..ce31e4f2 100755
--- a/app/Views/addEmployeenew.php
+++ b/app/Views/addEmployeenew.php
@@ -1003,19 +1003,19 @@