Gestita setup per mostrare o no il cambio deposito
This commit is contained in:
parent
13d9c40119
commit
7920166110
@ -98,6 +98,7 @@ public class DBSettingsModel {
|
|||||||
private boolean flagAccettazioneGroupListForn = false;
|
private boolean flagAccettazioneGroupListForn = false;
|
||||||
private boolean flagSpedizioneEnableFastPicking = false;
|
private boolean flagSpedizioneEnableFastPicking = false;
|
||||||
private boolean flagAccettazioneBollaEditableQtaTot = true;
|
private boolean flagAccettazioneBollaEditableQtaTot = true;
|
||||||
|
private boolean flagViewSwitchDepoButton = true;
|
||||||
|
|
||||||
public boolean isFlagSpedizioneEnableFakeGiacenza() {
|
public boolean isFlagSpedizioneEnableFakeGiacenza() {
|
||||||
return flagSpedizioneEnableFakeGiacenza;
|
return flagSpedizioneEnableFakeGiacenza;
|
||||||
@ -824,4 +825,12 @@ public class DBSettingsModel {
|
|||||||
public void setFlagAccettazioneBollaEditableQtaTot(boolean flagAccettazioneBollaEditableQtaTot) {
|
public void setFlagAccettazioneBollaEditableQtaTot(boolean flagAccettazioneBollaEditableQtaTot) {
|
||||||
this.flagAccettazioneBollaEditableQtaTot = flagAccettazioneBollaEditableQtaTot;
|
this.flagAccettazioneBollaEditableQtaTot = flagAccettazioneBollaEditableQtaTot;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isFlagViewSwitchDepoButton() {
|
||||||
|
return flagViewSwitchDepoButton;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFlagViewSwitchDepoButton(boolean flagViewSwitchDepoButton) {
|
||||||
|
this.flagViewSwitchDepoButton = flagViewSwitchDepoButton;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -623,6 +623,13 @@ public class SettingsManager {
|
|||||||
.setKeySection("ENABLE_ART_CREATION")
|
.setKeySection("ENABLE_ART_CREATION")
|
||||||
.setSetter(dbSettingsModelIstance::setFlagEnableArtCreation));
|
.setSetter(dbSettingsModelIstance::setFlagEnableArtCreation));
|
||||||
|
|
||||||
|
stbGestSetupReaderList.add(new StbGestSetupReader<>(Boolean.class)
|
||||||
|
.setGestName("PICKING")
|
||||||
|
.setSection("SETUP")
|
||||||
|
.setKeySection("VIEW_SWITCH_DEPO_BUTTON")
|
||||||
|
.setSetter(dbSettingsModelIstance::setFlagViewSwitchDepoButton)
|
||||||
|
);
|
||||||
|
|
||||||
stbGestSetupReaderList.add(new StbGestSetupReader<>(String.class)
|
stbGestSetupReaderList.add(new StbGestSetupReader<>(String.class)
|
||||||
.setGestName("PICKING")
|
.setGestName("PICKING")
|
||||||
.setSection("SETUP")
|
.setSection("SETUP")
|
||||||
|
|||||||
@ -6,6 +6,9 @@
|
|||||||
<variable
|
<variable
|
||||||
name="view"
|
name="view"
|
||||||
type="it.integry.integrywmsnative.gest.main.MainFragment" />
|
type="it.integry.integrywmsnative.gest.main.MainFragment" />
|
||||||
|
|
||||||
|
<import type="android.view.View" />
|
||||||
|
<import type="it.integry.integrywmsnative.core.settings.SettingsManager" />
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
@ -137,6 +140,7 @@
|
|||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
|
android:visibility="@{SettingsManager.iDB().isFlagForceAllToColli() ? View.VISIBLE : View.GONE}"
|
||||||
android:onClick="@{() -> view.changeUserDepo()}"
|
android:onClick="@{() -> view.changeUserDepo()}"
|
||||||
android:src="@drawable/ic_rounded_change_circle_24"
|
android:src="@drawable/ic_rounded_change_circle_24"
|
||||||
android:tint="@android:color/white" />
|
android:tint="@android:color/white" />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user