68,7 → 68,14 |
private $quota_heures_supp = 0; |
private $conges_payes = 0; |
private $temps_de_travail_jour = 7; |
private $temps_de_travail_mois = 0; |
private $temps_de_travail_mois = 0; |
private $tdt_lundi = 0; |
private $tdt_mardi = 0; |
private $tdt_mercredi = 0; |
private $tdt_jeudi = 0; |
private $tdt_vendredi = 0; |
private $tdt_samedi = 0; |
private $tdt_dimanche = 0; |
private $mark_admin = 0; |
private $mark_recapitulatif = 1; |
private $notes; |
94,6 → 101,13 |
'gu_conges_payes' => 'conges_payes', |
'gu_temps_de_travail_jour' => 'temps_de_travail_jour', |
'gu_temps_de_travail_mois' => 'temps_de_travail_mois', |
'gu_tdt_lundi' => 'tdt_lundi', |
'gu_tdt_mardi' => 'tdt_mardi', |
'gu_tdt_mercredi' => 'tdt_mercredi', |
'gu_tdt_jeudi' => 'tdt_jeudi', |
'gu_tdt_vendredi' => 'tdt_vendredi', |
'gu_tdt_samedi' => 'tdt_samedi', |
'gu_tdt_dimanche' => 'tdt_dimanche', |
'gu_mark_admin' => 'mark_admin', |
'gu_mark_recapitulatif' => 'mark_recapitulatif', |
'gu_notes' => 'notes'); |
245,6 → 259,76 |
$this->temps_de_travail_mois = $tdt; |
} |
|
// Tdt Lundi |
public function getTdtLundi() |
{ |
return $this->tdt_lundi; |
} |
public function setTdtLundi( $tdt ) |
{ |
$this->tdt_lundi = $tdt; |
} |
|
// Tdt Mardi |
public function getTdtMardi() |
{ |
return $this->tdt_mardi; |
} |
public function setTdtMardi( $tdt ) |
{ |
$this->tdt_mardi = $tdt; |
} |
|
// Tdt Mercredi |
public function getTdtMercredi() |
{ |
return $this->tdt_mercredi; |
} |
public function setTdtMercredi( $tdt ) |
{ |
$this->tdt_mercredi = $tdt; |
} |
|
// Tdt Jeudi |
public function getTdtJeudi() |
{ |
return $this->tdt_jeudi; |
} |
public function setTdtJeudi( $tdt ) |
{ |
$this->tdt_jeudi = $tdt; |
} |
|
// Tdt Vendredi |
public function getTdtVendredi() |
{ |
return $this->tdt_vendredi; |
} |
public function setTdtVendredi( $tdt ) |
{ |
$this->tdt_vendredi = $tdt; |
} |
|
// Tdt Samedi |
public function getTdtSamedi() |
{ |
return $this->tdt_samedi; |
} |
public function setTdtSamedi( $tdt ) |
{ |
$this->tdt_samedi = $tdt; |
} |
|
// Tdt Dimanche |
public function getTdtDimanche() |
{ |
return $this->tdt_dimanche; |
} |
public function setTdtDimanche( $tdt ) |
{ |
$this->tdt_dimanche = $tdt; |
} |
|
// Mark Admin |
public function getMarkAdmin() |
{ |
345,28 → 429,28 |
/**augmenter le nombre d'heure sup |
*un acces est fait a la bse de donnees pour enregistrer les changements en temps reel |
*/ |
function augmenterQuotaHeuresSup($nb) |
public function augmenterQuotaHeuresSup($nb) |
{ |
$this->quota_heures_supp = $this->quota_heures_supp + $nb; |
$this->quota_heures_supp = $this->quota_heures_supp + abs($nb); |
} |
|
/**diminuer le nb d'heures sup*/ |
public function diminuerQuotaHeuresSup($nb) |
{ |
$this->quota_heures_supp = $this->quota_heures_supp - $nb; |
$this->quota_heures_supp = $this->quota_heures_supp - abs($nb); |
/*un quota heure supp negatif implique qu'il y a des heures a rattraper*/ |
} |
|
/**augmenter le nombre de jours de conges */ |
function augmenterCongesPayes($nb) |
public function augmenterCongesPayes($nb) |
{ |
$this->conges_payes = $this->conges_payes + $nb; |
$this->conges_payes = $this->conges_payes + abs($nb); |
} |
|
/**diminuer le nombre de jour de conges */ |
function diminuerCongesPayes($nb) |
public function diminuerCongesPayes($nb) |
{ |
$this->conges_payes = $this->conges_payes - $nb; |
$this->conges_payes = $this->conges_payes - abs($nb); |
} |
} |
|