Skip to content
Snippets Groups Projects
Commit 195a9745 authored by gauthierb's avatar gauthierb
Browse files

Ajout du statut de l'intervenant.

parent 38da82c8
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
<id name="id" type="integer" column="ID"> <id name="id" type="integer" column="ID">
<generator strategy="SEQUENCE"/> <generator strategy="SEQUENCE"/>
</id> </id>
<field name="code" type="string" column="CODE" length="3" nullable="false"/>
<field name="depassement" type="boolean" column="DEPASSEMENT" nullable="false"/> <field name="depassement" type="boolean" column="DEPASSEMENT" nullable="false"/>
<field name="fonctionEC" type="boolean" column="FONCTION_E_C" nullable="false"/> <field name="fonctionEC" type="boolean" column="FONCTION_E_C" nullable="false"/>
<field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/> <field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
...@@ -21,6 +20,7 @@ ...@@ -21,6 +20,7 @@
<field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/> <field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
<field name="libelle" type="string" column="LIBELLE" length="30" nullable="false"/> <field name="libelle" type="string" column="LIBELLE" length="30" nullable="false"/>
<field name="serviceStatutaire" type="float" column="SERVICE_STATUTAIRE" precision="126" scale="0" nullable="false"/> <field name="serviceStatutaire" type="float" column="SERVICE_STATUTAIRE" precision="126" scale="0" nullable="false"/>
<field name="sourceCode" type="string" column="SOURCE_CODE" length="100" nullable="true"/>
<field name="validiteDebut" type="datetime" column="VALIDITE_DEBUT" nullable="false"/> <field name="validiteDebut" type="datetime" column="VALIDITE_DEBUT" nullable="false"/>
<field name="validiteFin" type="datetime" column="VALIDITE_FIN" nullable="true"/> <field name="validiteFin" type="datetime" column="VALIDITE_FIN" nullable="true"/>
<many-to-one field="typeIntervenant" target-entity="Application\Entity\Db\TypeIntervenant"> <many-to-one field="typeIntervenant" target-entity="Application\Entity\Db\TypeIntervenant">
......
...@@ -9,10 +9,15 @@ use Doctrine\ORM\Mapping as ORM; ...@@ -9,10 +9,15 @@ use Doctrine\ORM\Mapping as ORM;
*/ */
class StatutIntervenant class StatutIntervenant
{ {
public function __toString()
{
return $this->getLibelle();
}
/** /**
* @var string * @var string
*/ */
private $code; private $sourceCode;
/** /**
* @var boolean * @var boolean
...@@ -86,26 +91,26 @@ class StatutIntervenant ...@@ -86,26 +91,26 @@ class StatutIntervenant
/** /**
* Set code * Set sourceCode
* *
* @param string $code * @param string $sourceCode
* @return StatutIntervenant * @return StatutIntervenant
*/ */
public function setCode($code) public function setCode($sourceCode)
{ {
$this->code = $code; $this->sourceCode = $sourceCode;
return $this; return $this;
} }
/** /**
* Get code * Get sourceCode
* *
* @return string * @return string
*/ */
public function getCode() public function getCode()
{ {
return $this->code; return $this->sourceCode;
} }
/** /**
......
...@@ -142,6 +142,13 @@ class IntervenantDl extends AbstractDl ...@@ -142,6 +142,13 @@ class IntervenantDl extends AbstractDl
$this->entity->getType() $this->entity->getType()
); );
if (($statut = $this->entity->getStatut())) {
$metier[] = sprintf($tplDtdd,
"Statut de l'intervenant :",
$statut
);
}
$metier[] = sprintf($tplDtdd, $metier[] = sprintf($tplDtdd,
"N° {$this->entity->getSourceToString()} :", "N° {$this->entity->getSourceToString()} :",
$this->entity->getSourceCode() $this->entity->getSourceCode()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment