/**
  * Affiche le tableau d'ajout d'une famille de ventes à une activité de classification
  * @param string $paramIdElement
  * @return string
  */
 public static function getHtmlTableClassificationElement($paramIdElement)
 {
     $ClassificationElement = self::getArrayIdClassificationElementByIdElement($paramIdElement);
     if ($ClassificationElement) {
         $arrayClassificationElementtmp = array();
         $tablesNameAndIdForeignKeyOfElementtmp = array();
         foreach ($ClassificationElement as $rowsClassificationElement) {
             $idClassificationElements = $rowsClassificationElement[self::KEYNAME];
             $arrayIdClassificationElements[] = $idClassificationElements;
             $ClassificationArborescenceArticleCategorieContenuModel = new ClassificationArborescenceArticleCategorieContenuModel($idClassificationElements);
             /*
              * Tableau de données
              */
             $arrayClassificationElementTmp = $ClassificationArborescenceArticleCategorieContenuModel->getArrayClassificationElements();
             $arrayClassificationElements = array_replace_recursive($arrayClassificationElementtmp, $arrayClassificationElementTmp);
             $arrayClassificationElementtmp = $arrayClassificationElements;
             /*
              * Cette array doit être utilisé de cette manière 
              * Array (
              * nom de table,
              * clé étrangère de la table présenté
              * valeur de la clé étrangère);
              */
             $tablesNameAndIdForeignKeyOfClassificationElementTmp = $ClassificationArborescenceArticleCategorieContenuModel->getTablesNameAndIdForeignkeyOfClassificatioElements();
             $tablesNameAndIdForeignKeyOfClassificationElement = $tablesNameAndIdForeignKeyOfElementtmp + $tablesNameAndIdForeignKeyOfClassificationElementTmp;
             $tablesNameAndIdForeignKeyOfElementtmp = $tablesNameAndIdForeignKeyOfClassificationElement;
             /*
              * Vérifie si pour la Fta en cours les données ClassificationGammeFamilleBudgett sont renseigné
              */
             if ($arrayClassificationElements) {
                 $rightToAdd = Chapitre::NOT_EDITABLE;
             } else {
                 $rightToAdd = Chapitre::EDITABLE;
             }
         }
         /**
          * Labels
          */
         $className = $ClassificationArborescenceArticleCategorieContenuModel->getClassName();
         $label = $ClassificationArborescenceArticleCategorieContenuModel->getDataField(self::FIELDNAME_ID_CLASSIFICATION_ARBORESCENCE_ARTICLE_CATEGORIE)->getFieldLabel();
         /**
          * Initilisation du tableau html
          */
         $htmlClassificationElements = new HtmlSubForm_RNN($arrayClassificationElements, $className, $label, $tablesNameAndIdForeignKeyOfClassificationElement);
         $htmlClassificationElements->setIsEditable(Chapitre::EDITABLE);
         $htmlClassificationElements->setRightToAdd($rightToAdd);
         $htmlClassificationElements->setLienAjouter(self::getAddLinkAfterClassificationElements($paramIdElement));
         $htmlClassificationElements->setLien(self::getAddLinkBeforeClassificationElements($paramIdElement));
         $htmlClassificationElements->setLienSuppression(self::getDeleteLinkClassificationElements($paramIdElement, $arrayIdClassificationElements));
         $htmlClassificationElements->setTableLabel($ClassificationArborescenceArticleCategorieContenuModel->getTableClassificationElementsLabel());
         $return .= $htmlClassificationElements->getHtmlResult();
     } else {
         /*
          * Initialisation des modèles 
          */
         $label = self::FIELDNAME_ID_CLASSIFICATION_ARBORESCENCE_ARTICLE_CATEGORIE;
         $htmlClassificationElements = new HtmlSubForm_RNN($arrayClassificationElements, $className, $label, $tablesNameAndIdForeignKeyOfClassificationElement);
         $htmlClassificationElements->setIsEditable(Chapitre::EDITABLE);
         $htmlClassificationElements->setRightToAdd(Chapitre::EDITABLE);
         $htmlClassificationElements->setLien(self::getAddLinkBeforeClassificationElements($paramIdElement));
         $return .= $htmlClassificationElements->getHtmlResult();
     }
     return $return;
 }
コード例 #2
0
 public static function getHtmlTable($paramIdFta, $paramChoix, $paramResultLimitByPage = self::DEFAULT_RESULT_LIMIT_BY_PAGE, $paramOrderCommon = NULL)
 {
     /*
      * Déclaration des variables locales
      */
     $largeur_html_C1 = self::HTML_CELL_WIDTH_C1;
     // largeur cellule type
     $largeur_html_C3 = self::HTML_CELL_WIDTH_C3;
     // largeur cellule type
     $compteur_ligne = 1;
     $selection_width = self::HTML_CELL_WIDTH_SELECTION;
     $lien = "";
     $tableau_fiches = "<table class=titre width=100% border=0>" . "<tr class=titre_principal><td></td><td>";
     $synthese_action = "all";
     /*
      * Initilisation
      */
     $globalConfig = new GlobalConfig();
     UserModel::checkUserSessionExpired($globalConfig);
     $idUser = $globalConfig->getAuthenticatedUser()->getKeyValue();
     $idFtaRole = FtaRoleModel::getKeyNameOfFirstRoleByIdUser($idUser);
     $ftaModel = new FtaModel($paramIdFta);
     //Chargement manuel des données pour optimiser les performances
     $abreviation_fta_etat = $ftaModel->getModelFtaEtat()->getDataField(FtaEtatModel::FIELDNAME_ABREVIATION)->getFieldValue();
     $LIBELLE = $ftaModel->getDataField(FtaModel::FIELDNAME_LIBELLE)->getFieldValue();
     $NB_UNIT_ELEM = $ftaModel->getDataField(FtaModel::FIELDNAME_NOMBRE_UVC_PAR_CARTON)->getFieldValue();
     $Poids_ELEM = $ftaModel->getDataField(FtaModel::FIELDNAME_POIDS_ELEMENTAIRE)->getFieldValue();
     $suffixe_agrologic_fta = $ftaModel->getModelClassificationRacourcis()->getNameRaccourcisClassif();
     $designation_commerciale_fta = $ftaModel->getDataField(FtaModel::FIELDNAME_DESIGNATION_COMMERCIALE)->getFieldValue();
     $id_dossier_fta = $ftaModel->getDataField(FtaModel::FIELDNAME_DOSSIER_FTA)->getFieldValue();
     $id_version_dossier_fta = $ftaModel->getDataField(FtaModel::FIELDNAME_VERSION_DOSSIER_FTA)->getFieldValue();
     $code_article_ldc = $ftaModel->getDataField(FtaModel::FIELDNAME_CODE_ARTICLE_LDC)->getFieldValue();
     $dateEcheanceFtatmp = $ftaModel->getDataField(FtaModel::FIELDNAME_DATE_ECHEANCE_FTA)->getFieldValue();
     $createur_nom = $ftaModel->getModelCreateur()->getDataField(UserModel::FIELDNAME_NOM)->getFieldValue();
     $createur_prenom = $ftaModel->getModelCreateur()->getDataField(UserModel::FIELDNAME_PRENOM)->getFieldValue();
     $workflowName = $ftaModel->getModelFtaWorkflow()->getDataField(FtaWorkflowModel::FIELDNAME_DESCRIPTION_FTA_WORKFLOW)->getFieldValue();
     $idWorkflowFtaEncours = $ftaModel->getModelFtaWorkflow()->getKeyValue();
     $nomSiteProduction = $ftaModel->getModelSiteProduction()->getDataField(GeoModel::FIELDNAME_GEO)->getFieldValue();
     $idclassification = $ftaModel->getDataField(FtaModel::FIELDNAME_ID_FTA_CLASSIFICATION2)->getFieldValue();
     $listeIdFtaRole = $ftaModel->getDataField(FtaModel::FIELDNAME_LISTE_ID_FTA_ROLE)->getFieldValue();
     $idSiteDeProduction = $ftaModel->getDataField(FtaModel::FIELDNAME_SITE_PRODUCTION)->getFieldValue();
     $idFtaEtat = $ftaModel->getDataField(FtaModel::FIELDNAME_ID_FTA_ETAT)->getFieldValue();
     /**
      * Changment du format de date en Fr
      */
     $dateEcheanceFta = FtaController::changementDuFormatDeDateFR($dateEcheanceFtatmp);
     /**
      * On obtient IdintranetAction du site de production
      */
     $idIntranetActionsSiteDeProduction = FtaActionSiteModel::getArrayIdIntranetActionByWorkflowAndSiteDeProduction($idWorkflowFtaEncours, $idSiteDeProduction);
     /**
      * On verifie si selon le workflow  et site de production en cours l'utilisateur connecté à les droits d'accès.
      * Puisqu'un utilisateur ne doit pas avoir accès aux boutons :
      * historique, transition, retirer, duplication et pourcentage d'avancement
      * si il n'a pas les accès aux site de production.
      */
     $checkAccesButtonBySiteProd = IntranetActionsModel::isAccessFtaActionByIdUserFtaWorkflowAndSiteDeProduction($idUser, $idWorkflowFtaEncours, $idIntranetActionsSiteDeProduction);
     /**
      * Donne accès aux bouton de transition 
      * pour les utilisateur se trouvant en fin de parcours de l'espace de travail
      */
     $accesTransitionButton = FtaTransitionModel::isAccesTransitionButton($idFtaRole, $idWorkflowFtaEncours);
     /*
      * Attribution des couleurs de fonds suivant l'état de la FTA
      */
     $bgcolor = self::getHtmlCellBgColor($abreviation_fta_etat);
     $bgcolorArcadia = self::getHtmlCellBgColorArcadia($paramIdFta, $bgcolor);
     $tauxRound = FtaSuiviProjetModel::getPourcentageFtaTauxValidation($ftaModel);
     /**
      * Lien vers l'historique de la Fta
      */
     $lienHistorique = self::getHtmlLinkHistorique($abreviation_fta_etat, $paramIdFta, FtaRoleModel::ID_FTA_ROLE_COMMUN, $synthese_action, $tauxRound, $checkAccesButtonBySiteProd, $idFtaEtat);
     /**
      * Gestion des icones en fonction des délais
      */
     $bgcolor_header = self::getHtmlBgColorIconHeader($abreviation_fta_etat, $paramIdFta);
     $icon_header = self::getHtmlIconEcheanceByEtatAndFta($abreviation_fta_etat, $paramIdFta);
     /**
      * Bouton d'accès au détail de la FTA
      */
     $lien .= self::getHtmlLinkModify($abreviation_fta_etat, $paramIdFta, $synthese_action, $idFtaEtat, $checkAccesButtonBySiteProd);
     /**
      * Historique de modification
      */
     $lien .= self::getHtmlLinkHistoriqueModfify($abreviation_fta_etat, $paramIdFta, $synthese_action, $idFtaEtat);
     /**
      * Bouton d'accès au rendu PDF de la FTA
      */
     $lien .= self::getHtmlLinkPDF($abreviation_fta_etat, $paramIdFta, $idWorkflowFtaEncours);
     /**
      * Bouton d'accès à la transition
      */
     $lien .= self::getHmlLinkTransiter($paramIdFta, $idFtaRole, $abreviation_fta_etat, $checkAccesButtonBySiteProd, $accesTransitionButton, $synthese_action, $tauxRound);
     /**
      * Bouton d'accès pour retirer une FTA
      */
     if (FtaRoleModel::isGestionnaire($idFtaRole) and $checkAccesButtonBySiteProd and $abreviation_fta_etat != FtaEtatModel::ETAT_ABREVIATION_VALUE_RETIRE) {
         $lien .= self::getHtmlLinkRemoveFta($paramIdFta);
         $javascript .= self::getJavascriptLinkRemoveFta($paramIdFta, $idFtaRole, $synthese_action);
     }
     /**
      * Bouton d'accès pour dupliquer  une FTA
      */
     if (FtaRoleModel::isGestionnaire($idFtaRole) and $checkAccesButtonBySiteProd) {
         $lien .= self::getHtmlLinkDuplicateFta($paramIdFta, $idFtaRole);
     }
     //Désignation commerciale
     $din = self::getStringDINCompacted($designation_commerciale_fta, $LIBELLE, $NB_UNIT_ELEM, $Poids_ELEM);
     /*
      * Noms des services dans lequel la Fta se trouve
      */
     $service = FtaRoleModel::getNameServiceEncours($listeIdFtaRole);
     //        switch (TRUE) {
     //            /**
     //             * Si la FTA est en modification et que l'utilisateur n'est pas autorisé à accéder aux boutons.
     //             */
     //            case (
     //            $abreviation_fta_etat == FtaEtatModel::ETAT_ABREVIATION_VALUE_MODIFICATION AND $checkAccesButton != FALSE
     //            ):
     //                $service = "";
     //                break;
     //
     //            /**
     //             * Si la FTA est en modification et que l'utilisateur est autorisé à accéder aux boutons.
     //             */
     //            case (
     //            $abreviation_fta_etat == FtaEtatModel::ETAT_ABREVIATION_VALUE_MODIFICATION AND $checkAccesButton != TRUE
     //            ):
     //                $service = FtaRoleModel::getNameServiceEncours($listeIdFtaRole);
     //                break;
     //            /**
     //             * Sinon:
     //             */
     //            default:
     //                $service = FtaRoleModel::getNameServiceEncours($listeIdFtaRole);
     //        }
     /**
      * Calssification
      */
     if ($idclassification) {
         $classification = ClassificationArborescenceArticleCategorieContenuModel::getElementClassificationFta($idclassification, ClassificationFta2Model::FIELDNAME_ID_PROPRIETAIRE_GROUPE);
     }
     //Nom de l'assistante de projet responsable:
     $createur_link = "\"Géré par {$createur_prenom} {$createur_nom}\"";
     $tableau_fiches .= "<tr class=contenu>\r\n                              <td {$bgcolor_header} " . $selection_width . " > {$icon_header} {$selection}</td>\r\n                              ";
     $tableau_fiches .= '<td ' . $bgcolor . ' width=8%>' . $nomSiteProduction . '<br>(' . $workflowName . ')</td>' . '<td ' . $bgcolor . ' width=3%>' . $classification . '</td>' . '<td ' . $bgcolor . ' width=3%>' . $suffixe_agrologic_fta . '</td>';
     // Raccourcie Class.
     $tableau_fiches .= "<td {$bgcolor} {$largeur_html_C1}><a title={$createur_link} />" . $din . "</a></td>" . "<td {$bgcolor} width=3%>" . $id_dossier_fta . "v" . $id_version_dossier_fta . "</td>";
     $tableau_fiches .= "<td {$bgcolorArcadia} width=\"1%\"> <b><font size=\"2\" color=\"#0000FF\">" . $code_article_ldc . "</font></b></td>";
     if ($abreviation_fta_etat == FtaEtatModel::ETAT_ABREVIATION_VALUE_MODIFICATION) {
         $tableau_fiches .= '<td ' . $bgcolor . $largeur_html_C3 . ' align=center>' . $dateEcheanceFta . '</td>';
         //échance de validation
     } else {
         $tableau_fiches .= '<td ' . $bgcolor . $largeur_html_C3 . ' align=center>' . $dateEcheanceFta . '</td>';
         //échance de validation
     }
     $tableau_fiches .= '<td ' . $bgcolor . ' width=5% align=center >' . $lienHistorique . '</td>' . '<td ' . $bgcolor . $largeur_html_C3 . ' align=center >' . $service . '</td>' . '<td ' . $bgcolor . ' width=8%' . ' align=center >' . $lien . '</td>';
     // Actions
     $tableau_fiches .= "</tr>";
     $compteur_ligne++;
     //        }//fin tant que tableau_origine
     $tableau_fiches = $javascript . $tableau_fiches . "</table>";
     //Ajoute de la fonction de traitement de masse
     if ($traitementDeMasse) {
         $liste_action_groupe = FtaTransitionModel::getListeFtaGrouper($abreviation_fta_etat);
         $tableau_fiches .= '&nbsp;
         <img src = ../lib/images/fleche_gauche_et_haut.png width = 38 height = 22 border = 0 />
         <i>Transitions groupées</i>:
         ' . $liste_action_groupe . '
         <input type = \'text\' name=\'subject\' size=\'20\' />
         <input type=image src=images/transiter.png width=20 height=20 />
         <input type=hidden name=action value=transition_groupe>
                      ';
     }
     return $tableau_fiches;
 }
コード例 #3
0
$arrayDossier = DatabaseOperation::convertSqlStatementWithoutKeyToArray("SELECT DISTINCT " . FtaModel::FIELDNAME_DOSSIER_FTA . " FROM " . FtaModel::TABLENAME . " , " . FtaActionSiteModel::TABLENAME . " , " . FtaWorkflowModel::TABLENAME . " , " . IntranetDroitsAccesModel::TABLENAME . " , " . IntranetActionsModel::TABLENAME . " , " . ClassificationFta2Model::TABLENAME . " WHERE " . FtaModel::TABLENAME . "." . FtaModel::FIELDNAME_WORKFLOW . " = " . FtaWorkflowModel::TABLENAME . "." . FtaWorkflowModel::KEYNAME . " AND " . FtaModel::TABLENAME . "." . FtaModel::FIELDNAME_ID_FTA_CLASSIFICATION2 . "=" . ClassificationFta2Model::TABLENAME . "." . ClassificationFta2Model::KEYNAME . " AND " . FtaWorkflowModel::TABLENAME . "." . FtaWorkflowModel::FIELDNAME_ID_INTRANET_ACTIONS . "=" . IntranetActionsModel::TABLENAME . "." . IntranetActionsModel::FIELDNAME_PARENT_INTRANET_ACTIONS . " AND " . IntranetDroitsAccesModel::TABLENAME . "." . IntranetDroitsAccesModel::FIELDNAME_ID_INTRANET_ACTIONS . "=" . IntranetActionsModel::TABLENAME . "." . IntranetActionsModel::KEYNAME . " AND " . FtaActionSiteModel::TABLENAME . "." . FtaActionSiteModel::FIELDNAME_ID_INTRANET_ACTIONS . " IN (" . IntranetActionsModel::TABLENAME . "." . IntranetActionsModel::KEYNAME . ")" . ' AND ( 0 ' . IntranetActionsModel::addIdIntranetAction($_SESSION[Acl::ACL_INTRANET_ACTIONS_VALIDE]) . ")" . " AND " . IntranetDroitsAccesModel::FIELDNAME_NIVEAU_INTRANET_DROITS_ACCES . "=" . IntranetNiveauAccesModel::NIVEAU_GENERIC_TRUE . " AND " . IntranetDroitsAccesModel::FIELDNAME_ID_USER . "=" . $idUser . " GROUP BY " . FtaModel::FIELDNAME_DOSSIER_FTA . " ORDER BY " . FtaWorkflowModel::TABLENAME . "." . FtaWorkflowModel::KEYNAME . "," . ClassificationFta2Model::TABLENAME . "." . ClassificationFta2Model::KEYNAME . "," . FtaModel::FIELDNAME_ID_FTA_ETAT . "," . FtaModel::FIELDNAME_CODE_ARTICLE_LDC . "," . FtaModel::FIELDNAME_DESIGNATION_COMMERCIALE . " LIMIT " . $nbMaxParPage . " OFFSET " . $debut);
/**
 * on récupère la dernière version
 */
foreach ($arrayDossier as $rowsDossier) {
    $idDossierFta = $rowsDossier[FtaModel::FIELDNAME_DOSSIER_FTA];
    $arrayContenu = DatabaseOperation::convertSqlStatementWithoutKeyToArray("SELECT " . FtaWorkflowModel::FIELDNAME_DESCRIPTION_FTA_WORKFLOW . "," . FtaModel::FIELDNAME_DOSSIER_FTA . "," . FtaModel::TABLENAME . "." . FtaModel::FIELDNAME_ID_FTA_CLASSIFICATION2 . "," . FtaModel::FIELDNAME_CODE_ARTICLE_LDC . "," . FtaModel::FIELDNAME_DESIGNATION_COMMERCIALE . " FROM " . FtaModel::TABLENAME . " , " . FtaActionSiteModel::TABLENAME . " , " . FtaWorkflowModel::TABLENAME . " , " . IntranetDroitsAccesModel::TABLENAME . " , " . IntranetActionsModel::TABLENAME . " , " . ClassificationFta2Model::TABLENAME . " WHERE " . FtaModel::FIELDNAME_DOSSIER_FTA . "=" . $idDossierFta . " AND " . FtaModel::TABLENAME . "." . FtaModel::FIELDNAME_WORKFLOW . " = " . FtaWorkflowModel::TABLENAME . "." . FtaWorkflowModel::KEYNAME . " AND " . FtaModel::TABLENAME . "." . FtaModel::FIELDNAME_ID_FTA_CLASSIFICATION2 . "=" . ClassificationFta2Model::TABLENAME . "." . ClassificationFta2Model::KEYNAME . " AND " . FtaWorkflowModel::TABLENAME . "." . FtaWorkflowModel::FIELDNAME_ID_INTRANET_ACTIONS . "=" . IntranetActionsModel::TABLENAME . "." . IntranetActionsModel::FIELDNAME_PARENT_INTRANET_ACTIONS . " AND " . IntranetDroitsAccesModel::TABLENAME . "." . IntranetDroitsAccesModel::FIELDNAME_ID_INTRANET_ACTIONS . "=" . IntranetActionsModel::TABLENAME . "." . IntranetActionsModel::KEYNAME . " AND " . FtaActionSiteModel::TABLENAME . "." . FtaActionSiteModel::FIELDNAME_ID_INTRANET_ACTIONS . " IN (" . IntranetActionsModel::TABLENAME . "." . IntranetActionsModel::KEYNAME . ")" . ' AND ( 0 ' . IntranetActionsModel::addIdIntranetAction($_SESSION[Acl::ACL_INTRANET_ACTIONS_VALIDE]) . ")" . " AND " . IntranetDroitsAccesModel::FIELDNAME_NIVEAU_INTRANET_DROITS_ACCES . "=" . IntranetNiveauAccesModel::NIVEAU_GENERIC_TRUE . " AND " . IntranetDroitsAccesModel::FIELDNAME_ID_USER . "=" . $idUser);
    if ($arrayContenu) {
        foreach ($arrayContenu as $rowsContenu) {
            $descriptionFtaWorkflow = $rowsContenu[FtaWorkflowModel::FIELDNAME_DESCRIPTION_FTA_WORKFLOW];
            $idDossier = $rowsContenu[FtaModel::FIELDNAME_DOSSIER_FTA];
            $codeArticleLdc = $rowsContenu[FtaModel::FIELDNAME_CODE_ARTICLE_LDC];
            $designationCommercialeFta = $rowsContenu[FtaModel::FIELDNAME_DESIGNATION_COMMERCIALE];
            $idClassificationFta2 = $rowsContenu[ClassificationFta2Model::KEYNAME];
            $classificationGroupe = ClassificationArborescenceArticleCategorieContenuModel::getElementClassificationFta($idClassificationFta2, ClassificationFta2Model::FIELDNAME_ID_PROPRIETAIRE_GROUPE);
            $classificationEnseigne = ClassificationArborescenceArticleCategorieContenuModel::getElementClassificationFta($idClassificationFta2, ClassificationFta2Model::FIELDNAME_ID_PROPRIETAIRE_ENSEIGNE);
            $classificationMarque = ClassificationArborescenceArticleCategorieContenuModel::getElementClassificationFta($idClassificationFta2, ClassificationFta2Model::FIELDNAME_ID_MARQUE);
            $classificationActivite = ClassificationArborescenceArticleCategorieContenuModel::getElementClassificationFta($idClassificationFta2, ClassificationFta2Model::FIELDNAME_ID_ACTIVITE);
            $classificationRayon = ClassificationArborescenceArticleCategorieContenuModel::getElementClassificationFta($idClassificationFta2, ClassificationFta2Model::FIELDNAME_ID_RAYON);
            $classificationEnvironnement = ClassificationArborescenceArticleCategorieContenuModel::getElementClassificationFta($idClassificationFta2, ClassificationFta2Model::FIELDNAME_ID_ENVIRONNEMENT);
            $classificationReseau = ClassificationArborescenceArticleCategorieContenuModel::getElementClassificationFta($idClassificationFta2, ClassificationFta2Model::FIELDNAME_ID_RESEAU);
            $classificationSaisonalite = ClassificationArborescenceArticleCategorieContenuModel::getElementClassificationFta($idClassificationFta2, ClassificationFta2Model::FIELDNAME_ID_SAISONNALITE);
            $bloc .= "<tr  class=contenu ><td>" . $descriptionFtaWorkflow . "</td>" . "<td>" . $idDossier . "</td>" . "<td>" . $codeArticleLdc . "</td>" . "<td>" . $designationCommercialeFta . "</td>" . "<td>" . $classificationGroupe . "/" . $classificationEnseigne . "/" . $classificationMarque . "/" . $classificationActivite . "/" . $classificationRayon . "/" . $classificationEnvironnement . "/" . $classificationReseau . "/" . $classificationSaisonalite . "</td>" . "<td>  <a href=" . "ajout_classification_chemin.php?id_fta=" . $idDossier . "&id_fta_chapitre_encours=1" . "&synthese_action=encours" . "&id_fta_etat=1" . "&abreviation_fta_etat=I" . "&id_fta_role=" . $idFtaRole . "&id_fta_classification2=" . $idClassificationFta2 . "&gestionnaire=1 > Modifier une classification</td></tr>";
        }
    }
}
echo "\r\n             <form name=recherche_groupe method=" . $method . " action=" . $page_action . ">\r\n             <input type=hidden name=action value=" . $action . ">\r\n\r\n             <" . $html_table . ">\r\n             <tr class=titre_principal><td>\r\n\r\n                 Classification par code article LDC\r\n\r\n             </td></tr>\r\n             <tr><td>\r\n\r\n                 Ce module permet de centraliser et d'harmoniser la classification des différents éléments suivants:<br>\r\n                 <br>\r\n               </td></tr>\r\n             <tr><td>\r\n            " . $bloc . "\r\n\r\n             </td></tr>\r\n                \r\n        </table>\r\n\r\n        </form>\r\n        " . $pagination;
/* * *********************
  Inclusion de fin de page
 * ********************* */
include "../lib/fin_page.inc";
コード例 #4
0
        flush();
        $page_default = substr(strrchr($_SERVER['PHP_SELF'], '/'), '1', '-4');
        $page_query = $_SERVER['QUERY_STRING'];
        $page_action = $page_default . '.php';
        $page_pdf = $page_default . '_pdf.php';
        $method = 'POST';
        //Pour une url > 2000 caractères, ne pas utiliser utiliser GET
        $html_table = 'table ' . 'border=0 ' . 'width=100% ' . 'class=contenu ';
        $idClassificationArborescenceArticleCategorieContenu = ClassificationArborescenceArticleCategorieContenuModel::createNewRecordset(array(ClassificationArborescenceArticleCategorieContenuModel::FIELDNAME_ID_CLASSIFICATION_ARBORESCENCE_ARTICLE_CATEGORIE => $idElements));
        $classificationArborescenceArticleCategorieContenuModel = new ClassificationArborescenceArticleCategorieContenuModel($idClassificationArborescenceArticleCategorieContenu);
        $classificationArborescenceArticleCategorieContenuModel->setIsEditable(TRUE);
        $htmlFamilleVentes = $classificationArborescenceArticleCategorieContenuModel->getHtmlAddClassificationElements();
        $bloc = $htmlFamilleVentes;
        break;
    case ClassificationArborescenceArticleCategorieContenuModel::SUPPRIMER:
        $classificationArborescenceArticleCategorieContenuModel = new ClassificationArborescenceArticleCategorieContenuModel($idClassificationArborescenceArticleCategorieContenu);
        $classificationArborescenceArticleCategorieContenuModel->deleteClassificationElements();
        header("Location: gestion_elements.php?" . ClassificationArborescenceArticleCategorieModel::KEYNAME . "=" . $idElements);
        break;
}
/*
 Sélection du mode d'affichage
*/
switch ($output) {
    /*     * ***********
          Début Code PDF
         * *********** */
    case 'pdf':
        //Constructeur
        $pdf = new XFPDF();
        //Déclaration des variables de formatages
コード例 #5
0
 /*
  Création des objets HTML (listes déroulante, cases à cocher ...etc.)
 */
 $bloc = '';
 /*
  * Marque
  */
 $IdFtaClassification2 = $ftaModel->getDataField(FtaModel::FIELDNAME_ID_FTA_CLASSIFICATION2)->getFieldValue();
 $classificationMarque = ClassificationArborescenceArticleCategorieContenuModel::getElementClassificationFta($IdFtaClassification2, ClassificationFta2Model::FIELDNAME_ID_MARQUE);
 $bloc .= 'Marque(s) <i>(anciennement gamme)</i>:';
 $bloc .= $classificationMarque;
 $bloc .= '<br>';
 /*
  * Activité
  */
 $classificationActivite = ClassificationArborescenceArticleCategorieContenuModel::getElementClassificationFta($IdFtaClassification2, ClassificationFta2Model::FIELDNAME_ID_ACTIVITE);
 $bloc .= 'Activité(s) <i>(anciennement ségment)</i>:';
 $bloc .= $classificationActivite;
 $bloc .= '<br>';
 /*         * ************
           Début Code HTML
          * ************ */
 echo '
      <form method=' . $method . ' action=' . $page_action . '>
      <input type=\'hidden\' name=\'id_fta\' value=\'' . $idFta . '\' />
      <input type=\'hidden\' name=\'abreviation_etat_destination\' value=\'' . $abreviationEtatDestination . '\' />
      <input type=\'hidden\' name=\'new_designation_commerciale_fta\' value=\'' . $new_designation_commerciale_fta . '\' />
      <input type=\'hidden\' name=\'id_fta_workflow\' value=\'' . $idFtaWorkflow . '\' />
      <input type=\'hidden\' name=\'site_de_production\' value=\'' . $siteDeProduction . '\' />
      <input type=\'hidden\' name=\'id_fta_role\' value=\'' . $idFtaRole . '\' />
      <' . $html_table . '>
コード例 #6
0
ファイル: ajout.php プロジェクト: SalokineTerata/intranet
        $bloc .= AccueilFta::afficherRequeteEnListeDeroulante($req_liste_site_assemblage, $id_defaut, $nom_liste, TRUE);
        $bloc .= "</td></tr>";
        //Classification Controle de Gestion
        if (!$suivant_classification_arborescence_article_categorie) {
            $bloc .= "<{$html_table}>\n                     <tr class=titre><td>Code de regroupement controle de gestion\n                     </td></tr>\n                     <tr><td>\n                         <{$html_table}>\n                             <tr><td>\n                                 " . mysql_field_desc("classification_arborescence_article", "FAMILLE_ARTICLE") . "\n                                 </td><td>\n                                 <input type=\"text\" name=\"FAMILLE_ARTICLE\" size=\"20\" />\n                                 <a href=l:rp_data.mdb target=_blank>\n                                 <img src=../lib/images/bouton_aide_point_interrogation.gif width=25 height=26 border=0 /> </a>\n                             </td></tr>\n                             <tr><td>\n                                 " . mysql_field_desc("classification_arborescence_article", "FAMILLE_MKTG") . "\n                                 </td><td>\n                                 <input type=\"text\" name=\"FAMILLE_MKTG\" size=\"20\" />\n                                 <a href=l:rp_data.mdb target=_blank>\n                                 <img src=../lib/images/bouton_aide_point_interrogation.gif width=25 height=26 border=0 /> </a>\n                             </td></tr>\n                          </table>\n                     </td></tr>\n                     ";
        }
        $action = "valider";
        $page_action = $page_default . "_post.php";
        break;
    case "modifier":
        $titre = "Modification de l'élément";
        $submit_label = "Modifier";
        //Classification Controle de Gestion
        $classificationArborescenceArticleModel = new ClassificationArborescenceArticleModel($id_classification_arborescence_article);
        $id_classification_arborescence_article_categorie_contenu = $classificationArborescenceArticleModel->getDataField(ClassificationArborescenceArticleModel::FIELDNAME_ID_CLASSIFICATION_ARBORESCENCE_ARTICLE_CATEGORIE_CONTENU)->getFieldValue();
        $classificationArborescenceArticleCategorieContenuModel = new ClassificationArborescenceArticleCategorieContenuModel($id_classification_arborescence_article_categorie_contenu);
        $id_classification_arborescence_article_categorie = $classificationArborescenceArticleCategorieContenuModel->getDataField(ClassificationArborescenceArticleCategorieContenuModel::FIELDNAME_ID_CLASSIFICATION_ARBORESCENCE_ARTICLE_CATEGORIE)->getFieldValue();
        $classificationArborescenceArticleCategorieModel = new ClassificationArborescenceArticleCategorieModel($id_classification_arborescence_article_categorie);
        $suivant_classification_arborescence_article_categorie = $classificationArborescenceArticleCategorieModel->getDataField(ClassificationArborescenceArticleCategorieModel::FIELDNAME_SUIVANT_CLASSIFICATION_ARBORESCENCE_ARTICLE_CATEGORIE)->getFieldValue();
        if (!$suivant_classification_arborescence_article_categorie) {
            $bloc .= "<" . $html_table . ">\n                        <tr class=titre><td>Code de regroupement controle de gestion\n                        </td></tr>\n                        <tr><td>\n                            <" . $html_table . ">\n                                <tr><td>\n                                    " . mysql_field_desc("classification_arborescence_article", "FAMILLE_ARTICLE") . "\n                                    </td><td>\n                                    <input type=\"text\" name=\"FAMILLE_ARTICLE\" size=\"20\" value=\"{$FAMILLE_ARTICLE}\" />\n                                    <a href=l:rp_data.mdb target=_blank>\n                                    <img src=../lib/images/bouton_aide_point_interrogation.gif width=25 height=26 border=0 /> </a>\n                                </td></tr>\n                                <tr><td>\n                                    " . mysql_field_desc("classification_arborescence_article", "FAMILLE_MKTG") . "\n                                    </td><td>\n                                    <input type=\"text\" name=\"FAMILLE_MKTG\" size=\"20\" value=\"{$FAMILLE_MKTG}\" />\n                                    <a href=l:rp_data.mdb target=_blank>\n                                    <img src=../lib/images/bouton_aide_point_interrogation.gif width=25 height=26 border=0 /> </a>\n                                </td></tr>\n                             </table>\n                        </td></tr>\n                        ";
            $action = "modifier";
            $page_action = $page_default . "_post.php";
        } else {
            $bloc .= " Il n'y a rien à modifier pour cet élément.";
            $submit_label = "Annuler";
            $page_action = "index.php?liste_id={$liste_id}";
        }
        break;
}
/*
コード例 #7
0
*/
print_page_begin($disable_full_page, $menu_file);
flush();
$page_default = substr(strrchr($_SERVER['PHP_SELF'], '/'), '1', '-4');
$page_query = $_SERVER['QUERY_STRING'];
$page_action = $page_default . '.php';
$page_pdf = $page_default . '_pdf.php';
$method = 'POST';
//Pour une url > 2000 caractères, ne pas utiliser utiliser GET
$html_table = 'table ' . 'border=0 ' . 'width=100% ' . 'class=contenu ';
$paramIdClaasifElement = Lib::getParameterFromRequest(ClassificationArborescenceArticleCategorieModel::KEYNAME);
if ($paramIdClaasifElement) {
    $globalConfig = new GlobalConfig();
    $globalConfig->refreshTableInDatabaseDescription(ClassificationArborescenceArticleCategorieContenuModel::TABLENAME);
    $titre = UserInterfaceMessage::FR_CLASSIFICATION_ADD_ELEMENT_MESSAGE;
    $htmlTableClassificationElement = ClassificationArborescenceArticleCategorieContenuModel::getHtmlTableClassificationElement($paramIdClaasifElement);
} else {
    $titre = UserInterfaceMessage::FR_CLASSIFICATION_ELEMENT_MESSAGE;
}
$listeDesClassifElement = ClassificationArborescenceArticleCategorieModel::getListeDeroulanteClassifElement($paramIdClaasifElement, Chapitre::EDITABLE);
$bloc = $listeDesClassifElement . $htmlTableClassificationElement;
/*
 Sélection du mode d'affichage
*/
switch ($output) {
    /*     * ***********
          Début Code PDF
         * *********** */
    case 'pdf':
        //Constructeur
        $pdf = new XFPDF();
コード例 #8
0
ファイル: fta_pdf.php プロジェクト: SalokineTerata/intranet
$NOM_synoptique_valide_fta = $ftaModel->getDataField(FtaModel::FIELDNAME_DESCRIPTION_DU_PRODUIT)->getFieldLabel();
$geoModel = new GeoModel($siteDeProduction);
$site_agrement_ce = $geoModel->getDataField(GeoModel::FIELDNAME_SITE_AGREMENT_CE)->getFieldValue();
$NOM_site_agrement_ce = $geoModel->getDataField(GeoModel::FIELDNAME_SITE_AGREMENT_CE)->getFieldLabel();
//Récupération des information de classification.
//Rayon
$IdFtaClassification2 = $ftaModel->getDataField(FtaModel::FIELDNAME_ID_FTA_CLASSIFICATION2)->getFieldValue();
if ($IdFtaClassification2) {
    $rayon = ClassificationArborescenceArticleCategorieContenuModel::getElementClassificationFta($IdFtaClassification2, ClassificationFta2Model::FIELDNAME_ID_RAYON);
    //Activité
    $activite = ClassificationArborescenceArticleCategorieContenuModel::getElementClassificationFta($IdFtaClassification2, ClassificationFta2Model::FIELDNAME_ID_ACTIVITE);
    if ($activite) {
        $activite = " / " . $activite;
    }
    //Marque
    $marque = ClassificationArborescenceArticleCategorieContenuModel::getElementClassificationFta($IdFtaClassification2, ClassificationFta2Model::FIELDNAME_ID_MARQUE);
    if ($marque) {
        $marque = " / " . $marque;
    }
}
$classification = "{$rayon} {$activite} {$marque}";
$date_derniere_maj_fta = $ftaModel->getDataField(FtaModel::FIELDNAME_DATE_DERNIERE_MAJ_FTA)->getFieldValue();
//Formatage de la date
$date_validation = changementDuFormatDeDate($date_derniere_maj_fta);
//Récupération des Informations FTA
$returnUVC = $ftaModel->buildArrayEmballageTypeUVC();
$returnParColis = $ftaModel->buildArrayEmballageTypeParColis();
$returnDuColis = $ftaModel->buildArrayEmballageTypeDuColis();
$returnPallettes = $ftaModel->buildArrayEmballageTypePalette();
$idFtaEtat = $ftaModel->getDataField(FtaModel::FIELDNAME_ID_FTA_ETAT)->getFieldValue();
$ftaEtatModel = new FtaEtatModel($idFtaEtat);