public function getStaffByRoleAction($network_domain)
 {
     $request = $this->get("request");
     $user = $this->get('security.context')->getToken()->getUser();
     $da = $this->get("we_data_access");
     $da_im = $this->get('we_data_access_im');
     $re = array('s' => '1', 'm' => '');
     $roleid = $request->get("roleid");
     $role = new Role($da, $da_im);
     $rows = $role->getStaffByRole($roleid);
     $response = new Response(json_encode($rows));
     $response->headers->set('Content-Type', 'text/json');
     return $response;
 }
예제 #2
0
 private function getRoleByCode($rolecode)
 {
     $roleMgr = new Role($this->conn, $this->conn_im);
     return $roleMgr->GetRoleDataByCode($rolecode);
 }