Exemplo n.º 1
0
     } else {
         BenefitsController::saveHspSummary($hspArr, $_GET['year']);
     }
     break;
 case 'Search_Hsp_Summary':
     if ((!isset($_POST['txtEmployeeSearchName']) || empty($_POST['txtEmployeeSearchName'])) && isset($_POST['year'])) {
         BenefitsController::viewHspSummary($_POST['year']);
     } elseif (isset($_POST['txtEmployeeSearchName']) && isset($_POST['year'])) {
         $empId = EXTRACTOR_HspSummary::parseSearchData($_POST);
         if ($empId == "") {
             BenefitsController::viewHspSummary($_POST['year'], "leftNull");
         } else {
             BenefitsController::searchHspSummary($empId, $_POST['year']);
         }
     } elseif (isset($_GET['empId']) && isset($_GET['year'])) {
         BenefitsController::searchHspSummary($_GET['empId'], $_GET['year']);
     }
     break;
 case 'Hsp_Not_Defined':
     BenefitsController::HspNotDefined();
     break;
 case 'Save_Hsp_Values_Employee':
     $hspArr = EXTRACTOR_Hsp::parseSaveData($_POST);
     BenefitsController::saveHspValues($hspArr, $_GET['year'], true);
     break;
 case 'Halt_Hsp_Plan':
     BenefitsController::haltHspPlan($_GET['id'], $_GET['year']);
     break;
 case 'Halt_Hsp_Plan_Employee':
     BenefitsController::haltHspPlan($_GET['id'], $_GET['year'], true);
     break;