feat roadMap #refs 7296
This commit is contained in:
parent
ebb0e6bc31
commit
b796623e13
|
@ -137,7 +137,7 @@ class ExpeditionTruckListFragment :
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun customDialogActionTruck() {
|
private fun customDialogActionTruck() {
|
||||||
viewModel.expeditionTruckAdd(
|
viewModel.roadMapStopAdd(
|
||||||
customDialogHor.getHoraValue(), customDialogHor.getDestinoValue()
|
customDialogHor.getHoraValue(), customDialogHor.getDestinoValue()
|
||||||
)
|
)
|
||||||
customDialogHor.dismiss()
|
customDialogHor.dismiss()
|
||||||
|
|
|
@ -25,7 +25,7 @@ class ExpeditionTruckListViewModel(val context: Context) : BaseViewModel(context
|
||||||
val loadResponseExpeditionAdd: LiveData<Event<String>> = _response.map { Event(it) }
|
val loadResponseExpeditionAdd: LiveData<Event<String>> = _response.map { Event(it) }
|
||||||
|
|
||||||
fun expeditionTruckList() {
|
fun expeditionTruckList() {
|
||||||
salix.expeditionTruckGet(
|
salix.roadMapStopGet(
|
||||||
"""{"where": { "eta": {
|
"""{"where": { "eta": {
|
||||||
"between": ["${LocalDate.now().atTime(LocalTime.MIN)}",
|
"between": ["${LocalDate.now().atTime(LocalTime.MIN)}",
|
||||||
"${
|
"${
|
||||||
|
@ -39,8 +39,8 @@ class ExpeditionTruckListViewModel(val context: Context) : BaseViewModel(context
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fun expeditionTruckAdd(vHour: String, vDescription: String) {
|
fun roadMapStopAdd(vHour: String, vDescription: String) {
|
||||||
salix.expeditionTrucksInsert(
|
salix.roadMapStopAdd(
|
||||||
ExpeditionTruckSalix(
|
ExpeditionTruckSalix(
|
||||||
eta = "${LocalDate.now()} $vHour",
|
eta = "${LocalDate.now()} $vHour",
|
||||||
description = vDescription
|
description = vDescription
|
||||||
|
|
Loading…
Reference in New Issue