Loading module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.TypePieceJointeStatut.dcm.xml +0 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ <field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/> <field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/> <field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/> <field name="premierRecrutement" type="boolean" column="PREMIER_RECRUTEMENT" nullable="false"/> <field name="obligatoire" type="boolean" column="OBLIGATOIRE" nullable="false"/> <field name="seuilHetd" type="integer" column="SEUIL_HETD" nullable="true"/> <field name="changementRIB" type="boolean" column="CHANGEMENT_RIB" nullable="false"/> Loading module/Application/src/Application/Entity/Db/TypePieceJointeStatut.php +0 −36 Original line number Diff line number Diff line Loading @@ -15,11 +15,6 @@ class TypePieceJointeStatut implements HistoriqueAwareInterface use HistoriqueAwareTrait; use ObligatoireSelonSeuilHeuresAwareTrait; /** * @var boolean */ private $premierRecrutement; /** * @var integer */ Loading Loading @@ -82,35 +77,6 @@ class TypePieceJointeStatut implements HistoriqueAwareInterface } /** * Set premierRecrutement * * @param boolean $premierRecrutement * * @return TypePieceJointeStatut */ public function setPremierRecrutement($premierRecrutement) { $this->premierRecrutement = $premierRecrutement; return $this; } /** * Get premierRecrutement * * @return boolean */ public function getPremierRecrutement() { return $this->premierRecrutement; } /** * Set obligatoire * Loading Loading @@ -341,7 +307,6 @@ class TypePieceJointeStatut implements HistoriqueAwareInterface { $txt = $this->getObligatoire() ? 'Obl' : 'Fac'; if ($this->getSeuilHeures()) $txt .= ' >' . $this->getSeuilHeures(); if ($this->getPremierRecrutement()) $txt .= ' PR '; if ($this->getFC()) $txt .= ' FC '; if ($this->getChangementRIB()) $txt .= ' RIB'; if ($this->getDureeVie() && $this->getDureeVie() > 1 ) $txt .= ' ' . $this->getDureeVie() . 'ans'; Loading @@ -360,7 +325,6 @@ class TypePieceJointeStatut implements HistoriqueAwareInterface $t = []; $t[] = $this->getObligatoire() ? 'Pièce obligatoire' : 'Pièce facultative'; if ($this->getSeuilHeures()) $t[] = 'À partir de ' . $this->getSeuilHeures() . ' heures'; if ($this->getPremierRecrutement()) $t[] = 'Uniquement en cas de premier recrutement'; if ($this->getFC()) $t[] = 'Uniquement avec des enseignements en Formation Continue'; if ($this->getChangementRIB()) $t[] = 'Uniquement si le RIB a changé'; if ($this->getAnneeDebut()) $t[] = 'Actif à partir de ' . $this->getAnneeDebut(); Loading module/Application/src/Application/Form/PieceJointe/ModifierTypePieceJointeStatutForm.php +7 −7 Original line number Diff line number Diff line Loading @@ -35,13 +35,13 @@ class ModifierTypePieceJointeStatutForm extends AbstractForm 'type' => 'Hidden', ]); $this->add([ /*$this->add([ 'name' => 'premier-recrutement', 'options' => [ 'label' => 'Uniquement en cas de premier recrutement', ], 'type' => 'Checkbox', ]); ]);*/ $this->add([ 'type' => 'Checkbox', Loading Loading @@ -216,9 +216,9 @@ class ModifierTypePieceJointeStatutForm extends AbstractForm 'changement-rib' => [ 'required' => true, ], 'premier-recrutement' => [ /*'premier-recrutement' => [ 'required' => true, ], ],*/ 'fc' => [ 'required' => true, ], Loading Loading @@ -256,7 +256,7 @@ class TypePieceJointeStatutHydrator implements HydratorInterface */ public function hydrate(array $data, $object) { $object->setPremierRecrutement($data['premier-recrutement']); //$object->setPremierRecrutement($data['premier-recrutement']); $object->setChangementRIB($data['changement-rib']); $object->setObligatoire($data['typePieceJointe']); $object->setSeuilHetd($data['seuil-hetd']); Loading Loading @@ -286,9 +286,9 @@ class TypePieceJointeStatutHydrator implements HydratorInterface $data = [ 'id' => $object->getId(), 'typePieceJointe' => $object->getObligatoire(), 'premier-recrutement' => $object->getPremierRecrutement(), //'premier-recrutement' => $object->getPremierRecrutement(), 'seuil-hetd' => $object->getSeuilHeures(), 'premier-recrutement' => $object->getPremierRecrutement(), //'premier-recrutement' => $object->getPremierRecrutement(), 'changement-rib' => $object->getChangementRIB(), 'fc' => $object->getFC(), 'duree-vie' => $object->getDureeVie(), Loading module/Application/view/application/piece-jointe/modifier-type-piece-jointe-statut.phtml +1 −5 Original line number Diff line number Diff line Loading @@ -20,11 +20,7 @@ echo $this->messenger()->addCurrentMessagesFromFlashMessenger(); ?> <div class="row"> <div class="col-md-12"> <?= $this->formControlGroup($form->get('premier-recrutement')); ?> </div> </div> <div class="row"> <div class="col-md-12"> <?= $this->formControlGroup($form->get('typePieceJointe')); ?> Loading Loading
module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.TypePieceJointeStatut.dcm.xml +0 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ <field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/> <field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/> <field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/> <field name="premierRecrutement" type="boolean" column="PREMIER_RECRUTEMENT" nullable="false"/> <field name="obligatoire" type="boolean" column="OBLIGATOIRE" nullable="false"/> <field name="seuilHetd" type="integer" column="SEUIL_HETD" nullable="true"/> <field name="changementRIB" type="boolean" column="CHANGEMENT_RIB" nullable="false"/> Loading
module/Application/src/Application/Entity/Db/TypePieceJointeStatut.php +0 −36 Original line number Diff line number Diff line Loading @@ -15,11 +15,6 @@ class TypePieceJointeStatut implements HistoriqueAwareInterface use HistoriqueAwareTrait; use ObligatoireSelonSeuilHeuresAwareTrait; /** * @var boolean */ private $premierRecrutement; /** * @var integer */ Loading Loading @@ -82,35 +77,6 @@ class TypePieceJointeStatut implements HistoriqueAwareInterface } /** * Set premierRecrutement * * @param boolean $premierRecrutement * * @return TypePieceJointeStatut */ public function setPremierRecrutement($premierRecrutement) { $this->premierRecrutement = $premierRecrutement; return $this; } /** * Get premierRecrutement * * @return boolean */ public function getPremierRecrutement() { return $this->premierRecrutement; } /** * Set obligatoire * Loading Loading @@ -341,7 +307,6 @@ class TypePieceJointeStatut implements HistoriqueAwareInterface { $txt = $this->getObligatoire() ? 'Obl' : 'Fac'; if ($this->getSeuilHeures()) $txt .= ' >' . $this->getSeuilHeures(); if ($this->getPremierRecrutement()) $txt .= ' PR '; if ($this->getFC()) $txt .= ' FC '; if ($this->getChangementRIB()) $txt .= ' RIB'; if ($this->getDureeVie() && $this->getDureeVie() > 1 ) $txt .= ' ' . $this->getDureeVie() . 'ans'; Loading @@ -360,7 +325,6 @@ class TypePieceJointeStatut implements HistoriqueAwareInterface $t = []; $t[] = $this->getObligatoire() ? 'Pièce obligatoire' : 'Pièce facultative'; if ($this->getSeuilHeures()) $t[] = 'À partir de ' . $this->getSeuilHeures() . ' heures'; if ($this->getPremierRecrutement()) $t[] = 'Uniquement en cas de premier recrutement'; if ($this->getFC()) $t[] = 'Uniquement avec des enseignements en Formation Continue'; if ($this->getChangementRIB()) $t[] = 'Uniquement si le RIB a changé'; if ($this->getAnneeDebut()) $t[] = 'Actif à partir de ' . $this->getAnneeDebut(); Loading
module/Application/src/Application/Form/PieceJointe/ModifierTypePieceJointeStatutForm.php +7 −7 Original line number Diff line number Diff line Loading @@ -35,13 +35,13 @@ class ModifierTypePieceJointeStatutForm extends AbstractForm 'type' => 'Hidden', ]); $this->add([ /*$this->add([ 'name' => 'premier-recrutement', 'options' => [ 'label' => 'Uniquement en cas de premier recrutement', ], 'type' => 'Checkbox', ]); ]);*/ $this->add([ 'type' => 'Checkbox', Loading Loading @@ -216,9 +216,9 @@ class ModifierTypePieceJointeStatutForm extends AbstractForm 'changement-rib' => [ 'required' => true, ], 'premier-recrutement' => [ /*'premier-recrutement' => [ 'required' => true, ], ],*/ 'fc' => [ 'required' => true, ], Loading Loading @@ -256,7 +256,7 @@ class TypePieceJointeStatutHydrator implements HydratorInterface */ public function hydrate(array $data, $object) { $object->setPremierRecrutement($data['premier-recrutement']); //$object->setPremierRecrutement($data['premier-recrutement']); $object->setChangementRIB($data['changement-rib']); $object->setObligatoire($data['typePieceJointe']); $object->setSeuilHetd($data['seuil-hetd']); Loading Loading @@ -286,9 +286,9 @@ class TypePieceJointeStatutHydrator implements HydratorInterface $data = [ 'id' => $object->getId(), 'typePieceJointe' => $object->getObligatoire(), 'premier-recrutement' => $object->getPremierRecrutement(), //'premier-recrutement' => $object->getPremierRecrutement(), 'seuil-hetd' => $object->getSeuilHeures(), 'premier-recrutement' => $object->getPremierRecrutement(), //'premier-recrutement' => $object->getPremierRecrutement(), 'changement-rib' => $object->getChangementRIB(), 'fc' => $object->getFC(), 'duree-vie' => $object->getDureeVie(), Loading
module/Application/view/application/piece-jointe/modifier-type-piece-jointe-statut.phtml +1 −5 Original line number Diff line number Diff line Loading @@ -20,11 +20,7 @@ echo $this->messenger()->addCurrentMessagesFromFlashMessenger(); ?> <div class="row"> <div class="col-md-12"> <?= $this->formControlGroup($form->get('premier-recrutement')); ?> </div> </div> <div class="row"> <div class="col-md-12"> <?= $this->formControlGroup($form->get('typePieceJointe')); ?> Loading