/**
  * Company info List
  * 
  * @param sfWebRequest $request
  */
 public function executeListCompanylocation(sfWebRequest $request)
 {
     $adminService = new CompanyService();
     $this->sorter = new ListSorter('location.sort', 'admin_module', $this->getUser(), array('loc_code', ListSorter::ASCENDING));
     if ($request->getParameter('sort')) {
         $this->sorter->setSort(array($request->getParameter('sort'), $request->getParameter('order')));
         $this->locationList = $adminService->getCompanyLocation($request->getParameter('sort'), $request->getParameter('order'));
     } else {
         if ($request->getParameter('mode') == 'search') {
             if ($request->getParameter('searchMode') != 'all' && $request->getParameter('searchValue') != '') {
                 $this->searchMode = $request->getParameter('searchMode');
                 $this->searchValue = $request->getParameter('searchValue');
                 $this->locationList = $adminService->searchCompanyLocation($this->searchMode, $this->searchValue);
             } else {
                 $this->setMessage('NOTICE', array('Select the field to search'));
                 $this->redirect('admin/listCompanylocation');
             }
         } else {
             $this->locationList = $adminService->getCompanyLocation();
         }
     }
 }