Fix su gestione fabbisogni
This commit is contained in:
parent
14035b4c92
commit
6dbc0c5894
@ -73,6 +73,16 @@ public class ProdFabbisognoLineeProdFragment extends BaseFragment implements ITi
|
|||||||
.create()
|
.create()
|
||||||
.inject(this);
|
.inject(this);
|
||||||
|
|
||||||
|
|
||||||
|
return mBindings.getRoot();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onStart() {
|
||||||
|
super.onStart();
|
||||||
|
|
||||||
|
this.mViewModel.setListener(this);
|
||||||
|
|
||||||
String codMdep = SettingsManager.i().getUserSession().getDepo().getCodMdep();
|
String codMdep = SettingsManager.i().getUserSession().getDepo().getCodMdep();
|
||||||
|
|
||||||
DialogAskMagazzinoProssimitaView
|
DialogAskMagazzinoProssimitaView
|
||||||
@ -81,14 +91,10 @@ public class ProdFabbisognoLineeProdFragment extends BaseFragment implements ITi
|
|||||||
((IPoppableActivity) getActivity()).pop();
|
((IPoppableActivity) getActivity()).pop();
|
||||||
} else {
|
} else {
|
||||||
//Load fabbisogno
|
//Load fabbisogno
|
||||||
this.mViewModel.loadFabbisogno(startDate, endDate, jtbFase.getCodJfas(), codMdep, fabbisognoList -> {
|
this.mViewModel.loadFabbisogno(startDate, endDate, jtbFase.getCodJfas(), codMdep, this::startPickingActivity);
|
||||||
startPickingActivity(fabbisognoList);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.show(getActivity().getSupportFragmentManager(), "tag");
|
.show(getActivity().getSupportFragmentManager(), "tag");
|
||||||
|
|
||||||
return mBindings.getRoot();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -150,5 +156,7 @@ public class ProdFabbisognoLineeProdFragment extends BaseFragment implements ITi
|
|||||||
+1,
|
+1,
|
||||||
MtbColr.Causale.VERSAMENTO);
|
MtbColr.Causale.VERSAMENTO);
|
||||||
|
|
||||||
|
((IPoppableActivity) getActivity()).pop();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -88,9 +88,8 @@ public class ProdFabbisognoLineeProdViewModel {
|
|||||||
|
|
||||||
Type typeOfObjectsList = new TypeToken<ArrayList<ProdFabbisognoLineeProdDTO>>() {}.getType();
|
Type typeOfObjectsList = new TypeToken<ArrayList<ProdFabbisognoLineeProdDTO>>() {}.getType();
|
||||||
this.mSystemRESTConsumer.<List<ProdFabbisognoLineeProdDTO>>processSql(sql, typeOfObjectsList, jtbFasi -> {
|
this.mSystemRESTConsumer.<List<ProdFabbisognoLineeProdDTO>>processSql(sql, typeOfObjectsList, jtbFasi -> {
|
||||||
onComplete.run(jtbFasi);
|
|
||||||
|
|
||||||
this.sendOnLoadingEnded();
|
this.sendOnLoadingEnded();
|
||||||
|
onComplete.run(jtbFasi);
|
||||||
}, this::sendError);
|
}, this::sendError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user