i done emergency service po
This commit is contained in:
parent
5b84f0fa2c
commit
e9e22b46d6
@ -65,6 +65,7 @@ define('REQITEM_DELIVERED', 'ST011');
|
||||
define('REQ_DELETED', 'ST013');
|
||||
define('REQITEM_POCREATED', 'ST022');
|
||||
define('REQITEM_PARTIALLY_PO_CREATED', 'ST023');
|
||||
define('REQITEM_Emergency_PO_CREATED', 'ST024');
|
||||
|
||||
|
||||
define('REQUISTSTATUS', '0');
|
||||
@ -169,4 +170,4 @@ define('RMC_CAL', 'txtpurchaserate+txtc
|
||||
|
||||
|
||||
/* End of file constants.php */
|
||||
/* Location: ./application/config/constants.php */
|
||||
/* Location: ./application/config/constants.php */
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -78,7 +78,8 @@ class Login extends CI_Controller
|
||||
'DEPCode'=>$res->DEPCode,
|
||||
'HeadDept'=>$res->HeadDept,
|
||||
'DepartmentName'=>$res->DepartmentName,
|
||||
'isLoggedIn' => TRUE
|
||||
'isLoggedIn' => TRUE,
|
||||
'EmpID' => $res->EmpID
|
||||
);
|
||||
|
||||
$this->session->set_userdata($sessionArray);
|
||||
@ -253,3 +254,4 @@ class Login extends CI_Controller
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
@ -16,6 +16,7 @@ class BaseController extends CI_Controller {
|
||||
protected $HeadDept = '';
|
||||
protected $DepartmentName = '';
|
||||
protected $roleText = '';
|
||||
protected $EmpID = '';
|
||||
protected $global = array ();
|
||||
|
||||
/**
|
||||
@ -48,10 +49,13 @@ class BaseController extends CI_Controller {
|
||||
$this->DEPCode = $this->session->userdata ( 'DEPCode' );
|
||||
$this->HeadDept = $this->session->userdata ( 'HeadDept' );
|
||||
$this->DepartmentName = $this->session->userdata ( 'DepartmentName' );
|
||||
$this->EmpID = $this->session->userdata ( 'EmpID' );
|
||||
|
||||
$this->global ['name'] = $this->name;
|
||||
$this->global ['role'] = $this->role;
|
||||
$this->global ['role_text'] = $this->roleText;
|
||||
$this->global ['DEPCode'] = $this->DEPCode;
|
||||
$this->global ['EmpID'] = $this->EmpID;
|
||||
}
|
||||
}
|
||||
|
||||
@ -155,4 +159,4 @@ class BaseController extends CI_Controller {
|
||||
"segment" => $segment
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -10,7 +10,7 @@ class Login_model extends CI_Model
|
||||
*/
|
||||
function loginMe($email, $password)
|
||||
{
|
||||
$this->db->select('BaseTbl.userId, BaseTbl.password, Emp.FirstName,Emp.Designation, BaseTbl.roleId, Roles.role,DEPT.DEPCode,DEPT.DepartmentName,DEPT.HeadDept');
|
||||
$this->db->select('BaseTbl.userId, BaseTbl.password, Emp.EmpID,Emp.FirstName,Emp.Designation, BaseTbl.roleId, Roles.role,DEPT.DEPCode,DEPT.DepartmentName,DEPT.HeadDept');
|
||||
$this->db->from('tbl_users as BaseTbl');
|
||||
$this->db->join('tbl_roles as Roles','Roles.roleId = BaseTbl.roleId');
|
||||
$this->db->join('T_Employee_Details as Emp','BaseTbl.EmpID = Emp.EmpID');
|
||||
@ -34,4 +34,4 @@ class Login_model extends CI_Model
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user