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