Example #1
0
 public static function buildChapitreIdentite()
 {
     $bloc = '';
     $id_fta = self::$id_fta;
     $synthese_action = self::$synthese_action;
     $isEditable = self::$is_editable;
     //Identifiant FTA
     $ftaModel = new FtaModel($id_fta);
     $ftaModel->setDataFtaTableToCompare();
     $ftaView = new FtaView($ftaModel);
     $ftaView->setIsEditable($isEditable);
     $ftaView->setFtaChapitreModelById(self::ID_CHAPITRE_IDENTITE);
     /**
      * Ftaview indépendant pour les epace de travaille qui ne doitvent pas être éditables
      */
     $ftaView2 = new FtaView($ftaModel);
     $ftaView2->setIsEditable(self::NOT_EDITABLE);
     $ftaView2->setFtaChapitreModelById(self::ID_CHAPITRE_IDENTITE);
     /**
      * Verification des droits sur l'accès à des modifications
      */
     if (FtaRoleModel::isGestionnaire(self::$id_fta_role)) {
         $modifierGestionnaire = $ftaView->gestionnaireChangeList(self::EDITABLE, self::$id_fta_chapitre, $synthese_action, self::$comeback, self::$id_fta_etat, self::$abrevation_etat, self::$id_fta_role);
         $modifierEspaceDeTravail = $ftaView->workflowChangeList(self::EDITABLE, self::$id_fta_chapitre, $synthese_action, self::$comeback, self::$id_fta_etat, self::$abrevation_etat, self::$id_fta_role);
     } else {
         $modifierGestionnaire = "";
         $modifierEspaceDeTravail = "";
     }
     $bloc .= '<tr class=titre_principal><td class>Classification FTA</td></tr>';
     /**
      * Classification
      *
      */
     $bloc .= $ftaView->listeClassification($isEditable, self::$id_fta_chapitre, $synthese_action, self::$id_fta_etat, self::$abrevation_etat, self::$id_fta_role);
     //Raccoucis de classification
     $bloc .= $ftaView->getHtmlClassificationRaccourcisView();
     //Données lié à arcadia
     $bloc .= $ftaView2->getHtmlArcadiaDataNotEditable();
     $bloc .= $ftaView->getHtmlArcadiaDataVariableEditable();
     $bloc .= '<tr class=titre_principal><td class>Caractéristiques générales du produit</td></tr>';
     //Désignation commerciale
     $bloc .= $ftaView->getHtmlDataField(FtaModel::FIELDNAME_DESIGNATION_COMMERCIALE);
     //Poids net de l’UVF
     $bloc .= $ftaView->getHtmlDataField(FtaModel::FIELDNAME_POIDS_ELEMENTAIRE);
     $bloc .= '<tr class=titre_principal><td class>Caractéristiques FTA</td></tr>';
     //Créateur
     $bloc .= $ftaView->getHtmlCreateurFta();
     $bloc .= $modifierGestionnaire;
     //Workflow de FTA
     //        $bloc.=$ftaView->ListeWorkflowByAcces(self::$idUser, FALSE, $id_fta, self::$id_fta_role);
     $bloc .= $ftaView2->getHtmlDataField(FtaModel::FIELDNAME_WORKFLOW);
     $bloc .= $modifierEspaceDeTravail;
     //Date d'échéance de la FTA
     $bloc .= $ftaView->getHtmlDateEcheance();
     //        //Date d'échéance des processus
     //        $bloc.=$ftaView->getHtmlDataField(FtaModel::FIELDNAME_VIRTUAL_FTA_PROCESSUS_DELAI);
     //Commentaire sur la Fta
     $bloc .= $ftaView->getHtmlDataField(FtaModel::FIELDNAME_COMMENTAIRE);
     //Code Article Arcadia Priamire ou Secondaire sur la Fta
     $bloc .= $ftaView->getHtmlCodeArticleArcadiaPrimaireSecondaire($isEditable, self::$id_fta_chapitre, $synthese_action, self::$comeback, self::$id_fta_etat, self::$abrevation_etat, self::$id_fta_role);
     if ($ftaView->isDataValidationSuccessful() == "0") {
         self::setDataValidationSuccessfulToTrue();
     }
     return $bloc;
 }