public static function buildChapitreCodification() { $bloc = ''; $id_fta = self::$id_fta; $synthese_action = self::$synthese_action; $isEditable = self::$is_editable; //$isEditable = TRUE; // //Identifiant FTA $ftaModel = new FtaModel($id_fta); $ftaModel->setDataFtaTableToCompare(); $ftaView = new FtaView($ftaModel); $ftaView->setIsEditable($isEditable); $ftaView->setFtaChapitreModelById(self::ID_CHAPITRE_IDENTITE); $ftaView2 = new FtaView($ftaModel); $ftaView2->setIsEditable(self::NOT_EDITABLE); $ftaView2->setFtaChapitreModelById(self::ID_CHAPITRE_IDENTITE); /** * Gestion de l'edition du code article arcadia * suivant l'activation de la fonctionnalité Fta2Arcadia */ if (self::$checkArcadiaData) { $isEditable = self::NOT_EDITABLE; } elseif ($isEditable) { $isEditable = self::EDITABLE; } $ftaView2->setIsEditable($isEditable); $ftaView2->setFtaChapitreModelById(self::ID_CHAPITRE_IDENTITE); $bloc .= '<tr class=titre_principal><td class>Codification</td></tr>'; //Désignation Abrégée $bloc .= $ftaView->getHtmlNomAbrege(); //Désignation Interne Agis // $bloc.=$ftaView->getHtmlDataField(FtaModel::FIELDNAME_LIBELLE); $bloc .= $ftaView->getHtmlDesignationInterneAgis(); //Code Article LDC, code Article arcadia $bloc .= $ftaView2->getHtmlDataField(FtaModel::FIELDNAME_CODE_ARTICLE_LDC); //Gencod EAN Article $bloc .= $ftaView->getHtmlEANArticle(); //Gencod EAN Colis $bloc .= $ftaView->getHtmlEANColis(); //Gencod EAN Palette $bloc .= $ftaView->getHtmlEANPalette(); $bloc .= '<tr class=titre_principal><td class>Arcadia</td></tr>'; //Famille Eco Emballage Arcadia $bloc .= $ftaView->getHtmlDataField(FtaModel::FIELDNAME_ID_ARCADIA_FAMILLE_ECO_EMBALLAGES); //Cellule Article Arcadia $bloc .= $ftaView->getHtmlDataField(FtaModel::FIELDNAME_ID_ARCADIA_CELLULE_ARTICLE); //Données lié à arcadia $bloc .= $ftaView2->getHtmlArcadiaDataNotEditable(); $bloc .= $ftaView->getHtmlArcadiaDataVariableEditable(); //Fta2Arcadia $bloc .= '<tr class=titre_principal><td class>Fta2Arcadia</td></tr>'; $bloc .= $ftaView->getHtmlLinkGenerateXmlFile(); if ($ftaView->isDataValidationSuccessful() == "0") { self::setDataValidationSuccessfulToTrue(); } return $bloc; }