Commit 7e23ac63 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Refonte (en cours) de l'outil de suppression d'intervenants et de l'usage des Nodes et Trees

parent 4a7f5c5c
Loading
Loading
Loading
Loading
+27 −2
Changes for code/test4.php: 27 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -9,6 +9,31 @@
 */


$qg = $container->get(\UnicaenImport\Service\QueryGeneratorService::class);
/** @var \Application\Processus\IntervenantProcessus $ip */
$ip = $container->get(\Application\Processus\IntervenantProcessus::class);
$is = $ip->suppression();

sqlDump($qg->makeDiffView('INTERVENANT'));
 No newline at end of file
$intervenant = $container->get(\Application\Service\IntervenantService::class)->get(191233);

$data = $is->getData($intervenant);
var_dump($data);

$tree = $is->getTree($intervenant);

affNode($tree);


function affNode(\Application\Model\TreeNode $n)
{
    echo '<div style="margin-left:2em">';
    echo '<span class="' . $n->getIcon() . '"></span> ' . $n->getLabel();
    echo ' <span style="color:#eee">id=' . $n->getId() . '</span>';
    echo '<br />';

    $childs = $n->getChildren();
    foreach ($childs as $c) {
        affNode($c);
    }

    echo '</div>';
}
 No newline at end of file
+1 −1
Changes for data/ddl/ref-constraint/SR_INTERVENANT_FK.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ return [
    'name'        => 'SR_INTERVENANT_FK',
    'table'       => 'SERVICE_REFERENTIEL',
    'rtable'      => 'INTERVENANT',
    'delete_rule' => 'CASCADE',
    'delete_rule' => NULL,
    'index'       => NULL,
    'columns'     => [
        'INTERVENANT_ID' => 'ID',
+1 −1
Changes for data/ddl/ref-constraint/TBL_SERVICE_REF_INTERVENANT_FK.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ return [
    'name'        => 'TBL_SERVICE_REF_INTERVENANT_FK',
    'table'       => 'TBL_SERVICE_REFERENTIEL',
    'rtable'      => 'INTERVENANT',
    'delete_rule' => 'CASCADE',
    'delete_rule' => NULL,
    'index'       => NULL,
    'columns'     => [
        'INTERVENANT_ID' => 'ID',
+1 −0
Changes for module/Application/config/aaa_module.config.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -182,6 +182,7 @@ $config = [
        ],
        'invokables' => [
            'utilisateur'     => View\Helper\UtilisateurViewHelper::class,
            'tree'            => View\Helper\TreeViewHelper::class,
            'formSupprimer'   => View\Helper\FormSupprimerViewHelper::class,
            'formButtonGroup' => View\Helper\FormButtonGroupViewHelper::class,
            'cartridge'       => View\Helper\CartridgeViewHelper::class,
+0 −1
Changes for module/Application/config/intervenant.config.php: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -564,7 +564,6 @@ return [
        'invokables' => [
            'formuleTotauxHetd' => View\Helper\Intervenant\TotauxHetdViewHelper::class,
            'intervenant'       => View\Helper\Intervenant\IntervenantViewHelper::class,
            'intervenantSuppressionData' => View\Helper\Intervenant\IntervenantSuppressionDataViewHelper::class,
        ],
    ],
    'form_elements'   => [
Loading