EN · DE · RU · FR · ES

#417: KundeStatus.java

projectforge-business/src/main/java/org/projectforge/business/fibu/KundeStatus.java Type : Java · Rôle : Comptabilité financière · Source : projectforge-business/src/main/java/org/projectforge/business/fibu/KundeStatus.java 70 lignes · 33 code · 27 commentaires · 10 vides
Fichier source à projectforge-business/src/main/java/org/projectforge/business/fibu/KundeStatus.java contenant du code Java pour la couche Comptabilité financière.

Structure du code

Paquetage : org.projectforge.business.fibu

Énumérations : KundeStatus

Implémente : I18nEnum

Méthodes (3) : getKey, getI18nKey, isIn

Champs (1) : key

Importations : 1 paquetage

Code source (abrégé)

package org.projectforge.business.fibu;

import org.projectforge.common.i18n.I18nEnum;

public enum KundeStatus implements I18nEnum
{

  /** Le client est encore en phase d'acquisition. */
  ACQUISISTION("acquisition"), /** Des affaires sont activement menées avec le client. */
  ACTIVE("active"), /** Il n'y a (temporairement) plus de relations commerciales avec le client. */
  NONACTIVE("nonactive"), /** La collaboration avec le client est terminée. Une nouvelle collaboration est peu probable. */
  ENDED("ended"), /** Le client est insolvable, a changé de raison sociale, etc. */
  NONEXISTENT("nonexistent");

  public static final KundeStatus[] LIST = new KundeStatus[] { ACQUISISTION, ACTIVE, NONACTIVE, ENDED, NONEXISTENT};

  private String key;

  /**
   * La clé sera utilisée p. ex. pour l'i18n.
   * @return
   */
  public String getKey()
  {
    return key;
  }

  public String getI18nKey()
  {
    return "fibu.kunde.status." + key;
  };

  KundeStatus(String key)
  {
    this.key = key;
  }

  public boolean isIn(KundeStatus... status)
  {
    for (KundeStatus st : status) {
      if (this == st) {
        return true;
      }
    }
    return false;
  }
}

Historique Git

868d6abb7 2025 -> 2026
63081666f En-têtes des fichiers source : 2024 -> 2025.
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
5f7ef41b8 Copyright 2021 -> 2022