Skip to content

Commit

Permalink
Affichage du CSN en décimal
Browse files Browse the repository at this point in the history
  • Loading branch information
vbonamy committed Oct 8, 2024
1 parent f27d5f2 commit 8221a56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/org/esupportail/sgc/domain/Card.java
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,14 @@ public String getReverseCsn() {
}
}

public String getDecimalCsn() {
if(csn==null) {
return null;
} else {
return new BigInteger(csn, 16).toString();
}
}

public boolean isEnabled() {
return etat.equals(Etat.ENABLED);
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/webapp/WEB-INF/views/manager/show.jspx
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,8 @@
<dd>${card.csn}</dd>
<dt>Reversed Csn : </dt>
<dd>${card.reverseCsn}</dd>
<dt>Decimal Csn : </dt>
<dd>${card.decimalCsn}</dd>
<dt>Desfire Ids (générés): </dt>
<dd>
<c:forEach items="${card.desfireIds}" var="desfireId">
Expand Down

0 comments on commit 8221a56

Please sign in to comment.