Exemplo n.º 1
0
 /**
  * @brief Création d'une nouvelle fiche
  * @note none
  * @param name
  * @param id
  * @param time Le temps de fabrication
  * @param machine Le numéro de machine
  * @param dateBeginning La date de début de fabrication + heure
  * @param dateLivraison
  * @param enum typeOperation
  * @param boolean recouvrement
  * @param enum retardPlacement (aucun/avant 2jours/ apres date rendu)
  * @param text
  * */
 public Fiche(String newName, int newId, int newTempsFabrication, DateTime newDateLivraison, TypeOperation typeOperation, TypeColor recouvrement)
 {
     //Les valeurs non définies sont à -1 ou null
     this.name             = String.Copy(newName);
     this.id               = newId;
     this.tempsFabrication = newTempsFabrication;
     this.dateLivraison    = newDateLivraison;
     this.typeOperation    = typeOperation;
     this.recouvrement     = new TypeColor(recouvrement.name, recouvrement.color);
 }
Exemplo n.º 2
0
 public Fiche(Fiche newFiche)
 {
     this.name                 = String.Copy(newFiche.name);
     this.id                   = newFiche.id;
     this.tempsFabrication     = newFiche.tempsFabrication;
     this.dateLivraison        = newFiche.dateLivraison;
     this.typeOperation        = newFiche.typeOperation;
     this.quantiteElement      = newFiche.quantiteElement;
     this.recouvrement         = newFiche.recouvrement;
     this.dateDebutFabrication = newFiche.dateDebutFabrication;
     this.textDescription      = newFiche.textDescription;
     this.attentionRetard      = newFiche.attentionRetard;
     this.alerteRetard         = newFiche.alerteRetard;
     this.check                = newFiche.check;
     this.machine              = newFiche.machine;
 }