Cambiato statoPartitaMag to int
This commit is contained in:
parent
bf56c8e4c7
commit
dac12905ef
@ -2,23 +2,23 @@ package it.integry.integrywmsnative.core.model.secondary;
|
||||
|
||||
public enum StatoPartitaMag {
|
||||
|
||||
IN_SCADENZA("1"),
|
||||
SCADUTO("2"),
|
||||
NON_IN_SCADENZA("3");
|
||||
IN_SCADENZA(1),
|
||||
SCADUTO(2),
|
||||
NON_IN_SCADENZA(3);
|
||||
|
||||
private final String text;
|
||||
private final int text;
|
||||
|
||||
StatoPartitaMag(String text) {
|
||||
StatoPartitaMag(int text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public String getText() {
|
||||
public int getText() {
|
||||
return this.text;
|
||||
}
|
||||
|
||||
public static StatoPartitaMag fromString(String text) {
|
||||
public static StatoPartitaMag from(int text) {
|
||||
for (StatoPartitaMag b : StatoPartitaMag.values()) {
|
||||
if (b.text.equalsIgnoreCase(text)) return b;
|
||||
if (b.text == text) return b;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -201,7 +201,7 @@ public class DialogInputQuantityV2View extends BaseDialogFragment implements Dia
|
||||
}
|
||||
|
||||
private void initProductLotStatusNotification() {
|
||||
StatoPartitaMag statoPartitaMag = StatoPartitaMag.fromString(this.mDialogInputQuantityV2DTO.getStatoPartitaMag().getStatoArt().toString());
|
||||
StatoPartitaMag statoPartitaMag = StatoPartitaMag.from(this.mDialogInputQuantityV2DTO.getStatoPartitaMag().getStatoArt());
|
||||
if (statoPartitaMag == null)
|
||||
return;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user