refs #6531 feat:last tickets
This commit is contained in:
parent
3afe9de1c9
commit
9818b0babe
|
@ -10,6 +10,7 @@ import es.verdnatura.databinding.FragmentGeneralBlackBinding
|
||||||
import es.verdnatura.domain.ConstAndValues
|
import es.verdnatura.domain.ConstAndValues
|
||||||
import es.verdnatura.presentation.base.BaseFragment
|
import es.verdnatura.presentation.base.BaseFragment
|
||||||
import es.verdnatura.presentation.common.OnCollectionSelectedListener
|
import es.verdnatura.presentation.common.OnCollectionSelectedListener
|
||||||
|
import es.verdnatura.presentation.view.component.CustomDialog
|
||||||
import es.verdnatura.presentation.view.feature.collection.fragment.CollectionViewModel
|
import es.verdnatura.presentation.view.feature.collection.fragment.CollectionViewModel
|
||||||
import es.verdnatura.presentation.view.feature.sacador.model.CollectionVO
|
import es.verdnatura.presentation.view.feature.sacador.model.CollectionVO
|
||||||
|
|
||||||
|
@ -60,7 +61,7 @@ class ControladorFragment :
|
||||||
binding.splashProgress.visibility = VISIBLE
|
binding.splashProgress.visibility = VISIBLE
|
||||||
binding.scanInput.setText(textScanned_filterDouble(binding.scanInput.text!!.toString()))
|
binding.scanInput.setText(textScanned_filterDouble(binding.scanInput.text!!.toString()))
|
||||||
//Tarea 6458 descomentar si ok
|
//Tarea 6458 descomentar si ok
|
||||||
/* collectionViewModel = CollectionViewModel(mobileApplication)
|
collectionViewModel = CollectionViewModel(mobileApplication)
|
||||||
collectionViewModel!!.ticketState(binding.scanInput.text.toString().toInt())
|
collectionViewModel!!.ticketState(binding.scanInput.text.toString().toInt())
|
||||||
collectionViewModel!!.responseTicketState.observe(
|
collectionViewModel!!.responseTicketState.observe(
|
||||||
viewLifecycleOwner,
|
viewLifecycleOwner,
|
||||||
|
@ -78,18 +79,24 @@ class ControladorFragment :
|
||||||
)
|
)
|
||||||
.setOkButton(getString(R.string.aware)) {
|
.setOkButton(getString(R.string.aware)) {
|
||||||
customDialogWarning.dismiss()
|
customDialogWarning.dismiss()
|
||||||
binding.splashProgress.visibility= VISIBLE
|
|
||||||
|
binding.splashProgress.visibility = VISIBLE
|
||||||
viewModel.collectionTicketGet(
|
viewModel.collectionTicketGet(
|
||||||
sectorFk = mobileApplication.dataStoreApp.readDataStoreKey(
|
sectorFk = mobileApplication.dataStoreApp.readDataStoreKey(
|
||||||
ConstAndValues.SECTORFK
|
ConstAndValues.SECTORFK
|
||||||
),
|
),
|
||||||
collectionFk = binding.scanInput.text.toString().toInt(),
|
collectionFk = binding.scanInput.text.toString()
|
||||||
|
.toInt(),
|
||||||
print = "0",
|
print = "0",
|
||||||
type = ConstAndValues.CONTROLADOR
|
type = ConstAndValues.CONTROLADOR
|
||||||
)
|
)
|
||||||
|
}.setKoButton(getString(R.string.cancel)){
|
||||||
|
binding.scanInput.setText("")
|
||||||
|
binding.scanInput.requestFocus()
|
||||||
|
customDialogWarning.dismiss()
|
||||||
}.show()
|
}.show()
|
||||||
customDialogWarning.currentFocus
|
customDialogWarning.currentFocus
|
||||||
} else {*/
|
} else {
|
||||||
viewModel.collectionTicketGet(
|
viewModel.collectionTicketGet(
|
||||||
sectorFk = mobileApplication.dataStoreApp.readDataStoreKey(
|
sectorFk = mobileApplication.dataStoreApp.readDataStoreKey(
|
||||||
ConstAndValues.SECTORFK
|
ConstAndValues.SECTORFK
|
||||||
|
@ -98,8 +105,8 @@ class ControladorFragment :
|
||||||
print = "0",
|
print = "0",
|
||||||
type = ConstAndValues.CONTROLADOR
|
type = ConstAndValues.CONTROLADOR
|
||||||
)
|
)
|
||||||
// }
|
}
|
||||||
//})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue