public function listAction()
 {
     $request = $this->getRequest();
     $sestionClient = PR_Session::getSession(PR_Session::SESSION_USER);
     // $clientID =  $sestionClient['UserID'];
     $api = new PR_Api_Core_ClientClass();
     $companylists = $api->getListCompany();
     $this->view->companylists = $companylists;
     $this->render("list");
 }
 public function listuserAction()
 {
     $request = $this->getRequest();
     $sestionClient = PR_Session::getSession(PR_Session::SESSION_USER);
     $clientID = $sestionClient['UserID'];
     $companyid = $request->getParam("CompanyID");
     $role = $sestionClient["Role"];
     // $companyid=$_REQUEST;
     // echo("companyid:");print_r($companyid);
     $api = new PR_Api_Core_ClientClass();
     $Companylists = $api->getListCompany();
     $this->view->Role = $role;
     $this->view->Companylists = $Companylists;
     $Userlists = $api->getListUsersCompany($companyid);
     // echo ("companylists:<pre>");print_r($Userlists);echo("</pre>");die();
     $this->view->Userlists = $Userlists;
     $this->render("listuser");
 }