CHANGE_SAMPLE_EXCEL_FILES : RV
This commit is contained in:
parent
e9ac398689
commit
871524f55c
@ -250,7 +250,11 @@ class EmployeeController extends AdminController
|
||||
|
||||
// echo '<pre>';
|
||||
// print_r($result); die;
|
||||
echo view('excel_errors', $result);
|
||||
if($result){
|
||||
echo view('excel_errors', $result);
|
||||
}else{
|
||||
echo view('errors/html/production');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -272,13 +276,17 @@ class EmployeeController extends AdminController
|
||||
$filePath = '';
|
||||
// Path to your file
|
||||
if($actionType == 'inception'){
|
||||
$filePath = ROOTPATH . 'public/sample_excel/inception.xls';
|
||||
|
||||
$filePath = ROOTPATH . 'public/sample_excel/sample_inception.xls';
|
||||
}else if($actionType == 'correction'){
|
||||
$filePath = ROOTPATH . 'public/sample_excel/inception_1.xls';
|
||||
|
||||
$filePath = ROOTPATH . 'public/sample_excel/sample_correction .xls';
|
||||
}else if($actionType == 'si_enhancement'){
|
||||
$filePath = ROOTPATH . 'public/sample_excel/inception_2.xls';
|
||||
$filePath = ROOTPATH . 'public/sample_excel/sample_si_enhancement.xls';
|
||||
}else if($actionType == 'dependent_addtion'){
|
||||
$filePath = ROOTPATH . 'public/sample_excel/sample_dependent_addition.xls';
|
||||
}else if($actionType == 'addition'){
|
||||
$filePath = ROOTPATH . 'public/sample_excel/sample_addition.xls';
|
||||
}else if($actionType == 'deletion'){
|
||||
$filePath = ROOTPATH . 'public/sample_excel/sample_deletion.xls';
|
||||
}
|
||||
|
||||
// Check if the file exists
|
||||
@ -291,7 +299,7 @@ class EmployeeController extends AdminController
|
||||
return $this->response->download($filePath, null, $mimeType);
|
||||
} else {
|
||||
// File not found, show an error message or redirect
|
||||
return redirect()->back()->with('error', 'File not found.');
|
||||
echo view('errors/html/production');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -929,6 +929,7 @@ class EmployeeServiceController extends AdminController
|
||||
|
||||
public function getExcelErrorData($file_id){
|
||||
|
||||
try {
|
||||
$file = $this->fileModel->find($file_id);
|
||||
$error_data = json_decode($file['reason']);
|
||||
|
||||
@ -1015,6 +1016,13 @@ class EmployeeServiceController extends AdminController
|
||||
|
||||
}
|
||||
|
||||
}catch (\Exception $e) {
|
||||
// Handle any exceptions
|
||||
$errorMessage = $e->getMessage();
|
||||
$this->myLogger->logme('error', $errorMessage);
|
||||
return false; // You can return an error response here
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
<tr>
|
||||
<th class="font-weight-medium">SNO</th>
|
||||
<th class="font-weight-medium">Batch Code</th>
|
||||
<th class="font-weight-medium">File Name</th>
|
||||
<th class="font-weight-medium">Client</th>
|
||||
<th class="font-weight-medium">Client Policy</th>
|
||||
<th class="font-weight-medium">Event Type</th>
|
||||
@ -31,6 +32,7 @@
|
||||
<tr>
|
||||
<td><b><?php echo ($key + 1)?></b></td>
|
||||
<td><?php echo $file['batch_code']?></td>
|
||||
<td><?php echo $file['file_name']?></td>
|
||||
<td><?php echo $file['client_short_name']?></td>
|
||||
<td><?php echo $file['policy_name']?></td>
|
||||
<td><?php echo $file['event_type']?></td>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
public/sample_excel/sample_addition.xls
Normal file
BIN
public/sample_excel/sample_addition.xls
Normal file
Binary file not shown.
BIN
public/sample_excel/sample_correction .xls
Normal file
BIN
public/sample_excel/sample_correction .xls
Normal file
Binary file not shown.
BIN
public/sample_excel/sample_deletion.xls
Normal file
BIN
public/sample_excel/sample_deletion.xls
Normal file
Binary file not shown.
BIN
public/sample_excel/sample_dependent_addition.xls
Normal file
BIN
public/sample_excel/sample_dependent_addition.xls
Normal file
Binary file not shown.
BIN
public/sample_excel/sample_inception.xls
Normal file
BIN
public/sample_excel/sample_inception.xls
Normal file
Binary file not shown.
BIN
public/sample_excel/sample_si_enhancement.xls
Normal file
BIN
public/sample_excel/sample_si_enhancement.xls
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user