Commit 627a333c authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Correction intranavigator

Mise à jour détails HETD (WIP)
Plein de détails
parent ad6fb1c2
Loading
Loading
Loading
Loading
+1 −1
Changes for composer.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
        "datatables.net/datatables.net-bs5": "2.1.8",

        "unicaen/app"                      : "7.0.0",
        "unicaen/authentification"         : "6.4.0",
        "unicaen/authentification"         : "6.4.1",
        "unicaen/privilege"                : "6.2.1",
        "unicaen/utilisateur"              : "7.0.0",
        "unicaen/code"                     : "6.2.3",
−1
Changes for front/Application/Connexion.vue: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@
        :click="true"
        :close-on-hide="true"
        :delay="{show: 0, hide: 0}"
        :boundary-padding="{top: navHeight}"
        target="user-current-info"
    >
        <template #title>Utilisateur connecté à l'application</template>
+132 −3
Changes for front/Formule/Details.vue: 132 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -14,20 +14,123 @@
                </table>
            </div>
        </div>
        <div v-if="!typeVolumeHoraire" class="alert alert-info">Veuillez cliquer sur un des boutons ci-dessus pour afficher de détail de calcul des HETD</div>
        <div v-if="!typeVolumeHoraire" class="alert alert-info">Veuillez cliquer sur un des boutons ci-dessus pour
            afficher de détail de calcul des HETD
        </div>
    </div>
    <div v-else>
        <h2>{{ listeTypes[typeVolumeHoraire] }} {{ listeEtats[etatVolumeHoraire] }}</h2>
    </div>
    <div v-if="Object.keys(this.data).length > 0">
<pre>{{ data }}</pre>
        <table class="table table-bordered">
            <tbody>
            <tr>
                <th>Structure</th>
                <td v-if="data.intervenant.structure">{{ data.intervenant.structure.libelle }}</td>
                <td v-else><span class="text-secondary">Aucune structure d'affectation</span></td>
            </tr>
            <tr v-if="data.intervenant.heuresServiceStatutaire > 0 && data.intervenant.heuresServiceStatutaire != data.intervenant.serviceDu">
                <th>Heures de service statutaire</th>
                <td>
                    <u-heures :valeur="data.intervenant.heuresServiceStatutaire"/>
                </td>
            </tr>
            <tr v-if="data.intervenant.heuresServiceModifie > 0">
                <th>Heures de service modifié</th>
                <td>
                    <u-heures :valeur="data.intervenant.heuresServiceModifie"/>
                </td>
            </tr>
            <tr v-if="data.intervenant.serviceDu > 0">
                <th>Heures de service dû</th>
                <td>
                    <u-heures :valeur="data.intervenant.serviceDu"/>
                </td>
            </tr>
            <tr>
                <th>Dépassement de service dû sans HC</th>
                <td v-if="data.intervenant.depassementServiceDuSansHC">Oui</td>
                <td v-else>Non</td>
            </tr>
            <tr v-for="(plib, i) in data.iParams" :key="i">
                <th>{{ plib }} {{ i }}</th>
                <td>{{ data.intervenant.params[i] }}</td>
            </tr>
            </tbody>
        </table>

        <table class="table table-bordered table-xs table-details">
            <thead>
            </thead>
            <tbody>
            <template v-for="(sdata, sid) in data.services" :key="sid">
                <tr>
                    <th class="service" colspan="999">
                        <details-service-enseignement v-if="sdata.type=='enseignement'" :enseignement="sdata"/>
                        <details-service-referentiel v-else :referentiel="sdata"/>
                    </th>
                </tr>
                <tr class="details">
                    <th rowspan="2">&nbsp;</th>
                    <th colspan="2">Horaire</th>
                    <th rowspan="2">Période</th>
                    <th rowspan="2" v-for="(param,pi) in data.vhParams" :key="pi">{{ param }}</th>
                    <th rowspan="2">Motif non paiement</th>
                    <th rowspan="2">Type d'intervention</th>
                    <th colspan="2">Majoration</th>
                    <th rowspan="2">Heures</th>
                    <th rowspan="2">&nbsp;</th>
                    <template v-for="(sousTypesHetd,typeHetd) in data.typesHetd" :key="typeHetd">

                        <th :rowspan="sousTypesHetd.length == 0 ? 2 : 1" :colspan="Math.min(sousTypesHetd.length,1)">{{ typeHetd }}</th>
                    </template>
                </tr>
                <tr class="details">
                    <th>Début</th>
                    <th>Fin</th>
                    <th>Service</th>
                    <th>Compl.</th>
                    <template v-for="typeHetd in data.typesHetd" :key="typeHetd">
                        <th v-for="(sth,k) in typeHetd" :key="k">{{ sth }}</th>
                    </template>
                </tr>
                <tr v-for="(vhdata, vhid) in sdata.volumesHoraires" :key="vhid">
                    <details-volume-horaire-enseignement v-if="sdata.type=='enseignement'" :vh="vhdata"/>
                    <details-volume-horaire-referentiel v-else :vhr="vhdata"/>
                    <details-hetds :hetds="vhdata.hetd"/>
                </tr>
                <tr>
                    <th class="total" colspan="9">Total</th>
                    <th>&nbsp;</th>
                    <details-hetds :hetds="sdata.hetd"/>
                </tr>
            </template>
            <tr>
                <th class="total" colspan="9">Total intervenant</th>
                <th>&nbsp;</th>
                <details-hetds :hetds="data.intervenant.hetd"/>
            </tr>
            </tbody>
        </table>
    </div>
</template>
<script>

import DetailsServiceEnseignement from "./DetailsServiceEnseignement.vue";
import DetailsServiceReferentiel from "./DetailsServiceReferentiel.vue";
import DetailsVolumeHoraireEnseignement from "./DetailsVolumeHoraireEnseignement.vue";
import DetailsVolumeHoraireReferentiel from "./DetailsVolumeHoraireReferentiel.vue";
import DetailsHetds from "./DetailsHetds.vue";

export default {
    name: 'Details',
    components: {},
    components: {
        DetailsVolumeHoraireReferentiel,
        DetailsVolumeHoraireEnseignement,
        DetailsServiceEnseignement,
        DetailsServiceReferentiel,
        DetailsHetds
    },
    props: {
        intervenant: {type: Number},
        typesVolumesHoraires: {type: Object},
@@ -118,9 +221,35 @@ export default {
</script>
<style scoped>

table tr.details th {
    font-weight: bold;
    background-color: #f8f8f8;
}

.table-details tr.details th {
    font-size: 8pt;
}

.btn-choixtevh {
    width: 100%;
    margin-bottom: 6px;
}

.total {
    text-align: right;
    font-weight: bold;
}

table.table {
    border-top: 0px white solid;
}

th.service {

    border-left: 0px white solid;
    border-right: 0px white solid;
    padding-top: 1em;
    padding-bottom: 2px;
}

</style>
 No newline at end of file
+59
Changes for front/Formule/DetailsHetd.vue: 59 added lines, 0 removed lines.
Original line number Diff line number Diff line
<template>
    <td>
        <div :class="arrondiClass" :title="legende">
            <u-heures :valeur="hetd.valeur"></u-heures>
        </div>
    </td>
</template>
<script>

export default {
    name: 'DetailsHetd',
    components: {},
    props: {
        type: {type: String},
        hetd: {type: Object},
    },
    computed: {
        arrondiClass()
        {
            switch(this.hetd.arrondi){
                case -1: return 'arrondi-defaut';
                case 1: return 'arrondi-exces';
                default: return "";
            }
        },
        legende()
        {
            let titre = "";

            if (this.hetd.arrondi == 1){
                titre = "Arrondi à l'excès";
            }else if (this.hetd.arrondi == -1){
                titre = "Arrondi par défaut";
            }

            if (this.hetd.original != this.hetd.valeur){
                if (titre != ""){
                    titre += "\n";
                }
                titre += "Valeur originale : " + Util.floatToString(this.hetd.original);
            }

            return titre;
        }
    },
}

</script>
<style scoped>

.arrondi-defaut {
    color: #083d77;
}

.arrondi-exces {
    color: #8c1c2e;
}

</style>
 No newline at end of file
+21
Changes for front/Formule/DetailsHetds.vue: 21 added lines, 0 removed lines.
Original line number Diff line number Diff line
<template>
    <details-hetd v-for="(hetd,id) in hetds" :key="id" :type="id" :hetd="hetd"></details-hetd>
</template>
<script>

import DetailsHetd from "./DetailsHetd.vue";

export default {
    name: 'DetailsHetds',
    components: {
        DetailsHetd
    },
    props: {
        hetds: {type: Object},
    },
}

</script>
<style scoped>

</style>
 No newline at end of file
Loading