employee list changes for super admin : kdk
This commit is contained in:
parent
ecabc61026
commit
2f5b8230fe
@ -164,6 +164,7 @@ class Employee_model extends CI_Model
|
|||||||
// echo $loginUserId, $loginUserBranchId, $loginUserType; exit();
|
// echo $loginUserId, $loginUserBranchId, $loginUserType; exit();
|
||||||
if ($loginUserType == SUPER_ADMIN) {
|
if ($loginUserType == SUPER_ADMIN) {
|
||||||
// list for super admin
|
// list for super admin
|
||||||
|
// echo $loginUserBranchId;exit();
|
||||||
if ($loginUserBranchId == 'All') {
|
if ($loginUserBranchId == 'All') {
|
||||||
// for getting all branch details
|
// for getting all branch details
|
||||||
$staffId = $this->selfGetEmpId($loginUserId);
|
$staffId = $this->selfGetEmpId($loginUserId);
|
||||||
@ -195,7 +196,7 @@ class Employee_model extends CI_Model
|
|||||||
$this->db->where_not_in('t1.StaffID', $staffId);
|
$this->db->where_not_in('t1.StaffID', $staffId);
|
||||||
$this->db->group_by('t1.StaffID');
|
$this->db->group_by('t1.StaffID');
|
||||||
$this->db->where('t1.BranchCode', $loginUserBranchId);
|
$this->db->where('t1.BranchCode', $loginUserBranchId);
|
||||||
$this->db->where('t1.ListCode', EMPLOYEE);
|
// $this->db->where('t1.ListCode', EMPLOYEE);
|
||||||
$this->db->order_by('t1.CreatedOn', 'DESC');
|
$this->db->order_by('t1.CreatedOn', 'DESC');
|
||||||
$empDetails = $this->db->get();
|
$empDetails = $this->db->get();
|
||||||
$checkArr = $empDetails->result();
|
$checkArr = $empDetails->result();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user