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 {
|
public enum StatoPartitaMag {
|
||||||
|
|
||||||
IN_SCADENZA("1"),
|
IN_SCADENZA(1),
|
||||||
SCADUTO("2"),
|
SCADUTO(2),
|
||||||
NON_IN_SCADENZA("3");
|
NON_IN_SCADENZA(3);
|
||||||
|
|
||||||
private final String text;
|
private final int text;
|
||||||
|
|
||||||
StatoPartitaMag(String text) {
|
StatoPartitaMag(int text) {
|
||||||
this.text = text;
|
this.text = text;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getText() {
|
public int getText() {
|
||||||
return this.text;
|
return this.text;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static StatoPartitaMag fromString(String text) {
|
public static StatoPartitaMag from(int text) {
|
||||||
for (StatoPartitaMag b : StatoPartitaMag.values()) {
|
for (StatoPartitaMag b : StatoPartitaMag.values()) {
|
||||||
if (b.text.equalsIgnoreCase(text)) return b;
|
if (b.text == text) return b;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -201,7 +201,7 @@ public class DialogInputQuantityV2View extends BaseDialogFragment implements Dia
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void initProductLotStatusNotification() {
|
private void initProductLotStatusNotification() {
|
||||||
StatoPartitaMag statoPartitaMag = StatoPartitaMag.fromString(this.mDialogInputQuantityV2DTO.getStatoPartitaMag().getStatoArt().toString());
|
StatoPartitaMag statoPartitaMag = StatoPartitaMag.from(this.mDialogInputQuantityV2DTO.getStatoPartitaMag().getStatoArt());
|
||||||
if (statoPartitaMag == null)
|
if (statoPartitaMag == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user