Esempio n. 1
0
 /**
  * Update SaleryGrade
  * @param sfWebRequest $request
  * @return unknown_type
  */
 public function executeUpdateSaleryGrade(sfWebRequest $request)
 {
     $currencyService = new CurrencyService();
     $jobService = new JobService();
     $saleryGrade = $jobService->readSaleryGrade($request->getParameter('id'));
     $this->saleryGrade = $saleryGrade;
     $this->currencyList = $currencyService->getCurrencyList();
     $this->sallerGradeCurrencyList = $jobService->getSalleryGradeCurrency($request->getParameter('id'));
     if ($request->isMethod('post')) {
         $saleryGrade->setSalGrdName($request->getParameter('txtName'));
         $jobService->saveSaleryGrade($saleryGrade);
         $this->setMessage('SUCCESS', array(TopLevelMessages::UPDATE_SUCCESS));
         $this->redirect('admin/listSaleryGrade');
     }
 }