EmployeeContract.class.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Define a Contrat employé
  4. * @author Kiss team
  5. * @category Plugin
  6. * @license MIT
  7. */
  8. class EmployeeContract extends Entity{
  9. public $id;
  10. public $employee; //Employé (Nombre Entier)
  11. public $start; //Date de début (Date)
  12. public $end; //date de fin (Date)
  13. public $type; //Type de contrat (Liste configurable)
  14. public $statute; //Statut (Liste configurable)
  15. public $salary; //Rémunération annuelle brute (Prix)
  16. public $worktime; //Temps de travail (Nombre Entier)
  17. public $comment; //Commentaire (Texte enrichi)
  18. protected $TABLE_NAME = 'employee_contract';
  19. public $entityLabel = 'Contrat employé';
  20. public $fields = array(
  21. 'id' => array('type'=>'key', 'label' => 'Identifiant'),
  22. 'employee' => array('type'=>'integer','label' => 'Employé','link'=>'plugin/employee/Employee.class.php'),
  23. 'start' => array('type'=>'date','label' => 'Date de début'),
  24. 'end' => array('type'=>'date','label' => 'date de fin'),
  25. 'type' => array('type'=>'dictionary','label' => 'Type de contrat','link'=>'class/Dictionary.class.php'),
  26. 'statute' => array('type'=>'dictionary','label' => 'Statut'),
  27. 'salary' => array('type'=>'price','label' => 'Rémunération annuelle brute'),
  28. 'worktime' => array('type'=>'integer','label' => 'Temps de travail','link'=>'plugin/employee/EmployeeWorkTime.class.php'),
  29. 'comment' => array('type'=>'wysiwyg','label' => 'Commentaire')
  30. );
  31. //Colonnes indexées
  32. public $indexes = array();
  33. }
  34. ?>