Ejemplo n.º 1
0
 /**
  * Save Currency
  * @param sfWebRequest $request
  * @return unknown_type
  */
 public function executeSaveSaleryGradeCurrency(sfWebRequest $request)
 {
     if ($request->isMethod('post')) {
         $jobService = new JobService();
         $saleryGradeId = $request->getParameter('id');
         $salaryCurrencyDetail = new SalaryCurrencyDetail();
         $salaryCurrencyDetail->setSalGrdCode($saleryGradeId);
         $salaryCurrencyDetail->setCurrencyId($request->getParameter('cmbUnAssCurrency'));
         $salaryCurrencyDetail->setMinSalary($request->getParameter('txtMinSal'));
         $salaryCurrencyDetail->setMaxSalary($request->getParameter('txtMaxSal'));
         $salaryCurrencyDetail->setSalaryStep($request->getParameter('txtStepSal'));
         $jobService->saveSalleryGradeCurrency($salaryCurrencyDetail);
         $this->redirect('admin/updateSaleryGrade?id=' . $saleryGradeId);
     }
 }