Version 9.6Beta en test : ubicador, quality, posicion, buscar item, reclamaciones...
This commit is contained in:
parent
b8d0f76adf
commit
78a07415ea
|
@ -44,7 +44,8 @@
|
||||||
</shared>
|
</shared>
|
||||||
</component>
|
</component>
|
||||||
<component name="AndroidLogFilters">
|
<component name="AndroidLogFilters">
|
||||||
<option name="TOOL_WINDOW_LOG_LEVEL" value="error" />
|
<option name="TOOL_WINDOW_CUSTOM_FILTER" value="verdnatura::" />
|
||||||
|
<option name="TOOL_WINDOW_LOG_LEVEL" value="debug" />
|
||||||
<option name="TOOL_WINDOW_CONFIGURED_FILTER" value="verdnatura" />
|
<option name="TOOL_WINDOW_CONFIGURED_FILTER" value="verdnatura" />
|
||||||
<option name="TOOL_WINDOW_REGEXP_FILTER" value="false" />
|
<option name="TOOL_WINDOW_REGEXP_FILTER" value="false" />
|
||||||
</component>
|
</component>
|
||||||
|
@ -82,50 +83,44 @@
|
||||||
</select>
|
</select>
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="fa688d1c-dbee-4864-9e33-4d84ef9afca8" name="Default Changelist" comment="Version 9.6Beta suppliers">
|
<list default="true" id="fa688d1c-dbee-4864-9e33-4d84ef9afca8" name="Default Changelist" comment="Version 9.6Beta en test : ubicador, quality, posicion, buscar item, reclamaciones...">
|
||||||
<change afterPath="$PROJECT_DIR$/app/src/main/res/drawable/ic_ubicator_check.xml" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/release/vn-picking.apk" beforeDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/release/vn-picking.apk" beforeDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/Extensions.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/Extensions.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetBuscarItemUserCase.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetBuscarItemUserCase.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetItemCardUserCase.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetItemCardUserCase.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetItemCardUserCase.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetItemCardUserCase.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetLoginUserCase.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetLoginUserCase.kt" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetPackagingUserCase.kt" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetPreSacadorUseCase.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetPreSacadorUseCase.kt" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetQrReaderUserCase.kt" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetSacadorControladorUserCase.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetSacadorControladorUserCase.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetSacadorControladorUserCase.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetSacadorControladorUserCase.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetVehicleControlTimeUserCase.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/GetVehicleControlTimeUserCase.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/SilexInterceptor.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/SilexInterceptor.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/SalixService.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/SalixService.kt" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/VerdnaturaService.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/VerdnaturaService.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/VerdnaturaService.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/domain/VerdnaturaService.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/base/BaseFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/base/BaseFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ajustes/fragment/AjustesViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ajustes/fragment/AjustesViewModel.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/testing/testPrint.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/testing/testPrint.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/buscaritem/fragment/BuscarItemFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/buscaritem/fragment/BuscarItemFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/fragment/ItemCardViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/fragment/ItemCardViewModel.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/buscaritem/fragment/BuscarItemViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/buscaritem/fragment/BuscarItemViewModel.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/fragment/ItemProposalFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/fragment/ItemProposalFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/calidad/fragment/QaualityFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/calidad/fragment/QaualityFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/CollectionVO.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/CollectionVO.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/calidad/fragment/QaualityViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/calidad/fragment/QaualityViewModel.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/claim/fragment/ClaimFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/claim/fragment/ClaimFragment.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/claim/fragment/ClaimViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/claim/fragment/ClaimViewModel.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionViewModel.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoarticulo/fragment/HistoricoArticuloFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoarticulo/fragment/HistoricoArticuloFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/controlvehiculo/fragment/ControlVehiculoFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/controlvehiculo/fragment/ControlVehiculoFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoarticulo/fragment/HistoricoArticuloViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoarticulo/fragment/HistoricoArticuloViewModel.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/controlvehiculo/fragment/ControlVehiculoUsuarioFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/controlvehiculo/fragment/ControlVehiculoUsuarioFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoshelving/fragment/ItemShelvingLogFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoshelving/fragment/ItemShelvingLogFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/controlvehiculo/fragment/ControlVehiculoViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/controlvehiculo/fragment/ControlVehiculoViewModel.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoshelving/fragment/ItemShelvingLogViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoshelving/fragment/ItemShelvingLogViewModel.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicovehiculo/fragment/HistoricoVehiculoFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicovehiculo/fragment/HistoricoVehiculoFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoshelvinglog/fragment/shelvingLogViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoshelvinglog/fragment/shelvingLogViewModel.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicovehiculo/fragment/HistoricoVehiculoViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicovehiculo/fragment/HistoricoVehiculoViewModel.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/main/activity/MainActivity.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/main/activity/MainActivity.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/login/fragment/LoginFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/login/fragment/LoginFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionPalletFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionPalletFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/login/fragment/LoginViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/login/fragment/LoginViewModel.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionPalletViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionPalletViewModel.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/packaging/fragment/PackagingCountFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/packaging/fragment/PackagingCountFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionScanFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionScanFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/packaging/fragment/PackagingViewModel/SupplierViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/packaging/fragment/PackagingViewModel/SupplierViewModel.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionScanViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionScanViewModel.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/packaging/fragment/SupplierFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/packaging/fragment/SupplierFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/PalletScanFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/PalletScanFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroViewModel.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/PalletScanViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/PalletScanViewModel.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/presacador/fragment/EndSacadorFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/presacador/fragment/EndSacadorFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/model/ItemScanVO.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/model/ItemScanVO.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/presacador/fragment/InitPreSacadorFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/presacador/fragment/InitPreSacadorFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/reposicion/fragment/ReposicionFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/reposicion/fragment/ReposicionFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/presacador/fragment/PreSacadorViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/presacador/fragment/PreSacadorViewModel.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/reposicion/fragment/ReposicionViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/reposicion/fragment/ReposicionViewModel.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/qr/QrFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/qr/QrFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/sacador/fragment/SacadorViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/sacador/fragment/SacadorViewModel.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/qr/QrFragmentViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/qr/QrFragmentViewModel.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/adapter/UbicadorAdapter.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/adapter/UbicadorAdapter.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/reubication/fragment/ReubicationCollectionFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/reubication/fragment/ReubicationCollectionFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/AutomaticAddItemFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/AutomaticAddItemFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/reubication/fragment/ReubicationFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/reubication/fragment/ReubicationFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/AutomaticAddItemViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/AutomaticAddItemViewModel.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/reubication/model/Reubication.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/reubication/model/Reubication.kt" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/sacador/fragment/SacadorFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/sacador/fragment/SacadorFragment.kt" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorFragment.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorFragment.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorViewModel.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorViewModel.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/model/ItemUbicadorVO.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/model/ItemUbicadorVO.kt" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
@ -444,13 +439,6 @@
|
||||||
<option name="presentableId" value="Default" />
|
<option name="presentableId" value="Default" />
|
||||||
<updated>1618825571576</updated>
|
<updated>1618825571576</updated>
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00049" summary="Version 8, impresora obligatoria, controlador se desplaza al pulsar, Ubicar Reclamación y líneas controlador = orden saca el sacador">
|
|
||||||
<created>1649235060928</created>
|
|
||||||
<option name="number" value="00049" />
|
|
||||||
<option name="presentableId" value="LOCAL-00049" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1649235060928</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00050" summary="Version 8.2 obligatorio sector para imprimir, Desmarcar sacador ok. Cambiado texto DiadeVenta.Añadido icono Parking previa. Actualiza datos en Previa. Nuevo diseño INVISIBLE">
|
<task id="LOCAL-00050" summary="Version 8.2 obligatorio sector para imprimir, Desmarcar sacador ok. Cambiado texto DiadeVenta.Añadido icono Parking previa. Actualiza datos en Previa. Nuevo diseño INVISIBLE">
|
||||||
<created>1651646872970</created>
|
<created>1651646872970</created>
|
||||||
<option name="number" value="00050" />
|
<option name="number" value="00050" />
|
||||||
|
@ -787,7 +775,14 @@
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1669186502342</updated>
|
<updated>1669186502342</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="98" />
|
<task id="LOCAL-00098" summary="Version 9.6Beta en test">
|
||||||
|
<created>1669275670424</created>
|
||||||
|
<option name="number" value="00098" />
|
||||||
|
<option name="presentableId" value="LOCAL-00098" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1669275670424</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="99" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="Vcs.Log.History.Properties">
|
<component name="Vcs.Log.History.Properties">
|
||||||
|
@ -889,8 +884,6 @@
|
||||||
</component>
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
|
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
|
||||||
<MESSAGE value="Version 9.1Beta- rgb,trasaccion marcar lineas, new collection y ajustes" />
|
|
||||||
<MESSAGE value="Version 9.1Beta- Rgb,trasaccion marcar lineas, new collection,shelvingLog, y ajustes" />
|
|
||||||
<MESSAGE value="Version 9.1Beta- Filtro inventario" />
|
<MESSAGE value="Version 9.1Beta- Filtro inventario" />
|
||||||
<MESSAGE value="Version 9.1Beta- Modificar original y originalQuantity" />
|
<MESSAGE value="Version 9.1Beta- Modificar original y originalQuantity" />
|
||||||
<MESSAGE value="Version 9.1Beta-CMR quitado, rgb quitado" />
|
<MESSAGE value="Version 9.1Beta-CMR quitado, rgb quitado" />
|
||||||
|
@ -914,7 +907,9 @@
|
||||||
<MESSAGE value="Version 9.6Beta Añadido a BaseFragment(context). Quitado código repetido de las llamadas" />
|
<MESSAGE value="Version 9.6Beta Añadido a BaseFragment(context). Quitado código repetido de las llamadas" />
|
||||||
<MESSAGE value="Version 9.6Beta Borrado referencias a api Nodejs y código relacionado" />
|
<MESSAGE value="Version 9.6Beta Borrado referencias a api Nodejs y código relacionado" />
|
||||||
<MESSAGE value="Version 9.6Beta Cambiadas llamadas y campos( collectionFk). Borrado Presacador" />
|
<MESSAGE value="Version 9.6Beta Cambiadas llamadas y campos( collectionFk). Borrado Presacador" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="Version 9.6Beta Cambiadas llamadas y campos( collectionFk). Borrado Presacador" />
|
<MESSAGE value="Version 9.6Beta en test" />
|
||||||
|
<MESSAGE value="Version 9.6Beta en test : ubicador, quality, posicion, buscar item, reclamaciones..." />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Version 9.6Beta en test : ubicador, quality, posicion, buscar item, reclamaciones..." />
|
||||||
</component>
|
</component>
|
||||||
<component name="XDebuggerManager">
|
<component name="XDebuggerManager">
|
||||||
<breakpoint-manager>
|
<breakpoint-manager>
|
||||||
|
|
|
@ -14,12 +14,6 @@ class GetBuscarItemUserCase(context: Context) : RestClient(context) {
|
||||||
val params: ArrayList<String> = ArrayList()
|
val params: ArrayList<String> = ArrayList()
|
||||||
params.add(itemFk)
|
params.add(itemFk)
|
||||||
return restClient!!.searchItemsUbicador(
|
return restClient!!.searchItemsUbicador(
|
||||||
"json",
|
|
||||||
"1",
|
|
||||||
usuario,
|
|
||||||
password,
|
|
||||||
"application/json",
|
|
||||||
params = params
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -224,8 +224,6 @@ class GetItemCardUserCase(context: Context) : RestClient(context) {
|
||||||
|
|
||||||
|
|
||||||
fun itemDiary(
|
fun itemDiary(
|
||||||
usuario: String,
|
|
||||||
password: String,
|
|
||||||
itemFk: String,
|
itemFk: String,
|
||||||
warehouseFk: String
|
warehouseFk: String
|
||||||
): Call<List<ItemHistoricoVO>> {
|
): Call<List<ItemHistoricoVO>> {
|
||||||
|
@ -233,12 +231,7 @@ class GetItemCardUserCase(context: Context) : RestClient(context) {
|
||||||
params.add(itemFk)
|
params.add(itemFk)
|
||||||
params.add(warehouseFk)
|
params.add(warehouseFk)
|
||||||
return restClient!!.itemDiary(
|
return restClient!!.itemDiary(
|
||||||
"json",
|
params
|
||||||
"1",
|
|
||||||
usuario,
|
|
||||||
password,
|
|
||||||
"application/json",
|
|
||||||
params = params
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -101,50 +101,6 @@ class GetSacadorControladorUserCase(context: Context) : RestClient(context) {
|
||||||
): Call<String> {
|
): Call<String> {
|
||||||
return restClient!!.collection_assign(
|
return restClient!!.collection_assign(
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
fun collectionNew(
|
|
||||||
usuario: String,
|
|
||||||
password: String,
|
|
||||||
sectorFk: String,
|
|
||||||
carros: String
|
|
||||||
): Call<String> {
|
|
||||||
val params: ArrayList<String> = ArrayList()
|
|
||||||
params.add(sectorFk)
|
|
||||||
params.add(carros)
|
|
||||||
return restClient!!.collectionNew(
|
|
||||||
"json",
|
|
||||||
"1",
|
|
||||||
usuario,
|
|
||||||
password,
|
|
||||||
"application/json",
|
|
||||||
params
|
|
||||||
)
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
fun collectionNewSmarttag(
|
|
||||||
usuario: String,
|
|
||||||
password: String,
|
|
||||||
sectorFk: String,
|
|
||||||
carros: String,
|
|
||||||
tagtype: String
|
|
||||||
): Call<String> {
|
|
||||||
val params: ArrayList<String> = ArrayList()
|
|
||||||
params.add(sectorFk)
|
|
||||||
params.add(carros)
|
|
||||||
params.add(tagtype)
|
|
||||||
return restClient!!.collectionNew(
|
|
||||||
"json",
|
|
||||||
"1",
|
|
||||||
usuario,
|
|
||||||
password,
|
|
||||||
"application/json",
|
|
||||||
params
|
|
||||||
)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun collectionGet(): Call<List<CollectionVO>> {
|
fun collectionGet(): Call<List<CollectionVO>> {
|
||||||
|
|
|
@ -2,11 +2,13 @@ package es.verdnatura.domain
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.SharedPreferences
|
import android.content.SharedPreferences
|
||||||
import android.util.Log.d
|
import okhttp3.FormBody
|
||||||
import okhttp3.Interceptor
|
import okhttp3.Interceptor
|
||||||
|
import okhttp3.RequestBody
|
||||||
import okhttp3.Response
|
import okhttp3.Response
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
|
|
||||||
|
|
||||||
class SilexInterceptor : Interceptor {
|
class SilexInterceptor : Interceptor {
|
||||||
private var context: Context
|
private var context: Context
|
||||||
|
|
||||||
|
|
|
@ -167,30 +167,19 @@ interface VerdnaturaService {
|
||||||
|
|
||||||
@POST("almacennew/sectorCollection_getSale")//NO SALIX
|
@POST("almacennew/sectorCollection_getSale")//NO SALIX
|
||||||
fun sectorCollection_getSale(
|
fun sectorCollection_getSale(
|
||||||
|
|
||||||
@Body vararg params: Any
|
@Body vararg params: Any
|
||||||
):
|
):
|
||||||
Call<List<PreSacadorItemVO>>
|
Call<List<PreSacadorItemVO>>
|
||||||
|
|
||||||
@POST("almacennew/itemPlacementSupplyGetOrder")//NO SALIX
|
@POST("almacennew/itemPlacementSupplyGetOrder")//NO SALIX
|
||||||
fun itemPlacementSupplyGetOrder(
|
fun itemPlacementSupplyGetOrder(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<String>
|
|
||||||
):
|
):
|
||||||
Call<List<PreSacadorItemVO>>
|
Call<List<PreSacadorItemVO>>
|
||||||
|
|
||||||
@POST("almacennew/itemPlacementSupplyCloseOrder")//NO SALIX
|
@POST("almacennew/itemPlacementSupplyCloseOrder")//NO SALIX
|
||||||
fun itemPlacementSupplyCloseOrder(
|
fun itemPlacementSupplyCloseOrder(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<String>
|
|
||||||
):
|
):
|
||||||
Call<Any>
|
Call<Any>
|
||||||
|
|
||||||
|
@ -206,7 +195,7 @@ interface VerdnaturaService {
|
||||||
):
|
):
|
||||||
Call<List<CollectionVO>>
|
Call<List<CollectionVO>>
|
||||||
|
|
||||||
@POST("almacennew/collectionNew")//NO SALIX
|
/* @POST("almacennew/collectionNew")//NO SALIX
|
||||||
fun collectionNew(
|
fun collectionNew(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Header("aplicacion") aplicacion: String,
|
||||||
@Header("version") version: String,
|
@Header("version") version: String,
|
||||||
|
@ -215,7 +204,7 @@ interface VerdnaturaService {
|
||||||
@Header("Content-Type") content_type: String,
|
@Header("Content-Type") content_type: String,
|
||||||
@Body params: List<String>
|
@Body params: List<String>
|
||||||
):
|
):
|
||||||
Call<String>
|
Call<String>*/
|
||||||
|
|
||||||
@POST("almacennew/collection_assign")//NO SALIX
|
@POST("almacennew/collection_assign")//NO SALIX
|
||||||
fun collection_assign(
|
fun collection_assign(
|
||||||
|
@ -393,7 +382,7 @@ interface VerdnaturaService {
|
||||||
|
|
||||||
@POST("almacennew/collectionStickerPrint")//REVISADA
|
@POST("almacennew/collectionStickerPrint")//REVISADA
|
||||||
fun collectionStickerPrint(
|
fun collectionStickerPrint(
|
||||||
@Body params: List<Any>
|
@Body vararg params: Any
|
||||||
):
|
):
|
||||||
Call<Any>
|
Call<Any>
|
||||||
|
|
||||||
|
@ -566,12 +555,7 @@ interface VerdnaturaService {
|
||||||
//CONSULTAR ARTICULO ========================================================================>
|
//CONSULTAR ARTICULO ========================================================================>
|
||||||
@POST("almacennew/itemDiary")//REVISADA
|
@POST("almacennew/itemDiary")//REVISADA
|
||||||
fun itemDiary(
|
fun itemDiary(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<String>
|
|
||||||
):
|
):
|
||||||
Call<List<ItemHistoricoVO>>
|
Call<List<ItemHistoricoVO>>
|
||||||
|
|
||||||
|
@ -670,12 +654,7 @@ interface VerdnaturaService {
|
||||||
//BUSCAR ITEM ========================================================================>
|
//BUSCAR ITEM ========================================================================>
|
||||||
@POST("almacennew/getItemUbication")//REVISADA
|
@POST("almacennew/getItemUbication")//REVISADA
|
||||||
fun searchItemsUbicador(
|
fun searchItemsUbicador(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<String>
|
|
||||||
):
|
):
|
||||||
Call<List<ItemLocationVO>>
|
Call<List<ItemLocationVO>>
|
||||||
|
|
||||||
|
@ -768,12 +747,7 @@ interface VerdnaturaService {
|
||||||
//UBICADOR ========================================================================>
|
//UBICADOR ========================================================================>
|
||||||
@POST("almacennew/itemShelvingList")//REVISADA
|
@POST("almacennew/itemShelvingList")//REVISADA
|
||||||
fun itemShelvingList(
|
fun itemShelvingList(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<String>
|
|
||||||
):
|
):
|
||||||
Call<List<ItemUbicadorVO>>
|
Call<List<ItemUbicadorVO>>
|
||||||
|
|
||||||
|
@ -796,12 +770,7 @@ interface VerdnaturaService {
|
||||||
|
|
||||||
@POST("almacennew/itemShelvingMakeEdit")//REVISADA
|
@POST("almacennew/itemShelvingMakeEdit")//REVISADA
|
||||||
fun itemShelvingMakeEdit(
|
fun itemShelvingMakeEdit(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<String>
|
|
||||||
):
|
):
|
||||||
Call<Any>
|
Call<Any>
|
||||||
|
|
||||||
|
@ -818,12 +787,7 @@ interface VerdnaturaService {
|
||||||
|
|
||||||
@POST("almacennew/itemShelving_addList")//REVISADA
|
@POST("almacennew/itemShelving_addList")//REVISADA
|
||||||
fun itemShelving_addList(
|
fun itemShelving_addList(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<Any>
|
|
||||||
):
|
):
|
||||||
Call<Any>
|
Call<Any>
|
||||||
|
|
||||||
|
@ -860,12 +824,7 @@ interface VerdnaturaService {
|
||||||
|
|
||||||
@POST("almacennew/itemShelvingTransfer")//REVISADA
|
@POST("almacennew/itemShelvingTransfer")//REVISADA
|
||||||
fun itemShelvingTransfer(
|
fun itemShelvingTransfer(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<String>
|
|
||||||
):
|
):
|
||||||
Call<Any>
|
Call<Any>
|
||||||
|
|
||||||
|
@ -884,12 +843,7 @@ interface VerdnaturaService {
|
||||||
|
|
||||||
@POST("almacennew/itemShelvingDelete")//REVISADA
|
@POST("almacennew/itemShelvingDelete")//REVISADA
|
||||||
fun itemShelvingDelete(
|
fun itemShelvingDelete(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<String>
|
|
||||||
):
|
):
|
||||||
Call<Any>
|
Call<Any>
|
||||||
|
|
||||||
|
@ -981,12 +935,7 @@ interface VerdnaturaService {
|
||||||
|
|
||||||
@POST("almacennew/itemShelvingLog_get")//REVISADA
|
@POST("almacennew/itemShelvingLog_get")//REVISADA
|
||||||
fun itemShelvingLog_get(
|
fun itemShelvingLog_get(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<String>
|
|
||||||
):
|
):
|
||||||
Call<List<ItemShelvingLog>>
|
Call<List<ItemShelvingLog>>
|
||||||
|
|
||||||
|
@ -1058,23 +1007,13 @@ interface VerdnaturaService {
|
||||||
|
|
||||||
@POST("almacennew/expeditionScanPut")//REVISADA
|
@POST("almacennew/expeditionScanPut")//REVISADA
|
||||||
fun expeditionScanPut(
|
fun expeditionScanPut(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<String>
|
|
||||||
):
|
):
|
||||||
Call<Any>
|
Call<Any>
|
||||||
|
|
||||||
@POST("almacennew/checkRouteExpeditionScanPut")//REVISADA
|
@POST("almacennew/checkRouteExpeditionScanPut")//REVISADA
|
||||||
fun checkRouteExpeditionScanPut(
|
fun checkRouteExpeditionScanPut(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<String>
|
|
||||||
):
|
):
|
||||||
Call<String>
|
Call<String>
|
||||||
|
|
||||||
|
@ -1146,12 +1085,7 @@ interface VerdnaturaService {
|
||||||
|
|
||||||
@POST("almacennew/expeditionPallet_get")//REVISADA
|
@POST("almacennew/expeditionPallet_get")//REVISADA
|
||||||
fun expeditionPallet_get(
|
fun expeditionPallet_get(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<String>
|
|
||||||
):
|
):
|
||||||
Call<ItemExpeditionTruckVO>
|
Call<ItemExpeditionTruckVO>
|
||||||
|
|
||||||
|
@ -1174,23 +1108,13 @@ interface VerdnaturaService {
|
||||||
|
|
||||||
@POST("almacennew/itemShelvingBuyerTask")//REVISADA
|
@POST("almacennew/itemShelvingBuyerTask")//REVISADA
|
||||||
fun itemShelvingBuyerTask(
|
fun itemShelvingBuyerTask(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<String>
|
|
||||||
):
|
):
|
||||||
Call<List<ItemBuyerVO>>
|
Call<List<ItemBuyerVO>>
|
||||||
|
|
||||||
@POST("almacennew/itemShelvingStarsUpdate")//REVISADA
|
@POST("almacennew/itemShelvingStarsUpdate")//REVISADA
|
||||||
fun itemShelvingStarsUpdate(
|
fun itemShelvingStarsUpdate(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<String>
|
|
||||||
):
|
):
|
||||||
Call<Any>
|
Call<Any>
|
||||||
|
|
||||||
|
@ -1208,12 +1132,7 @@ interface VerdnaturaService {
|
||||||
|
|
||||||
@POST("almacennew/itemShelving_addByClaim")//REVISADA
|
@POST("almacennew/itemShelving_addByClaim")//REVISADA
|
||||||
fun itemShelving_addByClaim(
|
fun itemShelving_addByClaim(
|
||||||
@Header("aplicacion") aplicacion: String,
|
@Body vararg params: Any
|
||||||
@Header("version") version: String,
|
|
||||||
@Header("user") user: String,
|
|
||||||
@Header("pass") pass: String,
|
|
||||||
@Header("Content-Type") content_type: String,
|
|
||||||
@Body params: List<String>
|
|
||||||
):
|
):
|
||||||
Call<Void>
|
Call<Void>
|
||||||
|
|
||||||
|
|
|
@ -192,7 +192,7 @@ class AjustesViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
|
|
||||||
|
|
||||||
fun getItemPackingTypeSalix() {
|
fun getItemPackingTypeSalix() {
|
||||||
salix!!.get_ItemPackingType().enqueue(object :
|
salix.get_ItemPackingType().enqueue(object :
|
||||||
Callback<List<ItemPackingType>> {
|
Callback<List<ItemPackingType>> {
|
||||||
override fun onFailure(call: Call<List<ItemPackingType>>, t: Throwable) {
|
override fun onFailure(call: Call<List<ItemPackingType>>, t: Throwable) {
|
||||||
val listError: ArrayList<ItemPackingType> = ArrayList()
|
val listError: ArrayList<ItemPackingType> = ArrayList()
|
||||||
|
@ -231,7 +231,7 @@ class AjustesViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getSectorsSalix() {
|
fun getSectorsSalix() {
|
||||||
salix!!.getSectorsSalix().enqueue(object : Callback<List<SectorItemVO>> {
|
salix.getSectorsSalix().enqueue(object : Callback<List<SectorItemVO>> {
|
||||||
override fun onFailure(call: Call<List<SectorItemVO>>, t: Throwable) {
|
override fun onFailure(call: Call<List<SectorItemVO>>, t: Throwable) {
|
||||||
val listError: ArrayList<SectorItemVO> = ArrayList()
|
val listError: ArrayList<SectorItemVO> = ArrayList()
|
||||||
listError.add(SectorItemVO(0, "", 0, true, t.message!!))
|
listError.add(SectorItemVO(0, "", 0, true, t.message!!))
|
||||||
|
|
|
@ -9,20 +9,21 @@ import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import es.verdnatura.R
|
import es.verdnatura.R
|
||||||
import es.verdnatura.databinding.FragmentBuscarItemBinding
|
import es.verdnatura.databinding.FragmentBuscarItemBinding
|
||||||
import es.verdnatura.domain.notNull
|
import es.verdnatura.domain.notNull
|
||||||
|
import es.verdnatura.domain.toInt
|
||||||
import es.verdnatura.presentation.base.BaseFragment
|
import es.verdnatura.presentation.base.BaseFragment
|
||||||
import es.verdnatura.presentation.common.OnPasillerosItemClickListener
|
import es.verdnatura.presentation.common.OnPasillerosItemClickListener
|
||||||
import es.verdnatura.presentation.view.feature.buscaritem.adapter.LocationAdapter
|
import es.verdnatura.presentation.view.feature.buscaritem.adapter.LocationAdapter
|
||||||
|
|
||||||
|
|
||||||
class BuscarItemFragment(
|
class BuscarItemFragment(
|
||||||
var itemFk: String = ""
|
var itemFk: Any? = null
|
||||||
) : BaseFragment<FragmentBuscarItemBinding, BuscarItemViewModel>(BuscarItemViewModel::class) {
|
) : BaseFragment<FragmentBuscarItemBinding, BuscarItemViewModel>(BuscarItemViewModel::class) {
|
||||||
|
|
||||||
private var adapter: LocationAdapter? = null
|
private var adapter: LocationAdapter? = null
|
||||||
private var pasillerosItemClickListener: OnPasillerosItemClickListener? = null
|
private var pasillerosItemClickListener: OnPasillerosItemClickListener? = null
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun newInstance(entryPoint: String) = BuscarItemFragment(entryPoint)
|
fun newInstance(entryPoint: Int?) = BuscarItemFragment(entryPoint)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onAttach(context: Context) {
|
override fun onAttach(context: Context) {
|
||||||
|
@ -38,8 +39,8 @@ class BuscarItemFragment(
|
||||||
binding.mainToolbar.toolbarTitle.text = getString(R.string.getubicaition)
|
binding.mainToolbar.toolbarTitle.text = getString(R.string.getubicaition)
|
||||||
|
|
||||||
setEvents()
|
setEvents()
|
||||||
if (!itemFk.isNullOrEmpty()) {
|
if (itemFk != null) {
|
||||||
getLocations(itemFk)
|
getLocations(itemFk!! as Int)
|
||||||
}
|
}
|
||||||
super.init()
|
super.init()
|
||||||
}
|
}
|
||||||
|
@ -51,7 +52,7 @@ class BuscarItemFragment(
|
||||||
if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_DONE || actionId == 0 || actionId == 5) {
|
if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_DONE || actionId == 0 || actionId == 5) {
|
||||||
|
|
||||||
if (!binding.editItemFk.text.toString().isNullOrEmpty())
|
if (!binding.editItemFk.text.toString().isNullOrEmpty())
|
||||||
getLocations(binding.editItemFk.text.toString())
|
getLocations(binding.editItemFk.toInt())
|
||||||
binding.editItemFk.setText("")
|
binding.editItemFk.setText("")
|
||||||
ma.hideKeyboard(binding.editItemFk)
|
ma.hideKeyboard(binding.editItemFk)
|
||||||
return@setOnEditorActionListener true
|
return@setOnEditorActionListener true
|
||||||
|
@ -66,10 +67,10 @@ class BuscarItemFragment(
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getLocations(itemFk: String) {
|
private fun getLocations(itemFk: Int) {
|
||||||
this.itemFk = itemFk
|
this.itemFk = itemFk
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
binding.splashProgress.visibility = View.VISIBLE
|
||||||
viewModel.getLocations(getData(USER), getData(PASSWORD), itemFk)
|
viewModel.getLocations(itemFk)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun observeViewModel() {
|
override fun observeViewModel() {
|
||||||
|
|
|
@ -27,8 +27,8 @@ class BuscarItemViewModel(context: Context) : BaseViewModel(context) {
|
||||||
val loadLocationList = Transformations.map(_locationList) { Event(it) }
|
val loadLocationList = Transformations.map(_locationList) { Event(it) }
|
||||||
|
|
||||||
|
|
||||||
fun getLocations(user:String,password:String,itemFk:String){
|
fun getLocations(itemFk:Int){
|
||||||
getBuscarItemUserCase.searchItemsUbicador(user,password,itemFk).enqueue(object : Callback<List<ItemLocationVO>> {
|
silex.searchItemsUbicador(itemFk).enqueue(object : Callback<List<ItemLocationVO>> {
|
||||||
override fun onFailure(call: Call<List<ItemLocationVO>>, t: Throwable) {
|
override fun onFailure(call: Call<List<ItemLocationVO>>, t: Throwable) {
|
||||||
val listError:ArrayList<ItemLocationVO> = ArrayList()
|
val listError:ArrayList<ItemLocationVO> = ArrayList()
|
||||||
listError.add(ItemLocationVO(isError = true,errorMessage =getMessageFromAllResponse(nameofFunction(this),t.message!!)))
|
listError.add(ItemLocationVO(isError = true,errorMessage =getMessageFromAllResponse(nameofFunction(this),t.message!!)))
|
||||||
|
|
|
@ -45,7 +45,7 @@ class QaualityFragment(
|
||||||
override fun getLayoutId(): Int = R.layout.qauality_fragment
|
override fun getLayoutId(): Int = R.layout.qauality_fragment
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
viewModel.itemShelvingBuyerTask(user = getData(USER),password = getData(PASSWORD),userFk = userFk)
|
viewModel.itemShelvingBuyerTask(userFk = userFk)
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ class QaualityFragment(
|
||||||
override fun onOptionsItemSelected(item: Drawable) {
|
override fun onOptionsItemSelected(item: Drawable) {
|
||||||
if (item == iconReload){
|
if (item == iconReload){
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
binding.splashProgress.visibility = View.VISIBLE
|
||||||
viewModel.itemShelvingBuyerTask(user = getData(USER),password = getData(PASSWORD),userFk = userFk)
|
viewModel.itemShelvingBuyerTask(userFk = userFk)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -121,7 +121,7 @@ class QaualityFragment(
|
||||||
})
|
})
|
||||||
|
|
||||||
response.observe(viewLifecycleOwner, Observer {
|
response.observe(viewLifecycleOwner, Observer {
|
||||||
viewModel.itemShelvingBuyerTask(user = getData(USER),password = getData(PASSWORD),userFk = userFk)
|
viewModel.itemShelvingBuyerTask(userFk = userFk)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -148,7 +148,7 @@ class QaualityFragment(
|
||||||
buyersAdapter = ItemBuyersAdapter(listItems,pasillerosItemClickListener!!,object: OnStarSelectedListener{
|
buyersAdapter = ItemBuyersAdapter(listItems,pasillerosItemClickListener!!,object: OnStarSelectedListener{
|
||||||
override fun onStarSelected(vId: String, vStars: String) {
|
override fun onStarSelected(vId: String, vStars: String) {
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
binding.splashProgress.visibility = View.VISIBLE
|
||||||
viewModel.itemShelvingStarsUpdate(getData(USER),getData(PASSWORD),vId,vStars)
|
viewModel.itemShelvingStarsUpdate(vId,vStars)
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -28,8 +28,8 @@ class QaualityViewModel(context: Context) : BaseViewModel(context) {
|
||||||
get() = _response
|
get() = _response
|
||||||
|
|
||||||
|
|
||||||
fun itemShelvingBuyerTask(user:String,password:String,userFk:String){
|
fun itemShelvingBuyerTask(userFk:String){
|
||||||
getQualityUserCase.itemShelvingBuyerTask(user,password,userFk).enqueue(object :
|
silex.itemShelvingBuyerTask(userFk).enqueue(object :
|
||||||
Callback<List<ItemBuyerVO>> {
|
Callback<List<ItemBuyerVO>> {
|
||||||
override fun onFailure(call: Call<List<ItemBuyerVO>>, t: Throwable) {
|
override fun onFailure(call: Call<List<ItemBuyerVO>>, t: Throwable) {
|
||||||
val listError:ArrayList<ItemBuyerVO> = ArrayList()
|
val listError:ArrayList<ItemBuyerVO> = ArrayList()
|
||||||
|
@ -53,8 +53,8 @@ class QaualityViewModel(context: Context) : BaseViewModel(context) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fun itemShelvingStarsUpdate(usuario:String,password:String, vId: String,vStars: String) {
|
fun itemShelvingStarsUpdate(vId: String,vStars: String) {
|
||||||
getQualityUserCase.itemShelvingStarsUpdate(usuario,password,vId,vStars).enqueue(object : Callback<Any>{
|
silex.itemShelvingStarsUpdate(vId,vStars).enqueue(object : Callback<Any>{
|
||||||
override fun onFailure(call: Call<Any>, t: Throwable) {
|
override fun onFailure(call: Call<Any>, t: Throwable) {
|
||||||
_response.value = ResponseItemVO(isError = true,errorMessage = getMessageFromAllResponse(nameofFunction(this),t.message!!))
|
_response.value = ResponseItemVO(isError = true,errorMessage = getMessageFromAllResponse(nameofFunction(this),t.message!!))
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,15 +80,12 @@ class ClaimFragment(
|
||||||
|
|
||||||
binding.splashProgress.visibility = VISIBLE
|
binding.splashProgress.visibility = VISIBLE
|
||||||
viewModel.itemShelving_addByClaim(
|
viewModel.itemShelving_addByClaim(
|
||||||
getData(USER),
|
listClaims.first().code!!.toInt(),
|
||||||
getData(PASSWORD),
|
|
||||||
listClaims.first().toString(),
|
|
||||||
shelving
|
shelving
|
||||||
)
|
)
|
||||||
customDialogList.dismiss()
|
customDialogList.dismiss()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private fun setEvents() {
|
private fun setEvents() {
|
||||||
|
|
||||||
binding.mainToolbar.backButton.setOnClickListener {
|
binding.mainToolbar.backButton.setOnClickListener {
|
||||||
|
@ -119,11 +116,10 @@ class ClaimFragment(
|
||||||
} else {
|
} else {
|
||||||
customDialogList.dismiss()
|
customDialogList.dismiss()
|
||||||
ma.messageWithSound(
|
ma.messageWithSound(
|
||||||
getString(R.string.claimLabel) +listClaims.first().code + getString(R.string.keepPlate) +
|
getString(R.string.claimLabel) + listClaims.first().code + getString(R.string.keepPlate) +
|
||||||
listClaims.get(
|
listClaims.get(
|
||||||
1
|
1
|
||||||
).code
|
).code, false, true
|
||||||
, false, true
|
|
||||||
)
|
)
|
||||||
listClaims.clear()
|
listClaims.clear()
|
||||||
claimAdapter!!.notifyDataSetChanged()
|
claimAdapter!!.notifyDataSetChanged()
|
||||||
|
|
|
@ -1,60 +1,72 @@
|
||||||
package es.verdnatura.presentation.view.feature.claim.fragment
|
package es.verdnatura.presentation.view.feature.claim.fragment
|
||||||
|
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import androidx.lifecycle.LiveData
|
import androidx.lifecycle.LiveData
|
||||||
import androidx.lifecycle.MutableLiveData
|
import androidx.lifecycle.MutableLiveData
|
||||||
import es.verdnatura.domain.GetClaimUserCase
|
import es.verdnatura.domain.GetClaimUserCase
|
||||||
import es.verdnatura.presentation.base.BaseViewModel
|
import es.verdnatura.presentation.base.BaseViewModel
|
||||||
import es.verdnatura.presentation.base.getMessageFromAllResponse
|
import es.verdnatura.presentation.base.getMessageFromAllResponse
|
||||||
import es.verdnatura.presentation.base.nameofFunction
|
import es.verdnatura.presentation.base.nameofFunction
|
||||||
import es.verdnatura.presentation.common.ResponseItemVO
|
import es.verdnatura.presentation.common.ResponseItemVO
|
||||||
import retrofit2.Call
|
import retrofit2.Call
|
||||||
import retrofit2.Callback
|
import retrofit2.Callback
|
||||||
import retrofit2.Response
|
import retrofit2.Response
|
||||||
|
|
||||||
class ClaimViewModel(context: Context) : BaseViewModel(context) {
|
class ClaimViewModel(context: Context) : BaseViewModel(context) {
|
||||||
|
|
||||||
private val GetClaimUserCase: GetClaimUserCase = GetClaimUserCase(context)
|
private val GetClaimUserCase: GetClaimUserCase = GetClaimUserCase(context)
|
||||||
|
|
||||||
|
|
||||||
private val _responseadd by lazy { MutableLiveData<ResponseItemVO>() }
|
private val _responseadd by lazy { MutableLiveData<ResponseItemVO>() }
|
||||||
val responseadd: LiveData<ResponseItemVO>
|
val responseadd: LiveData<ResponseItemVO>
|
||||||
get() = _responseadd
|
get() = _responseadd
|
||||||
|
|
||||||
|
|
||||||
|
fun itemShelving_addByClaim(claimFK: Int, shelvingFK: String) {
|
||||||
|
silex.itemShelving_addByClaim(claimFK, shelvingFK).enqueue(object : Callback<Void> {
|
||||||
|
override fun onFailure(call: Call<Void>, t: Throwable) {
|
||||||
|
|
||||||
fun itemShelving_addByClaim(usuario:String,password:String,claimFK:String,shelvingFK:String){
|
_responseadd.value = ResponseItemVO(
|
||||||
GetClaimUserCase.itemShelving_addByClaim(usuario,password,claimFK,shelvingFK).enqueue(object : Callback<Void>{
|
isError = true, errorMessage = getMessageFromAllResponse(
|
||||||
override fun onFailure(call: Call<Void>, t: Throwable) {
|
nameofFunction(this), t.message!!
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
_responseadd.value = ResponseItemVO(isError = true,errorMessage = getMessageFromAllResponse(
|
override fun onResponse(call: Call<Void>, response: Response<Void>) {
|
||||||
nameofFunction(this),t.message!!)
|
|
||||||
|
if (!response.isSuccessful) {
|
||||||
|
_responseadd.value = ResponseItemVO(
|
||||||
|
isError = true,
|
||||||
|
errorMessage = getMessageFromAllResponse(
|
||||||
|
nameofFunction(this),
|
||||||
|
response.message()
|
||||||
|
)
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
_responseadd.value = ResponseItemVO(
|
||||||
|
isError = false,
|
||||||
|
errorMessage = getMessageFromAllResponse(
|
||||||
|
nameofFunction(this),
|
||||||
|
response.message()
|
||||||
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onResponse(call: Call<Void>, response: Response<Void>) {
|
|
||||||
|
|
||||||
if (!response.isSuccessful){
|
}
|
||||||
_responseadd.value = ResponseItemVO(isError = true,errorMessage = getMessageFromAllResponse(nameofFunction(this),response.message()))
|
|
||||||
}else{
|
|
||||||
_responseadd.value = ResponseItemVO(isError = false,errorMessage = getMessageFromAllResponse(nameofFunction(this),response.message()))
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/* fun messageError(message: String,call: String ): ResponseItemVO? {
|
|
||||||
return ResponseItemVO(
|
|
||||||
isError = true,
|
|
||||||
errorMessage = "Error al llamar a " + call + " . Descripción del error:" + message
|
|
||||||
)
|
|
||||||
}*/
|
|
||||||
|
|
||||||
|
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* fun messageError(message: String,call: String ): ResponseItemVO? {
|
||||||
|
return ResponseItemVO(
|
||||||
|
isError = true,
|
||||||
|
errorMessage = "Error al llamar a " + call + " . Descripción del error:" + message
|
||||||
|
)
|
||||||
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -1050,14 +1050,14 @@ class CollectionFragment(
|
||||||
|
|
||||||
}, object : OnMistakeClickListener {
|
}, object : OnMistakeClickListener {
|
||||||
override fun onMistakeClickListener(sale: SaleVO) {
|
override fun onMistakeClickListener(sale: SaleVO) {
|
||||||
if (type != "PRECHECKER") {
|
//if (type != "PRECHECKER") {
|
||||||
binding.splashProgress.visibility =
|
binding.splashProgress.visibility =
|
||||||
VISIBLE
|
VISIBLE
|
||||||
mistakeSale = sale
|
mistakeSale = sale
|
||||||
goMistakeBack = false
|
goMistakeBack = false
|
||||||
viewModel.mistakeType(
|
viewModel.mistakeType(
|
||||||
)
|
)
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}, object : onPackingClickListener {
|
}, object : onPackingClickListener {
|
||||||
override fun onPackingClick(sale: SaleVO) {
|
override fun onPackingClick(sale: SaleVO) {
|
||||||
|
|
|
@ -24,7 +24,7 @@ import java.util.*
|
||||||
|
|
||||||
@Suppress("UNUSED_ANONYMOUS_PARAMETER")
|
@Suppress("UNUSED_ANONYMOUS_PARAMETER")
|
||||||
class HistoricoArticuloFragment(
|
class HistoricoArticuloFragment(
|
||||||
var itemFk: String = ""
|
var itemFk: Int?
|
||||||
) : BaseFragment<FragmentHistoricoBinding, HistoricoArticuloViewModel>(
|
) : BaseFragment<FragmentHistoricoBinding, HistoricoArticuloViewModel>(
|
||||||
HistoricoArticuloViewModel::class
|
HistoricoArticuloViewModel::class
|
||||||
) {
|
) {
|
||||||
|
@ -37,7 +37,7 @@ class HistoricoArticuloFragment(
|
||||||
private var filter: String = ""
|
private var filter: String = ""
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun newInstance(entryPoint: String) = HistoricoArticuloFragment(entryPoint)
|
fun newInstance(entryPoint: Int) = HistoricoArticuloFragment(entryPoint)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getLayoutId(): Int = R.layout.fragment_historico
|
override fun getLayoutId(): Int = R.layout.fragment_historico
|
||||||
|
@ -48,7 +48,7 @@ class HistoricoArticuloFragment(
|
||||||
// customDialog = CustomDialog(requireContext())
|
// customDialog = CustomDialog(requireContext())
|
||||||
ma.hideBottomNavigation(View.GONE)
|
ma.hideBottomNavigation(View.GONE)
|
||||||
filter = "all"
|
filter = "all"
|
||||||
viewModel.itemDiary(getData(USER), getData(PASSWORD), itemFk, getData(WAREHOUSEFK))
|
itemFk?.let { viewModel.itemDiary(it, getData(WAREHOUSEFK).toInt()) }
|
||||||
binding.mainToolbar.toolbarTitle.text = getString(R.string.itemdiary) + ":" + itemFk
|
binding.mainToolbar.toolbarTitle.text = getString(R.string.itemdiary) + ":" + itemFk
|
||||||
setToolBar()
|
setToolBar()
|
||||||
setEvents()
|
setEvents()
|
||||||
|
@ -111,7 +111,7 @@ class HistoricoArticuloFragment(
|
||||||
private fun viewModelwithFilter(keyfilter: String) {
|
private fun viewModelwithFilter(keyfilter: String) {
|
||||||
filter = keyfilter
|
filter = keyfilter
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
binding.splashProgress.visibility = View.VISIBLE
|
||||||
viewModel.itemDiary(getData(USER), getData(PASSWORD), itemFk, getData(WAREHOUSEFK))
|
itemFk?.let { viewModel.itemDiary(it, getData(WAREHOUSEFK).toInt()) }
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setEvents() {
|
private fun setEvents() {
|
||||||
|
|
|
@ -28,8 +28,8 @@ class HistoricoArticuloViewModel(context: Context) : BaseViewModel(context) {
|
||||||
val loadHistoricoList = Transformations.map(_historicoList) { Event(it) }
|
val loadHistoricoList = Transformations.map(_historicoList) { Event(it) }
|
||||||
|
|
||||||
|
|
||||||
fun itemDiary(usuario:String,password:String,itemFk:String,vWarehouseFk:String){
|
fun itemDiary(itemFk:Int,vWarehouseFk:Int){
|
||||||
getItemCardUserCase.itemDiary(usuario,password,itemFk,vWarehouseFk).enqueue(object :
|
silex.itemDiary(itemFk,vWarehouseFk).enqueue(object :
|
||||||
Callback<List<ItemHistoricoVO>> {
|
Callback<List<ItemHistoricoVO>> {
|
||||||
override fun onFailure(call: Call<List<ItemHistoricoVO>>, t: Throwable) {
|
override fun onFailure(call: Call<List<ItemHistoricoVO>>, t: Throwable) {
|
||||||
val listError:ArrayList<ItemHistoricoVO> = ArrayList()
|
val listError:ArrayList<ItemHistoricoVO> = ArrayList()
|
||||||
|
|
|
@ -78,11 +78,9 @@ class itemShelvingLogFragment(
|
||||||
|
|
||||||
private fun itemShelvingLog_get(vShelvingFK: String) {
|
private fun itemShelvingLog_get(vShelvingFK: String) {
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
binding.splashProgress.visibility = View.VISIBLE
|
||||||
viewModel.itemShelvingLog_get(getData(USER), getData(PASSWORD), vShelvingFK)
|
viewModel.itemShelvingLog_get(vShelvingFK)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
override fun observeViewModel() {
|
override fun observeViewModel() {
|
||||||
with(viewModel) {
|
with(viewModel) {
|
||||||
|
|
||||||
|
|
|
@ -33,8 +33,8 @@ class itemShelvingLogViewModel(context: Context) : BaseViewModel(context) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fun itemShelvingLog_get(usuario:String,password:String,vShelvingFK: String){
|
fun itemShelvingLog_get(vShelvingFK: String){
|
||||||
itemShelvingLogUSerCase.itemShelvingLog_get(usuario,password,vShelvingFK).enqueue(object :
|
silex.itemShelvingLog_get(vShelvingFK).enqueue(object :
|
||||||
Callback<List<ItemShelvingLog>> {
|
Callback<List<ItemShelvingLog>> {
|
||||||
override fun onFailure(call: Call<List<ItemShelvingLog>>, t: Throwable) {
|
override fun onFailure(call: Call<List<ItemShelvingLog>>, t: Throwable) {
|
||||||
val listError:ArrayList<ItemShelvingLog> = ArrayList()
|
val listError:ArrayList<ItemShelvingLog> = ArrayList()
|
||||||
|
|
|
@ -78,7 +78,7 @@ class shelvingLogViewModel(context: Context) : BaseViewModel(context) {
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
fun Shelvings(vShelvingFK: String) {
|
fun Shelvings(vShelvingFK: String) {
|
||||||
salix!!.Shelvings(vShelvingFK).enqueue(object :
|
salix.Shelvings(vShelvingFK).enqueue(object :
|
||||||
Callback<List<ShelvingLogSalix>> {
|
Callback<List<ShelvingLogSalix>> {
|
||||||
override fun onFailure(call: Call<List<ShelvingLogSalix>>, t: Throwable) {
|
override fun onFailure(call: Call<List<ShelvingLogSalix>>, t: Throwable) {
|
||||||
val listError: ArrayList<ShelvingLogSalix> = ArrayList()
|
val listError: ArrayList<ShelvingLogSalix> = ArrayList()
|
||||||
|
|
|
@ -316,7 +316,6 @@ class MainActivity : BaseActivity<ActivityMainBinding>(), OnPasillerosItemClickL
|
||||||
|
|
||||||
when (item.title) {
|
when (item.title) {
|
||||||
|
|
||||||
|
|
||||||
//BUFFERS
|
//BUFFERS
|
||||||
getString(R.string.titlePalletizar) -> {
|
getString(R.string.titlePalletizar) -> {
|
||||||
addFragmentOnTop(ExpeditionTruckListFragment.newInstance())
|
addFragmentOnTop(ExpeditionTruckListFragment.newInstance())
|
||||||
|
@ -410,11 +409,16 @@ class MainActivity : BaseActivity<ActivityMainBinding>(), OnPasillerosItemClickL
|
||||||
}
|
}
|
||||||
|
|
||||||
getString(R.string.titleItemSearch) -> {
|
getString(R.string.titleItemSearch) -> {
|
||||||
addFragmentOnTop(BuscarItemFragment.newInstance(entryPoint))
|
|
||||||
|
addFragmentOnTop(BuscarItemFragment.newInstance(if (entryPoint == "") {
|
||||||
|
null
|
||||||
|
} else {
|
||||||
|
entryPoint.toInt()
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
getString(R.string.titleHistorical) -> {
|
getString(R.string.titleHistorical) -> {
|
||||||
addFragmentOnTop(HistoricoArticuloFragment.newInstance(entryPoint))
|
addFragmentOnTop(HistoricoArticuloFragment.newInstance(entryPoint.toInt()))
|
||||||
}
|
}
|
||||||
|
|
||||||
getString(R.string.titleInventory) -> {
|
getString(R.string.titleInventory) -> {
|
||||||
|
|
|
@ -221,7 +221,7 @@ class ExpeditionPalletFragment(
|
||||||
if (listExpeditions.size > 0) {
|
if (listExpeditions.size > 0) {
|
||||||
onComprobarPalletViewClickListener!!.onComprobarPalletViewClickListener(
|
onComprobarPalletViewClickListener!!.onComprobarPalletViewClickListener(
|
||||||
itemExpeditionTruckVO!!,
|
itemExpeditionTruckVO!!,
|
||||||
ItemPalletVO(Pallet = it.list.get(0).palletFk)
|
ItemPalletVO(Pallet = it.list.get(0).palletFk.toString())
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
customDialog.setTitle(getString(R.string.info))
|
customDialog.setTitle(getString(R.string.info))
|
||||||
|
@ -257,17 +257,13 @@ class ExpeditionPalletFragment(
|
||||||
listExpeditions.add(0, BarcodeVO(code = customDialogList.getValue()))
|
listExpeditions.add(0, BarcodeVO(code = customDialogList.getValue()))
|
||||||
customDialogList.setDescription(getString(R.string.total) + listExpeditions.size)
|
customDialogList.setDescription(getString(R.string.total) + listExpeditions.size)
|
||||||
viewModel.expeditionScanPut(
|
viewModel.expeditionScanPut(
|
||||||
getData(USER),
|
|
||||||
getData(PASSWORD),
|
|
||||||
it.list.get(0).palletFk,
|
it.list.get(0).palletFk,
|
||||||
customDialogList.getValue()
|
customDialogList.getValue().toInt()
|
||||||
)
|
)
|
||||||
////Log.i("VERDNATURA:"," palletizando ${it.list.get(0).palletFk} expedi: ${customDialogList.getValue()}")
|
////Log.i("VERDNATURA:"," palletizando ${it.list.get(0).palletFk} expedi: ${customDialogList.getValue()}")
|
||||||
viewModel.checkRouteExpeditionScanPut(
|
viewModel.checkRouteExpeditionScanPut(
|
||||||
getData(USER),
|
|
||||||
getData(PASSWORD),
|
|
||||||
it.list.get(0).palletFk,
|
it.list.get(0).palletFk,
|
||||||
customDialogList.getValue()
|
customDialogList.getValue().toInt()
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
if (mperror != null) mperror!!.start()
|
if (mperror != null) mperror!!.start()
|
||||||
|
|
|
@ -72,7 +72,7 @@ class ExpeditionPalletViewModel (context: Context) : BaseViewModel(context) {
|
||||||
Callback<List<ItemScanVO>> {
|
Callback<List<ItemScanVO>> {
|
||||||
override fun onFailure(call: Call<List<ItemScanVO>>, t: Throwable) {
|
override fun onFailure(call: Call<List<ItemScanVO>>, t: Throwable) {
|
||||||
val listError:ArrayList<ItemScanVO> = ArrayList()
|
val listError:ArrayList<ItemScanVO> = ArrayList()
|
||||||
listError.add(ItemScanVO(isError = true,errorMessage =getMessageFromAllResponse(nameofFunction(this),t.message!!)))
|
listError.add(ItemScanVO("",0,isError = true,errorMessage =getMessageFromAllResponse(nameofFunction(this),t.message!!)))
|
||||||
_scanList.value = ItemScanList(listError)
|
_scanList.value = ItemScanList(listError)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ class ExpeditionPalletViewModel (context: Context) : BaseViewModel(context) {
|
||||||
_scanList.value = response.body()?.let { ItemScanList(it) }
|
_scanList.value = response.body()?.let { ItemScanList(it) }
|
||||||
}else{
|
}else{
|
||||||
val listError:ArrayList<ItemScanVO> = ArrayList()
|
val listError:ArrayList<ItemScanVO> = ArrayList()
|
||||||
listError.add(ItemScanVO(isError = true,errorMessage = getMessageFromAllResponse(nameofFunction(this),response.message())))
|
listError.add(ItemScanVO("",0,isError = true,errorMessage = getMessageFromAllResponse(nameofFunction(this),response.message())))
|
||||||
_scanList.value = ItemScanList(listError)
|
_scanList.value = ItemScanList(listError)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -92,8 +92,8 @@ class ExpeditionPalletViewModel (context: Context) : BaseViewModel(context) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fun expeditionScanPut(usuario:String,password:String,vPalletFk:String,vExpeditionFk:String){
|
fun expeditionScanPut(vPalletFk:Int,vExpeditionFk:Int){
|
||||||
getPaletizadoresUserCase.expeditionScanPut(usuario,password,vPalletFk,vExpeditionFk).enqueue(object : Callback<Any>{
|
silex.expeditionScanPut(vPalletFk,vExpeditionFk).enqueue(object : Callback<Any>{
|
||||||
override fun onFailure(call: Call<Any>, t: Throwable) {
|
override fun onFailure(call: Call<Any>, t: Throwable) {
|
||||||
_response.value = ResponseItemVO(isError = true,errorMessage = getMessageFromAllResponse(nameofFunction(this),t.message!!))
|
_response.value = ResponseItemVO(isError = true,errorMessage = getMessageFromAllResponse(nameofFunction(this),t.message!!))
|
||||||
}
|
}
|
||||||
|
@ -107,8 +107,8 @@ class ExpeditionPalletViewModel (context: Context) : BaseViewModel(context) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fun checkRouteExpeditionScanPut(usuario:String,password:String,vPalletFk:String,vExpeditionFk:String){
|
fun checkRouteExpeditionScanPut(vPalletFk:Int,vExpeditionFk:Int){
|
||||||
getPaletizadoresUserCase.checkRouteExpeditionScanPut(usuario,password,vPalletFk,vExpeditionFk).enqueue(object : Callback<String>{
|
silex.checkRouteExpeditionScanPut(vPalletFk,vExpeditionFk).enqueue(object : Callback<String>{
|
||||||
override fun onFailure(call: Call<String>, t: Throwable) {
|
override fun onFailure(call: Call<String>, t: Throwable) {
|
||||||
_response.value = ResponseItemVO(isError = true,errorMessage = getMessageFromAllResponse(nameofFunction(this),t.message!!))
|
_response.value = ResponseItemVO(isError = true,errorMessage = getMessageFromAllResponse(nameofFunction(this),t.message!!))
|
||||||
}
|
}
|
||||||
|
|
|
@ -210,7 +210,7 @@ class ExpeditionScanFragment (
|
||||||
if (listExpeditions.size > 0){
|
if (listExpeditions.size > 0){
|
||||||
|
|
||||||
onComprobarPalletViewClickListener!!.onComprobarPalletViewClickListener(itemExpeditionTruckVO!!,
|
onComprobarPalletViewClickListener!!.onComprobarPalletViewClickListener(itemExpeditionTruckVO!!,
|
||||||
ItemPalletVO(Pallet = it.list.get(0).palletFk)
|
ItemPalletVO(Pallet = it.list.get(0).palletFk.toString())
|
||||||
)
|
)
|
||||||
}else{
|
}else{
|
||||||
customDialog.setTitle(getString(R.string.info)).setDescription(getString(R.string.expeditionsError)).setOkButton(getString(
|
customDialog.setTitle(getString(R.string.info)).setDescription(getString(R.string.expeditionsError)).setOkButton(getString(
|
||||||
|
@ -237,14 +237,11 @@ class ExpeditionScanFragment (
|
||||||
|
|
||||||
listExpeditions.add(BarcodeVO(code = customDialogList.getValue()))
|
listExpeditions.add(BarcodeVO(code = customDialogList.getValue()))
|
||||||
viewModel.expeditionScanPut(
|
viewModel.expeditionScanPut(
|
||||||
getData(USER),
|
|
||||||
getData(PASSWORD),
|
|
||||||
it.list.get(0).palletFk,
|
it.list.get(0).palletFk,
|
||||||
customDialogList.getValue()
|
customDialogList.getValue().toInt()
|
||||||
)
|
)
|
||||||
|
|
||||||
checkRouteExpeditionScanPut(getData(USER),
|
checkRouteExpeditionScanPut(it.list.get(0).palletFk,customDialogList.getValue().toInt())
|
||||||
getData(PASSWORD),it.list.get(0).palletFk,customDialogList.getValue())
|
|
||||||
|
|
||||||
expeditionAdapter!!.notifyDataSetChanged()
|
expeditionAdapter!!.notifyDataSetChanged()
|
||||||
|
|
||||||
|
@ -268,9 +265,9 @@ class ExpeditionScanFragment (
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun checkRouteExpeditionScanPut(user: String, password: String, palletFk: String, expedition: String){
|
private fun checkRouteExpeditionScanPut(palletFk: Int, expedition: Int){
|
||||||
|
|
||||||
viewModel.checkRouteExpeditionScanPut(user,password,palletFk,expedition)
|
viewModel.checkRouteExpeditionScanPut(palletFk,expedition)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,7 @@ class ExpeditionScanViewModel(context: Context) : BaseViewModel(context) {
|
||||||
override fun onFailure(call: Call<List<ItemScanVO>>, t: Throwable) {
|
override fun onFailure(call: Call<List<ItemScanVO>>, t: Throwable) {
|
||||||
val listError: ArrayList<ItemScanVO> = ArrayList()
|
val listError: ArrayList<ItemScanVO> = ArrayList()
|
||||||
listError.add(
|
listError.add(
|
||||||
ItemScanVO(
|
ItemScanVO("",0,
|
||||||
isError = true,
|
isError = true,
|
||||||
errorMessage = getMessageFromAllResponse(nameofFunction(this), t.message!!)
|
errorMessage = getMessageFromAllResponse(nameofFunction(this), t.message!!)
|
||||||
)
|
)
|
||||||
|
@ -104,7 +104,7 @@ class ExpeditionScanViewModel(context: Context) : BaseViewModel(context) {
|
||||||
} else {
|
} else {
|
||||||
val listError: ArrayList<ItemScanVO> = ArrayList()
|
val listError: ArrayList<ItemScanVO> = ArrayList()
|
||||||
listError.add(
|
listError.add(
|
||||||
ItemScanVO(
|
ItemScanVO("",0,
|
||||||
isError = true,
|
isError = true,
|
||||||
errorMessage = getMessageFromAllResponse(
|
errorMessage = getMessageFromAllResponse(
|
||||||
nameofFunction(this),
|
nameofFunction(this),
|
||||||
|
@ -119,12 +119,10 @@ class ExpeditionScanViewModel(context: Context) : BaseViewModel(context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun expeditionScanPut(
|
fun expeditionScanPut(
|
||||||
usuario: String,
|
vPalletFk: Int,
|
||||||
password: String,
|
vExpeditionFk: Int
|
||||||
vPalletFk: String,
|
|
||||||
vExpeditionFk: String
|
|
||||||
) {
|
) {
|
||||||
getPaletizadoresUserCase.expeditionScanPut(usuario, password, vPalletFk, vExpeditionFk)
|
silex.expeditionScanPut(vPalletFk, vExpeditionFk)
|
||||||
.enqueue(object : Callback<Any> {
|
.enqueue(object : Callback<Any> {
|
||||||
override fun onFailure(call: Call<Any>, t: Throwable) {
|
override fun onFailure(call: Call<Any>, t: Throwable) {
|
||||||
_response.value = ResponseItemVO(
|
_response.value = ResponseItemVO(
|
||||||
|
@ -153,14 +151,10 @@ class ExpeditionScanViewModel(context: Context) : BaseViewModel(context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun checkRouteExpeditionScanPut(
|
fun checkRouteExpeditionScanPut(
|
||||||
usuario: String,
|
vPalletFk: Int,
|
||||||
password: String,
|
vExpeditionFk: Int
|
||||||
vPalletFk: String,
|
|
||||||
vExpeditionFk: String
|
|
||||||
) {
|
) {
|
||||||
getPaletizadoresUserCase.checkRouteExpeditionScanPut(
|
silex.checkRouteExpeditionScanPut(
|
||||||
usuario,
|
|
||||||
password,
|
|
||||||
vPalletFk,
|
vPalletFk,
|
||||||
vExpeditionFk
|
vExpeditionFk
|
||||||
).enqueue(object : Callback<String> {
|
).enqueue(object : Callback<String> {
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
package es.verdnatura.presentation.view.feature.paletizador.fragment
|
package es.verdnatura.presentation.view.feature.paletizador.fragment
|
||||||
|
|
||||||
import android.util.Log
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
|
import android.view.View.GONE
|
||||||
import android.view.inputmethod.EditorInfo
|
import android.view.inputmethod.EditorInfo
|
||||||
import androidx.core.view.isVisible
|
import androidx.core.view.isVisible
|
||||||
import es.verdnatura.R
|
import es.verdnatura.R
|
||||||
import es.verdnatura.databinding.FragmentGeneralBlackBinding
|
import es.verdnatura.databinding.FragmentGeneralBlackBinding
|
||||||
|
import es.verdnatura.domain.toast
|
||||||
import es.verdnatura.presentation.base.BaseFragment
|
import es.verdnatura.presentation.base.BaseFragment
|
||||||
import es.verdnatura.presentation.common.itemScanned
|
import es.verdnatura.presentation.common.itemScanned
|
||||||
import es.verdnatura.presentation.view.component.CustomDialogInput
|
import es.verdnatura.presentation.view.component.CustomDialogInput
|
||||||
|
@ -62,21 +63,21 @@ class PalletScanFragment(
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
binding.splashProgress.visibility = View.VISIBLE
|
||||||
customDialogList.dismiss()
|
customDialogList.dismiss()
|
||||||
|
|
||||||
var valueScanned:String
|
var valueScanned: String
|
||||||
try {
|
try {
|
||||||
valueScanned = itemScanned(JSONObject(vPalletId)).id.toString()
|
valueScanned = itemScanned(JSONObject(vPalletId)).id.toString()
|
||||||
Log.d("VERDNATURA::", "el valor es " + valueScanned)
|
} catch (ex: Exception) {
|
||||||
|
valueScanned = vPalletId
|
||||||
}
|
}
|
||||||
catch(ex:Exception){
|
itemScaned = valueScanned
|
||||||
valueScanned=vPalletId
|
try {
|
||||||
Log.d("VERDNATURA::", "ex " + ex.message)
|
viewModel.expeditionPallet_get(
|
||||||
|
itemScaned.toInt(),
|
||||||
|
)
|
||||||
|
} catch (ex: Exception) {
|
||||||
|
binding.splashProgress.visibility = GONE
|
||||||
|
ex.message!!.toast(context)
|
||||||
}
|
}
|
||||||
itemScaned=valueScanned
|
|
||||||
viewModel.expeditionPallet_get(
|
|
||||||
getData(USER),
|
|
||||||
getData(PASSWORD),
|
|
||||||
valueScanned,
|
|
||||||
)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,8 +69,8 @@ class PalletScanViewModel(context: Context) : BaseViewModel(context) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fun expeditionPallet_get(usuario: String, password: String, vPalletId: String) {
|
fun expeditionPallet_get(vPalletId: Int) {
|
||||||
GetPaletizadoresUserCase.expeditionPallet_get(usuario, password, vPalletId)
|
silex.expeditionPallet_get(vPalletId)
|
||||||
.enqueue(object : Callback<ItemExpeditionTruckVO> {
|
.enqueue(object : Callback<ItemExpeditionTruckVO> {
|
||||||
override fun onFailure(call: Call<ItemExpeditionTruckVO>, t: Throwable) {
|
override fun onFailure(call: Call<ItemExpeditionTruckVO>, t: Throwable) {
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ package es.verdnatura.presentation.view.feature.paletizador.model
|
||||||
|
|
||||||
class ItemScanVO (
|
class ItemScanVO (
|
||||||
var expeditionFk:String = "",
|
var expeditionFk:String = "",
|
||||||
var palletFk:String = "",
|
var palletFk:Int,
|
||||||
var isError:Boolean = false,
|
var isError:Boolean = false,
|
||||||
var errorMessage:String = ""
|
var errorMessage:String = ""
|
||||||
)
|
)
|
||||||
|
|
|
@ -103,9 +103,7 @@ class ReposicionFragment : BaseFragment<ReposicionFragmentBinding, ReposicionVie
|
||||||
binding.btnObtener.setOnClickListener {
|
binding.btnObtener.setOnClickListener {
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
binding.splashProgress.visibility = View.VISIBLE
|
||||||
viewModel.itemPlacementSupplyGetOrder(
|
viewModel.itemPlacementSupplyGetOrder(
|
||||||
usuario = getData(USER),
|
sectorFk = getData(SECTORFK).toInt()
|
||||||
password = getData(PASSWORD),
|
|
||||||
sectorFk = getData(SECTORFK)
|
|
||||||
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -120,10 +118,8 @@ class ReposicionFragment : BaseFragment<ReposicionFragmentBinding, ReposicionVie
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
binding.splashProgress.visibility = View.VISIBLE
|
||||||
if (sales.count() > 0) {
|
if (sales.count() > 0) {
|
||||||
viewModel.itemPlacementSupplyCloseOrder(
|
viewModel.itemPlacementSupplyCloseOrder(
|
||||||
usuario = getData(USER),
|
id = sales[0].id.toInt(),
|
||||||
password = getData(PASSWORD),
|
quantity = sales[0].quantity.toString().toInt()
|
||||||
id = sales[0].id,
|
|
||||||
quantity = sales[0].quantity.toString()
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
customDialog.dismiss()
|
customDialog.dismiss()
|
||||||
|
@ -162,9 +158,7 @@ class ReposicionFragment : BaseFragment<ReposicionFragmentBinding, ReposicionVie
|
||||||
binding.collectionSwipe.setOnRefreshListener {
|
binding.collectionSwipe.setOnRefreshListener {
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
binding.splashProgress.visibility = View.VISIBLE
|
||||||
viewModel.itemPlacementSupplyGetOrder(
|
viewModel.itemPlacementSupplyGetOrder(
|
||||||
usuario = getData(USER),
|
sectorFk = getData(SECTORFK).toInt()
|
||||||
password = getData(PASSWORD),
|
|
||||||
sectorFk = getData(SECTORFK)
|
|
||||||
|
|
||||||
)
|
)
|
||||||
binding.collectionSwipe.isRefreshing = false
|
binding.collectionSwipe.isRefreshing = false
|
||||||
|
|
|
@ -45,12 +45,10 @@ class ReposicionViewModel(context: Context) : BaseViewModel(context) {
|
||||||
get() = _responseCode
|
get() = _responseCode
|
||||||
|
|
||||||
fun itemPlacementSupplyGetOrder(
|
fun itemPlacementSupplyGetOrder(
|
||||||
usuario: String,
|
sectorFk: Int
|
||||||
password: String,
|
|
||||||
sectorFk: String
|
|
||||||
|
|
||||||
) {
|
) {
|
||||||
getPreSacadorUseCase.itemPlacementSupplyGetOrder(usuario, password, sectorFk)
|
silex.itemPlacementSupplyGetOrder(sectorFk)
|
||||||
.enqueue(object :
|
.enqueue(object :
|
||||||
Callback<List<PreSacadorItemVO>> {
|
Callback<List<PreSacadorItemVO>> {
|
||||||
override fun onFailure(call: Call<List<PreSacadorItemVO>>, t: Throwable) {
|
override fun onFailure(call: Call<List<PreSacadorItemVO>>, t: Throwable) {
|
||||||
|
@ -219,12 +217,10 @@ class ReposicionViewModel(context: Context) : BaseViewModel(context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun itemPlacementSupplyCloseOrder(
|
fun itemPlacementSupplyCloseOrder(
|
||||||
usuario: String,
|
id: Int,
|
||||||
password: String,
|
quantity: Int
|
||||||
id: String,
|
|
||||||
quantity: String
|
|
||||||
) {
|
) {
|
||||||
getPreSacadorUseCase.itemPlacementSupplyCloseOrder(usuario, password, id, quantity)
|
silex.itemPlacementSupplyCloseOrder(id, quantity)
|
||||||
.enqueue(object : Callback<Any> {
|
.enqueue(object : Callback<Any> {
|
||||||
override fun onFailure(call: Call<Any>, t: Throwable) {
|
override fun onFailure(call: Call<Any>, t: Throwable) {
|
||||||
_responseClose.value = ResponseItemVO(
|
_responseClose.value = ResponseItemVO(
|
||||||
|
|
|
@ -81,7 +81,7 @@ class SacadorViewModel(context: Context) : BaseViewModel(context) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fun collectionNew(usuario: String, password: String, sectorFk: String, wagons: String){
|
/* fun collectionNew(usuario: String, password: String, sectorFk: String, wagons: String){
|
||||||
getSacadorControladorUserCase.collectionNew(usuario, password, sectorFk, wagons).enqueue(
|
getSacadorControladorUserCase.collectionNew(usuario, password, sectorFk, wagons).enqueue(
|
||||||
object :
|
object :
|
||||||
Callback<String> {
|
Callback<String> {
|
||||||
|
@ -109,7 +109,7 @@ class SacadorViewModel(context: Context) : BaseViewModel(context) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
|
||||||
fun collection_assign(){
|
fun collection_assign(){
|
||||||
|
@ -142,68 +142,6 @@ class SacadorViewModel(context: Context) : BaseViewModel(context) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fun collection_new_smart(usuario: String, password: String, sectorFk: String, wagons: String,tagtype:String){
|
|
||||||
getSacadorControladorUserCase.collectionNewSmarttag(usuario, password, sectorFk, wagons,tagtype).enqueue(
|
|
||||||
object :
|
|
||||||
Callback<String> {
|
|
||||||
override fun onFailure(call: Call<String>, t: Throwable) {
|
|
||||||
_responseCollectionSmart.value =
|
|
||||||
ResponseItemVO(isError = true, errorMessage = getMessageFromAllResponse(nameofFunction(this),t.message!!))
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onResponse(
|
|
||||||
call: Call<String>,
|
|
||||||
response: Response<String>
|
|
||||||
) {
|
|
||||||
if (response.body() != null) {
|
|
||||||
|
|
||||||
_responseCollectionSmart.value =
|
|
||||||
ResponseItemVO(isError = false, response = response.body()!!)
|
|
||||||
} else {
|
|
||||||
_responseCollectionSmart.value = ResponseItemVO(
|
|
||||||
isError = true,
|
|
||||||
errorMessage = getMessageFromAllResponse(nameofFunction(this),response.message())
|
|
||||||
)
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/* fun collection_new_smarttag(usuario: String, password: String, sectorFk: String, wagons: String,tagtype:String){
|
|
||||||
getSacadorControladorUserCase.collectionNewSmarttag(usuario, password, sectorFk, wagons,tagtype).enqueue(
|
|
||||||
object :
|
|
||||||
Callback<String> {
|
|
||||||
override fun onFailure(call: Call<String>, t: Throwable) {
|
|
||||||
_responseCollectionSmarttag.value =
|
|
||||||
ResponseItemVO(isError = true, errorMessage = getMessageFromAllResponse(nameofFunction(this),t.message!!))
|
|
||||||
Log.d("VERDNATURA::","onFAilure")
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onResponse(
|
|
||||||
call: Call<String>,
|
|
||||||
response: Response<String>
|
|
||||||
) {
|
|
||||||
if (response.body() != null) {
|
|
||||||
|
|
||||||
Log.d("VERDNATURA::","La coleccion de collectionNew_SMARTGS es "+response.body())
|
|
||||||
_responseCollectionSmarttag.value =
|
|
||||||
ResponseItemVO(isError = false, response = response.body()!!)
|
|
||||||
} else {
|
|
||||||
Log.d("VERDNATURA::","Else del response.body() ")
|
|
||||||
_responseCollectionSmarttag.value =
|
|
||||||
ResponseItemVO(
|
|
||||||
isError = true,
|
|
||||||
errorMessage = getMessageFromAllResponse(nameofFunction(this),response.message())
|
|
||||||
)
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}*/
|
|
||||||
|
|
||||||
fun collectionGet(){
|
fun collectionGet(){
|
||||||
getSacadorControladorUserCase.collectionGet().enqueue(object :
|
getSacadorControladorUserCase.collectionGet().enqueue(object :
|
||||||
Callback<List<CollectionVO>> {
|
Callback<List<CollectionVO>> {
|
||||||
|
|
|
@ -88,7 +88,7 @@ class UbicadorAdapter(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.checked) {
|
/* if (item.checked) {
|
||||||
itemRowLayout.setBackgroundColor(
|
itemRowLayout.setBackgroundColor(
|
||||||
ContextCompat.getColor(
|
ContextCompat.getColor(
|
||||||
visibleText.context,
|
visibleText.context,
|
||||||
|
@ -109,9 +109,9 @@ class UbicadorAdapter(
|
||||||
visibleText.context,
|
visibleText.context,
|
||||||
R.color.verdnatura_red_salix
|
R.color.verdnatura_red_salix
|
||||||
))
|
))
|
||||||
}
|
}*/
|
||||||
|
|
||||||
/* when (item.isChecked) {
|
when (item.isChecked) {
|
||||||
1 -> {
|
1 -> {
|
||||||
itemRowLayout.setBackgroundColor(
|
itemRowLayout.setBackgroundColor(
|
||||||
ContextCompat.getColor(
|
ContextCompat.getColor(
|
||||||
|
@ -138,7 +138,7 @@ class UbicadorAdapter(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
}*/
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ import es.verdnatura.presentation.base.BaseFragment
|
||||||
import es.verdnatura.presentation.common.OnAutomaticItemClickListener
|
import es.verdnatura.presentation.common.OnAutomaticItemClickListener
|
||||||
import es.verdnatura.presentation.view.feature.ubicador.adapter.AutomaticAdapter
|
import es.verdnatura.presentation.view.feature.ubicador.adapter.AutomaticAdapter
|
||||||
import es.verdnatura.presentation.view.feature.ubicador.model.ItemEscanerVO
|
import es.verdnatura.presentation.view.feature.ubicador.model.ItemEscanerVO
|
||||||
|
import java.lang.Boolean.FALSE
|
||||||
import java.lang.Boolean.TRUE
|
import java.lang.Boolean.TRUE
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,12 +35,8 @@ class AutomaticAddItemFragment(
|
||||||
override fun getLayoutId(): Int = R.layout.fragment_automatic_add_item
|
override fun getLayoutId(): Int = R.layout.fragment_automatic_add_item
|
||||||
|
|
||||||
override fun init() {
|
override fun init() {
|
||||||
|
|
||||||
ma.hideBottomNavigation(View.GONE)
|
ma.hideBottomNavigation(View.GONE)
|
||||||
|
|
||||||
binding.mainToolbar.toolbarTitle.text = titleAction
|
binding.mainToolbar.toolbarTitle.text = titleAction
|
||||||
|
|
||||||
|
|
||||||
setEvents()
|
setEvents()
|
||||||
setViews()
|
setViews()
|
||||||
setToolBar()
|
setToolBar()
|
||||||
|
@ -102,21 +99,24 @@ class AutomaticAddItemFragment(
|
||||||
if (binding.mainToolbar.toolbarTitle.text.equals(getString(R.string.titleChecker))) {
|
if (binding.mainToolbar.toolbarTitle.text.equals(getString(R.string.titleChecker))) {
|
||||||
|
|
||||||
viewModel.itemShelving_addList(
|
viewModel.itemShelving_addList(
|
||||||
getData(USER),
|
|
||||||
getData(PASSWORD),
|
|
||||||
shelvingFk,
|
shelvingFk,
|
||||||
"" + listInt + "",
|
"" + listInt + "",
|
||||||
TRUE,
|
TRUE,
|
||||||
getData(WAREHOUSEFK).toInt()
|
getData(WAREHOUSEFK).toInt()
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
viewModel.itemShelvingMake_multi(
|
viewModel.itemShelving_addList(
|
||||||
|
shelvingFk,
|
||||||
|
"" + listInt + "",
|
||||||
|
FALSE,
|
||||||
|
getData(WAREHOUSEFK).toInt())
|
||||||
|
/* viewModel.itemShelvingMake_multi(
|
||||||
getData(USER),
|
getData(USER),
|
||||||
getData(PASSWORD),
|
getData(PASSWORD),
|
||||||
shelvingFk,
|
shelvingFk,
|
||||||
listString,
|
listString,
|
||||||
getData(WAREHOUSEFK)
|
getData(WAREHOUSEFK)
|
||||||
)
|
)*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,16 +58,12 @@ class AutomaticAddItemViewModel(context: Context) : BaseViewModel(context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun itemShelving_addList(
|
fun itemShelving_addList(
|
||||||
usuario: String,
|
|
||||||
password: String,
|
|
||||||
shelving: String,
|
shelving: String,
|
||||||
items: Any,
|
items: Any,
|
||||||
isChecking: Boolean,
|
isChecking: Boolean,
|
||||||
warehouse: Int
|
warehouse: Int
|
||||||
) {
|
) {
|
||||||
getUbicadorUserCase.itemShelving_addList(
|
silex.itemShelving_addList(
|
||||||
usuario,
|
|
||||||
password,
|
|
||||||
shelving,
|
shelving,
|
||||||
items,
|
items,
|
||||||
isChecking,
|
isChecking,
|
||||||
|
|
|
@ -87,8 +87,7 @@ class UbicadorFragment(
|
||||||
isShelvinLogfromMainScreen = false
|
isShelvinLogfromMainScreen = false
|
||||||
binding.splashProgress.visibility = VISIBLE
|
binding.splashProgress.visibility = VISIBLE
|
||||||
binding.mainToolbar.toolbarTitle.text = shelvingFk
|
binding.mainToolbar.toolbarTitle.text = shelvingFk
|
||||||
viewModel.itemShelvingList(getData(USER), getData(PASSWORD), shelvingFk)
|
viewModel.itemShelvingList(shelvingFk)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
isShelvinLogfromMainScreen = true
|
isShelvinLogfromMainScreen = true
|
||||||
|
|
||||||
|
@ -143,7 +142,7 @@ class UbicadorFragment(
|
||||||
}
|
}
|
||||||
listIcons.add(iconAdd)
|
listIcons.add(iconAdd)
|
||||||
listIcons.add(iconReload)
|
listIcons.add(iconReload)
|
||||||
//listIcons.add(iconChecker)
|
listIcons.add(iconChecker)
|
||||||
|
|
||||||
|
|
||||||
binding.mainToolbar.toolbarIcons.adapter =
|
binding.mainToolbar.toolbarIcons.adapter =
|
||||||
|
@ -158,8 +157,6 @@ class UbicadorFragment(
|
||||||
binding.editPrioridad.setText("")
|
binding.editPrioridad.setText("")
|
||||||
binding.splashProgress.visibility = VISIBLE
|
binding.splashProgress.visibility = VISIBLE
|
||||||
viewModel.itemShelvingList(
|
viewModel.itemShelvingList(
|
||||||
getData(USER),
|
|
||||||
getData(PASSWORD),
|
|
||||||
shelvingFk
|
shelvingFk
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
@ -211,8 +208,6 @@ class UbicadorFragment(
|
||||||
binding.editPrioridad.setText("")
|
binding.editPrioridad.setText("")
|
||||||
binding.splashProgress.visibility = VISIBLE
|
binding.splashProgress.visibility = VISIBLE
|
||||||
viewModel.itemShelvingList(
|
viewModel.itemShelvingList(
|
||||||
getData(USER),
|
|
||||||
getData(PASSWORD),
|
|
||||||
binding.editMatricula.text.toString()
|
binding.editMatricula.text.toString()
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
@ -259,8 +254,8 @@ class UbicadorFragment(
|
||||||
|
|
||||||
//Tarea #4778 Para llamar a Revisar items poner R.string.titleChecker
|
//Tarea #4778 Para llamar a Revisar items poner R.string.titleChecker
|
||||||
ma.onPasillerosItemClickListener(
|
ma.onPasillerosItemClickListener(
|
||||||
PasillerosItemVO(title = getString(R.string.titleAuto)),
|
PasillerosItemVO(title = getString(R.string.titleAuto)),
|
||||||
// PasillerosItemVO(title = getString(R.string.titleChecker)),
|
//PasillerosItemVO(title = getString(R.string.titleChecker)),
|
||||||
entryPoint = shelvingFk
|
entryPoint = shelvingFk
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
|
@ -572,8 +567,7 @@ class UbicadorFragment(
|
||||||
binding.mainToolbar.toolbarTitle.text = shelvingFk
|
binding.mainToolbar.toolbarTitle.text = shelvingFk
|
||||||
binding.splashProgress.visibility = VISIBLE
|
binding.splashProgress.visibility = VISIBLE
|
||||||
viewModel.itemShelvingList(
|
viewModel.itemShelvingList(
|
||||||
getData(USER),
|
shelvingFk
|
||||||
getData(PASSWORD), shelvingFk
|
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -664,7 +658,7 @@ class UbicadorFragment(
|
||||||
packing: String,
|
packing: String,
|
||||||
visible: String,
|
visible: String,
|
||||||
updatePacking: Boolean? = null,
|
updatePacking: Boolean? = null,
|
||||||
itemShelvingFk: String,
|
itemShelvingFk: Int,
|
||||||
groupingPack: String
|
groupingPack: String
|
||||||
) {
|
) {
|
||||||
if (!packing.isNullOrEmpty()) {
|
if (!packing.isNullOrEmpty()) {
|
||||||
|
@ -732,17 +726,11 @@ class UbicadorFragment(
|
||||||
if (!itemFk.isNullOrEmpty() && !visible.isNullOrEmpty() && !updatePacking) {
|
if (!itemFk.isNullOrEmpty() && !visible.isNullOrEmpty() && !updatePacking) {
|
||||||
binding.splashProgress.visibility = VISIBLE
|
binding.splashProgress.visibility = VISIBLE
|
||||||
viewModel.itemShelvingMakeEdit(
|
viewModel.itemShelvingMakeEdit(
|
||||||
getData(USER),
|
visible.toInt(),
|
||||||
getData(PASSWORD),
|
packing.toInt(),
|
||||||
shelvingFk,
|
|
||||||
itemFk,
|
|
||||||
deep.toString(),
|
|
||||||
visible,
|
|
||||||
packing,
|
|
||||||
getData(WAREHOUSEFK),
|
|
||||||
"1",
|
|
||||||
itemShelvingFk,
|
itemShelvingFk,
|
||||||
groupingPack
|
groupingPack.toInt()
|
||||||
|
|
||||||
)
|
)
|
||||||
/* changeOfflineValue(
|
/* changeOfflineValue(
|
||||||
ItemUbicadorVO(
|
ItemUbicadorVO(
|
||||||
|
@ -758,24 +746,18 @@ class UbicadorFragment(
|
||||||
customDialogUbicador.dismiss()
|
customDialogUbicador.dismiss()
|
||||||
|
|
||||||
} else if (!itemFk.isNullOrEmpty() && !etiquetas.isNullOrEmpty() && updatePacking) {
|
} else if (!itemFk.isNullOrEmpty() && !etiquetas.isNullOrEmpty() && updatePacking) {
|
||||||
var visible_calc = "0"
|
var visible_calc = 0
|
||||||
try {
|
try {
|
||||||
visible_calc = (etiquetas.toInt() * packing.toInt()).toString()
|
visible_calc = (etiquetas.toInt() * packing.toInt())
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
binding.splashProgress.visibility = VISIBLE
|
binding.splashProgress.visibility = VISIBLE
|
||||||
viewModel.itemShelvingMakeEdit(
|
viewModel.itemShelvingMakeEdit(
|
||||||
getData(USER),
|
|
||||||
getData(PASSWORD),
|
|
||||||
shelvingFk,
|
|
||||||
itemFk,
|
|
||||||
deep.toString(),
|
|
||||||
visible_calc,
|
visible_calc,
|
||||||
packing,
|
packing.toInt(),
|
||||||
getData(WAREHOUSEFK),
|
|
||||||
"1",
|
|
||||||
itemShelvingFk,
|
itemShelvingFk,
|
||||||
groupingPack
|
groupingPack.toInt()
|
||||||
|
|
||||||
)
|
)
|
||||||
/* changeOfflineValue(
|
/* changeOfflineValue(
|
||||||
ItemUbicadorVO(
|
ItemUbicadorVO(
|
||||||
|
@ -815,8 +797,6 @@ class UbicadorFragment(
|
||||||
.setOkButton(getString(R.string.transfer)) {
|
.setOkButton(getString(R.string.transfer)) {
|
||||||
if (customDialogInput.getValue().isNotEmpty()) {
|
if (customDialogInput.getValue().isNotEmpty()) {
|
||||||
viewModel.itemShelvingTransfer(
|
viewModel.itemShelvingTransfer(
|
||||||
getData(USER),
|
|
||||||
getData(PASSWORD),
|
|
||||||
item.id,
|
item.id,
|
||||||
customDialogInput.getValue()
|
customDialogInput.getValue()
|
||||||
)
|
)
|
||||||
|
@ -836,8 +816,6 @@ class UbicadorFragment(
|
||||||
customDialogInput.getEditText().setOnEditorActionListener { v, actionId, event ->
|
customDialogInput.getEditText().setOnEditorActionListener { v, actionId, event ->
|
||||||
if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_DONE || actionId == 0) {
|
if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_DONE || actionId == 0) {
|
||||||
viewModel.itemShelvingTransfer(
|
viewModel.itemShelvingTransfer(
|
||||||
getData(USER),
|
|
||||||
getData(PASSWORD),
|
|
||||||
item.id,
|
item.id,
|
||||||
customDialogInput.getValue()
|
customDialogInput.getValue()
|
||||||
)
|
)
|
||||||
|
@ -856,8 +834,7 @@ class UbicadorFragment(
|
||||||
listItems.remove(item)
|
listItems.remove(item)
|
||||||
adapter!!.notifyDataSetChanged()
|
adapter!!.notifyDataSetChanged()
|
||||||
viewModel.itemShelvingDelete(
|
viewModel.itemShelvingDelete(
|
||||||
getData(USER),
|
item.id
|
||||||
getData(PASSWORD), item.id
|
|
||||||
)
|
)
|
||||||
customDialogTwoButtons.dismiss()
|
customDialogTwoButtons.dismiss()
|
||||||
customDialog.dismiss()
|
customDialog.dismiss()
|
||||||
|
|
|
@ -46,11 +46,9 @@ class UbicadorViewModel(context: Context) : BaseViewModel(context) {
|
||||||
get() = _responseCode
|
get() = _responseCode
|
||||||
|
|
||||||
fun itemShelvingList(
|
fun itemShelvingList(
|
||||||
usuario: String,
|
|
||||||
password: String,
|
|
||||||
vShelvingFk: String
|
vShelvingFk: String
|
||||||
) {
|
) {
|
||||||
getUbicadorUserCase.itemShelvingList(usuario, password, vShelvingFk.uppercase())
|
silex.itemShelvingList(vShelvingFk.uppercase())
|
||||||
.enqueue(object :
|
.enqueue(object :
|
||||||
Callback<List<ItemUbicadorVO>> {
|
Callback<List<ItemUbicadorVO>> {
|
||||||
override fun onFailure(call: Call<List<ItemUbicadorVO>>, t: Throwable) {
|
override fun onFailure(call: Call<List<ItemUbicadorVO>>, t: Throwable) {
|
||||||
|
@ -173,28 +171,15 @@ class UbicadorViewModel(context: Context) : BaseViewModel(context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun itemShelvingMakeEdit(
|
fun itemShelvingMakeEdit(
|
||||||
usuario: String,
|
quantity: Int,
|
||||||
password: String,
|
packing: Int,
|
||||||
shelving: String,
|
itemShelvingFk: Int,
|
||||||
item: String,
|
grouping: Int
|
||||||
deep: String,
|
|
||||||
quantity: String,
|
|
||||||
packing: String,
|
|
||||||
warehouse: String,
|
|
||||||
level: String,
|
|
||||||
itemShelvingFk: String,
|
|
||||||
grouping: String
|
|
||||||
) {
|
) {
|
||||||
getUbicadorUserCase.itemShelvingMakeEdit(
|
silex.itemShelvingMakeEdit(
|
||||||
usuario,
|
|
||||||
password,
|
|
||||||
shelving,
|
|
||||||
item,
|
|
||||||
deep,
|
|
||||||
quantity,
|
quantity,
|
||||||
packing,
|
packing,
|
||||||
warehouse,
|
|
||||||
level,
|
|
||||||
itemShelvingFk,
|
itemShelvingFk,
|
||||||
grouping
|
grouping
|
||||||
).enqueue(object : Callback<Any> {
|
).enqueue(object : Callback<Any> {
|
||||||
|
@ -422,13 +407,11 @@ class UbicadorViewModel(context: Context) : BaseViewModel(context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun itemShelvingTransfer(
|
fun itemShelvingTransfer(
|
||||||
usuario: String,
|
itemFk: Int,
|
||||||
password: String,
|
|
||||||
itemFk: String,
|
|
||||||
shelvingFk: String
|
shelvingFk: String
|
||||||
|
|
||||||
) {
|
) {
|
||||||
getUbicadorUserCase.itemShelvingTransfer(usuario, password, itemFk, shelvingFk)
|
silex.itemShelvingTransfer(itemFk, shelvingFk)
|
||||||
.enqueue(object : Callback<Any> {
|
.enqueue(object : Callback<Any> {
|
||||||
override fun onFailure(call: Call<Any>, t: Throwable) {
|
override fun onFailure(call: Call<Any>, t: Throwable) {
|
||||||
_response.value = ResponseItemVO(
|
_response.value = ResponseItemVO(
|
||||||
|
@ -454,8 +437,8 @@ class UbicadorViewModel(context: Context) : BaseViewModel(context) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fun itemShelvingDelete(usuario: String, password: String, itemFk: String) {
|
fun itemShelvingDelete(itemFk: Int) {
|
||||||
getUbicadorUserCase.itemShelvingDelete(usuario, password, itemFk)
|
silex.itemShelvingDelete(itemFk)
|
||||||
.enqueue(object : Callback<Any> {
|
.enqueue(object : Callback<Any> {
|
||||||
override fun onFailure(call: Call<Any>, t: Throwable) {
|
override fun onFailure(call: Call<Any>, t: Throwable) {
|
||||||
_response.value = ResponseItemVO(
|
_response.value = ResponseItemVO(
|
||||||
|
|
|
@ -10,7 +10,7 @@ class ItemUbicadorVO(
|
||||||
var col: String = "",
|
var col: String = "",
|
||||||
var row: String = "",
|
var row: String = "",
|
||||||
var code: String = "",
|
var code: String = "",
|
||||||
var id: String = "",
|
var id: Int = 0,
|
||||||
var priority: String = "",
|
var priority: String = "",
|
||||||
var isError: Boolean = false,
|
var isError: Boolean = false,
|
||||||
var errorMessage: String = "",
|
var errorMessage: String = "",
|
||||||
|
|
Loading…
Reference in New Issue