$idFtaWorkflowStruture = FtaWorkflowStructureModel::getIdFtaWorkflowStructureByIdFtaAndIdChapitre($paramIdFta, $paramIdFtaChapitreEncours); $modelFtaWorkflowStruture = new FtaWorkflowStructureModel($idFtaWorkflowStruture); /** * Actualisation de la durée de vie garantie client */ $nomFtaWorkflow = $modelFtaWorkflowStruture->getModelFtaWorkflow()->getDataField(FtaWorkflowModel::FIELDNAME_NOM_FTA_WORKFLOW)->getFieldValue(); $nomFtaChapitre = $modelFtaWorkflowStruture->getModelFtaChapitre()->getDataField(FtaChapitreModel::FIELDNAME_NOM_CHAPITRE)->getFieldValue(); FtaController::refreshDureeDeVieMDD($nomFtaWorkflow, $nomFtaChapitre, $modelFtaSuiviProjet->getModelFta()); /* * Enregistrement de la signature */ // $isFtaDataValidationSuccess = $modelFtaSuiviProjet->getModelFta()->isFtaDataValidationSuccess($paramIdFtaChapitreEncours); $isFtaDataValidationSuccess = $modelFtaSuiviProjet->getModelFta()->isFtaDataValidationSuccess(); if ($paramSignatureValidationSuiviProjet and $isFtaDataValidationSuccess == "0") { $modelFtaSuiviProjet->getDataField(FtaSuiviProjetModel::FIELDNAME_DATE_VALIDATION_SUIVI_PROJET)->setFieldValue(date("Y-m-d H:i:s")); $modelFtaSuiviProjet->setSigned($paramSignatureValidationSuiviProjet); $modelFtaSuiviProjet->saveToDatabase(); $modelFta->manageFtaPrimaireSecondaire(FtaEtatModel::ID_VALUE_MODIFICATION, FtaVerrouillageChampsModel::CHANGE_STATE_FALSE); } } else { $titre = 'Informations'; $message = 'Vous ne pouvez pas valider le chapitre une information est manquante ou incorrecte,<br>' . 'mise en évidence en Rouge.'; Lib::showMessage($titre, $message); } break; case 'suppression_tarif': //Variables passées en URL $id_fta_tarif; $paramIdFta; mysql_table_operation('fta_tarif', 'delete'); //header ('Location: modification_fiche.php?id_fta=$id_fta&id_fta_chapitre_encours=$id_fta_chapitre_encours&synthese_action=$synthese_action');