package nc.noumea.mairie.organigramme.dto;
import org.apache.commons.lang.StringUtils;
import flexjson.JSON;
/*
* #%L
* Logiciel de Gestion des Organigrammes de la Ville de Nouméa
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2015 Mairie de Nouméa
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
public class FichePosteDto {
private Integer idFichePoste;
private String numero;
private Integer idServiceADS;
private String statutFDP;
private String titre;
private String categorie;
private String reglementaire;
private String agent;
public String sigle;
public String service;
private String gradePoste;
private String commentaire;
// #17919
private Integer idStatutFDP;
// #18323
private Double tauxETP;
// #
private String filiere;
public String getNumero() {
return numero;
}
public void setNumero(String numero) {
this.numero = numero;
}
public String getStatutFDP() {
return statutFDP;
}
public void setStatutFDP(String statutFDP) {
this.statutFDP = statutFDP;
}
public Integer getIdFichePoste() {
return idFichePoste;
}
public void setIdFichePoste(Integer idFichePoste) {
this.idFichePoste = idFichePoste;
}
public Integer getIdServiceADS() {
return idServiceADS;
}
public void setIdServiceADS(Integer idServiceADS) {
this.idServiceADS = idServiceADS;
}
public String getTitre() {
return titre;
}
public void setTitre(String titre) {
this.titre = titre;
}
public String getCategorie() {
return categorie;
}
public void setCategorie(String categorie) {
this.categorie = categorie;
}
public String getReglementaire() {
return reglementaire;
}
public void setReglementaire(String reglementaire) {
this.reglementaire = reglementaire;
}
public String getAgent() {
return agent;
}
public void setAgent(String agent) {
this.agent = agent;
}
public String getSigle() {
return sigle;
}
public void setSigle(String sigle) {
this.sigle = sigle;
}
public String getGradePoste() {
return gradePoste;
}
public void setGradePoste(String gradePoste) {
this.gradePoste = gradePoste;
}
public String getCommentaire() {
return commentaire;
}
public void setCommentaire(String commentaire) {
this.commentaire = commentaire;
}
public Double getTauxETP() {
return tauxETP;
}
public void setTauxETP(Double tauxETP) {
this.tauxETP = tauxETP;
}
@JSON(include = false)
public String getLibelleGradeCategorie() {
String suffixe = StringUtils.isNotBlank(this.categorie) ? " (" + this.categorie + ")" : "";
return StringUtils.trimToNull(StringUtils.trimToEmpty(this.gradePoste) + suffixe);
}
@JSON(include = false)
public String getStatutCss() {
if (null == this.idStatutFDP)
return "";
if (this.idStatutFDP.equals(EnumStatutFichePoste.EN_CREATION.getStatut()))
return "en_creation";
if (this.idStatutFDP.equals(EnumStatutFichePoste.VALIDEE.getStatut()))
return "validee";
if (this.idStatutFDP.equals(EnumStatutFichePoste.INACTIVE.getStatut()))
return "inactive";
if (this.idStatutFDP.equals(EnumStatutFichePoste.GELEE.getStatut()))
return "validee";
if (this.idStatutFDP.equals(EnumStatutFichePoste.TRANSITOIRE.getStatut()))
return "transitoire";
return "";
}
public Integer getIdStatutFDP() {
return idStatutFDP;
}
public void setIdStatutFDP(Integer idStatutFDP) {
this.idStatutFDP = idStatutFDP;
}
public String getFiliere() {
return filiere;
}
public void setFiliere(String filiere) {
this.filiere = filiere;
}
public String getService() {
return service;
}
public void setService(String service) {
this.service = service;
}
}