Refactor formato campos refs #5134
This commit is contained in:
parent
d6cd3b4621
commit
610efcd747
|
@ -1,17 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="deploymentTargetDropDown">
|
|
||||||
<targetSelectedWithDropDown>
|
|
||||||
<Target>
|
|
||||||
<type value="QUICK_BOOT_TARGET" />
|
|
||||||
<deviceKey>
|
|
||||||
<Key>
|
|
||||||
<type value="VIRTUAL_DEVICE_PATH" />
|
|
||||||
<value value="C:\Users\sergiodt\.android\avd\Pixel_6_API_30.avd" />
|
|
||||||
</Key>
|
|
||||||
</deviceKey>
|
|
||||||
</Target>
|
|
||||||
</targetSelectedWithDropDown>
|
|
||||||
<timeTargetWasSelectedWithDropDown value="2023-10-16T14:10:25.651457200Z" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
|
@ -127,23 +127,96 @@
|
||||||
</select>
|
</select>
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="fa688d1c-dbee-4864-9e33-4d84ef9afca8" name="Default Changelist" comment="refs #5867 sendPDF">
|
<list default="true" id="fa688d1c-dbee-4864-9e33-4d84ef9afca8" name="Default Changelist" comment="Refactor formato campos refs #5134">
|
||||||
<change afterPath="$PROJECT_DIR$/.idea/deploymentTargetDropDown.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/deploymentTargetDropDown.xml" beforeDir="false" />
|
||||||
<change afterPath="$PROJECT_DIR$/.idea/migrations.xml" afterDir="false" />
|
|
||||||
<change afterPath="$PROJECT_DIR$/app/src/main/res/layout/sale_row_fragment_old.xml" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/assetWizardSettings.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/assetWizardSettings.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/beta/release/output-metadata.json" beforeDir="false" afterPath="$PROJECT_DIR$/app/beta/release/output-metadata.json" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/beta/release/output-metadata.json" beforeDir="false" afterPath="$PROJECT_DIR$/app/beta/release/output-metadata.json" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/build.gradle" beforeDir="false" afterPath="$PROJECT_DIR$/app/build.gradle" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/build.gradle" beforeDir="false" afterPath="$PROJECT_DIR$/app/build.gradle" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/di/viewModelModule.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/di/viewModelModule.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/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/common/UIExtensions.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/common/UIExtensions.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/view/feature/ajustes/model/AjustesItemVO.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ajustes/model/AjustesItemVO.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/adapter/ItemProposalAdapter.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/adapter/ItemProposalAdapter.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/fragment/ItemCardFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/fragment/ItemCardFragment.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/articulo/model/ItemCardVO.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/model/ItemCardVO.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/model/ItemProposal.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/articulo/model/ItemProposal.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/buscaritem/model/ItemLocationVO.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/buscaritem/model/ItemLocationVO.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/calidad/model/BuyerVO.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/calidad/model/BuyerVO.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/adapter/SaleAdapterNew.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/adapter/SaleAdapterNew.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/adapter/SaleAdapterNew.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/adapter/SaleAdapterNew.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/CollectionFragmentPicker.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragmentPicker.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragmentPicker.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragmentPicker.kt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragmentPickerNew.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragmentPickerNew.kt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragmentPickerNew.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragmentPickerNew.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragmentPreChecker.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragmentPreChecker.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/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/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/delivery/fragments/InfoFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/delivery/fragments/InfoFragment.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/delivery/fragments/LogExpeditionFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/delivery/fragments/LogExpeditionFragment.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/delivery/model/InfoCompany.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/delivery/model/InfoCompany.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/delivery/viewmodels/DeliveryViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/delivery/viewmodels/DeliveryViewModel.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/diadeventa/adapter/DayOfSaleAdapter.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/diadeventa/adapter/DayOfSaleAdapter.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/diadeventa/model/ItemShelvingSaleDate.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/diadeventa/model/ItemShelvingSaleDate.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoarticulo/adapter/HistoricoAdapter.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoarticulo/adapter/HistoricoAdapter.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/historicoarticulo/model/ItemHistoricoVO.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoarticulo/model/ItemHistoricoVO.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoshelving/adapter/ItemShelvingLogAdapter.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoshelving/adapter/ItemShelvingLogAdapter.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoshelving/model/ItemShelvingLog.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicoshelving/model/ItemShelvingLog.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicovehiculo/model/ItemHistoricoVehiculo.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/historicovehiculo/model/ItemHistoricoVehiculo.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/inventario/fragment/InventaryFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/inventario/fragment/InventaryFragment.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/inventario/fragment/InventaryParkingFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/inventario/fragment/InventaryParkingFragment.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/inventario/fragment/InventaryViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/inventario/fragment/InventaryViewModel.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/inventario/fragment/SearchBuyerModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/inventario/fragment/SearchBuyerModel.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/inventario/model/ItemInventaryVO.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/inventario/model/ItemInventaryVO.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/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/paletizador/adapter/ExpeditionPalletAdapter.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/adapter/ExpeditionPalletAdapter.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/CmrExpeditionPalletViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/CmrExpeditionPalletViewModel.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionPalletDetailFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionPalletDetailFragment.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionPalletDetailViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionPalletDetailViewModel.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/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/paletizador/fragment/ExpeditionScanSorterFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionScanSorterFragment.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionScanSorterViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionScanSorterViewModel.kt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionTruckListFragment.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/fragment/ExpeditionTruckListFragment.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/paletizador/model/ItemPalletVO.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/paletizador/model/ItemPalletVO.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/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/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/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/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/reubication/adapter/ReubicatorAdapter.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/reubication/adapter/ReubicatorAdapter.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/shelvingparking/adapter/ShelvingParkingAdapter.kt" beforeDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/shelvingparking/fragment/ShelvingParkingFragment.kt" beforeDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/shelvingparking/fragment/ShelvingParkingViewModel.kt" beforeDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/shelvingparking/model/ItemShelvingParkingVO.kt" beforeDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ticket/fragment/TicketViewModel.kt" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ticket/fragment/TicketViewModel.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/res/layout/item_article_row_reubication_fragment.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/item_article_row_reubication_fragment.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/layout/item_expedition_view_row.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/item_expedition_view_row.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/layout/item_expeditionlog_row.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/item_expeditionlog_row.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/layout/item_expeditionpallet_row.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/item_expeditionpallet_row.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/layout/item_expeditionscan_row.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/item_expeditionscan_row.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/layout/item_expeditiontruck_row.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/item_expeditiontruck_row.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/layout/item_historico_row.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/item_historico_row.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/layout/item_inventary_row.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/item_inventary_row.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/layout/item_location_row.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/item_location_row.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/layout/item_proposal_row.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/item_proposal_row.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/layout/item_shelvingdayofsale_row.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/item_shelvingdayofsale_row.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/layout/item_shelvinglog_row.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/item_shelvinglog_row.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/layout/item_shelvingparking_row.xml" beforeDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/res/layout/sale_row_fragment.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/sale_row_fragment.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/layout/sale_row_fragment.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/layout/sale_row_fragment.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/src/main/res/values/dimens.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/values/dimens.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/values-es/strings.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/values-es/strings.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/values-fr/strings.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/values-fr/strings.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/values-pt/strings.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/values-pt/strings.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/src/main/res/values/strings.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/res/values/strings.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/build.gradle" beforeDir="false" afterPath="$PROJECT_DIR$/build.gradle" 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" />
|
||||||
|
@ -157,7 +230,7 @@
|
||||||
<component name="CodeInsightWorkspaceSettings">
|
<component name="CodeInsightWorkspaceSettings">
|
||||||
<option name="optimizeImportsOnTheFly" value="true" />
|
<option name="optimizeImportsOnTheFly" value="true" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ExecutionTargetManager" SELECTED_TARGET="device_and_snapshot_combo_box_target[C:\Users\sergiodt\.android\avd\Pixel_6_API_30.avd]" />
|
<component name="ExecutionTargetManager" SELECTED_TARGET="device_and_snapshot_combo_box_target[21114523025303]" />
|
||||||
<component name="ExportToHTMLSettings">
|
<component name="ExportToHTMLSettings">
|
||||||
<option name="OPEN_IN_BROWSER" value="true" />
|
<option name="OPEN_IN_BROWSER" value="true" />
|
||||||
<option name="OUTPUT_DIRECTORY" value="C:\Program Files\Android\Android Studio\inspections" />
|
<option name="OUTPUT_DIRECTORY" value="C:\Program Files\Android\Android Studio\inspections" />
|
||||||
|
@ -175,7 +248,12 @@
|
||||||
</task>
|
</task>
|
||||||
<projects_view>
|
<projects_view>
|
||||||
<tree_state>
|
<tree_state>
|
||||||
<expand />
|
<expand>
|
||||||
|
<path>
|
||||||
|
<item name="" type="6a2764b6:ExternalProjectsStructure$RootNode" />
|
||||||
|
<item name="Gestor Almacén" type="f1a62948:ProjectNode" />
|
||||||
|
</path>
|
||||||
|
</expand>
|
||||||
<select />
|
<select />
|
||||||
</tree_state>
|
</tree_state>
|
||||||
</projects_view>
|
</projects_view>
|
||||||
|
@ -244,7 +322,7 @@
|
||||||
</option>
|
</option>
|
||||||
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
||||||
<map>
|
<map>
|
||||||
<entry key="$PROJECT_DIR$" value="dev" />
|
<entry key="$PROJECT_DIR$" value="5802-ticketState" />
|
||||||
</map>
|
</map>
|
||||||
</option>
|
</option>
|
||||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||||
|
@ -276,6 +354,9 @@
|
||||||
<setting file="file://$PROJECT_DIR$/app/src/main/res/values/strings.xml" root0="FORCE_HIGHLIGHTING" />
|
<setting file="file://$PROJECT_DIR$/app/src/main/res/values/strings.xml" root0="FORCE_HIGHLIGHTING" />
|
||||||
<setting file="file://$PROJECT_DIR$/app/src/main/res/values/styles.xml" root0="FORCE_HIGHLIGHTING" />
|
<setting file="file://$PROJECT_DIR$/app/src/main/res/values/styles.xml" root0="FORCE_HIGHLIGHTING" />
|
||||||
</component>
|
</component>
|
||||||
|
<component name="KotlinCodeInsightWorkspaceSettings">
|
||||||
|
<option name="optimizeImportsOnTheFly" value="true" />
|
||||||
|
</component>
|
||||||
<component name="MarkdownSettingsMigration">
|
<component name="MarkdownSettingsMigration">
|
||||||
<option name="stateVersion" value="1" />
|
<option name="stateVersion" value="1" />
|
||||||
</component>
|
</component>
|
||||||
|
@ -293,30 +374,31 @@
|
||||||
<option name="showLibraryContents" value="true" />
|
<option name="showLibraryContents" value="true" />
|
||||||
<option name="showMembers" value="true" />
|
<option name="showMembers" value="true" />
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent"><![CDATA[{
|
<component name="PropertiesComponent">{
|
||||||
"keyToString": {
|
"keyToString": {
|
||||||
"ApkExportedModule": "Gestor_Almacén.app",
|
"ApkExportedModule": "Gestor_Almacén.app",
|
||||||
"ExportApk.ApkPathForGestor_Almacén.app": "C:\\Users\\sergiodt\\AndroidStudioProjects\\vn-warehouseManager\\app",
|
"ExportApk.ApkPathForGestor_Almacén.app": "C:\\Users\\sergiodt\\AndroidStudioProjects\\vn-warehouseManager\\app",
|
||||||
"PROJECT_TRUSTED_KEY": "true",
|
"PROJECT_TRUSTED_KEY": "true",
|
||||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||||
"RunOnceActivity.cidr.known.project.marker": "true",
|
"RunOnceActivity.cidr.known.project.marker": "true",
|
||||||
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||||
"cidr.known.project.marker": "true",
|
"android-custom-viewC:/Users/sergiodt/AppData/Local/Android/Sdk/sources/android-29/android/widget/TextView.java_SELECTED": "TextView",
|
||||||
"com.google.services.firebase.aqiPopupShown": "true",
|
"cidr.known.project.marker": "true",
|
||||||
"git-widget-placeholder": "dev",
|
"com.google.services.firebase.aqiPopupShown": "true",
|
||||||
"last_opened_file_path": "C:/Users/sergiodt/AndroidStudioProjects/vn-warehouseManager/app/src/main/res/drawable",
|
"git-widget-placeholder": "dev",
|
||||||
"project.structure.last.edited": "Modules",
|
"last_opened_file_path": "C:/Users/sergiodt/AndroidStudioProjects/vn-warehouseManager/app/src/main/res/drawable",
|
||||||
"project.structure.proportion": "0.17",
|
"project.structure.last.edited": "Dependencies",
|
||||||
"project.structure.side.proportion": "0.2",
|
"project.structure.proportion": "0.17",
|
||||||
"run.code.analysis.last.selected.profile": "pProject Default",
|
"project.structure.side.proportion": "0.2",
|
||||||
"settings.editor.selected.configurable": "preferences.rainbow.brackets.disable.when"
|
"run.code.analysis.last.selected.profile": "pProject Default",
|
||||||
|
"settings.editor.selected.configurable": "preferences.rainbow.brackets.disable.when"
|
||||||
},
|
},
|
||||||
"keyToStringList": {
|
"keyToStringList": {
|
||||||
"ExportApk.BuildVariants": [
|
"ExportApk.BuildVariants": [
|
||||||
"betaRelease"
|
"betaRelease"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}]]></component>
|
}</component>
|
||||||
<component name="PsdUISettings">
|
<component name="PsdUISettings">
|
||||||
<option name="MODULE_TAB" value="Properties" />
|
<option name="MODULE_TAB" value="Properties" />
|
||||||
<option name="LAST_EDITED_SIGNING_CONFIG" value="debug" />
|
<option name="LAST_EDITED_SIGNING_CONFIG" value="debug" />
|
||||||
|
@ -483,41 +565,6 @@
|
||||||
<option name="presentableId" value="Default" />
|
<option name="presentableId" value="Default" />
|
||||||
<updated>1618825571576</updated>
|
<updated>1618825571576</updated>
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00153" summary="refs #5322 NaturePhotos">
|
|
||||||
<created>1685710258945</created>
|
|
||||||
<option name="number" value="00153" />
|
|
||||||
<option name="presentableId" value="LOCAL-00153" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1685710258945</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00154" summary="strings">
|
|
||||||
<created>1685943727757</created>
|
|
||||||
<option name="number" value="00154" />
|
|
||||||
<option name="presentableId" value="LOCAL-00154" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1685943727757</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00155" summary="refs #5322 NaturePhotos">
|
|
||||||
<created>1686034135416</created>
|
|
||||||
<option name="number" value="00155" />
|
|
||||||
<option name="presentableId" value="LOCAL-00155" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1686034135416</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00156" summary="Translation">
|
|
||||||
<created>1686034154826</created>
|
|
||||||
<option name="number" value="00156" />
|
|
||||||
<option name="presentableId" value="LOCAL-00156" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1686034154826</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00157" summary="refs #5513">
|
|
||||||
<created>1686034214348</created>
|
|
||||||
<option name="number" value="00157" />
|
|
||||||
<option name="presentableId" value="LOCAL-00157" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1686034214348</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00158" summary="refs #4678">
|
<task id="LOCAL-00158" summary="refs #4678">
|
||||||
<created>1686034256459</created>
|
<created>1686034256459</created>
|
||||||
<option name="number" value="00158" />
|
<option name="number" value="00158" />
|
||||||
|
@ -826,7 +873,42 @@
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1697531313482</updated>
|
<updated>1697531313482</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="202" />
|
<task id="LOCAL-00202" summary="varios">
|
||||||
|
<created>1697532528361</created>
|
||||||
|
<option name="number" value="00202" />
|
||||||
|
<option name="presentableId" value="LOCAL-00202" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1697532528362</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00203" summary="refs #5890">
|
||||||
|
<created>1697532784146</created>
|
||||||
|
<option name="number" value="00203" />
|
||||||
|
<option name="presentableId" value="LOCAL-00203" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1697532784146</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00204" summary="refs #5802 ticketSetState">
|
||||||
|
<created>1697533103477</created>
|
||||||
|
<option name="number" value="00204" />
|
||||||
|
<option name="presentableId" value="LOCAL-00204" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1697533103477</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00205" summary="version 23.40.1-hotFix OrderPrevia">
|
||||||
|
<created>1697620178800</created>
|
||||||
|
<option name="number" value="00205" />
|
||||||
|
<option name="presentableId" value="LOCAL-00205" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1697620178800</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00206" summary="version 23.40.1-hotFix Ubicador">
|
||||||
|
<created>1697695522957</created>
|
||||||
|
<option name="number" value="00206" />
|
||||||
|
<option name="presentableId" value="LOCAL-00206" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1697695522957</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="207" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="Vcs.Log.History.Properties">
|
<component name="Vcs.Log.History.Properties">
|
||||||
|
@ -868,7 +950,7 @@
|
||||||
<entry key="branch">
|
<entry key="branch">
|
||||||
<value>
|
<value>
|
||||||
<list>
|
<list>
|
||||||
<option value="testBeta" />
|
<option value="dev" />
|
||||||
</list>
|
</list>
|
||||||
</value>
|
</value>
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -927,11 +1009,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 23.30Beta" />
|
|
||||||
<MESSAGE value="refs #5652 add dynamic buttons for mermas" />
|
|
||||||
<MESSAGE value="refs #5996 cmrAdd" />
|
|
||||||
<MESSAGE value="refs #5998 modify imageError" />
|
|
||||||
<MESSAGE value="refs #5764 modify dayOfSale" />
|
|
||||||
<MESSAGE value="refs #5134 Refactor silex→salix" />
|
<MESSAGE value="refs #5134 Refactor silex→salix" />
|
||||||
<MESSAGE value="refs #4677 Modificar pantalla delivery en picking" />
|
<MESSAGE value="refs #4677 Modificar pantalla delivery en picking" />
|
||||||
<MESSAGE value="refs #5652 Botones dinámicos" />
|
<MESSAGE value="refs #5652 Botones dinámicos" />
|
||||||
|
@ -940,7 +1017,6 @@
|
||||||
<MESSAGE value="refs #5134 silex→salix" />
|
<MESSAGE value="refs #5134 silex→salix" />
|
||||||
<MESSAGE value="refs varios" />
|
<MESSAGE value="refs varios" />
|
||||||
<MESSAGE value="refs #4677 add scan manual" />
|
<MESSAGE value="refs #4677 add scan manual" />
|
||||||
<MESSAGE value="refs #5890" />
|
|
||||||
<MESSAGE value="refs #6183" />
|
<MESSAGE value="refs #6183" />
|
||||||
<MESSAGE value="refs #4815 serial" />
|
<MESSAGE value="refs #4815 serial" />
|
||||||
<MESSAGE value="refs #6061 silex→salix" />
|
<MESSAGE value="refs #6061 silex→salix" />
|
||||||
|
@ -952,19 +1028,20 @@
|
||||||
<MESSAGE value="refs #5867 sendDriverRoute" />
|
<MESSAGE value="refs #5867 sendDriverRoute" />
|
||||||
<MESSAGE value="refs #4677 texts" />
|
<MESSAGE value="refs #4677 texts" />
|
||||||
<MESSAGE value="refs #5867 sendPDF" />
|
<MESSAGE value="refs #5867 sendPDF" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="refs #5867 sendPDF" />
|
<MESSAGE value="varios" />
|
||||||
|
<MESSAGE value="refs #5890" />
|
||||||
|
<MESSAGE value="refs #5802 ticketSetState" />
|
||||||
|
<MESSAGE value="version 23.40.1-hotFix OrderPrevia" />
|
||||||
|
<MESSAGE value="version 23.40.1-hotFix Ubicador" />
|
||||||
|
<MESSAGE value="Refactor formato campos refs #5134" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Refactor formato campos refs #5134" />
|
||||||
</component>
|
</component>
|
||||||
<component name="XDebuggerManager">
|
<component name="XDebuggerManager">
|
||||||
<breakpoint-manager>
|
<breakpoint-manager>
|
||||||
<breakpoints>
|
<breakpoints>
|
||||||
<line-breakpoint enabled="true" type="kotlin-line">
|
|
||||||
<url>file://$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorViewModel.kt</url>
|
|
||||||
<line>473</line>
|
|
||||||
<option name="timeStamp" value="3" />
|
|
||||||
</line-breakpoint>
|
|
||||||
<line-breakpoint enabled="true" type="kotlin-line">
|
<line-breakpoint enabled="true" type="kotlin-line">
|
||||||
<url>file://$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/login/fragment/LoginViewModel.kt</url>
|
<url>file://$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/login/fragment/LoginViewModel.kt</url>
|
||||||
<line>531</line>
|
<line>548</line>
|
||||||
<option name="timeStamp" value="6" />
|
<option name="timeStamp" value="6" />
|
||||||
</line-breakpoint>
|
</line-breakpoint>
|
||||||
<line-breakpoint enabled="true" type="kotlin-line">
|
<line-breakpoint enabled="true" type="kotlin-line">
|
||||||
|
@ -974,29 +1051,9 @@
|
||||||
</line-breakpoint>
|
</line-breakpoint>
|
||||||
<line-breakpoint enabled="true" type="kotlin-line">
|
<line-breakpoint enabled="true" type="kotlin-line">
|
||||||
<url>file://$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/login/fragment/LoginViewModel.kt</url>
|
<url>file://$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/login/fragment/LoginViewModel.kt</url>
|
||||||
<line>122</line>
|
<line>123</line>
|
||||||
<option name="timeStamp" value="18" />
|
<option name="timeStamp" value="18" />
|
||||||
</line-breakpoint>
|
</line-breakpoint>
|
||||||
<line-breakpoint enabled="true" type="kotlin-line">
|
|
||||||
<url>file://$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragmentPickerNew.kt</url>
|
|
||||||
<line>2134</line>
|
|
||||||
<option name="timeStamp" value="53" />
|
|
||||||
</line-breakpoint>
|
|
||||||
<line-breakpoint enabled="true" type="kotlin-line">
|
|
||||||
<url>file://$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragmentPickerNew.kt</url>
|
|
||||||
<line>1789</line>
|
|
||||||
<option name="timeStamp" value="55" />
|
|
||||||
</line-breakpoint>
|
|
||||||
<line-breakpoint enabled="true" type="kotlin-line">
|
|
||||||
<url>file://$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragmentPickerNew.kt</url>
|
|
||||||
<line>1241</line>
|
|
||||||
<option name="timeStamp" value="63" />
|
|
||||||
</line-breakpoint>
|
|
||||||
<line-breakpoint enabled="true" type="kotlin-line">
|
|
||||||
<url>file://$PROJECT_DIR$/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionFragmentPickerNew.kt</url>
|
|
||||||
<line>1475</line>
|
|
||||||
<option name="timeStamp" value="65" />
|
|
||||||
</line-breakpoint>
|
|
||||||
<line-breakpoint enabled="true" type="java-line">
|
<line-breakpoint enabled="true" type="java-line">
|
||||||
<url>jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/retrofit/2.3.0/76f3c69879d3e01c082f49d8661c5590838148e1/retrofit-2.3.0-sources.jar!/retrofit2/Response.java</url>
|
<url>jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/retrofit/2.3.0/76f3c69879d3e01c082f49d8661c5590838148e1/retrofit-2.3.0-sources.jar!/retrofit2/Response.java</url>
|
||||||
<line>29</line>
|
<line>29</line>
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
"type": "SINGLE",
|
"type": "SINGLE",
|
||||||
"filters": [],
|
"filters": [],
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"versionCode": 230,
|
"versionCode": 232,
|
||||||
"versionName": "23.40Beta",
|
"versionName": "23.40.1Beta",
|
||||||
"outputFile": "app-beta-release.apk"
|
"outputFile": "app-beta-release.apk"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -26,7 +26,6 @@ import es.verdnatura.presentation.view.feature.precontrol.ShowTicketViewModel
|
||||||
import es.verdnatura.presentation.view.feature.presacador.fragment.PreSacadorViewModel
|
import es.verdnatura.presentation.view.feature.presacador.fragment.PreSacadorViewModel
|
||||||
import es.verdnatura.presentation.view.feature.qr.QrFragmentViewModel
|
import es.verdnatura.presentation.view.feature.qr.QrFragmentViewModel
|
||||||
import es.verdnatura.presentation.view.feature.sacador.fragment.SacadorViewModel
|
import es.verdnatura.presentation.view.feature.sacador.fragment.SacadorViewModel
|
||||||
import es.verdnatura.presentation.view.feature.shelvingparking.fragment.ShelvingParkingViewModel
|
|
||||||
import es.verdnatura.presentation.view.feature.ticket.fragment.TicketViewModel
|
import es.verdnatura.presentation.view.feature.ticket.fragment.TicketViewModel
|
||||||
import es.verdnatura.presentation.view.feature.ubicador.fragment.AutomaticAddItemViewModel
|
import es.verdnatura.presentation.view.feature.ubicador.fragment.AutomaticAddItemViewModel
|
||||||
import es.verdnatura.presentation.view.feature.ubicador.fragment.UbicadorViewModel
|
import es.verdnatura.presentation.view.feature.ubicador.fragment.UbicadorViewModel
|
||||||
|
@ -81,11 +80,6 @@ val viewModelModule = module {
|
||||||
InventaryViewModel(androidContext())
|
InventaryViewModel(androidContext())
|
||||||
}
|
}
|
||||||
|
|
||||||
// ShelvingParking
|
|
||||||
viewModel {
|
|
||||||
ShelvingParkingViewModel(androidContext())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ubicador
|
// Ubicador
|
||||||
viewModel {
|
viewModel {
|
||||||
UbicadorViewModel(androidContext())
|
UbicadorViewModel(androidContext())
|
||||||
|
|
|
@ -9,6 +9,7 @@ import es.verdnatura.presentation.view.feature.calidad.model.BuyerVO
|
||||||
import es.verdnatura.presentation.view.feature.collection.SalixSaleQuantity
|
import es.verdnatura.presentation.view.feature.collection.SalixSaleQuantity
|
||||||
import es.verdnatura.presentation.view.feature.collection.listSaleSalix
|
import es.verdnatura.presentation.view.feature.collection.listSaleSalix
|
||||||
import es.verdnatura.presentation.view.feature.controlvehiculo.fragment.model.DeviceId
|
import es.verdnatura.presentation.view.feature.controlvehiculo.fragment.model.DeviceId
|
||||||
|
import es.verdnatura.presentation.view.feature.delivery.model.Expeditions
|
||||||
import es.verdnatura.presentation.view.feature.delivery.model.RouteInfo
|
import es.verdnatura.presentation.view.feature.delivery.model.RouteInfo
|
||||||
import es.verdnatura.presentation.view.feature.historicoshelvinglog.model.ShelvingLogSalix
|
import es.verdnatura.presentation.view.feature.historicoshelvinglog.model.ShelvingLogSalix
|
||||||
import es.verdnatura.presentation.view.feature.inventario.model.ItemInventoryParking
|
import es.verdnatura.presentation.view.feature.inventario.model.ItemInventoryParking
|
||||||
|
@ -206,7 +207,7 @@ interface SalixService {
|
||||||
@POST("DeviceLogs")
|
@POST("DeviceLogs")
|
||||||
fun deviceLogInsert(
|
fun deviceLogInsert(
|
||||||
@Body params: Any
|
@Body params: Any
|
||||||
): Call<Void>
|
): Call<Unit>
|
||||||
|
|
||||||
@POST("ExpeditionTrucks")
|
@POST("ExpeditionTrucks")
|
||||||
fun expeditionTrucksInsert(
|
fun expeditionTrucksInsert(
|
||||||
|
@ -226,7 +227,7 @@ interface SalixService {
|
||||||
@POST("PackingSiteAdvanceds")
|
@POST("PackingSiteAdvanceds")
|
||||||
fun ticket_advancePackaging(
|
fun ticket_advancePackaging(
|
||||||
@Body parms: packingSiteSalix
|
@Body parms: packingSiteSalix
|
||||||
): Call<Void>
|
): Call<Unit>
|
||||||
|
|
||||||
|
|
||||||
@PUT("ItemBarCodes")//REVISADA
|
@PUT("ItemBarCodes")//REVISADA
|
||||||
|
@ -243,7 +244,7 @@ interface SalixService {
|
||||||
@GET("ItemBarCodes/{barCodeValue}/toItem")//REVISADA
|
@GET("ItemBarCodes/{barCodeValue}/toItem")//REVISADA
|
||||||
fun barcodes_toitem(
|
fun barcodes_toitem(
|
||||||
@Path("barCodeValue") barCodeValue: String
|
@Path("barCodeValue") barCodeValue: String
|
||||||
): Call<String>
|
): Call<String?>
|
||||||
|
|
||||||
@GET("Suppliers")//REVISADA
|
@GET("Suppliers")//REVISADA
|
||||||
fun getSuppliers(
|
fun getSuppliers(
|
||||||
|
@ -294,8 +295,7 @@ interface SalixService {
|
||||||
@PATCH("Operators/{id}")
|
@PATCH("Operators/{id}")
|
||||||
fun update_operator(
|
fun update_operator(
|
||||||
@Path("id") id: Number, @Body params: Any
|
@Path("id") id: Number, @Body params: Any
|
||||||
|
): Call<Unit>
|
||||||
): Call<Void>
|
|
||||||
|
|
||||||
@GET("Operators")
|
@GET("Operators")
|
||||||
fun operator_getData(
|
fun operator_getData(
|
||||||
|
@ -371,6 +371,11 @@ interface SalixService {
|
||||||
expeditionMistake: ExpeditionMistakeSalix
|
expeditionMistake: ExpeditionMistakeSalix
|
||||||
): Call<Any>
|
): Call<Any>
|
||||||
|
|
||||||
|
@POST("ExpeditionStates/addExpeditionState")
|
||||||
|
fun addExpeditionState(
|
||||||
|
@Body params: Expeditions?
|
||||||
|
): Call<Unit>
|
||||||
|
|
||||||
@POST("WorkerMistakes")
|
@POST("WorkerMistakes")
|
||||||
fun workerMistakesAdd(
|
fun workerMistakesAdd(
|
||||||
workerMistake: WorkerMistakeSalix
|
workerMistake: WorkerMistakeSalix
|
||||||
|
|
|
@ -9,7 +9,6 @@ import es.verdnatura.presentation.view.feature.articulo.model.ItemPackingType
|
||||||
import es.verdnatura.presentation.view.feature.articulo.model.ItemProposal
|
import es.verdnatura.presentation.view.feature.articulo.model.ItemProposal
|
||||||
import es.verdnatura.presentation.view.feature.buscaritem.model.ItemLocationVO
|
import es.verdnatura.presentation.view.feature.buscaritem.model.ItemLocationVO
|
||||||
import es.verdnatura.presentation.view.feature.calidad.model.BuyerVO
|
import es.verdnatura.presentation.view.feature.calidad.model.BuyerVO
|
||||||
import es.verdnatura.presentation.view.feature.calidad.model.ItemBuyerVO
|
|
||||||
import es.verdnatura.presentation.view.feature.collection.SalesModified
|
import es.verdnatura.presentation.view.feature.collection.SalesModified
|
||||||
import es.verdnatura.presentation.view.feature.delivery.model.*
|
import es.verdnatura.presentation.view.feature.delivery.model.*
|
||||||
import es.verdnatura.presentation.view.feature.diadeventa.model.ItemShelvingSaleDate
|
import es.verdnatura.presentation.view.feature.diadeventa.model.ItemShelvingSaleDate
|
||||||
|
@ -26,7 +25,6 @@ import es.verdnatura.presentation.view.feature.reubication.model.Reubication
|
||||||
import es.verdnatura.presentation.view.feature.sacador.model.CollectionVO
|
import es.verdnatura.presentation.view.feature.sacador.model.CollectionVO
|
||||||
import es.verdnatura.presentation.view.feature.sacador.model.MistakeTypeVO
|
import es.verdnatura.presentation.view.feature.sacador.model.MistakeTypeVO
|
||||||
import es.verdnatura.presentation.view.feature.sacador.model.PlacementSupplyVO
|
import es.verdnatura.presentation.view.feature.sacador.model.PlacementSupplyVO
|
||||||
import es.verdnatura.presentation.view.feature.shelvingparking.model.ItemShelvingParkingVO
|
|
||||||
import es.verdnatura.presentation.view.feature.ubicador.model.ItemUbicadorVO
|
import es.verdnatura.presentation.view.feature.ubicador.model.ItemUbicadorVO
|
||||||
import es.verdnatura.presentation.view.feature.workermistake.model.DepartmentMistake
|
import es.verdnatura.presentation.view.feature.workermistake.model.DepartmentMistake
|
||||||
import es.verdnatura.presentation.view.feature.workermistake.model.MistakeType
|
import es.verdnatura.presentation.view.feature.workermistake.model.MistakeType
|
||||||
|
@ -52,7 +50,7 @@ interface VerdnaturaService {
|
||||||
fun deviceLog_add(
|
fun deviceLog_add(
|
||||||
@Body vararg params: Any
|
@Body vararg params: Any
|
||||||
):
|
):
|
||||||
Call<Void>
|
Call<Unit>
|
||||||
|
|
||||||
|
|
||||||
@POST("/security/getVersion")//REVISADA
|
@POST("/security/getVersion")//REVISADA
|
||||||
|
@ -99,7 +97,7 @@ interface VerdnaturaService {
|
||||||
fun operator_getNumberOfWagons(
|
fun operator_getNumberOfWagons(
|
||||||
|
|
||||||
):
|
):
|
||||||
Call<Int?>
|
Call<Any>
|
||||||
|
|
||||||
@POST("almacennew/operator_add")//NO SALIX
|
@POST("almacennew/operator_add")//NO SALIX
|
||||||
fun operator_add(
|
fun operator_add(
|
||||||
|
@ -159,7 +157,7 @@ interface VerdnaturaService {
|
||||||
@POST("almacennew/operator_getItemPackingType")//NO SALIX
|
@POST("almacennew/operator_getItemPackingType")//NO SALIX
|
||||||
fun operator_getItemPackingType(
|
fun operator_getItemPackingType(
|
||||||
):
|
):
|
||||||
Call<Any?>
|
Call<Any>
|
||||||
|
|
||||||
@POST("almacennew/worker_isF11Allowed")//NO SALIX
|
@POST("almacennew/worker_isF11Allowed")//NO SALIX
|
||||||
fun worker_isF11Allowed(
|
fun worker_isF11Allowed(
|
||||||
|
@ -244,13 +242,6 @@ interface VerdnaturaService {
|
||||||
):
|
):
|
||||||
Call<Any>
|
Call<Any>
|
||||||
|
|
||||||
@POST("almacennew/itemShelvingPlacementSupplyAdd")//REVISADA
|
|
||||||
fun itemShelvingPlacementSupplyAdd(
|
|
||||||
|
|
||||||
@Body vararg params: Any
|
|
||||||
):
|
|
||||||
Call<Any>
|
|
||||||
|
|
||||||
@POST("almacennew/collection_printSticker")//REVISADA
|
@POST("almacennew/collection_printSticker")//REVISADA
|
||||||
fun collectionStickerPrint(
|
fun collectionStickerPrint(
|
||||||
@Body vararg params: Any?
|
@Body vararg params: Any?
|
||||||
|
@ -261,20 +252,20 @@ interface VerdnaturaService {
|
||||||
fun ticketCollection_setUsedShelves(
|
fun ticketCollection_setUsedShelves(
|
||||||
@Body vararg params: Any
|
@Body vararg params: Any
|
||||||
):
|
):
|
||||||
Call<Void>
|
Call<Unit>
|
||||||
|
|
||||||
@POST("almacennew/item_updatePackingShelve")//REVISADA
|
@POST("almacennew/item_updatePackingShelve")//REVISADA
|
||||||
fun item_updatePackingShelve(
|
fun item_updatePackingShelve(
|
||||||
@Body vararg params: Any
|
@Body vararg params: Any
|
||||||
):
|
):
|
||||||
Call<Void>
|
Call<Unit>
|
||||||
|
|
||||||
|
|
||||||
@POST("almacennew/saleTracking_add")//REVISADA
|
@POST("almacennew/saleTracking_add")//REVISADA
|
||||||
fun saleTracking_add(
|
fun saleTracking_add(
|
||||||
@Body vararg params: Any
|
@Body vararg params: Any
|
||||||
):
|
):
|
||||||
Call<Void>
|
Call<Unit>
|
||||||
|
|
||||||
@POST("almacennew/collectionAddItem")//REVISADA
|
@POST("almacennew/collectionAddItem")//REVISADA
|
||||||
fun collectionAddItem(
|
fun collectionAddItem(
|
||||||
|
@ -347,6 +338,7 @@ interface VerdnaturaService {
|
||||||
@Body vararg params: Any
|
@Body vararg params: Any
|
||||||
):
|
):
|
||||||
Call<Any>
|
Call<Any>
|
||||||
|
|
||||||
@POST("almacennew/mistakeType")//REVISADA
|
@POST("almacennew/mistakeType")//REVISADA
|
||||||
fun mistakeType(
|
fun mistakeType(
|
||||||
):
|
):
|
||||||
|
@ -461,14 +453,6 @@ interface VerdnaturaService {
|
||||||
):
|
):
|
||||||
Call<List<ItemInventaryVO>>
|
Call<List<ItemInventaryVO>>
|
||||||
|
|
||||||
|
|
||||||
//SHELVING PARKING ========================================================================>
|
|
||||||
@POST("almacennew/shelvingParking_get")//REVISADA
|
|
||||||
fun shelvingParking_get(
|
|
||||||
@Body vararg params: Any
|
|
||||||
):
|
|
||||||
Call<List<ItemShelvingParkingVO>>
|
|
||||||
|
|
||||||
//CONTROL DE VEHICULOS
|
//CONTROL DE VEHICULOS
|
||||||
@POST("almacennew/machineWorker_add")//REVISADA
|
@POST("almacennew/machineWorker_add")//REVISADA
|
||||||
fun machineWorker_add(
|
fun machineWorker_add(
|
||||||
|
@ -498,7 +482,7 @@ interface VerdnaturaService {
|
||||||
fun deviceProductionUser_getWorker(
|
fun deviceProductionUser_getWorker(
|
||||||
@Body vararg params: Any
|
@Body vararg params: Any
|
||||||
):
|
):
|
||||||
Call<Any>
|
Call<String>
|
||||||
|
|
||||||
|
|
||||||
@POST("almacennew/machine_getWorkerPlate")//REVISADA
|
@POST("almacennew/machine_getWorkerPlate")//REVISADA
|
||||||
|
@ -622,13 +606,13 @@ interface VerdnaturaService {
|
||||||
fun expedition_scan(
|
fun expedition_scan(
|
||||||
@Body vararg params: Any
|
@Body vararg params: Any
|
||||||
):
|
):
|
||||||
Call<Void>
|
Call<Unit>
|
||||||
|
|
||||||
@POST("almacennew/cmrPallet_add")//REVISADA
|
@POST("almacennew/cmrPallet_add")//REVISADA
|
||||||
fun cmrExpeditionPallet_add(
|
fun cmrExpeditionPallet_add(
|
||||||
@Body vararg params: Any
|
@Body vararg params: Any
|
||||||
):
|
):
|
||||||
Call<Void>
|
Call<Unit>
|
||||||
|
|
||||||
@POST("almacennew/expedition_getState")//REVISADA
|
@POST("almacennew/expedition_getState")//REVISADA
|
||||||
fun expedition_getState(
|
fun expedition_getState(
|
||||||
|
@ -753,7 +737,7 @@ interface VerdnaturaService {
|
||||||
fun expeditionState_addByPallet(
|
fun expeditionState_addByPallet(
|
||||||
@Body vararg params: Any
|
@Body vararg params: Any
|
||||||
):
|
):
|
||||||
Call<Void>
|
Call<Unit>
|
||||||
|
|
||||||
@POST("almacennew/expeditionPallet_get")//REVISADA
|
@POST("almacennew/expeditionPallet_get")//REVISADA
|
||||||
fun expeditionPallet_get(
|
fun expeditionPallet_get(
|
||||||
|
@ -785,7 +769,7 @@ interface VerdnaturaService {
|
||||||
fun itemShelving_addByClaim(
|
fun itemShelving_addByClaim(
|
||||||
@Body vararg params: Any
|
@Body vararg params: Any
|
||||||
):
|
):
|
||||||
Call<Void>
|
Call<Unit>
|
||||||
|
|
||||||
//SUPPLIERS
|
//SUPPLIERS
|
||||||
@POST("almacennew/supplier_getItems")//REVISADA
|
@POST("almacennew/supplier_getItems")//REVISADA
|
||||||
|
@ -816,7 +800,7 @@ interface VerdnaturaService {
|
||||||
fun expeditionState_add(
|
fun expeditionState_add(
|
||||||
@Body vararg params: Any?
|
@Body vararg params: Any?
|
||||||
):
|
):
|
||||||
Call<Void>
|
Call<Unit>
|
||||||
|
|
||||||
@POST("delivery/getInfoFreelance")//NO SALIX
|
@POST("delivery/getInfoFreelance")//NO SALIX
|
||||||
fun getInfoFreelance(
|
fun getInfoFreelance(
|
||||||
|
|
|
@ -78,7 +78,8 @@ fun View.setMargins(left: Int, top: Int, right: Int, bottom: Int) {
|
||||||
mlp.setMargins(left, top, right, bottom)
|
mlp.setMargins(left, top, right, bottom)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun ImageView.loadUrl(url: String) {
|
fun ImageView.loadUrl(url: String?) {
|
||||||
|
if (!url.isNullOrEmpty()) {
|
||||||
Glide.with(context)
|
Glide.with(context)
|
||||||
.asBitmap()
|
.asBitmap()
|
||||||
.load(url)
|
.load(url)
|
||||||
|
@ -91,6 +92,7 @@ fun ImageView.loadUrl(url: String) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
inline val <reified T> T.TAG: String
|
inline val <reified T> T.TAG: String
|
||||||
get() = T::class.java.canonicalName ?: T::class.simpleName ?: T::class.java.simpleName
|
get() = T::class.java.canonicalName ?: T::class.simpleName ?: T::class.java.simpleName
|
||||||
|
@ -125,7 +127,7 @@ fun Calendar.convertToDateString(): String {
|
||||||
11 -> dayOfMonth = "Dic"
|
11 -> dayOfMonth = "Dic"
|
||||||
}
|
}
|
||||||
|
|
||||||
return dayOfWeek + " " + day + " " + dayOfMonth
|
return "$dayOfWeek $day $dayOfMonth"
|
||||||
}
|
}
|
||||||
|
|
||||||
fun RecyclerView.addViewObserver(function: () -> Unit) {
|
fun RecyclerView.addViewObserver(function: () -> Unit) {
|
||||||
|
@ -168,6 +170,7 @@ fun Context.showKeyboardIn(view: View) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Extension function to change media volume programmatically
|
// Extension function to change media volume programmatically
|
||||||
fun AudioManager.setMediaVolume(volumeIndex: Int) {
|
fun AudioManager.setMediaVolume(volumeIndex: Int) {
|
||||||
// Set media volume level
|
// Set media volume level
|
||||||
|
@ -208,7 +211,6 @@ fun addDateToTime(time: String): String {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fun PackageManager.getPackageInfoCompat(packageName: String, flags: Int = 0): PackageInfo =
|
fun PackageManager.getPackageInfoCompat(packageName: String, flags: Int = 0): PackageInfo =
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
||||||
getPackageInfo(packageName, PackageManager.PackageInfoFlags.of(flags.toLong()))
|
getPackageInfo(packageName, PackageManager.PackageInfoFlags.of(flags.toLong()))
|
||||||
|
|
|
@ -7,7 +7,6 @@ import android.view.View.VISIBLE
|
||||||
import androidx.lifecycle.LiveData
|
import androidx.lifecycle.LiveData
|
||||||
import androidx.lifecycle.MutableLiveData
|
import androidx.lifecycle.MutableLiveData
|
||||||
import androidx.lifecycle.Transformations
|
import androidx.lifecycle.Transformations
|
||||||
import es.verdnatura.MobileApplication
|
|
||||||
import es.verdnatura.R
|
import es.verdnatura.R
|
||||||
import es.verdnatura.domain.SalixCallback
|
import es.verdnatura.domain.SalixCallback
|
||||||
import es.verdnatura.domain.SilexCallback
|
import es.verdnatura.domain.SilexCallback
|
||||||
|
@ -28,6 +27,7 @@ import es.verdnatura.presentation.view.feature.articulo.model.ItemPackingType
|
||||||
import es.verdnatura.presentation.view.feature.articulo.model.ItemPackingTypeList
|
import es.verdnatura.presentation.view.feature.articulo.model.ItemPackingTypeList
|
||||||
import es.verdnatura.presentation.view.feature.login.model.Operator
|
import es.verdnatura.presentation.view.feature.login.model.Operator
|
||||||
import retrofit2.Response
|
import retrofit2.Response
|
||||||
|
import kotlin.math.roundToInt
|
||||||
|
|
||||||
|
|
||||||
class AjustesViewModel(val context: Context) : BaseViewModel(context) {
|
class AjustesViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
|
@ -352,7 +352,7 @@ class AjustesViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
fun operator_getNumberOfWagons() {
|
fun operator_getNumberOfWagons() {
|
||||||
|
|
||||||
silex.operator_getNumberOfWagons()
|
silex.operator_getNumberOfWagons()
|
||||||
.enqueue(object : SilexCallback<Int?>(context) {
|
.enqueue(object : SilexCallback<Any>(context) {
|
||||||
|
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
|
|
||||||
|
@ -363,10 +363,16 @@ class AjustesViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Int?>) {
|
override fun onSuccess(response: Response<Any>) {
|
||||||
if (response.body() != null)
|
if (response.body() != null)
|
||||||
_operatorGetNumberOfWagons.value =
|
_operatorGetNumberOfWagons.value =
|
||||||
ResponseItemNumber(response.body(), isError = false)
|
ResponseItemNumber(
|
||||||
|
if (response.body() is Number) {
|
||||||
|
(response.body() as Double).roundToInt()
|
||||||
|
} else {
|
||||||
|
0
|
||||||
|
}, isError = false
|
||||||
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -399,7 +405,7 @@ class AjustesViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
fun operator_getItemPackingType() {
|
fun operator_getItemPackingType() {
|
||||||
|
|
||||||
silex.operator_getItemPackingType()
|
silex.operator_getItemPackingType()
|
||||||
.enqueue(object : SilexCallback<Any?>(context) {
|
.enqueue(object : SilexCallback<Any>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_operatorGetItemPackingType.value = ResponseItemVO(
|
_operatorGetItemPackingType.value = ResponseItemVO(
|
||||||
isError = true,
|
isError = true,
|
||||||
|
@ -407,7 +413,7 @@ class AjustesViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Any?>) {
|
override fun onSuccess(response: Response<Any>) {
|
||||||
|
|
||||||
_operatorGetItemPackingType.value =
|
_operatorGetItemPackingType.value =
|
||||||
ResponseItemVO(
|
ResponseItemVO(
|
||||||
|
@ -443,10 +449,11 @@ class AjustesViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fun worker_updateOperatorSalix(entity: String, workerFk: Int, sectorFk: Int?, labelerFk: Int?) {
|
fun worker_updateOperatorSalix(entity: String, workerFk: Int, sectorFk: Int?, labelerFk: Int?) {
|
||||||
ProgressLoading(VISIBLE)
|
ProgressLoading(VISIBLE)
|
||||||
salix.update_operator(id = workerFk, Operator(sectorFk, labelerFk))
|
salix.update_operator(id = workerFk, Operator(sectorFk, labelerFk))
|
||||||
.enqueue(object : SilexCallback<Void>(context) {
|
.enqueue(object : SilexCallback<Unit>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
ProgressLoading(GONE)
|
ProgressLoading(GONE)
|
||||||
_actionUpdate.value = ResponseItemVO(
|
_actionUpdate.value = ResponseItemVO(
|
||||||
|
@ -456,7 +463,7 @@ class AjustesViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
throw t
|
throw t
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Void>) {
|
override fun onSuccess(response: Response<Unit>) {
|
||||||
ProgressLoading(GONE)
|
ProgressLoading(GONE)
|
||||||
if (entity == "sector") {
|
if (entity == "sector") {
|
||||||
_actionUpdate.value = ResponseItemVO(
|
_actionUpdate.value = ResponseItemVO(
|
||||||
|
|
|
@ -13,7 +13,7 @@ class AjustesItemVO(
|
||||||
|
|
||||||
class SectorItemVO(
|
class SectorItemVO(
|
||||||
var id: Int,
|
var id: Int,
|
||||||
var description: String = "",
|
var description: String,
|
||||||
val warehouseFk: Int?,
|
val warehouseFk: Int?,
|
||||||
val isError: Boolean = false,
|
val isError: Boolean = false,
|
||||||
var errorMessage: String = ""
|
var errorMessage: String = ""
|
||||||
|
|
|
@ -52,21 +52,21 @@ class ItemProposalAdapter(
|
||||||
onPasillerosItemClickListener.onPasillerosItemClickListener(
|
onPasillerosItemClickListener.onPasillerosItemClickListener(
|
||||||
PasillerosItemVO(
|
PasillerosItemVO(
|
||||||
title = res.getString(R.string.itemSearch)
|
title = res.getString(R.string.itemSearch)
|
||||||
), item.itemFk
|
), item.itemFk.toString()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
itemUp.setOnClickListener {
|
itemUp.setOnClickListener {
|
||||||
onPasillerosItemClickListener.onPasillerosItemClickListener(
|
onPasillerosItemClickListener.onPasillerosItemClickListener(
|
||||||
PasillerosItemVO(
|
PasillerosItemVO(
|
||||||
title = res.getString(R.string.titleItemSearch)
|
title = res.getString(R.string.titleItemSearch)
|
||||||
), item.itemFk
|
), item.itemFk.toString()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
itemDown.setOnClickListener {
|
itemDown.setOnClickListener {
|
||||||
onPasillerosItemClickListener.onPasillerosItemClickListener(
|
onPasillerosItemClickListener.onPasillerosItemClickListener(
|
||||||
PasillerosItemVO(
|
PasillerosItemVO(
|
||||||
title = res.getString(R.string.titleItemSearch)
|
title = res.getString(R.string.titleItemSearch)
|
||||||
), item.itemFk
|
), item.itemFk.toString()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ class ItemCardFragment(
|
||||||
) : BaseFragment<FragmentItemCardBinding, ItemCardViewModel>(ItemCardViewModel::class),
|
) : BaseFragment<FragmentItemCardBinding, ItemCardViewModel>(ItemCardViewModel::class),
|
||||||
OnClickDynamic {
|
OnClickDynamic {
|
||||||
|
|
||||||
private var urlLarge: String = ""
|
private var urlLarge: String? = ""
|
||||||
private var titleImage: String = ""
|
private var titleImage: String = ""
|
||||||
private var user = ""
|
private var user = ""
|
||||||
private var password = ""
|
private var password = ""
|
||||||
|
@ -176,8 +176,8 @@ class ItemCardFragment(
|
||||||
"more"
|
"more"
|
||||||
).toString()
|
).toString()
|
||||||
)
|
)
|
||||||
} catch (Ex: Exception) {
|
} catch (ex: Exception) {
|
||||||
ma.messageWithSound(Ex.message.toString(), true, true)
|
ma.messageWithSound(ex.message.toString(), true, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
// getItemCard(binding.editItemFk.text.toString())
|
// getItemCard(binding.editItemFk.text.toString())
|
||||||
|
@ -290,7 +290,7 @@ class ItemCardFragment(
|
||||||
titleImage = itemInfo.id.toString() + "-" + itemInfo.longName
|
titleImage = itemInfo.id.toString() + "-" + itemInfo.longName
|
||||||
binding.itemcardImage.loadUrl(itemInfo.urlImage200)
|
binding.itemcardImage.loadUrl(itemInfo.urlImage200)
|
||||||
urlLarge = itemInfo.urlImage
|
urlLarge = itemInfo.urlImage
|
||||||
binding.itemcardTag1.text = itemInfo.size
|
binding.itemcardTag1.text = itemInfo.size.toString()
|
||||||
binding.itemcardTag2.text = itemInfo.value5
|
binding.itemcardTag2.text = itemInfo.value5
|
||||||
binding.itemcardTag3.text = itemInfo.value6
|
binding.itemcardTag3.text = itemInfo.value6
|
||||||
binding.itemcardTag4.text = itemInfo.value7 + " " + itemInfo.origin
|
binding.itemcardTag4.text = itemInfo.value7 + " " + itemInfo.origin
|
||||||
|
@ -300,7 +300,7 @@ class ItemCardFragment(
|
||||||
listItemsRow.add(
|
listItemsRow.add(
|
||||||
ItemCardRowVO(
|
ItemCardRowVO(
|
||||||
title = getString(R.string.total),
|
title = getString(R.string.total),
|
||||||
value = itemInfo.visible,
|
value = itemInfo.visible.toString(),
|
||||||
isEditable = false
|
isEditable = false
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -308,7 +308,7 @@ class ItemCardFragment(
|
||||||
listItemsRow.add(
|
listItemsRow.add(
|
||||||
ItemCardRowVO(
|
ItemCardRowVO(
|
||||||
title = getString(R.string.Disponible),
|
title = getString(R.string.Disponible),
|
||||||
value = itemInfo.available,
|
value = itemInfo.available.toString(),
|
||||||
isEditable = false
|
isEditable = false
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -316,7 +316,7 @@ class ItemCardFragment(
|
||||||
listItemsRow.add(
|
listItemsRow.add(
|
||||||
ItemCardRowVO(
|
ItemCardRowVO(
|
||||||
title = getString(R.string.Ubicado),
|
title = getString(R.string.Ubicado),
|
||||||
value = itemInfo.vVisibleItemShelving,
|
value = itemInfo.vVisibleItemShelving.toString(),
|
||||||
isEditable = false
|
isEditable = false
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -324,7 +324,7 @@ class ItemCardFragment(
|
||||||
listItemsRow.add(
|
listItemsRow.add(
|
||||||
ItemCardRowVO(
|
ItemCardRowVO(
|
||||||
title = getString(R.string.SINUBICAR),
|
title = getString(R.string.SINUBICAR),
|
||||||
value = itemInfo.unlocated,
|
value = itemInfo.unlocated.toString(),
|
||||||
isEditable = false,
|
isEditable = false,
|
||||||
action = "itemStockUpdate"
|
action = "itemStockUpdate"
|
||||||
)
|
)
|
||||||
|
@ -374,7 +374,7 @@ class ItemCardFragment(
|
||||||
listItemsRow.add(
|
listItemsRow.add(
|
||||||
ItemCardRowVO(
|
ItemCardRowVO(
|
||||||
title = getString(R.string.Grouping),
|
title = getString(R.string.Grouping),
|
||||||
value = itemInfo.grouping,
|
value = itemInfo.grouping.toString(),
|
||||||
isEditable = true,
|
isEditable = true,
|
||||||
action = "updateGrouping"
|
action = "updateGrouping"
|
||||||
)
|
)
|
||||||
|
@ -382,7 +382,7 @@ class ItemCardFragment(
|
||||||
listItemsRow.add(
|
listItemsRow.add(
|
||||||
ItemCardRowVO(
|
ItemCardRowVO(
|
||||||
title = getString(R.string.Packing),
|
title = getString(R.string.Packing),
|
||||||
value = itemInfo.packing,
|
value = itemInfo.packing.toString(),
|
||||||
isEditable = true,
|
isEditable = true,
|
||||||
action = "updatePacking"
|
action = "updatePacking"
|
||||||
)
|
)
|
||||||
|
|
|
@ -48,10 +48,12 @@ class ItemCardViewModel(var context: Context) : BaseViewModel(context) {
|
||||||
|
|
||||||
|
|
||||||
fun getItemCard(
|
fun getItemCard(
|
||||||
|
|
||||||
itemFk: Number,
|
itemFk: Number,
|
||||||
warehouseFk: Int,
|
warehouseFk: Int,
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
println("La sale el item es $itemFk")
|
||||||
silex.getItemCard(itemFk, warehouseFk)
|
silex.getItemCard(itemFk, warehouseFk)
|
||||||
.enqueue(object : SilexCallback<ItemCardVO>(context) {
|
.enqueue(object : SilexCallback<ItemCardVO>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
|
|
|
@ -2,45 +2,42 @@ package es.verdnatura.presentation.view.feature.articulo.model
|
||||||
|
|
||||||
class ItemCardVO(
|
class ItemCardVO(
|
||||||
var id: Int = 0,
|
var id: Int = 0,
|
||||||
var longName:String = "0",
|
var longName: String? = null,
|
||||||
var value5:String = "",
|
var value5: String? = null,
|
||||||
var value6:String = "0",
|
var value6: String? = null,
|
||||||
var value7:String = "0",
|
var value7: String? = null,
|
||||||
var image:String = "0",
|
var image: String? = null,
|
||||||
var size:String = "0",
|
var size: Int? = null,
|
||||||
var stems: String?,
|
var stems: String?,
|
||||||
var itemCost: String?,
|
var itemCost: String?,
|
||||||
var category:String = "0",
|
var category:String? = null,
|
||||||
var producer:String = "0",
|
var producer: String? = null,
|
||||||
var origin:String = "0",
|
var origin: String? = null,
|
||||||
var nicho:String = "0",
|
//var nicho: Int? = null,
|
||||||
var reserva:String = "0",
|
var reserva: Int? = null,
|
||||||
var enNicho:String = "0",
|
var enNicho: Int? = null,
|
||||||
var available:String = "0",
|
var available: Int? = null,
|
||||||
var enAltillo:String = "0",
|
//var enAltillo: Int? = null,
|
||||||
var repo:String = "0",
|
var repo: Int? = null,
|
||||||
var total:String = "0",
|
//var total: Int? = null,
|
||||||
var min:String = "0",
|
var min: Int? = null,
|
||||||
var grouping:String = "0",
|
var grouping: Int? = null,
|
||||||
var packing:String = "0",
|
var packing: Int? = null,
|
||||||
var barcodes: List<BarcodeVO> = listOf(),
|
var barcodes: List<BarcodeVO> = listOf(),
|
||||||
var tag5:String = "",
|
var tag5: String? = null,
|
||||||
var tag6:String = "",
|
var tag6: String? = null,
|
||||||
var tag7:String = "",
|
var tag7: String? = null,
|
||||||
var isError: Boolean = false,
|
var isError: Boolean = false,
|
||||||
var errorMessage: String = "",
|
var errorMessage: String = "",
|
||||||
var urlImage200:String = "",
|
var urlImage200: String? = null,
|
||||||
var urlImage:String = "",
|
var urlImage: String? = null,
|
||||||
var itemPackingTypeFk:String =" ",
|
var itemPackingTypeFk: String? = null,
|
||||||
var reference:String="",
|
var reference: String? = null,
|
||||||
var buyer:String="",
|
var buyer: String? = null,
|
||||||
|
|
||||||
|
|
||||||
//sergio para modificar la llamada de itemCard a item_getInfo
|
//sergio para modificar la llamada de itemCard a item_getInfo
|
||||||
|
var vVisibleItemShelving: Int? = null, // = enAltillo
|
||||||
var vVisibleItemShelving:String = "0", // = enAltillo
|
var visible: Int? = null,// = total
|
||||||
var visible :String = "0",// = total
|
var unlocated: Int? = null //= enNicho
|
||||||
var unlocated:String = "0" //= enNicho
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,24 +2,24 @@ package es.verdnatura.presentation.view.feature.articulo.model
|
||||||
|
|
||||||
class ItemProposal(
|
class ItemProposal(
|
||||||
|
|
||||||
var itemFk: String = "",
|
var itemFk: Int? = null,
|
||||||
var longName: String = "",
|
var longName: String? = null,
|
||||||
var subName: String = "",
|
var subName:String? = null,
|
||||||
var tag5: String = "",
|
var tag5: String? = null,
|
||||||
var value5: String = "",
|
var value5: String? = null,
|
||||||
var match5: String = "",
|
var match5: String? = null,
|
||||||
var tag6: String = "",
|
var tag6: String? = null,
|
||||||
var value6: String = "",
|
var value6: String? = null,
|
||||||
var match6: String = "",
|
var match6: String? = null,
|
||||||
var tag7: String = "",
|
var tag7: String? = null,
|
||||||
var value7: String = "",
|
var value7: String? = null,
|
||||||
var match7: String = "",
|
var match7: String? = null,
|
||||||
var tag8: String = "",
|
var tag8: String? = null,
|
||||||
var value8: String = "",
|
var value8: String? = null,
|
||||||
var match8: String = "",
|
var match8: String? = null,
|
||||||
var available: String = "",
|
var available: Int? = null,
|
||||||
var counter: String = "",
|
var counter: Int? = null,
|
||||||
var minQuantity: String = "",
|
var minQuantity: Int? = null,
|
||||||
|
|
||||||
var isError: Boolean = false,
|
var isError: Boolean = false,
|
||||||
var errorMessage: String = ""
|
var errorMessage: String = ""
|
||||||
|
|
|
@ -100,8 +100,7 @@ class BuscarItemFragment(
|
||||||
|
|
||||||
var totalVisible = 0
|
var totalVisible = 0
|
||||||
it.list.forEach {
|
it.list.forEach {
|
||||||
if (!it.visible.isNullOrEmpty())
|
totalVisible += it.visible
|
||||||
totalVisible += it.visible.toInt()
|
|
||||||
}
|
}
|
||||||
binding.mainToolbar.toolbarTitle.text =
|
binding.mainToolbar.toolbarTitle.text =
|
||||||
getString(R.string.item) + itemFk + " " +getString(R.string.visibleTotal) + totalVisible
|
getString(R.string.item) + itemFk + " " +getString(R.string.visibleTotal) + totalVisible
|
||||||
|
|
|
@ -4,14 +4,14 @@ package es.verdnatura.presentation.view.feature.buscaritem.model
|
||||||
class ItemLocationVO (
|
class ItemLocationVO (
|
||||||
var Parking:String = "",
|
var Parking:String = "",
|
||||||
var Matricula:String = "",
|
var Matricula:String = "",
|
||||||
var visible:String = "",
|
var visible:Int = 0,
|
||||||
var Disponible:String = "",
|
//var Disponible:Int = 0,
|
||||||
var level:String = "",
|
//var level:String = "",
|
||||||
var created:String = "",
|
var created:String = "",
|
||||||
var itemFk:String = "",
|
var itemFk:Int = 0,
|
||||||
val isError : Boolean = false,
|
val isError : Boolean = false,
|
||||||
var errorMessage : String = "",
|
var errorMessage : String = "",
|
||||||
var priority:String = ""
|
var priority:Int = 0
|
||||||
)
|
)
|
||||||
|
|
||||||
class LocationListVO (
|
class LocationListVO (
|
||||||
|
|
|
@ -3,8 +3,8 @@ package es.verdnatura.presentation.view.feature.calidad.model
|
||||||
//import es.verdnatura.presentation.view.feature.inventario.model.ItemInventaryVO
|
//import es.verdnatura.presentation.view.feature.inventario.model.ItemInventaryVO
|
||||||
|
|
||||||
class BuyerVO (
|
class BuyerVO (
|
||||||
var userFk:String = "",
|
var userFk:Int,
|
||||||
var nickname:String= "",
|
var nickname:String,
|
||||||
var isError:Boolean = false,
|
var isError:Boolean = false,
|
||||||
var errorMessage:String = ""
|
var errorMessage:String = ""
|
||||||
)
|
)
|
||||||
|
|
|
@ -22,7 +22,7 @@ class ClaimViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
|
|
||||||
fun itemShelving_addByClaim(claimFK: Int, shelvingFK: String) {
|
fun itemShelving_addByClaim(claimFK: Int, shelvingFK: String) {
|
||||||
silex.itemShelving_addByClaim(claimFK, shelvingFK)
|
silex.itemShelving_addByClaim(claimFK, shelvingFK)
|
||||||
.enqueue(object : SilexCallback<Void>(context) {
|
.enqueue(object : SilexCallback<Unit>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_responseadd.value = ResponseItemVO(
|
_responseadd.value = ResponseItemVO(
|
||||||
isError = true, errorMessage = getMessageFromAllResponse(
|
isError = true, errorMessage = getMessageFromAllResponse(
|
||||||
|
@ -31,7 +31,7 @@ class ClaimViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Void>) {
|
override fun onSuccess(response: Response<Unit>) {
|
||||||
_responseadd.value = ResponseItemVO(
|
_responseadd.value = ResponseItemVO(
|
||||||
isError = false,
|
isError = false,
|
||||||
errorMessage = getMessageFromAllResponse(
|
errorMessage = getMessageFromAllResponse(
|
||||||
|
|
|
@ -115,7 +115,7 @@ class SaleAdapterNew(
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
packingTopicker.setOnClickListener {
|
packingTopicker.setOnClickListener {
|
||||||
onQuantityClick.onQuantityClick(sale)
|
//onQuantityClick.onQuantityClick(sale)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ class SaleAdapterNew(
|
||||||
}
|
}
|
||||||
|
|
||||||
itemArticleFirstAccumulate.setOnClickListener {
|
itemArticleFirstAccumulate.setOnClickListener {
|
||||||
onQuantityClick.onQuantityClick(sale)
|
//onQuantityClick.onQuantityClick(sale)
|
||||||
}
|
}
|
||||||
itemFirstToPicker.setOnClickListener {
|
itemFirstToPicker.setOnClickListener {
|
||||||
onPackingClick.onPackingClick(sale)
|
onPackingClick.onPackingClick(sale)
|
||||||
|
|
|
@ -799,7 +799,7 @@ class CollectionFragment(
|
||||||
customDialog.show()
|
customDialog.show()
|
||||||
} else {
|
} else {
|
||||||
viewModel.parking(
|
viewModel.parking(
|
||||||
ticketFk = tickets[0],
|
ticketFk = tickets[0].toInt(),
|
||||||
parking = ticketScanTxt
|
parking = ticketScanTxt
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1323,7 +1323,7 @@ class CollectionFragment(
|
||||||
|
|
||||||
|
|
||||||
viewModel.parking(
|
viewModel.parking(
|
||||||
ticketFk = tickets[0],
|
ticketFk = tickets[0].toInt(),
|
||||||
parking = txtscan
|
parking = txtscan
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1456,7 +1456,7 @@ class CollectionFragment(
|
||||||
if (txtscan.contains("-")) {
|
if (txtscan.contains("-")) {
|
||||||
tickets.forEach {
|
tickets.forEach {
|
||||||
viewModel.parking(
|
viewModel.parking(
|
||||||
ticketFk = it,
|
ticketFk = it.toInt(),
|
||||||
parking = txtscan
|
parking = txtscan
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -2060,7 +2060,7 @@ class CollectionFragment(
|
||||||
private fun addItem() {
|
private fun addItem() {
|
||||||
listPlacementSupply = ArrayList()
|
listPlacementSupply = ArrayList()
|
||||||
collection.tickets.forEach {
|
collection.tickets.forEach {
|
||||||
listPlacementSupply.add(BarcodeVO(code = it.ticketFk))
|
listPlacementSupply.add(BarcodeVO(code = it.ticketFk.toString()))
|
||||||
}
|
}
|
||||||
if (listPlacementSupply.size == 1) {
|
if (listPlacementSupply.size == 1) {
|
||||||
ticketSelected = listPlacementSupply[0].code!!.toInt()
|
ticketSelected = listPlacementSupply[0].code!!.toInt()
|
||||||
|
|
|
@ -797,7 +797,7 @@ import org.json.JSONObject
|
||||||
customDialog.show()
|
customDialog.show()
|
||||||
} else {
|
} else {
|
||||||
viewModel.parking(
|
viewModel.parking(
|
||||||
ticketFk = tickets[0],
|
ticketFk = tickets[0].toInt(),
|
||||||
parking = ticketScanTxt
|
parking = ticketScanTxt
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1338,7 +1338,7 @@ import org.json.JSONObject
|
||||||
|
|
||||||
|
|
||||||
viewModel.parking(
|
viewModel.parking(
|
||||||
ticketFk = tickets[0],
|
ticketFk = tickets[0].toInt(),
|
||||||
parking = txtscan
|
parking = txtscan
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1472,7 +1472,7 @@ import org.json.JSONObject
|
||||||
if (txtscan.contains("-")) {
|
if (txtscan.contains("-")) {
|
||||||
tickets.forEach {
|
tickets.forEach {
|
||||||
viewModel.parking(
|
viewModel.parking(
|
||||||
ticketFk = it,
|
ticketFk = it.toInt(),
|
||||||
parking = txtscan
|
parking = txtscan
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -402,7 +402,7 @@ class CollectionFragmentPreChecker(
|
||||||
it.sales.forEach { at ->
|
it.sales.forEach { at ->
|
||||||
if (at.saleGroupFk != saleGroup) {
|
if (at.saleGroupFk != saleGroup) {
|
||||||
viewModel.parking(
|
viewModel.parking(
|
||||||
ticketFk = at.saleGroupFk,
|
ticketFk = at.saleGroupFk.toInt(),
|
||||||
parking = myQr.more
|
parking = myQr.more
|
||||||
)
|
)
|
||||||
saleGroup = at.saleGroupFk
|
saleGroup = at.saleGroupFk
|
||||||
|
@ -818,7 +818,7 @@ class CollectionFragmentPreChecker(
|
||||||
customDialog.show()
|
customDialog.show()
|
||||||
} else {
|
} else {
|
||||||
viewModel.parking(
|
viewModel.parking(
|
||||||
ticketFk = tickets[0],
|
ticketFk = tickets[0].toInt(),
|
||||||
parking = ticketScanTxt
|
parking = ticketScanTxt
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1346,7 +1346,7 @@ class CollectionFragmentPreChecker(
|
||||||
|
|
||||||
|
|
||||||
viewModel.parking(
|
viewModel.parking(
|
||||||
ticketFk = tickets[0],
|
ticketFk = tickets[0].toInt(),
|
||||||
parking = txtscan
|
parking = txtscan
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1479,7 +1479,7 @@ class CollectionFragmentPreChecker(
|
||||||
if (txtscan.contains("-")) {
|
if (txtscan.contains("-")) {
|
||||||
tickets.forEach {
|
tickets.forEach {
|
||||||
viewModel.parking(
|
viewModel.parking(
|
||||||
ticketFk = it,
|
ticketFk = it.toInt(),
|
||||||
parking = txtscan
|
parking = txtscan
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,11 +13,19 @@ import es.verdnatura.presentation.base.nameofFunction
|
||||||
import es.verdnatura.presentation.common.Event
|
import es.verdnatura.presentation.common.Event
|
||||||
import es.verdnatura.presentation.common.ItemShelvingSaleSalix
|
import es.verdnatura.presentation.common.ItemShelvingSaleSalix
|
||||||
import es.verdnatura.presentation.common.ResponseItemVO
|
import es.verdnatura.presentation.common.ResponseItemVO
|
||||||
import es.verdnatura.presentation.view.feature.collection.*
|
import es.verdnatura.presentation.view.feature.collection.ItemVO
|
||||||
|
import es.verdnatura.presentation.view.feature.collection.SalesModifiedList
|
||||||
|
import es.verdnatura.presentation.view.feature.collection.SalixSaleQuantity
|
||||||
|
import es.verdnatura.presentation.view.feature.collection.listSaleSalix
|
||||||
import es.verdnatura.presentation.view.feature.collection.mapper.map
|
import es.verdnatura.presentation.view.feature.collection.mapper.map
|
||||||
import es.verdnatura.presentation.view.feature.collection.mapper.proposal
|
import es.verdnatura.presentation.view.feature.collection.mapper.proposal
|
||||||
import es.verdnatura.presentation.view.feature.login.model.SalixMessageVO
|
import es.verdnatura.presentation.view.feature.collection.saleSalix
|
||||||
import es.verdnatura.presentation.view.feature.sacador.model.*
|
import es.verdnatura.presentation.view.feature.sacador.model.CollectionTicket
|
||||||
|
import es.verdnatura.presentation.view.feature.sacador.model.CollectionVO
|
||||||
|
import es.verdnatura.presentation.view.feature.sacador.model.MistakeTypeListVO
|
||||||
|
import es.verdnatura.presentation.view.feature.sacador.model.MistakeTypeVO
|
||||||
|
import es.verdnatura.presentation.view.feature.sacador.model.PlacementSupplyListVO
|
||||||
|
import es.verdnatura.presentation.view.feature.sacador.model.PlacementSupplyVO
|
||||||
import es.verdnatura.presentation.view.feature.workermistake.model.SaleMistakeSalix
|
import es.verdnatura.presentation.view.feature.workermistake.model.SaleMistakeSalix
|
||||||
import retrofit2.Call
|
import retrofit2.Call
|
||||||
import retrofit2.Callback
|
import retrofit2.Callback
|
||||||
|
@ -542,7 +550,7 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
silex.ticketCollection_setUsedShelves(
|
silex.ticketCollection_setUsedShelves(
|
||||||
ticketFk,
|
ticketFk,
|
||||||
usedShelves
|
usedShelves
|
||||||
).enqueue(object : SilexCallback<Void>(context) {
|
).enqueue(object : SilexCallback<Unit>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
|
|
||||||
_responseUsedShelves.value = ResponseItemVO(
|
_responseUsedShelves.value = ResponseItemVO(
|
||||||
|
@ -551,7 +559,7 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Void>) {
|
override fun onSuccess(response: Response<Unit>) {
|
||||||
_responseUsedShelves.value = ResponseItemVO(isError = false)
|
_responseUsedShelves.value = ResponseItemVO(isError = false)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -565,7 +573,7 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
silex.item_updatePackingShelve(
|
silex.item_updatePackingShelve(
|
||||||
vSelf,
|
vSelf,
|
||||||
vPacking
|
vPacking
|
||||||
).enqueue(object : SilexCallback<Void>(context) {
|
).enqueue(object : SilexCallback<Unit>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_responseItem_updatePackingShelve.value = ResponseItemVO(
|
_responseItem_updatePackingShelve.value = ResponseItemVO(
|
||||||
isError = true,
|
isError = true,
|
||||||
|
@ -573,7 +581,7 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Void>) {
|
override fun onSuccess(response: Response<Unit>) {
|
||||||
_responseItem_updatePackingShelve.value = ResponseItemVO(isError = false)
|
_responseItem_updatePackingShelve.value = ResponseItemVO(isError = false)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -585,7 +593,7 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
) {
|
) {
|
||||||
silex.saleTracking_add(
|
silex.saleTracking_add(
|
||||||
saleGroupFk
|
saleGroupFk
|
||||||
).enqueue(object : SilexCallback<Void>(context) {
|
).enqueue(object : SilexCallback<Unit>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_responseSaleGroup.value = ResponseItemVO(
|
_responseSaleGroup.value = ResponseItemVO(
|
||||||
isError = true,
|
isError = true,
|
||||||
|
@ -593,7 +601,7 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Void>) {
|
override fun onSuccess(response: Response<Unit>) {
|
||||||
_responseSaleGroup.value = ResponseItemVO(isError = false)
|
_responseSaleGroup.value = ResponseItemVO(isError = false)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -748,7 +756,7 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun parking(
|
fun parking(
|
||||||
ticketFk: String,
|
ticketFk: Int,
|
||||||
parking: String
|
parking: String
|
||||||
) {
|
) {
|
||||||
silex.shelvingPark(ticketFk, parking)
|
silex.shelvingPark(ticketFk, parking)
|
||||||
|
@ -844,7 +852,7 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
|
|
||||||
fun getIdFromCodeSalix(code: String) {
|
fun getIdFromCodeSalix(code: String) {
|
||||||
salix.barcodes_toitem(code)
|
salix.barcodes_toitem(code)
|
||||||
.enqueue(object : SilexCallback<String>(context) {
|
.enqueue(object : SilexCallback<String?>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_responseCode.value = ResponseItemVO(
|
_responseCode.value = ResponseItemVO(
|
||||||
isError = true,
|
isError = true,
|
||||||
|
@ -852,14 +860,14 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<String>) {
|
override fun onSuccess(response: Response<String?>) {
|
||||||
|
|
||||||
_responseCode.value =
|
_responseCode.value =
|
||||||
ResponseItemVO(
|
ResponseItemVO(
|
||||||
isError = false,
|
isError = false,
|
||||||
response = if (response.body() == null) "" else {
|
response = if (response.body() == null) "" else{response!!.body().toString()}
|
||||||
response.body()!!
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,7 @@ class ControlVehiculoViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
fun deviceProductionUser_getWorker(android_id: String) {
|
fun deviceProductionUser_getWorker(android_id: String) {
|
||||||
silex.deviceProductionUser_getWorker(
|
silex.deviceProductionUser_getWorker(
|
||||||
android_id
|
android_id
|
||||||
).enqueue(object : SilexCallback<Any>(context) {
|
).enqueue(object : SilexCallback<String>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_responsemachine.value = ResponseItemMachineControl(
|
_responsemachine.value = ResponseItemMachineControl(
|
||||||
isError = true,
|
isError = true,
|
||||||
|
@ -189,7 +189,7 @@ class ControlVehiculoViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Any>) {
|
override fun onSuccess(response: Response<String>) {
|
||||||
if (response.body() != null) {
|
if (response.body() != null) {
|
||||||
|
|
||||||
_responsemachine.value =
|
_responsemachine.value =
|
||||||
|
|
|
@ -36,9 +36,9 @@ class InfoFragment(var title: String) :
|
||||||
companyInfoList.observe(viewLifecycleOwner) {
|
companyInfoList.observe(viewLifecycleOwner) {
|
||||||
binding.splashProgress.visibility = View.GONE
|
binding.splashProgress.visibility = View.GONE
|
||||||
if (it.list.isNotEmpty()) {
|
if (it.list.isNotEmpty()) {
|
||||||
binding.itemName.text = it.list[0].name
|
binding.itemName.text = it.list[0]?.name
|
||||||
binding.itemNif.text = it.list[0].nif
|
binding.itemNif.text = it.list[0]?.nif
|
||||||
binding.itemAdress.text = it.list[0].street + "-" + it.list[0].city
|
binding.itemAdress.text = it.list[0]?.street + "-" + it.list[0]?.city
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -46,9 +46,9 @@ class InfoFragment(var title: String) :
|
||||||
binding.splashProgress.visibility = View.GONE
|
binding.splashProgress.visibility = View.GONE
|
||||||
if (it.list.isNotEmpty()) {
|
if (it.list.isNotEmpty()) {
|
||||||
binding.linearInfoFreelance.visibility=View.VISIBLE
|
binding.linearInfoFreelance.visibility=View.VISIBLE
|
||||||
binding.freelanceName.text = it.list[0].name
|
binding.freelanceName.text = it.list[0]?.name
|
||||||
binding.freelanceNif.text = it.list[0].nif
|
binding.freelanceNif.text = it.list[0]?.nif
|
||||||
binding.freelanceAddress.text = it.list[0].street + "-" + it.list[0].city
|
binding.freelanceAddress.text = it.list[0]?.street + "-" + it.list[0]?.city
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,10 @@ class LogExpeditionFragment(
|
||||||
|
|
||||||
when (item) {
|
when (item) {
|
||||||
iconDelivery.drawable -> {
|
iconDelivery.drawable -> {
|
||||||
ma.openSummaryFragment(binding.route.text.toString().toInt(),"ON_DELIVERY")
|
ma.openSummaryFragment(
|
||||||
|
binding.route.text.toString().toInt(),
|
||||||
|
"ON_DELIVERY"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -94,11 +97,12 @@ class LogExpeditionFragment(
|
||||||
i.setClassName(
|
i.setClassName(
|
||||||
"verdnatura.es.repartoverdnatura.sfusion",
|
"verdnatura.es.repartoverdnatura.sfusion",
|
||||||
"verdnatura.es.repartoverdnatura.ExpeditionSummaryActivity"
|
"verdnatura.es.repartoverdnatura.ExpeditionSummaryActivity"
|
||||||
)}
|
)
|
||||||
else{
|
} else {
|
||||||
i.setClassName(
|
i.setClassName(
|
||||||
"verdnatura.es.repartoverdnatura",
|
"verdnatura.es.repartoverdnatura",
|
||||||
"verdnatura.es.repartoverdnatura.ExpeditionSummaryActivity")
|
"verdnatura.es.repartoverdnatura.ExpeditionSummaryActivity"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
i.putExtra("routeId", binding.route.text)
|
i.putExtra("routeId", binding.route.text)
|
||||||
i.putExtra("app", "picking")
|
i.putExtra("app", "picking")
|
||||||
|
@ -119,7 +123,7 @@ class LogExpeditionFragment(
|
||||||
viewModel.expedition_getLog(binding.scanInput.toInt())
|
viewModel.expedition_getLog(binding.scanInput.toInt())
|
||||||
originalItem = binding.scanInput.toInt()
|
originalItem = binding.scanInput.toInt()
|
||||||
binding.mainToolbar.toolbarTitle.text =
|
binding.mainToolbar.toolbarTitle.text =
|
||||||
getString(R.string.expedition) + binding.scanInput.text
|
"""${getString(R.string.expedition)} ${binding.scanInput.text}"""
|
||||||
} catch (ex: Exception) {
|
} catch (ex: Exception) {
|
||||||
"Error al escanear expedición".toast(context, Toast.LENGTH_SHORT)
|
"Error al escanear expedición".toast(context, Toast.LENGTH_SHORT)
|
||||||
}
|
}
|
||||||
|
@ -171,14 +175,21 @@ class LogExpeditionFragment(
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
binding.splashProgress.visibility = View.VISIBLE
|
||||||
|
|
||||||
if (isChecked) {
|
if (isChecked) {
|
||||||
|
|
||||||
|
/*viewModel.expeditionStateAddSalix(Expeditions(listOf(
|
||||||
|
ExpeditionSalix(expeditionFk = originalItem, stateCode = "ON DELIVERY"))))*/
|
||||||
viewModel.expeditionState_add(arrayListOf(Expedition(originalItem)), "FOUND")
|
viewModel.expeditionState_add(arrayListOf(Expedition(originalItem)), "FOUND")
|
||||||
} else {
|
} else {
|
||||||
|
/* viewModel.expeditionStateAddSalix(Expeditions(listOf(
|
||||||
|
ExpeditionSalix(expeditionFk = originalItem, stateCode = "LOST"))))*/
|
||||||
|
|
||||||
viewModel.expeditionState_add(arrayListOf(Expedition(originalItem)), "LOST")
|
viewModel.expeditionState_add(arrayListOf(Expedition(originalItem)), "LOST")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private fun setInfoText(routeDelivery: RouteDelivery) {
|
private fun setInfoText(routeDelivery: RouteDelivery) {
|
||||||
binding.routeLayout.visibility = View.VISIBLE
|
binding.routeLayout.visibility = View.VISIBLE
|
||||||
binding.mainToolbar.toolbarIcons.visibility = View.VISIBLE
|
binding.mainToolbar.toolbarIcons.visibility = View.VISIBLE
|
||||||
|
|
|
@ -18,29 +18,35 @@ class CompanyInfoList(
|
||||||
)
|
)
|
||||||
|
|
||||||
class DeliveryInfo(
|
class DeliveryInfo(
|
||||||
var name: String = "",
|
var name: String? = null,
|
||||||
var street: String = "",
|
var street: String? = null,
|
||||||
var city: String = "",
|
var city: String? = null,
|
||||||
var nif: String = "",
|
var nif: String? = null,
|
||||||
var postCode: Int = 0
|
var postCode: String? = null
|
||||||
|
)
|
||||||
|
|
||||||
|
class Expeditions(
|
||||||
|
val expeditions: List<ExpeditionSalix> = listOf()
|
||||||
|
)
|
||||||
|
|
||||||
|
class ExpeditionSalix(
|
||||||
|
val expeditionFk: Int,
|
||||||
|
val stateCode: String
|
||||||
)
|
)
|
||||||
|
|
||||||
class ExpeditionInfoList(
|
class ExpeditionInfoList(
|
||||||
var list: List<ExpeditionInfoLog> = listOf()
|
var list: List<ExpeditionInfoLog> = listOf()
|
||||||
)
|
)
|
||||||
|
|
||||||
class ExpeditionInfoLog(
|
|
||||||
var description: String = "",
|
|
||||||
var name: String = "",
|
data class ExpeditionInfoLog(
|
||||||
var created: String,
|
var description: String,
|
||||||
) {
|
var name: String,
|
||||||
/* posiblidad de meter función directo en xml*/
|
var created: String
|
||||||
fun getDateString(): String {
|
)
|
||||||
val format = SimpleDateFormat("dd/MM/yyy")
|
|
||||||
// return format.format(created)
|
|
||||||
return created
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class RouteDeliveryList(
|
class RouteDeliveryList(
|
||||||
var list: List<RouteDelivery> = listOf()
|
var list: List<RouteDelivery> = listOf()
|
||||||
|
@ -101,18 +107,20 @@ class ExpeditionInfoSummary(
|
||||||
var addressFk: Int,
|
var addressFk: Int,
|
||||||
var itemPackingType: String?,
|
var itemPackingType: String?,
|
||||||
var total: Int,
|
var total: Int,
|
||||||
var delivery: Int = 0,
|
var delivery: Int,
|
||||||
var lost: Int = 0,
|
var lost: Int,
|
||||||
var delivered: Int = 0
|
var delivered: Int
|
||||||
)
|
)
|
||||||
|
|
||||||
class RouteList(
|
class RouteList(
|
||||||
var list: MutableList<RouteInfo> = mutableListOf()
|
var list: MutableList<RouteInfo> = mutableListOf()
|
||||||
)
|
)
|
||||||
|
|
||||||
@Entity(tableName = "routesLoaded")
|
@Entity(tableName = "routesLoaded")
|
||||||
class RouteLoaded(
|
class RouteLoaded(
|
||||||
@PrimaryKey var id: Long,
|
@PrimaryKey var id: Long,
|
||||||
var created: String)
|
var created: String
|
||||||
|
)
|
||||||
|
|
||||||
@Entity(tableName = "routes")
|
@Entity(tableName = "routes")
|
||||||
class RouteInfo(
|
class RouteInfo(
|
||||||
|
@ -135,4 +143,5 @@ class RouteInfo(
|
||||||
return "$driver$id$name$numberPlate$m3$created$hour$"
|
return "$driver$id$name$numberPlate$m3$created$hour$"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val dateFormat = SimpleDateFormat("yyyy-MM-dd", Locale.getDefault())
|
val dateFormat = SimpleDateFormat("yyyy-MM-dd", Locale.getDefault())
|
|
@ -5,6 +5,7 @@ import android.content.Context
|
||||||
import androidx.lifecycle.LiveData
|
import androidx.lifecycle.LiveData
|
||||||
import androidx.lifecycle.MutableLiveData
|
import androidx.lifecycle.MutableLiveData
|
||||||
import androidx.lifecycle.Transformations
|
import androidx.lifecycle.Transformations
|
||||||
|
import es.verdnatura.domain.SalixCallback
|
||||||
import es.verdnatura.domain.SilexCallback
|
import es.verdnatura.domain.SilexCallback
|
||||||
import es.verdnatura.presentation.base.BaseViewModel
|
import es.verdnatura.presentation.base.BaseViewModel
|
||||||
import es.verdnatura.presentation.common.Event
|
import es.verdnatura.presentation.common.Event
|
||||||
|
@ -18,6 +19,7 @@ import es.verdnatura.presentation.view.feature.delivery.model.ExpeditionInfoLog
|
||||||
import es.verdnatura.presentation.view.feature.delivery.model.ExpeditionInfoSummary
|
import es.verdnatura.presentation.view.feature.delivery.model.ExpeditionInfoSummary
|
||||||
import es.verdnatura.presentation.view.feature.delivery.model.ExpeditionList
|
import es.verdnatura.presentation.view.feature.delivery.model.ExpeditionList
|
||||||
import es.verdnatura.presentation.view.feature.delivery.model.ExpeditionSummaryList
|
import es.verdnatura.presentation.view.feature.delivery.model.ExpeditionSummaryList
|
||||||
|
import es.verdnatura.presentation.view.feature.delivery.model.Expeditions
|
||||||
import es.verdnatura.presentation.view.feature.delivery.model.FreeLanceDeliveryInfoList
|
import es.verdnatura.presentation.view.feature.delivery.model.FreeLanceDeliveryInfoList
|
||||||
import es.verdnatura.presentation.view.feature.delivery.model.RouteDelivery
|
import es.verdnatura.presentation.view.feature.delivery.model.RouteDelivery
|
||||||
import es.verdnatura.presentation.view.feature.delivery.model.RouteDeliveryList
|
import es.verdnatura.presentation.view.feature.delivery.model.RouteDeliveryList
|
||||||
|
@ -185,8 +187,8 @@ class DeliveryViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
fun expeditionState_add(expeditions: Any?, state: String) {
|
fun expeditionState_add(expeditions: Any?, state: String) {
|
||||||
|
|
||||||
silex.expeditionState_add(expeditions, state)
|
silex.expeditionState_add(expeditions, state)
|
||||||
.enqueue(object : SilexCallback<Void>(context) {
|
.enqueue(object : SilexCallback<Unit>(context) {
|
||||||
override fun onSuccess(response: Response<Void>) {
|
override fun onSuccess(response: Response<Unit>) {
|
||||||
_responseStateAdd.value = ResponseItemVO(state, false, "", 0)
|
_responseStateAdd.value = ResponseItemVO(state, false, "", 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,7 +197,7 @@ class DeliveryViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
_responseStateAdd.value = ResponseItemVO()
|
_responseStateAdd.value = ResponseItemVO()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onFailure(call: Call<Void>, t: Throwable) {
|
override fun onFailure(call: Call<Unit>, t: Throwable) {
|
||||||
_responseStateList.value = ResponseItemVO("", true, t.message.toString(), 0)
|
_responseStateList.value = ResponseItemVO("", true, t.message.toString(), 0)
|
||||||
|
|
||||||
|
|
||||||
|
@ -203,7 +205,26 @@ class DeliveryViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun expeditionStateAddSalix(expeditions: Expeditions) {
|
||||||
|
|
||||||
|
salix.addExpeditionState(expeditions)
|
||||||
|
.enqueue(object : SalixCallback<Unit>(context) {
|
||||||
|
override fun onSuccess(response: Response<Unit>) {
|
||||||
|
_responseStateAdd.value = ResponseItemVO("", false, "", 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onError(t: Throwable) {
|
||||||
|
super.onError(t)
|
||||||
|
_responseStateAdd.value = ResponseItemVO()
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onFailure(call: Call<Unit>, t: Throwable) {
|
||||||
|
_responseStateList.value = ResponseItemVO("", true, t.message.toString(), 0)
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
fun getInfoFreelance(
|
fun getInfoFreelance(
|
||||||
userId: Int
|
userId: Int
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -64,7 +64,7 @@ class DayOfSaleAdapter(
|
||||||
title = res.getString(
|
title = res.getString(
|
||||||
R.string.titleItemConsult
|
R.string.titleItemConsult
|
||||||
)
|
)
|
||||||
), item.itemFk
|
), item.itemFk.toString()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,12 @@ package es.verdnatura.presentation.view.feature.diadeventa.model
|
||||||
|
|
||||||
|
|
||||||
class ItemShelvingSaleDate (
|
class ItemShelvingSaleDate (
|
||||||
var itemFk:String = "",
|
var itemFk:Int? = null,
|
||||||
var longName:String = "",
|
var longName:String? = null,
|
||||||
var dated:String = "",
|
var dated:String? = null,
|
||||||
var amount:String = "",
|
var amount:Int? = null,
|
||||||
var visible:String ="",
|
var visible:Int? = null,
|
||||||
var stock:String = "",
|
var stock:Int? = null,
|
||||||
var isError:Boolean = false,
|
var isError:Boolean = false,
|
||||||
var errorMessage:String = ""
|
var errorMessage:String = ""
|
||||||
)
|
)
|
||||||
|
|
|
@ -39,7 +39,6 @@ class HistoricoAdapter (
|
||||||
val sdf = SimpleDateFormat(res.getString(R.string.dateFormat))
|
val sdf = SimpleDateFormat(res.getString(R.string.dateFormat))
|
||||||
val currentDate = sdf.format(Date())
|
val currentDate = sdf.format(Date())
|
||||||
if (currentDate == item.shipped){
|
if (currentDate == item.shipped){
|
||||||
// historicoDate.setBackgroundColor(res.getColor(R.color.verdnatura_pumpkin_orange))
|
|
||||||
historicoDate.setBackgroundColor(ContextCompat.getColor(historicoDate.getContext(),R.color.verdnatura_pumpkin_orange))
|
historicoDate.setBackgroundColor(ContextCompat.getColor(historicoDate.getContext(),R.color.verdnatura_pumpkin_orange))
|
||||||
}else{
|
}else{
|
||||||
historicoDate.setBackgroundColor(ContextCompat.getColor(historicoDate.getContext(),R.color.verdnatura_black_5))
|
historicoDate.setBackgroundColor(ContextCompat.getColor(historicoDate.getContext(),R.color.verdnatura_black_5))
|
||||||
|
|
|
@ -89,6 +89,7 @@ class HistoricoArticuloFragment(
|
||||||
viewModelwithFilter("contenedor")
|
viewModelwithFilter("contenedor")
|
||||||
item.setTint(getColor(context!!, verdnatura_pumpkin_orange))
|
item.setTint(getColor(context!!, verdnatura_pumpkin_orange))
|
||||||
}
|
}
|
||||||
|
|
||||||
iconFault.drawable -> viewModelwithFilter("falta")
|
iconFault.drawable -> viewModelwithFilter("falta")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,16 +134,15 @@ class HistoricoArticuloFragment(
|
||||||
listHistoric.removeAll(listHistoryAux)
|
listHistoric.removeAll(listHistoryAux)
|
||||||
listHistoryAux.forEach {
|
listHistoryAux.forEach {
|
||||||
|
|
||||||
|
if (it.name?.contains(
|
||||||
if (it.name.contains(
|
|
||||||
binding.filterNameordateitem.text.toString(),
|
binding.filterNameordateitem.text.toString(),
|
||||||
true
|
true
|
||||||
)
|
) == true
|
||||||
) {
|
) {
|
||||||
//Log.i("VERDNATURA:","si contiene ${filter_nameordateitem.text.toString()}")
|
|
||||||
listHistoric.add(it)
|
listHistoric.add(it)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -180,7 +180,7 @@ class HistoricoArticuloFragment(
|
||||||
// listHistoryAux.add(it)
|
// listHistoryAux.add(it)
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (it.name.contains(filter, true)) {
|
if (it.name?.contains(filter, true)!!) {
|
||||||
listHistoric.add(it)
|
listHistoric.add(it)
|
||||||
// listHistoryAux.add(it)
|
// listHistoryAux.add(it)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
package es.verdnatura.presentation.view.feature.historicoarticulo.model
|
package es.verdnatura.presentation.view.feature.historicoarticulo.model
|
||||||
|
|
||||||
class ItemHistoricoVO(
|
class ItemHistoricoVO(
|
||||||
var shipped:String = "",
|
var shipped: String? = null,
|
||||||
var stateName:String = "",
|
var stateName: String? = null,
|
||||||
var origin:String = "",
|
var origin: Int? = null,
|
||||||
var reference: String = "",
|
var reference: String? = null,
|
||||||
var clientFk: String = "",
|
var clientFk: Int? = null,
|
||||||
var name:String = "",
|
var name: String? = null,
|
||||||
var invalue:String = "-",
|
var invalue: Int? = null,
|
||||||
var out:String = "-",
|
var out: Int? = null,
|
||||||
var balance:String = "-",
|
var balance: Int? = null,
|
||||||
var isError: Boolean = false,
|
var isError: Boolean = false,
|
||||||
var errorMessage: String = ""
|
var errorMessage: String = ""
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,15 +3,12 @@ package es.verdnatura.presentation.view.feature.historicoshelving.adapter
|
||||||
|
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.core.content.ContextCompat
|
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import es.verdnatura.R
|
import es.verdnatura.R
|
||||||
import es.verdnatura.databinding.ItemShelvinglogRowBinding
|
import es.verdnatura.databinding.ItemShelvinglogRowBinding
|
||||||
import es.verdnatura.presentation.common.OnPasillerosItemClickListener
|
import es.verdnatura.presentation.common.OnPasillerosItemClickListener
|
||||||
import es.verdnatura.presentation.view.feature.historicoshelving.model.ItemShelvingLog
|
import es.verdnatura.presentation.view.feature.historicoshelving.model.ItemShelvingLog
|
||||||
import es.verdnatura.presentation.view.feature.pasillero.model.PasillerosItemVO
|
import es.verdnatura.presentation.view.feature.pasillero.model.PasillerosItemVO
|
||||||
import java.text.SimpleDateFormat
|
|
||||||
import java.util.*
|
|
||||||
|
|
||||||
class ItemShelvingLogAdapter(
|
class ItemShelvingLogAdapter(
|
||||||
private val items: List<ItemShelvingLog>,
|
private val items: List<ItemShelvingLog>,
|
||||||
|
@ -30,12 +27,20 @@ class ItemShelvingLogAdapter (
|
||||||
override fun onBindViewHolder(holder: ItemHolder, position: Int) {
|
override fun onBindViewHolder(holder: ItemHolder, position: Int) {
|
||||||
holder.bind(items[position])
|
holder.bind(items[position])
|
||||||
holder.binding.root.setOnClickListener {
|
holder.binding.root.setOnClickListener {
|
||||||
|
|
||||||
|
val shelvingFk = items[position].shelvingFk
|
||||||
|
if (!shelvingFk.isNullOrEmpty()) {
|
||||||
onPasillerosItemClickListener.onPasillerosItemClickListener(
|
onPasillerosItemClickListener.onPasillerosItemClickListener(
|
||||||
PasillerosItemVO(title = holder.binding.root.context.getString(
|
PasillerosItemVO(
|
||||||
R.string.titleUbicator)),items[position].shelvingFk)
|
title = holder.binding.root.context.getString(
|
||||||
|
R.string.titleUbicator
|
||||||
|
)
|
||||||
|
), shelvingFk
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
inner class ItemHolder(
|
inner class ItemHolder(
|
||||||
val binding: ItemShelvinglogRowBinding
|
val binding: ItemShelvinglogRowBinding
|
||||||
|
|
|
@ -3,13 +3,13 @@ package es.verdnatura.presentation.view.feature.historicoshelving.model
|
||||||
|
|
||||||
|
|
||||||
class ItemShelvingLog(
|
class ItemShelvingLog(
|
||||||
var itemFk:String = "",
|
var itemFk:Int? = null,
|
||||||
var longName:String = "",
|
var longName:String? = null,
|
||||||
var shelvingFk:String = "",
|
var shelvingFk:String? = null,
|
||||||
var visible:String = "",
|
var visible:Int? = null,
|
||||||
var accion:String = "",
|
var accion:String? = null,
|
||||||
var created:String = "",
|
var created:String? = null,
|
||||||
var code:String = "",
|
var code:String? = null,
|
||||||
var isError:Boolean = false,
|
var isError:Boolean = false,
|
||||||
var errorMessage:String = ""
|
var errorMessage:String = ""
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
package es.verdnatura.presentation.view.feature.historicovehiculo.model
|
package es.verdnatura.presentation.view.feature.historicovehiculo.model
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ItemHistoricoVehiculo(
|
class ItemHistoricoVehiculo(
|
||||||
var inTimed:String = "", //timed
|
var inTimed: String? = null,
|
||||||
var workerName:String = "",
|
var workerName: String? = null,
|
||||||
var outTimed:String = "",//direction
|
var outTimed: String? = null,
|
||||||
var isError: Boolean = false,
|
var isError: Boolean = false,
|
||||||
var errorMessage: String = ""
|
var errorMessage: String = ""
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,7 +4,6 @@ import android.annotation.SuppressLint
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.graphics.drawable.Drawable
|
import android.graphics.drawable.Drawable
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
import android.util.Log
|
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.widget.ImageView
|
import android.widget.ImageView
|
||||||
import androidx.lifecycle.Observer
|
import androidx.lifecycle.Observer
|
||||||
|
@ -164,10 +163,10 @@ class InventaryFragment :
|
||||||
it.itemFk!!.toString().contains(
|
it.itemFk!!.toString().contains(
|
||||||
binding.filterItemFk.text.toString(),
|
binding.filterItemFk.text.toString(),
|
||||||
true
|
true
|
||||||
) || it.producer.contains(
|
) || it.producer?.contains(
|
||||||
binding.filterItemFk.text.toString(),
|
binding.filterItemFk.text.toString(),
|
||||||
true
|
true
|
||||||
) || it.longName?.contains(
|
)== true || it.longName?.contains(
|
||||||
binding.filterItemFk.text.toString(),
|
binding.filterItemFk.text.toString(),
|
||||||
ignoreCase = true
|
ignoreCase = true
|
||||||
) == true
|
) == true
|
||||||
|
@ -217,14 +216,14 @@ class InventaryFragment :
|
||||||
adapter = InventoryAdapter(listInvetory, object : OnInvetoryNichoClickListener {
|
adapter = InventoryAdapter(listInvetory, object : OnInvetoryNichoClickListener {
|
||||||
override fun onInvetoryNichoClickListener(item: ItemInventaryVO) {
|
override fun onInvetoryNichoClickListener(item: ItemInventaryVO) {
|
||||||
|
|
||||||
customDialog.setTitle(item.itemFk.toString() + "\n" + item.longName + " " + item.size)
|
customDialog.setTitle(item.itemFk.toString() + "\n" + item.longName)
|
||||||
.setDescription(getString(R.string.quantityReal) + item.nicho + ")")
|
.setDescription(getString(R.string.quantityReal) + item.nicho + ")")
|
||||||
.setOkButton(getString(R.string.pull)) {
|
.setOkButton(getString(R.string.pull)) {
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
binding.splashProgress.visibility = View.VISIBLE
|
||||||
viewModel.itemTrash(
|
viewModel.itemTrash(
|
||||||
item.itemFk!!.toInt(),
|
item.itemFk!!.toInt(),
|
||||||
getDataInt(WAREHOUSEFK),
|
getDataInt(WAREHOUSEFK),
|
||||||
item.nicho,
|
item.nicho!!,
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
itemClicked = item
|
itemClicked = item
|
||||||
|
@ -270,10 +269,8 @@ class InventaryFragment :
|
||||||
listInvetory.removeAt(listInvetory.indexOf(item))
|
listInvetory.removeAt(listInvetory.indexOf(item))
|
||||||
listInvetoryAux.removeAt(listInvetoryAux.indexOf(item))
|
listInvetoryAux.removeAt(listInvetoryAux.indexOf(item))
|
||||||
} catch (excep: Exception) {
|
} catch (excep: Exception) {
|
||||||
Log.d("VERDNATURA::", "Para evitar cierres inesperados.")
|
|
||||||
}
|
}
|
||||||
adapter?.notifyDataSetChanged()
|
adapter?.notifyDataSetChanged()
|
||||||
//reload = true
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -422,7 +422,7 @@ class InventaryParkingFragment(
|
||||||
|
|
||||||
if (allChecked) {
|
if (allChecked) {
|
||||||
ma.messageWithSound(
|
ma.messageWithSound(
|
||||||
"Matrícula ya revisada",
|
getString(R.string.plateChecked),
|
||||||
false,
|
false,
|
||||||
true,
|
true,
|
||||||
"",
|
"",
|
||||||
|
@ -489,7 +489,7 @@ class InventaryParkingFragment(
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun checkItem(itemCode: String) {
|
private fun checkItem(itemCode: String) {
|
||||||
|
println("itemCode es $itemCode")
|
||||||
positionItemChecking = myListInventory.indexOfFirst { item ->
|
positionItemChecking = myListInventory.indexOfFirst { item ->
|
||||||
item.itemFk == itemCode
|
item.itemFk == itemCode
|
||||||
.toInt() && item.shelvingFk == myListInventory[positionShelvingChecking].shelvingFk && item.isChecked == null
|
.toInt() && item.shelvingFk == myListInventory[positionShelvingChecking].shelvingFk && item.isChecked == null
|
||||||
|
|
|
@ -5,7 +5,7 @@ import androidx.lifecycle.LiveData
|
||||||
import androidx.lifecycle.MutableLiveData
|
import androidx.lifecycle.MutableLiveData
|
||||||
import androidx.lifecycle.Transformations
|
import androidx.lifecycle.Transformations
|
||||||
import com.google.gson.JsonObject
|
import com.google.gson.JsonObject
|
||||||
import es.verdnatura.MobileApplication
|
import es.verdnatura.R
|
||||||
import es.verdnatura.domain.SalixCallback
|
import es.verdnatura.domain.SalixCallback
|
||||||
import es.verdnatura.domain.SilexCallback
|
import es.verdnatura.domain.SilexCallback
|
||||||
import es.verdnatura.presentation.base.BaseViewModel
|
import es.verdnatura.presentation.base.BaseViewModel
|
||||||
|
@ -20,10 +20,8 @@ import es.verdnatura.presentation.view.feature.inventario.model.InventoryParking
|
||||||
import es.verdnatura.presentation.view.feature.inventario.model.ItemInventaryVO
|
import es.verdnatura.presentation.view.feature.inventario.model.ItemInventaryVO
|
||||||
import es.verdnatura.presentation.view.feature.inventario.model.ItemInventoryParking
|
import es.verdnatura.presentation.view.feature.inventario.model.ItemInventoryParking
|
||||||
import es.verdnatura.presentation.view.feature.workermistake.model.DepartmentMistake
|
import es.verdnatura.presentation.view.feature.workermistake.model.DepartmentMistake
|
||||||
import es.verdnatura.presentation.view.feature.workermistake.model.ExpeditionMistakeSalix
|
|
||||||
import es.verdnatura.presentation.view.feature.workermistake.model.MistakeType
|
import es.verdnatura.presentation.view.feature.workermistake.model.MistakeType
|
||||||
import es.verdnatura.presentation.view.feature.workermistake.model.WorkerFromMistake
|
import es.verdnatura.presentation.view.feature.workermistake.model.WorkerFromMistake
|
||||||
import es.verdnatura.presentation.view.feature.workermistake.model.WorkerMistakeSalix
|
|
||||||
import es.verdnatura.presentation.view.feature.workermistake.model.departmentMistakeList
|
import es.verdnatura.presentation.view.feature.workermistake.model.departmentMistakeList
|
||||||
import es.verdnatura.presentation.view.feature.workermistake.model.workerFromMistakeList
|
import es.verdnatura.presentation.view.feature.workermistake.model.workerFromMistakeList
|
||||||
import es.verdnatura.presentation.view.feature.workermistake.model.workerMistakeTypeList
|
import es.verdnatura.presentation.view.feature.workermistake.model.workerMistakeTypeList
|
||||||
|
@ -86,7 +84,7 @@ class InventaryViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
val listError: ArrayList<BuyerVO> = ArrayList()
|
val listError: ArrayList<BuyerVO> = ArrayList()
|
||||||
listError.add(
|
listError.add(
|
||||||
BuyerVO(
|
BuyerVO(0,"",
|
||||||
isError = true,
|
isError = true,
|
||||||
errorMessage = getMessageFromAllResponse(nameofFunction(this), t.message!!)
|
errorMessage = getMessageFromAllResponse(nameofFunction(this), t.message!!)
|
||||||
)
|
)
|
||||||
|
@ -100,7 +98,7 @@ class InventaryViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
} else {
|
} else {
|
||||||
val listError: ArrayList<BuyerVO> = ArrayList()
|
val listError: ArrayList<BuyerVO> = ArrayList()
|
||||||
listError.add(
|
listError.add(
|
||||||
BuyerVO(
|
BuyerVO(0,"",
|
||||||
isError = true,
|
isError = true,
|
||||||
errorMessage = getMessageFromAllResponse(
|
errorMessage = getMessageFromAllResponse(
|
||||||
nameofFunction(this),
|
nameofFunction(this),
|
||||||
|
@ -662,7 +660,7 @@ class InventaryViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
|
|
||||||
fun getIdFromCodeSalix(code: String) {
|
fun getIdFromCodeSalix(code: String) {
|
||||||
salix.barcodes_toitem(code)
|
salix.barcodes_toitem(code)
|
||||||
.enqueue(object : SilexCallback<String>(context) {
|
.enqueue(object : SilexCallback<String?>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_responseCode.value = ResponseItemVO(
|
_responseCode.value = ResponseItemVO(
|
||||||
isError = true,
|
isError = true,
|
||||||
|
@ -670,14 +668,21 @@ class InventaryViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<String>) {
|
override fun onSuccess(response: Response<String?>) {
|
||||||
_responseCode.value =
|
if (response.body() == null) {
|
||||||
ResponseItemVO(
|
_responseCode.value = ResponseItemVO(
|
||||||
isError = false,
|
isError = true,
|
||||||
response = if (response.body() == null) "" else {
|
errorMessage = context.getString(R.string.itemNotValid)
|
||||||
response.body()!!
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
println("itemCode response"+response.body())
|
||||||
|
println("itemCode response string"+response.body().toString())
|
||||||
|
println("itemCode response toInt"+response.body().toString().toInt())
|
||||||
|
|
||||||
|
_responseCode.value =
|
||||||
|
ResponseItemVO(isError = false, response = response.body()!!.toString())
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ package es.verdnatura.presentation.view.feature.inventario.fragment
|
||||||
|
|
||||||
import ir.mirrajabi.searchdialog.core.Searchable
|
import ir.mirrajabi.searchdialog.core.Searchable
|
||||||
|
|
||||||
class SearchBuyerModel(private var nickname: String?, private var buyerId: String?) : Searchable {
|
class SearchBuyerModel(private var nickname: String?, private var buyerId: Int?) : Searchable {
|
||||||
|
|
||||||
|
|
||||||
override fun getTitle(): String {
|
override fun getTitle(): String {
|
||||||
|
@ -11,7 +11,7 @@ class SearchBuyerModel(private var nickname: String?, private var buyerId: Strin
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getBuyerId(): String {
|
fun getBuyerId(): String {
|
||||||
return buyerId!!
|
return buyerId.toString()!!
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getBuyerNickname(): String {
|
fun getBuyerNickname(): String {
|
||||||
|
|
|
@ -2,12 +2,12 @@ package es.verdnatura.presentation.view.feature.inventario.model
|
||||||
|
|
||||||
class ItemInventaryVO(
|
class ItemInventaryVO(
|
||||||
var itemFk: Int? = null,
|
var itemFk: Int? = null,
|
||||||
var longName: String? = "",
|
var longName: String? = null,
|
||||||
var size: String = "",
|
var size: String? = null,
|
||||||
var producer: String = "",
|
var producer: String? = null,
|
||||||
var downstairs: String = "",
|
var downstairs: Int? = null,
|
||||||
var upstairs: String = "",
|
var upstairs: Int? = null,
|
||||||
var nicho: Int = 0,
|
var nicho: Int? = null,
|
||||||
var isError: Boolean = false,
|
var isError: Boolean = false,
|
||||||
var errorMessage: String = "",
|
var errorMessage: String = "",
|
||||||
var itemColour: String = ""
|
var itemColour: String = ""
|
||||||
|
|
|
@ -31,6 +31,7 @@ import es.verdnatura.presentation.view.feature.login.model.workerId
|
||||||
import es.verdnatura.presentation.view.feature.paletizador.model.itemsExpeditionDynamics
|
import es.verdnatura.presentation.view.feature.paletizador.model.itemsExpeditionDynamics
|
||||||
import retrofit2.Response
|
import retrofit2.Response
|
||||||
import java.util.Date
|
import java.util.Date
|
||||||
|
import kotlin.math.roundToInt
|
||||||
|
|
||||||
class LoginViewModel(val context: Context) : BaseViewModel(context) {
|
class LoginViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
private val _loginsalixitem by lazy { MutableLiveData<LoginSalixVO>() }
|
private val _loginsalixitem by lazy { MutableLiveData<LoginSalixVO>() }
|
||||||
|
@ -195,23 +196,32 @@ class LoginViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
//Tarea 4815
|
//Tarea 4815
|
||||||
// salix.deviceLogInsert(DeviceLogSalix(androidId = android_id,userFk,nameApp= app,versionApp= versionApp))
|
// salix.deviceLogInsert(DeviceLogSalix(androidId = android_id,userFk,nameApp= app,versionApp= versionApp))
|
||||||
silex.deviceLog_add(app, versionApp, android_id)
|
silex.deviceLog_add(app, versionApp, android_id)
|
||||||
.enqueue(object : SilexCallback<Void>(context) {
|
.enqueue(object : SilexCallback<Unit>(context) {
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Void>) {
|
override fun onSuccess(response: Response<Unit>) {
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun deviceLog_addSalix(
|
fun deviceLog_addSalix(
|
||||||
app: String, versionApp: String, android_id: String, userFk: Int, serialnumber: String
|
app: String, versionApp: String, android_id: String, userFk: Int, serialnumber: String
|
||||||
) {
|
) {
|
||||||
|
|
||||||
//Tarea 4815
|
//Tarea 4815
|
||||||
salix.deviceLogInsert(DeviceLogSalix(android_id = android_id,userFk=userFk,nameApp= app,versionApp= versionApp,serialNumber = serialnumber))
|
salix.deviceLogInsert(
|
||||||
.enqueue(object : SilexCallback<Void>(context) {
|
DeviceLogSalix(
|
||||||
|
android_id = android_id,
|
||||||
|
userFk = userFk,
|
||||||
|
nameApp = app,
|
||||||
|
versionApp = versionApp,
|
||||||
|
serialNumber = serialnumber
|
||||||
|
)
|
||||||
|
)
|
||||||
|
.enqueue(object : SilexCallback<Unit>(context) {
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Void>) {
|
override fun onSuccess(response: Response<Unit>) {
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
@ -365,7 +375,7 @@ class LoginViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
fun operator_getNumberOfWagons() {
|
fun operator_getNumberOfWagons() {
|
||||||
|
|
||||||
silex.operator_getNumberOfWagons()
|
silex.operator_getNumberOfWagons()
|
||||||
.enqueue(object : SilexCallback<Int?>(context) {
|
.enqueue(object : SilexCallback<Any>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_operatorGetNumberOfWagons.value = ResponseItemNumber(
|
_operatorGetNumberOfWagons.value = ResponseItemNumber(
|
||||||
null,
|
null,
|
||||||
|
@ -374,12 +384,15 @@ class LoginViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Int?>) {
|
override fun onSuccess(response: Response<Any>) {
|
||||||
if (response.body() != null)
|
|
||||||
_operatorGetNumberOfWagons.value =
|
_operatorGetNumberOfWagons.value =
|
||||||
ResponseItemNumber(response.body(), isError = false)
|
ResponseItemNumber(
|
||||||
|
if (response.body() is Number) {
|
||||||
|
((response.body() as Double).roundToInt())
|
||||||
|
} else {
|
||||||
|
0
|
||||||
|
}, isError = false
|
||||||
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -409,7 +422,8 @@ class LoginViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
val listError: ArrayList<Printers> = ArrayList()
|
val listError: ArrayList<Printers> = ArrayList()
|
||||||
listError.add(
|
listError.add(
|
||||||
Printers(0,"",
|
Printers(
|
||||||
|
0, "",
|
||||||
isError = true,
|
isError = true,
|
||||||
errorMessage = getMessageFromAllResponse(
|
errorMessage = getMessageFromAllResponse(
|
||||||
nameofFunction(this),
|
nameofFunction(this),
|
||||||
|
@ -430,7 +444,8 @@ class LoginViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
} else {
|
} else {
|
||||||
val listError: ArrayList<Printers> = ArrayList()
|
val listError: ArrayList<Printers> = ArrayList()
|
||||||
listError.add(
|
listError.add(
|
||||||
Printers(0,"",
|
Printers(
|
||||||
|
0, "",
|
||||||
isError = true,
|
isError = true,
|
||||||
errorMessage = getMessageFromAllResponse(
|
errorMessage = getMessageFromAllResponse(
|
||||||
nameofFunction(this),
|
nameofFunction(this),
|
||||||
|
@ -446,6 +461,7 @@ class LoginViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fun operator_getDataSalix(
|
fun operator_getDataSalix(
|
||||||
workerId: String
|
workerId: String
|
||||||
) {
|
) {
|
||||||
|
@ -492,6 +508,7 @@ class LoginViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getAccessTokenConfigs(
|
fun getAccessTokenConfigs(
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
@ -537,6 +554,7 @@ class LoginViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fun renewToken(
|
fun renewToken(
|
||||||
) {
|
) {
|
||||||
salix.renewToken()
|
salix.renewToken()
|
||||||
|
@ -552,6 +570,7 @@ class LoginViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
_renewTokenResponse.value = RenewToken
|
_renewTokenResponse.value = RenewToken
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
|
|
||||||
_renewTokenResponse.value = RenewToken(
|
_renewTokenResponse.value = RenewToken(
|
||||||
|
|
|
@ -3,6 +3,7 @@ package es.verdnatura.presentation.view.feature.main.activity
|
||||||
|
|
||||||
import NetworkUtils
|
import NetworkUtils
|
||||||
import PhotosFragment
|
import PhotosFragment
|
||||||
|
import android.content.Intent
|
||||||
import android.content.SharedPreferences
|
import android.content.SharedPreferences
|
||||||
import android.media.MediaPlayer
|
import android.media.MediaPlayer
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
|
@ -80,7 +81,6 @@ import es.verdnatura.presentation.view.feature.sacador.fragment.SacadorFragmentN
|
||||||
import es.verdnatura.presentation.view.feature.sacador.fragment.showticket.ShowTicketFragment
|
import es.verdnatura.presentation.view.feature.sacador.fragment.showticket.ShowTicketFragment
|
||||||
import es.verdnatura.presentation.view.feature.sacador.model.CollectionTicket
|
import es.verdnatura.presentation.view.feature.sacador.model.CollectionTicket
|
||||||
import es.verdnatura.presentation.view.feature.sacador.model.CollectionVO
|
import es.verdnatura.presentation.view.feature.sacador.model.CollectionVO
|
||||||
import es.verdnatura.presentation.view.feature.shelvingparking.fragment.ShelvingParkingFragment
|
|
||||||
import es.verdnatura.presentation.view.feature.ticket.fragment.TicketAdvanceFragment
|
import es.verdnatura.presentation.view.feature.ticket.fragment.TicketAdvanceFragment
|
||||||
import es.verdnatura.presentation.view.feature.ubicador.fragment.AutomaticAddItemFragment
|
import es.verdnatura.presentation.view.feature.ubicador.fragment.AutomaticAddItemFragment
|
||||||
import es.verdnatura.presentation.view.feature.ubicador.fragment.AutomaticAddItemFragmentTEST
|
import es.verdnatura.presentation.view.feature.ubicador.fragment.AutomaticAddItemFragmentTEST
|
||||||
|
@ -153,8 +153,26 @@ class MainActivity : BaseActivity<ActivityMainBinding>(), OnPasillerosItemClickL
|
||||||
setFragments()
|
setFragments()
|
||||||
setBottomMenuFragment()
|
setBottomMenuFragment()
|
||||||
setRegisterNetwork()
|
setRegisterNetwork()
|
||||||
|
//Tarea
|
||||||
|
//printBluetooth()
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun printBluetooth() {
|
||||||
|
|
||||||
|
/*var str =
|
||||||
|
"<113>Mate Technologies<100>Website: www.matetech.in\nEmail: matetusshar@gmail.com<IMAGE>1#$imgpath"*/
|
||||||
|
var str = "<BARCODE>0#100#50#2132137538472<QR>1#40#testing text"
|
||||||
|
str =
|
||||||
|
"$str<HTML><div><div style=\"float:left;\"><b>This is left</b></div><div style=\"float:right;font-size:15px;\">This is right</div></div>"
|
||||||
|
|
||||||
|
|
||||||
|
val sendIntent = Intent()
|
||||||
|
sendIntent.action = Intent.ACTION_SEND
|
||||||
|
sendIntent.setPackage("mate.bluetoothprint")
|
||||||
|
sendIntent.putExtra(Intent.EXTRA_TEXT, str)
|
||||||
|
sendIntent.type = "text/plain"
|
||||||
|
startActivity(sendIntent)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setRegisterNetwork() {
|
private fun setRegisterNetwork() {
|
||||||
|
@ -616,6 +634,7 @@ class MainActivity : BaseActivity<ActivityMainBinding>(), OnPasillerosItemClickL
|
||||||
}
|
}
|
||||||
|
|
||||||
getString(R.string.titleItemConsult) -> {
|
getString(R.string.titleItemConsult) -> {
|
||||||
|
println("La sale queda pasada con $entryPoint")
|
||||||
addFragmentOnTop(ItemCardFragment.newInstance(entryPoint))
|
addFragmentOnTop(ItemCardFragment.newInstance(entryPoint))
|
||||||
}
|
}
|
||||||
//sergio:no visible desde el menú inicio
|
//sergio:no visible desde el menú inicio
|
||||||
|
@ -653,21 +672,12 @@ class MainActivity : BaseActivity<ActivityMainBinding>(), OnPasillerosItemClickL
|
||||||
addFragmentOnTop(InventaryFragment.newInstance())
|
addFragmentOnTop(InventaryFragment.newInstance())
|
||||||
}
|
}
|
||||||
|
|
||||||
getString(R.string.titleShelvingParking) -> {
|
|
||||||
addFragmentOnTop(ShelvingParkingFragment.newInstance())
|
|
||||||
}
|
|
||||||
|
|
||||||
getString(R.string.titleUbicator) -> {
|
getString(R.string.titleUbicator) -> {
|
||||||
addFragmentOnTop(UbicadorFragment.newInstance(entryPoint))
|
addFragmentOnTop(UbicadorFragment.newInstance(entryPoint))
|
||||||
}
|
}
|
||||||
|
|
||||||
getString(R.string.titleAuto) -> {
|
getString(R.string.titleAuto) -> {
|
||||||
/* if ( (application as MobileApplication).userId== 19591){
|
|
||||||
"Testeo rayo".toast(this, Color.RED)*/
|
|
||||||
addFragmentOnTop(AutomaticAddItemFragmentTEST.newInstance(entryPoint, item.title))
|
addFragmentOnTop(AutomaticAddItemFragmentTEST.newInstance(entryPoint, item.title))
|
||||||
/* }else{
|
|
||||||
addFragmentOnTop(AutomaticAddItemFragment.newInstance(entryPoint, item.title))
|
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getString(R.string.titleChecker) -> {
|
getString(R.string.titleChecker) -> {
|
||||||
|
|
|
@ -51,7 +51,7 @@ class ExpeditionPalletAdapter (
|
||||||
fun bind(item: ItemPalletVO) {
|
fun bind(item: ItemPalletVO) {
|
||||||
binding.apply {
|
binding.apply {
|
||||||
this.item = item
|
this.item = item
|
||||||
if (item.Rutas != "1"){
|
if (item.Rutas != 1){
|
||||||
expeditionPalletRutas.setTextColor(ContextCompat.getColor(context!!, R.color.verdnatura_red))
|
expeditionPalletRutas.setTextColor(ContextCompat.getColor(context!!, R.color.verdnatura_red))
|
||||||
}else {
|
}else {
|
||||||
expeditionPalletRutas.setTextColor(ContextCompat.getColor(context!!, R.color.verdnatura_white))
|
expeditionPalletRutas.setTextColor(ContextCompat.getColor(context!!, R.color.verdnatura_white))
|
||||||
|
|
|
@ -21,7 +21,7 @@ class CmrExpeditionPalletViewModel(val context: Context) : BaseViewModel(context
|
||||||
|
|
||||||
fun cmrExpeditionPallet_add(vExpeditionPallet: Int, cmrFk: Int) {
|
fun cmrExpeditionPallet_add(vExpeditionPallet: Int, cmrFk: Int) {
|
||||||
silex.cmrExpeditionPallet_add(vExpeditionPallet, cmrFk)
|
silex.cmrExpeditionPallet_add(vExpeditionPallet, cmrFk)
|
||||||
.enqueue(object : SilexCallback<Void>(context) {
|
.enqueue(object : SilexCallback<Unit>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_responsescan.value = ResponseItemVO(
|
_responsescan.value = ResponseItemVO(
|
||||||
isError = true,
|
isError = true,
|
||||||
|
@ -29,7 +29,7 @@ class CmrExpeditionPalletViewModel(val context: Context) : BaseViewModel(context
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Void>) {
|
override fun onSuccess(response: Response<Unit>) {
|
||||||
|
|
||||||
_responsescan.value =
|
_responsescan.value =
|
||||||
ResponseItemVO(isError = false, response = response.message()!!)
|
ResponseItemVO(isError = false, response = response.message()!!)
|
||||||
|
|
|
@ -56,7 +56,7 @@ class ExpeditionPalletDetailFragment(
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
binding.splashProgress.visibility = View.VISIBLE
|
||||||
ma.hideBottomNavigation(View.GONE)
|
ma.hideBottomNavigation(View.GONE)
|
||||||
binding.mainToolbar.toolbarTitle.text =
|
binding.mainToolbar.toolbarTitle.text =
|
||||||
getCURDATE(itemExpeditionTruckVO!!.ETD) + " " + if (itemExpeditionTruckVO!!.Destino.isNullOrEmpty()) {
|
itemExpeditionTruckVO!!.ETD.toString() + " " + if (itemExpeditionTruckVO!!.Destino.isNullOrEmpty()) {
|
||||||
|
|
||||||
itemExpeditionTruckVO!!.description
|
itemExpeditionTruckVO!!.description
|
||||||
}else{
|
}else{
|
||||||
|
|
|
@ -116,7 +116,7 @@ class ExpeditionPalletDetailViewModel(var context: Context) : BaseViewModel(cont
|
||||||
vStateCode: String,
|
vStateCode: String,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
silex.expeditionState_addByPallet(vPalletFk, vStateCode).enqueue(object : SilexCallback<Void>(context) {
|
silex.expeditionState_addByPallet(vPalletFk, vStateCode).enqueue(object : SilexCallback<Unit>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
|
|
||||||
_response.value = ResponseItemVO(
|
_response.value = ResponseItemVO(
|
||||||
|
@ -125,7 +125,7 @@ class ExpeditionPalletDetailViewModel(var context: Context) : BaseViewModel(cont
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Void>) {
|
override fun onSuccess(response: Response<Unit>) {
|
||||||
_response.value = ResponseItemVO(isError = false, response = response.message())
|
_response.value = ResponseItemVO(isError = false, response = response.message())
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ExpeditionPalletFragment(
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
binding.splashProgress.visibility = View.VISIBLE
|
||||||
ma.hideBottomNavigation(View.GONE)
|
ma.hideBottomNavigation(View.GONE)
|
||||||
binding.mainToolbar.toolbarTitle.text =
|
binding.mainToolbar.toolbarTitle.text =
|
||||||
getCURDATE(itemExpeditionTruckVO!!.ETD) + " " + if (itemExpeditionTruckVO!!.Destino.isNullOrBlank()) {
|
itemExpeditionTruckVO!!.ETD.toString() + " " + if (itemExpeditionTruckVO!!.Destino.isNullOrBlank()) {
|
||||||
itemExpeditionTruckVO!!.description
|
itemExpeditionTruckVO!!.description
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
|
@ -73,7 +73,7 @@ class ExpeditionScanFragment(
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
binding.splashProgress.visibility = View.VISIBLE
|
||||||
ma.hideBottomNavigation(View.GONE)
|
ma.hideBottomNavigation(View.GONE)
|
||||||
binding.mainToolbar.toolbarTitle.text =
|
binding.mainToolbar.toolbarTitle.text =
|
||||||
getCURDATE(itemExpeditionTruckVO!!.ETD) + " " + if (itemExpeditionTruckVO!!.Destino.isNullOrBlank()) {
|
itemExpeditionTruckVO!!.ETD.toString() + " " + if (itemExpeditionTruckVO!!.Destino.isNullOrBlank()) {
|
||||||
itemExpeditionTruckVO!!.description
|
itemExpeditionTruckVO!!.description
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
|
@ -42,11 +42,11 @@ class ExpeditionScanSorterFragment(
|
||||||
binding.mainToolbar.toolbarTitle.text = title
|
binding.mainToolbar.toolbarTitle.text = title
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun expeditionscan(ExpeditionScan: String) {
|
private fun expeditionscan(expeditionScan: String) {
|
||||||
|
|
||||||
binding.splashProgress.visibility = VISIBLE
|
binding.splashProgress.visibility = VISIBLE
|
||||||
viewModel.expedition_scan(ExpeditionScan)
|
viewModel.expedition_scan(expeditionScan)
|
||||||
itemScaned = ExpeditionScan
|
itemScaned = expeditionScan
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,8 @@ class ExpeditionScanSorterViewModel(val context: Context) : BaseViewModel(contex
|
||||||
|
|
||||||
fun expedition_scan(vExpeditionId: String) {
|
fun expedition_scan(vExpeditionId: String) {
|
||||||
silex.expedition_scan(vExpeditionId)
|
silex.expedition_scan(vExpeditionId)
|
||||||
.enqueue(object : Callback<Void> {
|
.enqueue(object : Callback<Unit> {
|
||||||
override fun onFailure(call: Call<Void>, t: Throwable) {
|
override fun onFailure(call: Call<Unit>, t: Throwable) {
|
||||||
|
|
||||||
_responsescan.value = ResponseItemVO(
|
_responsescan.value = ResponseItemVO(
|
||||||
isError = true,
|
isError = true,
|
||||||
|
@ -29,7 +29,7 @@ class ExpeditionScanSorterViewModel(val context: Context) : BaseViewModel(contex
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onResponse(call: Call<Void>, response: Response<Void>) {
|
override fun onResponse(call: Call<Unit>, response: Response<Unit>) {
|
||||||
|
|
||||||
if (!response.isSuccessful) {
|
if (!response.isSuccessful) {
|
||||||
_responsescan.value = ResponseItemVO(
|
_responsescan.value = ResponseItemVO(
|
||||||
|
|
|
@ -34,7 +34,7 @@ class ExpeditionTruckListFragment : BaseFragment<FragmentExpeditionTruckListBin
|
||||||
private var onTruckClickListener: OnTruckClickListener? = null
|
private var onTruckClickListener: OnTruckClickListener? = null
|
||||||
|
|
||||||
|
|
||||||
companion object {//similar a static en Java
|
companion object {
|
||||||
fun newInstance() = ExpeditionTruckListFragment()
|
fun newInstance() = ExpeditionTruckListFragment()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,7 +119,6 @@ class ExpeditionTruckListFragment : BaseFragment<FragmentExpeditionTruckListBin
|
||||||
adapter = ExpeditionListAdapter(it.list,onTruckClickListener!!)
|
adapter = ExpeditionListAdapter(it.list,onTruckClickListener!!)
|
||||||
binding.expeditionTruckRecyclerview.adapter = adapter
|
binding.expeditionTruckRecyclerview.adapter = adapter
|
||||||
binding.expeditionTruckRecyclerview.layoutManager = lm
|
binding.expeditionTruckRecyclerview.layoutManager = lm
|
||||||
////Log.i("VERDNATURA:","2-Rellenamos adapter")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequiresApi(Build.VERSION_CODES.O)
|
@RequiresApi(Build.VERSION_CODES.O)
|
||||||
|
|
|
@ -32,7 +32,7 @@ class PalletScanViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
vPalletId,
|
vPalletId,
|
||||||
vStatePallet
|
vStatePallet
|
||||||
)
|
)
|
||||||
.enqueue(object : SilexCallback<Void>(context) {
|
.enqueue(object : SilexCallback<Unit>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
|
|
||||||
_responseScan.value = ResponseItemVO(
|
_responseScan.value = ResponseItemVO(
|
||||||
|
@ -41,7 +41,7 @@ class PalletScanViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Void>) {
|
override fun onSuccess(response: Response<Unit>) {
|
||||||
|
|
||||||
_responseScan.value =
|
_responseScan.value =
|
||||||
ResponseItemVO(isError = false, response = response.message()!!)
|
ResponseItemVO(isError = false, response = response.message()!!)
|
||||||
|
|
|
@ -2,8 +2,8 @@ package es.verdnatura.presentation.view.feature.paletizador.model
|
||||||
|
|
||||||
class ItemPalletVO(
|
class ItemPalletVO(
|
||||||
var Pallet:Int,
|
var Pallet:Int,
|
||||||
var Rutas:String = "",
|
var Rutas:Int =0,
|
||||||
var Eti:String = "",
|
var Eti:Int = 0,
|
||||||
var isError: Boolean = false,
|
var isError: Boolean = false,
|
||||||
var errorMessage: String = ""
|
var errorMessage: String = ""
|
||||||
|
|
||||||
|
@ -15,9 +15,9 @@ class ItemPalletListVO(
|
||||||
|
|
||||||
|
|
||||||
class ItemPalletViewVO(
|
class ItemPalletViewVO(
|
||||||
var Pallet:String = "",
|
var Pallet:Int = 0,
|
||||||
var Rutas:String = "",
|
var Rutas:Int = 0,
|
||||||
var Cajas:String = "",
|
var Cajas:Int = 0,
|
||||||
var isError: Boolean = false,
|
var isError: Boolean = false,
|
||||||
var errorMessage: String = ""
|
var errorMessage: String = ""
|
||||||
)
|
)
|
||||||
|
|
|
@ -13,10 +13,10 @@ class ItemScanList(
|
||||||
|
|
||||||
class ItemExpeditionScanVO(
|
class ItemExpeditionScanVO(
|
||||||
var id:Int,
|
var id:Int,
|
||||||
var expeditionFk:String = "",
|
var expeditionFk:Int = 0,
|
||||||
var Ruta:String = "",
|
var Ruta:Int = 0,
|
||||||
var Ticket:String = "",
|
var Ticket:Int= 0,
|
||||||
var Caja:String = "",
|
var Caja:Int = 0,
|
||||||
var isError:Boolean = false,
|
var isError:Boolean = false,
|
||||||
var errorMessage:String = ""
|
var errorMessage:String = ""
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,7 +5,6 @@ import android.graphics.drawable.Drawable
|
||||||
import android.media.MediaPlayer
|
import android.media.MediaPlayer
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.util.Log.d
|
|
||||||
import android.view.KeyEvent
|
import android.view.KeyEvent
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.View.GONE
|
import android.view.View.GONE
|
||||||
|
@ -282,16 +281,6 @@ class EndSacadorFragment(
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
/* responseMissingTrash.observe(viewLifecycleOwner, Observer {
|
|
||||||
|
|
||||||
if (it.isError) {
|
|
||||||
ma.messageWithSound(it.errorMessage, isError = true, true)
|
|
||||||
|
|
||||||
} else {
|
|
||||||
missingTrashSuccesful()
|
|
||||||
setTotalLines()
|
|
||||||
}
|
|
||||||
})*/
|
|
||||||
|
|
||||||
responseSaleGroupAdd.observe(viewLifecycleOwner, Observer {
|
responseSaleGroupAdd.observe(viewLifecycleOwner, Observer {
|
||||||
binding.splashProgress.visibility = GONE
|
binding.splashProgress.visibility = GONE
|
||||||
|
@ -476,82 +465,6 @@ class EndSacadorFragment(
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private fun missingTrashSuccesful() {
|
|
||||||
|
|
||||||
var totalQuantity: Int = 0
|
|
||||||
try {
|
|
||||||
totalQuantity =
|
|
||||||
sales[positionCollectionMissing].saldo.toInt() - quantityCollectionMissing.toInt()
|
|
||||||
} catch (e: Exception) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
|
||||||
sales[positionCollectionMissing].saldo = quantityCollectionMissing.toInt()
|
|
||||||
} catch (e: Exception) {
|
|
||||||
sales[positionCollectionMissing].saldo = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
if (quantityCollectionMissing == 0)
|
|
||||||
markLine(positionCollectionMissing)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
saleAdapter!!.notifyDataSetChanged()
|
|
||||||
|
|
||||||
|
|
||||||
/* var message = ""
|
|
||||||
|
|
||||||
val ticket =
|
|
||||||
"[" + sales[positionCollectionMissing].id + "](https://salix.verdnatura.es/#!/ticket/" + sales[positionCollectionMissing].id + "/summary)"
|
|
||||||
|
|
||||||
when (typeCollectionMissing) {
|
|
||||||
|
|
||||||
"TRUE" -> {
|
|
||||||
message =
|
|
||||||
getString(R.string.sentToTrashPrevious) + totalQuantity + getString(R.string.fromItem) + sales[positionCollectionMissing].itemFk + getString(
|
|
||||||
R.string.ticketSpaces
|
|
||||||
) + ticket
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
"FALSE" -> {
|
|
||||||
message =
|
|
||||||
getString(R.string.sentToTrashFaults) + totalQuantity + getString(R.string.fromItem) + sales[positionCollectionMissing].itemFk + getString(
|
|
||||||
R.string.ticketSpaces
|
|
||||||
) + ticket
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
"reject" -> {
|
|
||||||
var quantityOriginal = totalQuantity.toInt() + quantityCollectionMissing.toInt()
|
|
||||||
message =
|
|
||||||
getString(R.string.modifiedQuantityPrevious) + quantityOriginal + getString(R.string.fromItem) + sales[positionCollectionMissing].itemFk + getString(
|
|
||||||
R.string.toNewQuantity
|
|
||||||
) + quantityCollectionMissing + getString(R.string.fromTicket) + ticket
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sendSalixMessageNew(message, sales[positionCollectionMissing].salesPersonFk)*/
|
|
||||||
searchSaleCollection()
|
|
||||||
}
|
|
||||||
|
|
||||||
/* private fun sendSalixMessageNew(message: String, workerId: String) {
|
|
||||||
|
|
||||||
|
|
||||||
if (!goBack) {
|
|
||||||
|
|
||||||
if (!workerId.isNullOrEmpty())
|
|
||||||
viewModel.sendChekingPresence(
|
|
||||||
workerId = workerId,
|
|
||||||
message = message
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
//CREATE LIST
|
//CREATE LIST
|
||||||
|
|
||||||
private fun searchSaleCollection() {
|
private fun searchSaleCollection() {
|
||||||
|
@ -843,7 +756,7 @@ class EndSacadorFragment(
|
||||||
binding.splashProgress.visibility = VISIBLE
|
binding.splashProgress.visibility = VISIBLE
|
||||||
var quantityGet = 0
|
var quantityGet = 0
|
||||||
try {
|
try {
|
||||||
quantityGet = (sales[position].saldo - sales[position].picked)
|
quantityGet = (sales[position].saldo!! - sales[position].picked!!)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
viewModel.itemPlacementSupplyAiming(
|
viewModel.itemPlacementSupplyAiming(
|
||||||
|
@ -1024,7 +937,7 @@ class EndSacadorFragment(
|
||||||
//2- MODIFICAR EL PICKED DEL SALE
|
//2- MODIFICAR EL PICKED DEL SALE
|
||||||
try {
|
try {
|
||||||
sales[storedPosition].picked =
|
sales[storedPosition].picked =
|
||||||
sales[storedPosition].picked + customDialogList.getValue().toInt()
|
sales[storedPosition].picked!! + customDialogList.getValue().toInt()
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ package es.verdnatura.presentation.view.feature.presacador.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.R
|
||||||
import es.verdnatura.domain.SilexCallback
|
import es.verdnatura.domain.SilexCallback
|
||||||
import es.verdnatura.presentation.base.BaseViewModel
|
import es.verdnatura.presentation.base.BaseViewModel
|
||||||
import es.verdnatura.presentation.base.getMessageFromAllResponse
|
import es.verdnatura.presentation.base.getMessageFromAllResponse
|
||||||
|
@ -11,7 +12,6 @@ import es.verdnatura.presentation.common.ResponseItemVO
|
||||||
import es.verdnatura.presentation.view.feature.collection.SalixSaleQuantity
|
import es.verdnatura.presentation.view.feature.collection.SalixSaleQuantity
|
||||||
import es.verdnatura.presentation.view.feature.collection.listSaleSalix
|
import es.verdnatura.presentation.view.feature.collection.listSaleSalix
|
||||||
import es.verdnatura.presentation.view.feature.collection.saleSalix
|
import es.verdnatura.presentation.view.feature.collection.saleSalix
|
||||||
import es.verdnatura.presentation.view.feature.login.model.SalixMessageVO
|
|
||||||
import es.verdnatura.presentation.view.feature.presacador.model.PreSacadorItemVO
|
import es.verdnatura.presentation.view.feature.presacador.model.PreSacadorItemVO
|
||||||
import es.verdnatura.presentation.view.feature.sacador.mapper.toDateFormat
|
import es.verdnatura.presentation.view.feature.sacador.mapper.toDateFormat
|
||||||
import es.verdnatura.presentation.view.feature.sacador.model.CollectionListVO
|
import es.verdnatura.presentation.view.feature.sacador.model.CollectionListVO
|
||||||
|
@ -223,8 +223,8 @@ class PreSacadorViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getIdFromCode(code: String) {
|
fun getIdFromCode(code: String) {
|
||||||
silex.getIdFromCode(code)
|
salix.barcodes_toitem(code)
|
||||||
.enqueue(object : SilexCallback<String>(context) {
|
.enqueue(object : SilexCallback<String?>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_responseCode.value = ResponseItemVO(
|
_responseCode.value = ResponseItemVO(
|
||||||
isError = true,
|
isError = true,
|
||||||
|
@ -232,20 +232,18 @@ class PreSacadorViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<String>) {
|
override fun onSuccess(response: Response<String?>) {
|
||||||
|
|
||||||
//sergio: espera item en el body
|
//sergio: espera item en el body
|
||||||
if (response.body() == null) {
|
if (response.body() == null) {
|
||||||
_responseCode.value = ResponseItemVO(
|
_responseCode.value = ResponseItemVO(
|
||||||
isError = true,
|
isError = true,
|
||||||
errorMessage = getMessageFromAllResponse(
|
errorMessage = context.getString(R.string.itemNotValid)
|
||||||
nameofFunction(this),
|
|
||||||
response.message()
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
_responseCode.value =
|
_responseCode.value =
|
||||||
ResponseItemVO(isError = false, response = response.body()!!)
|
ResponseItemVO(isError = false, response = response.body()!!.toString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,36 +1,22 @@
|
||||||
package es.verdnatura.presentation.view.feature.reubication.adapter
|
package es.verdnatura.presentation.view.feature.reubication.adapter
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.graphics.BlendMode
|
|
||||||
import android.graphics.BlendModeColorFilter
|
|
||||||
import android.graphics.Color
|
|
||||||
import android.graphics.PorterDuff
|
|
||||||
import android.os.Build
|
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.core.content.ContextCompat.getColor
|
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import es.verdnatura.R
|
import es.verdnatura.R
|
||||||
import es.verdnatura.databinding.ItemArticleRowFragmentBinding
|
|
||||||
import es.verdnatura.databinding.ItemArticleRowReubicationFragmentBinding
|
import es.verdnatura.databinding.ItemArticleRowReubicationFragmentBinding
|
||||||
import es.verdnatura.presentation.common.*
|
import es.verdnatura.presentation.common.OnPasillerosItemClickListener
|
||||||
import es.verdnatura.presentation.view.feature.collection.adapter.PlacementAdapter
|
import es.verdnatura.presentation.common.OnReubicationClickListener
|
||||||
import es.verdnatura.presentation.view.feature.pasillero.model.PasillerosItemVO
|
import es.verdnatura.presentation.view.feature.pasillero.model.PasillerosItemVO
|
||||||
import es.verdnatura.presentation.view.feature.reubication.model.PlacementReubication
|
|
||||||
import es.verdnatura.presentation.view.feature.reubication.model.Reubication
|
import es.verdnatura.presentation.view.feature.reubication.model.Reubication
|
||||||
import es.verdnatura.presentation.view.feature.sacador.model.SaleVO
|
|
||||||
|
|
||||||
|
|
||||||
class ReubicatorAdapter(
|
class ReubicatorAdapter(
|
||||||
private val items: List<Reubication>,
|
private val items: List<Reubication>,
|
||||||
private val onPasillerosItemClickListener: OnPasillerosItemClickListener,
|
private val onPasillerosItemClickListener: OnPasillerosItemClickListener,
|
||||||
private val onReubicationClickListener: OnReubicationClickListener
|
private val onReubicationClickListener: OnReubicationClickListener
|
||||||
/*private val onQuantityClick: OnQuantityClickListener,
|
|
||||||
private val onSaleClickListener: OnSaleClickListener,
|
|
||||||
private val onMistakeClickListener: OnMistakeClickListener,
|
|
||||||
private val onPackingClick: onPackingClickListener,*/
|
|
||||||
) : RecyclerView.Adapter<ReubicatorAdapter.AjustesItemHolder>() {
|
) : RecyclerView.Adapter<ReubicatorAdapter.AjustesItemHolder>() {
|
||||||
var context: Context? = null
|
var context: Context? = null
|
||||||
var position: Int = 0
|
var position: Int = 0
|
||||||
|
@ -63,208 +49,25 @@ class ReubicatorAdapter(
|
||||||
onPasillerosItemClickListener.onPasillerosItemClickListener(
|
onPasillerosItemClickListener.onPasillerosItemClickListener(
|
||||||
PasillerosItemVO(
|
PasillerosItemVO(
|
||||||
title = binding.root.context.getString(R.string.titleItemConsult)
|
title = binding.root.context.getString(R.string.titleItemConsult)
|
||||||
), reubication.itemFk
|
), reubication.itemFk.toString()
|
||||||
)}
|
)
|
||||||
|
}
|
||||||
contentLayout.setOnClickListener {
|
contentLayout.setOnClickListener {
|
||||||
onReubicationClickListener.onReubicationClick(reubication)
|
onReubicationClickListener.onReubicationClick(reubication)
|
||||||
}
|
}
|
||||||
/* if (sale.pickedQuantity.isNullOrEmpty())
|
|
||||||
sale.pickedQuantity = "0"
|
|
||||||
*/
|
|
||||||
val childLayoutManager =
|
val childLayoutManager =
|
||||||
LinearLayoutManager(context!!, RecyclerView.HORIZONTAL, false)
|
LinearLayoutManager(context!!, RecyclerView.HORIZONTAL, false)
|
||||||
|
|
||||||
itemArticlePlacements.apply {
|
itemArticlePlacements.apply {
|
||||||
layoutManager = childLayoutManager
|
layoutManager = childLayoutManager
|
||||||
adapter = reubication.carros.let { ReubicatorPlacementAdapter(it, onPasillerosItemClickListener) }
|
adapter = reubication.carros.let {
|
||||||
}
|
ReubicatorPlacementAdapter(
|
||||||
|
it,
|
||||||
//CLICK EVENTS
|
onPasillerosItemClickListener
|
||||||
/*
|
|
||||||
|
|
||||||
itemArticleItemFk.setOnClickListener {
|
|
||||||
onPasillerosItemClickListener.onPasillerosItemClickListener(
|
|
||||||
PasillerosItemVO(
|
|
||||||
title = binding.root.context.getString(R.string.titleItemConsult)
|
|
||||||
), sale.itemFk
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
itemPackingItemFk.setOnClickListener {
|
|
||||||
onPackingClick.onPackingClick(sale)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
itemArticleQuantity.setOnClickListener {
|
|
||||||
onQuantityClick.onQuantityClick(sale)
|
|
||||||
}
|
|
||||||
|
|
||||||
itemArticleQuantityPicked.setOnClickListener {
|
|
||||||
onQuantityClick.onQuantityClick(sale)
|
|
||||||
}
|
|
||||||
|
|
||||||
txtde.setOnClickListener {
|
|
||||||
onQuantityClick.onQuantityClick(sale)
|
|
||||||
}*/
|
|
||||||
|
|
||||||
contentLayout.setOnLongClickListener {
|
|
||||||
//"Nueva funcionalidad en el icono de la derecha".toast(context!!)
|
|
||||||
//onMistakeClickListener.onMistakeClickListener(sale)
|
|
||||||
false
|
|
||||||
}
|
|
||||||
|
|
||||||
/*itemRowLayout.setOnLongClickListener{
|
|
||||||
onMistakeClickListener.onMistakeClickListener(sale)
|
|
||||||
false
|
|
||||||
}*/
|
|
||||||
/* imageErrorMessage.setOnClickListener {
|
|
||||||
onMistakeClickListener.onMistakeClickListener(sale)
|
|
||||||
false
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//ERROR
|
|
||||||
if (sale.originalQuantity != sale.quantity) {
|
|
||||||
layoutError.visibility = View.VISIBLE
|
|
||||||
txtError.text = binding.root.context.getString(R.string.originalQuantity) + sale.originalQuantity
|
|
||||||
if (sale.isPrepared == "1" || sale.isControlled == "1")
|
|
||||||
sale.pickedQuantity = sale.quantity
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sale.isNew) {
|
|
||||||
layoutError.visibility = View.VISIBLE
|
|
||||||
txtError.text = binding.root.context.getString(R.string.newItem)
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// paintTicketcolor(sale.level, itemTicketColor)
|
|
||||||
// paintTicketcolor(sale.color, itemColor)
|
|
||||||
|
|
||||||
|
|
||||||
if (!sale.isNew && sale.originalQuantity == sale.quantity) {
|
|
||||||
layoutError.visibility = View.GONE
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
//SEMAFORO
|
|
||||||
/* if (sale.isPreviousPrepared == "1") {
|
|
||||||
itemArticleRowSemaforoPre.setBackgroundColor(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
R.color.verdnatura_dark_sky_blue
|
|
||||||
)
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
itemArticleRowSemaforoPre.setBackgroundColor(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
R.color.verdnatura_warm_grey
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sale.isPrepared == "1") {
|
|
||||||
itemArticleRowSemaforoSac.setBackgroundColor(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
R.color.verdnatura_pumpkin_orange
|
|
||||||
)
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
itemArticleRowSemaforoSac.setBackgroundColor(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
R.color.verdnatura_warm_grey
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (sale.isControlled == "1") {
|
|
||||||
itemArticleRowSemaforoCon.setBackgroundColor(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
R.color.verdnatura_dark_mint
|
|
||||||
)
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
itemArticleRowSemaforoCon.setBackgroundColor(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
R.color.verdnatura_warm_grey
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (sale.isControlled == "1") {
|
|
||||||
contentLayout.setBackgroundColor(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
R.color.verdnatura_dark_mint
|
|
||||||
)
|
|
||||||
)
|
|
||||||
} else if (sale.isPrepared == "1") {
|
|
||||||
contentLayout.setBackgroundColor(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
R.color.verdnatura_pumpkin_orange
|
|
||||||
)
|
|
||||||
)
|
|
||||||
} *//*else if (sale.isPreviousPrepared == "1") {
|
|
||||||
contentLayout.setBackgroundColor(
|
|
||||||
getColor(
|
|
||||||
context!!,
|
|
||||||
R.color.verdnatura_dark_sky_blue
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}*//* else if (sale.isPreControlled == "1") {
|
|
||||||
|
|
||||||
contentLayout.setBackgroundColor(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
R.color.verdnatura_dark_mint_light_precontrolled
|
|
||||||
)
|
|
||||||
)
|
|
||||||
itemArticleRowSemaforoCon.setBackgroundColor(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
R.color.verdnatura_dark_mint_light_precontrolled
|
|
||||||
)
|
|
||||||
)
|
|
||||||
} else if (sale.isPreviousPrepared == "1") {
|
|
||||||
contentLayout.setBackgroundColor(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
R.color.verdnatura_dark_sky_blue
|
|
||||||
)
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
contentLayout.setBackgroundColor(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
R.color.verdnatura_black
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//sergio: para de momento que pinten las lineas sin actualizar ni nada
|
|
||||||
if (sale.isControlled == "2") {
|
|
||||||
itemArticleRowSemaforoCon.setBackgroundColor(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
R.color.verdnatura_white
|
|
||||||
)
|
|
||||||
)
|
|
||||||
contentLayout.setBackgroundColor(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
R.color.verdnatura_dark_mint_light
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}*/
|
|
||||||
|
|
||||||
|
|
||||||
//ASIGNAMOS VALOR A LA VSITA
|
//ASIGNAMOS VALOR A LA VSITA
|
||||||
this.reubication = reubication
|
this.reubication = reubication
|
||||||
|
@ -274,182 +77,4 @@ class ReubicatorAdapter(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* private fun paintTicketcolor(color: String, itemView: View) {
|
|
||||||
|
|
||||||
|
|
||||||
when (color.uppercase().trim()) {
|
|
||||||
"ROJO" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(Color.RED, BlendMode.SRC_ATOP)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(Color.RED, PorterDuff.Mode.SRC_ATOP)
|
|
||||||
}
|
|
||||||
// itemView.background.setColorFilter(Color.RED, PorterDuff.Mode.SRC_ATOP)
|
|
||||||
|
|
||||||
"AMARILLO" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(Color.YELLOW, BlendMode.SRC_ATOP)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(Color.YELLOW, PorterDuff.Mode.SRC_ATOP)
|
|
||||||
}
|
|
||||||
"VERDE" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(Color.GREEN, BlendMode.SRC_ATOP)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(Color.GREEN, PorterDuff.Mode.SRC_ATOP)
|
|
||||||
}
|
|
||||||
"AZUL" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(Color.BLUE, BlendMode.SRC_ATOP)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(Color.BLUE, PorterDuff.Mode.SRC_ATOP)
|
|
||||||
}
|
|
||||||
"BLANCO" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(Color.WHITE, BlendMode.SRC_ATOP)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(Color.WHITE, PorterDuff.Mode.SRC_ATOP)
|
|
||||||
}
|
|
||||||
// "NEGRO"-> itemView.setBackgroundResource((R.drawable.rectangle))
|
|
||||||
|
|
||||||
"NEGRO" -> {
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(Color.BLACK, BlendMode.SRC_ATOP)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(Color.BLACK, PorterDuff.Mode.SRC_ATOP)
|
|
||||||
}
|
|
||||||
|
|
||||||
itemView.setBackgroundResource((R.drawable.border))
|
|
||||||
}
|
|
||||||
"VIOLETA" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(0xFF4c2882.toInt(), BlendMode.SRC_ATOP)
|
|
||||||
// BlendModeColorFilter(Color.YELLOW, BlendMode.SRC_ATOP)
|
|
||||||
//Log.d("VERDNATURA::", "EL COLOR ES " + color)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(0xFF4c2882.toInt(), PorterDuff.Mode.SRC_ATOP)
|
|
||||||
}
|
|
||||||
|
|
||||||
"GRIS" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(Color.GRAY, BlendMode.SRC_ATOP)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(Color.GRAY, PorterDuff.Mode.SRC_ATOP)
|
|
||||||
}
|
|
||||||
"ORANGE" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
android.R.color.holo_orange_light
|
|
||||||
), BlendMode.SRC_ATOP
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
android.R.color.holo_orange_light
|
|
||||||
), PorterDuff.Mode.SRC_ATOP
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
"MORADO" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
android.R.color.holo_purple
|
|
||||||
), BlendMode.SRC_ATOP
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(
|
|
||||||
ContextCompat.getColor(
|
|
||||||
context!!,
|
|
||||||
android.R.color.holo_purple
|
|
||||||
), PorterDuff.Mode.SRC_ATOP
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
"CELESTE" ->if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(0xFF5b85F5.toInt(), BlendMode.SRC_ATOP)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
"ROSA" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(0xFFfc0fc0.toInt(), BlendMode.SRC_ATOP)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(
|
|
||||||
0xFFfc0fc0.toInt(),
|
|
||||||
PorterDuff.Mode.SRC_ATOP
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
"DORADO" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(0xFFb8860b.toInt(), BlendMode.SRC_ATOP)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(
|
|
||||||
0xFFb8860b.toInt(),
|
|
||||||
PorterDuff.Mode.SRC_ATOP
|
|
||||||
)
|
|
||||||
}
|
|
||||||
"MARRON" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(0xFF663300.toInt(), BlendMode.SRC_ATOP)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(
|
|
||||||
0xFF663300.toInt(),
|
|
||||||
PorterDuff.Mode.SRC_ATOP
|
|
||||||
)
|
|
||||||
}
|
|
||||||
"PERLA" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(0xFFcdcecf.toInt(), BlendMode.SRC_ATOP)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(
|
|
||||||
0xFFcdcecf.toInt(),
|
|
||||||
PorterDuff.Mode.SRC_ATOP
|
|
||||||
)
|
|
||||||
}
|
|
||||||
"MARFIL" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(0xFFf7eada.toInt(), BlendMode.SRC_ATOP)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(
|
|
||||||
0xFFf7eada.toInt(),
|
|
||||||
PorterDuff.Mode.SRC_ATOP
|
|
||||||
)
|
|
||||||
}
|
|
||||||
"CIAN" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(0xFF00ffff.toInt(), BlendMode.SRC_ATOP)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(
|
|
||||||
0xFF00ffff.toInt(),
|
|
||||||
PorterDuff.Mode.SRC_ATOP
|
|
||||||
)
|
|
||||||
}
|
|
||||||
"BEIGE" -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
itemView.background.colorFilter =
|
|
||||||
BlendModeColorFilter(0xFFf2e7bf.toInt(), BlendMode.SRC_ATOP)
|
|
||||||
} else {
|
|
||||||
itemView.background.setColorFilter(
|
|
||||||
0xFFf2e7bf.toInt(),
|
|
||||||
PorterDuff.Mode.SRC_ATOP
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
else -> {
|
|
||||||
// itemView.setBackgroundColor(Color.TRANSPARENT)
|
|
||||||
//itemView.setBackgroundResource(R.drawable.background_item_color)
|
|
||||||
// itemView.visibility=View.INVISIBLE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// itemTicketColor.setBackgroundResource((R.drawable.rectangle))
|
|
||||||
|
|
||||||
|
|
||||||
}*/
|
|
||||||
}
|
}
|
|
@ -18,8 +18,6 @@ import es.verdnatura.presentation.view.feature.reubication.adapter.ReubicatorAda
|
||||||
import es.verdnatura.presentation.view.feature.reubication.model.Reubication
|
import es.verdnatura.presentation.view.feature.reubication.model.Reubication
|
||||||
import es.verdnatura.presentation.view.feature.ubicador.fragment.UbicadorViewModel
|
import es.verdnatura.presentation.view.feature.ubicador.fragment.UbicadorViewModel
|
||||||
|
|
||||||
|
|
||||||
//Tarea #3754
|
|
||||||
@Suppress("UNUSED_ANONYMOUS_PARAMETER")
|
@Suppress("UNUSED_ANONYMOUS_PARAMETER")
|
||||||
class ReubicationCollectionFragment(
|
class ReubicationCollectionFragment(
|
||||||
var list: MutableList<Reubication>,
|
var list: MutableList<Reubication>,
|
||||||
|
@ -53,45 +51,34 @@ class ReubicationCollectionFragment(
|
||||||
|
|
||||||
@SuppressLint("SetTextI18n")
|
@SuppressLint("SetTextI18n")
|
||||||
override fun init() {
|
override fun init() {
|
||||||
// customDialogThreeButtons = CustomDialogThreeButtons(requireContext())
|
|
||||||
customDialogInputTwoValues = CustomDialogInputTwoValues(requireContext())
|
customDialogInputTwoValues = CustomDialogInputTwoValues(requireContext())
|
||||||
ma.hideBottomNavigation(GONE)
|
ma.hideBottomNavigation(GONE)
|
||||||
binding.splashProgress.visibility = GONE
|
binding.splashProgress.visibility = GONE
|
||||||
binding.mainToolbar.toolbarTitle.text =
|
binding.mainToolbar.toolbarTitle.text =
|
||||||
"${getString(R.string.wagoon)}:${shelving.uppercase()}"
|
"${getString(R.string.wagoon)}:${shelving.uppercase()}"
|
||||||
setEvents()
|
setEvents()
|
||||||
|
showList(list)
|
||||||
showList(list.sortedBy { it.pickingOrder } as MutableList<Reubication>)
|
|
||||||
super.init()
|
super.init()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun showList(list: List<Reubication>) {
|
||||||
private fun showList(list: MutableList<Reubication>) {
|
|
||||||
|
|
||||||
//sergio:ponemos paréntesis y la matrícula
|
|
||||||
//sergio: mirar de ordenar no solo por el picking order de un elemento si no de todos*/
|
|
||||||
|
|
||||||
for (item in list) {
|
for (item in list) {
|
||||||
item.code = shelving.uppercase()
|
item.code = shelving.uppercase()
|
||||||
for (i in item.carros) {
|
for (i in item.carros) {
|
||||||
i.visible = "(" + i.visible + ")"
|
i.visible = "(" + i.visible + ")"
|
||||||
}
|
}
|
||||||
if (item.carros.size == 0) {
|
|
||||||
item.pickingOrder = 0
|
|
||||||
} else {
|
|
||||||
item.pickingOrder = item.carros[0].pickingOrder
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
adapter = ReubicatorAdapter(list.sortedBy { it.pickingOrder },
|
adapter = ReubicatorAdapter(list.sortedWith(compareBy { item ->
|
||||||
|
item.carros.getOrNull(0)?.pickingOrder ?: 0
|
||||||
|
}),
|
||||||
pasillerosItemClickListener!!,
|
pasillerosItemClickListener!!,
|
||||||
object :
|
object :
|
||||||
OnReubicationClickListener {
|
OnReubicationClickListener {
|
||||||
override fun onReubicationClick(reubication: Reubication) {
|
override fun onReubicationClick(reubication: Reubication) {
|
||||||
//binding.splashProgress.visibility = VISIBLE
|
|
||||||
showLeaveItemDialog(reubication)
|
showLeaveItemDialog(reubication)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
@ -174,7 +161,7 @@ class ReubicationCollectionFragment(
|
||||||
customDialogInputTwoValues.setInfoTextTwo(getString(R.string.shelving))
|
customDialogInputTwoValues.setInfoTextTwo(getString(R.string.shelving))
|
||||||
|
|
||||||
customDialogInputTwoValues.setDescription(messageDescrip)
|
customDialogInputTwoValues.setDescription(messageDescrip)
|
||||||
.setValue(itemReubication.quantity)
|
.setValue(itemReubication.quantity.toString())
|
||||||
.setOkButton(getString(R.string.leaveItem)) {
|
.setOkButton(getString(R.string.leaveItem)) {
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
package es.verdnatura.presentation.view.feature.shelvingparking.adapter
|
|
||||||
|
|
||||||
import android.view.LayoutInflater
|
|
||||||
import android.view.ViewGroup
|
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
|
||||||
import es.verdnatura.databinding.ItemShelvingparkingRowBinding
|
|
||||||
import es.verdnatura.presentation.view.feature.shelvingparking.model.ItemShelvingParkingVO
|
|
||||||
|
|
||||||
class ShelvingParkingAdapter (
|
|
||||||
private val items: List<ItemShelvingParkingVO>
|
|
||||||
): RecyclerView.Adapter<ShelvingParkingAdapter.ItemHolder> () {
|
|
||||||
|
|
||||||
|
|
||||||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ItemHolder {
|
|
||||||
return ItemHolder(
|
|
||||||
ItemShelvingparkingRowBinding.inflate(LayoutInflater.from(parent.context),parent,false)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun getItemCount() =items.size
|
|
||||||
|
|
||||||
override fun onBindViewHolder(holder: ItemHolder, position: Int) {
|
|
||||||
holder.bind(items[position])
|
|
||||||
}
|
|
||||||
|
|
||||||
inner class ItemHolder(
|
|
||||||
val binding: ItemShelvingparkingRowBinding
|
|
||||||
) : RecyclerView.ViewHolder(binding.root){
|
|
||||||
private val res = binding.root.context.resources
|
|
||||||
fun bind(item: ItemShelvingParkingVO) {
|
|
||||||
binding.apply {
|
|
||||||
this.item = item
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,104 +0,0 @@
|
||||||
package es.verdnatura.presentation.view.feature.shelvingparking.fragment
|
|
||||||
|
|
||||||
|
|
||||||
import android.view.View
|
|
||||||
import android.view.inputmethod.EditorInfo
|
|
||||||
import androidx.lifecycle.Observer
|
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager
|
|
||||||
import es.verdnatura.R
|
|
||||||
import es.verdnatura.databinding.FragmentShelvingParkingBinding
|
|
||||||
import es.verdnatura.domain.notNull
|
|
||||||
import es.verdnatura.presentation.base.BaseFragment
|
|
||||||
import es.verdnatura.presentation.view.feature.shelvingparking.adapter.ShelvingParkingAdapter
|
|
||||||
|
|
||||||
|
|
||||||
@Suppress("UNUSED_ANONYMOUS_PARAMETER")
|
|
||||||
class ShelvingParkingFragment :
|
|
||||||
BaseFragment<FragmentShelvingParkingBinding, ShelvingParkingViewModel>(
|
|
||||||
ShelvingParkingViewModel::class
|
|
||||||
) {
|
|
||||||
|
|
||||||
|
|
||||||
private var adapter: ShelvingParkingAdapter? = null
|
|
||||||
|
|
||||||
companion object {
|
|
||||||
fun newInstance() = ShelvingParkingFragment()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun getLayoutId(): Int = R.layout.fragment_shelving_parking
|
|
||||||
|
|
||||||
|
|
||||||
override fun init() {
|
|
||||||
|
|
||||||
ma.hideBottomNavigation(View.GONE)
|
|
||||||
|
|
||||||
binding.mainToolbar.toolbarTitle.text = getString(R.string.shelvingParking_get)
|
|
||||||
setEvents()
|
|
||||||
super.init()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private fun setEvents() {
|
|
||||||
binding.mainToolbar.backButton.setOnClickListener {
|
|
||||||
requireActivity().onBackPressed()
|
|
||||||
}
|
|
||||||
|
|
||||||
binding.shelvingText.requestFocus()
|
|
||||||
binding.shelvingText.setOnEditorActionListener { v, actionId, event ->
|
|
||||||
if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_DONE || actionId == 0 || actionId == 5) {
|
|
||||||
if (!binding.shelvingText.text.toString().isNullOrEmpty()) {
|
|
||||||
binding.mainToolbar.toolbarTitle.text = binding.shelvingText.text.toString()
|
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
|
||||||
viewModel.shelvingParking_get(
|
|
||||||
binding.shelvingText.text.toString(),
|
|
||||||
getData(WAREHOUSEFK),
|
|
||||||
binding.dayrange.text.toString()
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
binding.shelvingText.setText("")
|
|
||||||
ma.hideKeyboard(binding.shelvingText)
|
|
||||||
return@setOnEditorActionListener true
|
|
||||||
}
|
|
||||||
|
|
||||||
return@setOnEditorActionListener false
|
|
||||||
}
|
|
||||||
|
|
||||||
binding.dayrange.setOnEditorActionListener { v, actionId, event ->
|
|
||||||
if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_DONE || actionId == 0 || actionId == 5) {
|
|
||||||
if (!binding.shelvingText.text.toString().isNullOrEmpty())
|
|
||||||
binding.splashProgress.visibility = View.VISIBLE
|
|
||||||
else
|
|
||||||
binding.shelvingText.requestFocus()
|
|
||||||
|
|
||||||
binding.mainToolbar.toolbarTitle.text = binding.shelvingText.text.toString()
|
|
||||||
viewModel.shelvingParking_get(
|
|
||||||
binding.shelvingText.text.toString(),
|
|
||||||
getData(WAREHOUSEFK),
|
|
||||||
binding.dayrange.text.toString()
|
|
||||||
)
|
|
||||||
binding.shelvingText.setText("")
|
|
||||||
ma.hideKeyboard(binding.dayrange)
|
|
||||||
return@setOnEditorActionListener true
|
|
||||||
}
|
|
||||||
|
|
||||||
return@setOnEditorActionListener false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun observeViewModel() {
|
|
||||||
with(viewModel) {
|
|
||||||
loadShelvingList.observe(viewLifecycleOwner, Observer { event ->
|
|
||||||
event.getContentIfNotHandled().notNull {
|
|
||||||
binding.splashProgress.visibility = View.GONE
|
|
||||||
adapter = ShelvingParkingAdapter(it.list)
|
|
||||||
binding.locationRecyclerview.adapter = adapter
|
|
||||||
binding.locationRecyclerview.layoutManager =
|
|
||||||
LinearLayoutManager(requireContext(), LinearLayoutManager.VERTICAL, false)
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,63 +0,0 @@
|
||||||
package es.verdnatura.presentation.view.feature.shelvingparking.fragment
|
|
||||||
|
|
||||||
import android.content.Context
|
|
||||||
import androidx.lifecycle.LiveData
|
|
||||||
import androidx.lifecycle.MutableLiveData
|
|
||||||
import androidx.lifecycle.Transformations
|
|
||||||
import es.verdnatura.domain.SilexCallback
|
|
||||||
import es.verdnatura.presentation.base.BaseViewModel
|
|
||||||
import es.verdnatura.presentation.base.getMessageFromAllResponse
|
|
||||||
import es.verdnatura.presentation.base.nameofFunction
|
|
||||||
import es.verdnatura.presentation.common.Event
|
|
||||||
import es.verdnatura.presentation.view.feature.shelvingparking.model.ItemShelvingParkingListVO
|
|
||||||
import es.verdnatura.presentation.view.feature.shelvingparking.model.ItemShelvingParkingVO
|
|
||||||
import retrofit2.Response
|
|
||||||
|
|
||||||
class ShelvingParkingViewModel(val context: Context) : BaseViewModel(context) {
|
|
||||||
|
|
||||||
private val _shelvingList by lazy { MutableLiveData<ItemShelvingParkingListVO>() }
|
|
||||||
val shelvingList: LiveData<ItemShelvingParkingListVO>
|
|
||||||
get() = _shelvingList
|
|
||||||
|
|
||||||
|
|
||||||
val loadShelvingList = Transformations.map(_shelvingList) { Event(it) }
|
|
||||||
|
|
||||||
|
|
||||||
fun shelvingParking_get(vShelvingFk: String, vWarehouseFk: String, vDayRange: String) {
|
|
||||||
silex.shelvingParking_get(vShelvingFk.uppercase(), vWarehouseFk, vDayRange).enqueue(object :
|
|
||||||
SilexCallback<List<ItemShelvingParkingVO>>(context) {
|
|
||||||
override fun onError(t: Throwable) {
|
|
||||||
val listError: ArrayList<ItemShelvingParkingVO> = ArrayList()
|
|
||||||
listError.add(
|
|
||||||
ItemShelvingParkingVO(
|
|
||||||
isError = true,
|
|
||||||
errorMessage = getMessageFromAllResponse(nameofFunction(this), t.message!!)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
_shelvingList.value = ItemShelvingParkingListVO(listError)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onSuccess(response: Response<List<ItemShelvingParkingVO>>) {
|
|
||||||
|
|
||||||
if (response.body() != null) {
|
|
||||||
_shelvingList.value = response.body()?.let { ItemShelvingParkingListVO(it) }
|
|
||||||
} else {
|
|
||||||
val listError: ArrayList<ItemShelvingParkingVO> = ArrayList()
|
|
||||||
listError.add(
|
|
||||||
ItemShelvingParkingVO(
|
|
||||||
isError = true,
|
|
||||||
errorMessage = getMessageFromAllResponse(
|
|
||||||
nameofFunction(this),
|
|
||||||
response.message()
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
_shelvingList.value = ItemShelvingParkingListVO(listError)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,14 +0,0 @@
|
||||||
package es.verdnatura.presentation.view.feature.shelvingparking.model
|
|
||||||
|
|
||||||
class ItemShelvingParkingVO (
|
|
||||||
var itemFk:String = "0",
|
|
||||||
var concept:String = "",
|
|
||||||
var sinServir:String = "0",
|
|
||||||
var aparcado:String = "0",
|
|
||||||
var isError:Boolean = false,
|
|
||||||
var errorMessage:String = ""
|
|
||||||
)
|
|
||||||
|
|
||||||
class ItemShelvingParkingListVO(
|
|
||||||
var list:List<ItemShelvingParkingVO> = listOf()
|
|
||||||
)
|
|
|
@ -26,7 +26,7 @@ class TicketViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
) {
|
) {
|
||||||
|
|
||||||
salix.ticket_advancePackaging(packingSiteSalix(ticketFk, workerFk))
|
salix.ticket_advancePackaging(packingSiteSalix(ticketFk, workerFk))
|
||||||
.enqueue(object : SilexCallback<Void>(context) {
|
.enqueue(object : SilexCallback<Unit>(context) {
|
||||||
|
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_response.value = ResponseItemVO(
|
_response.value = ResponseItemVO(
|
||||||
|
@ -35,7 +35,7 @@ class TicketViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Void>) {
|
override fun onSuccess(response: Response<Unit>) {
|
||||||
_response.value =
|
_response.value =
|
||||||
ResponseItemVO(isError = false, response = response.message())
|
ResponseItemVO(isError = false, response = response.message())
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,6 +29,7 @@ import es.verdnatura.presentation.view.feature.pasillero.model.PasillerosItemVO
|
||||||
import es.verdnatura.presentation.view.feature.ubicador.adapter.UbicadorAdapter
|
import es.verdnatura.presentation.view.feature.ubicador.adapter.UbicadorAdapter
|
||||||
import es.verdnatura.presentation.view.feature.ubicador.model.ItemUbicadorVO
|
import es.verdnatura.presentation.view.feature.ubicador.model.ItemUbicadorVO
|
||||||
import java.lang.Boolean.TRUE
|
import java.lang.Boolean.TRUE
|
||||||
|
import kotlin.math.roundToInt
|
||||||
|
|
||||||
|
|
||||||
@Suppress("UNUSED_ANONYMOUS_PARAMETER")
|
@Suppress("UNUSED_ANONYMOUS_PARAMETER")
|
||||||
|
@ -634,29 +635,14 @@ class UbicadorFragment(
|
||||||
event.getContentIfNotHandled().notNull {
|
event.getContentIfNotHandled().notNull {
|
||||||
binding.splashProgress.visibility = GONE
|
binding.splashProgress.visibility = GONE
|
||||||
if (it.isError) {
|
if (it.isError) {
|
||||||
ma.messageWithSound(it.errorMessage, it.isError, false)
|
ma.messageWithSound(it.errorMessage, it.isError, true)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (it.response != "0") {
|
checkUbications(it.response.toDouble().roundToInt())
|
||||||
checkUbications(it.response.toInt())
|
|
||||||
} else {
|
|
||||||
ma.messageWithSound(getString(R.string.labelNovalid), true, true)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
/* responseCode.observe(viewLifecycleOwner, Observer {
|
|
||||||
binding.splashProgress.visibility = GONE
|
|
||||||
if (it.isError) {
|
|
||||||
ma.messageWithSound(it.errorMessage, true, true)
|
|
||||||
} else {
|
|
||||||
if (it.response!="0") {checkUbications(it.response.toInt())}else{
|
|
||||||
ma.messageWithSound(getString(R.string.labelNovalid), true, true)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
})*/
|
|
||||||
responsepriority.observe(viewLifecycleOwner, Observer {
|
responsepriority.observe(viewLifecycleOwner, Observer {
|
||||||
if (!isBack) {
|
if (!isBack) {
|
||||||
binding.splashProgress.visibility = GONE
|
binding.splashProgress.visibility = GONE
|
||||||
|
|
|
@ -5,6 +5,7 @@ import androidx.lifecycle.LiveData
|
||||||
import androidx.lifecycle.MutableLiveData
|
import androidx.lifecycle.MutableLiveData
|
||||||
import androidx.lifecycle.Transformations
|
import androidx.lifecycle.Transformations
|
||||||
import com.google.gson.JsonObject
|
import com.google.gson.JsonObject
|
||||||
|
import es.verdnatura.R
|
||||||
import es.verdnatura.domain.SalixCallback
|
import es.verdnatura.domain.SalixCallback
|
||||||
import es.verdnatura.domain.SilexCallback
|
import es.verdnatura.domain.SilexCallback
|
||||||
import es.verdnatura.presentation.base.BaseViewModel
|
import es.verdnatura.presentation.base.BaseViewModel
|
||||||
|
@ -461,8 +462,8 @@ class UbicadorViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getIdFromCode(code: String) {
|
fun getIdFromCode(code: String) {
|
||||||
silex.getIdFromCode(code)
|
salix.barcodes_toitem(code)
|
||||||
.enqueue(object : SilexCallback<String>(context) {
|
.enqueue(object : SilexCallback<String?>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_responseCode.value = ResponseItemVO(
|
_responseCode.value = ResponseItemVO(
|
||||||
isError = true,
|
isError = true,
|
||||||
|
@ -470,14 +471,13 @@ class UbicadorViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSuccess(response: Response<String>) {
|
override fun onSuccess(response: Response<String?>) {
|
||||||
|
|
||||||
|
|
||||||
if (response.body() == null) {
|
if (response.body() == null) {
|
||||||
_responseCode.value = ResponseItemVO(
|
_responseCode.value = ResponseItemVO(
|
||||||
isError = true,
|
isError = true,
|
||||||
errorMessage = getMessageFromAllResponse(
|
errorMessage = context.getString(R.string.itemNotValid)
|
||||||
nameofFunction(this),
|
|
||||||
response.message()
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
_responseCode.value =
|
_responseCode.value =
|
||||||
|
|
|
@ -11,9 +11,6 @@
|
||||||
type="es.verdnatura.presentation.view.feature.reubication.model.Reubication" />
|
type="es.verdnatura.presentation.view.feature.reubication.model.Reubication" />
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
<!-- android:background="@drawable/round_outline"
|
|
||||||
android:clipToOutline="true"-->
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/linear_main"
|
android:id="@+id/linear_main"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -52,24 +49,6 @@
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
>
|
>
|
||||||
|
|
||||||
<!-- <TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginRight="@dimen/layout_margin_min"
|
|
||||||
android:text="@string/Nivel"
|
|
||||||
android:textColor="@color/verdnatura_black"
|
|
||||||
android:textSize="@dimen/h8" />-->
|
|
||||||
|
|
||||||
<!-- <TextView
|
|
||||||
android:id="@+id/level"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginRight="@dimen/layout_margin_min"
|
|
||||||
android:text="@{sale.level}"
|
|
||||||
android:textColor="@color/verdnatura_black"
|
|
||||||
android:textSize="@dimen/h8"
|
|
||||||
android:textStyle="bold"
|
|
||||||
tool:text="2" />-->
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
@ -97,50 +76,15 @@
|
||||||
android:textColor="@color/verdnatura_black"
|
android:textColor="@color/verdnatura_black"
|
||||||
android:textSize="@dimen/h8" />
|
android:textSize="@dimen/h8" />
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@{reubication.code}"
|
|
||||||
android:textColor="@color/verdnatura_black"
|
|
||||||
android:textSize="@dimen/h8"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:visibility="gone"
|
|
||||||
tool:text="CAL-01"
|
|
||||||
|
|
||||||
/>
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<!-- <ImageView
|
|
||||||
android:id="@+id/imageErrorMessage"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
app:srcCompat="@drawable/emoticon_error_fragment" />-->
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- <LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
|
|
||||||
android:layout_marginRight="@dimen/layout_margin_min"
|
|
||||||
android:text="@{sale.agencyName}"
|
|
||||||
android:textSize="@dimen/h8"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:visibility="gone"
|
|
||||||
tool:text="MRW" />
|
|
||||||
</LinearLayout>-->
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
@ -153,39 +97,6 @@
|
||||||
android:background="@color/verdnatura_background_item_picker"
|
android:background="@color/verdnatura_background_item_picker"
|
||||||
android:paddingTop="@dimen/layout_margin_min"
|
android:paddingTop="@dimen/layout_margin_min"
|
||||||
android:paddingBottom="@dimen/layout_margin_min">
|
android:paddingBottom="@dimen/layout_margin_min">
|
||||||
<!-- <!–SEMAFORO=================================================–>
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/linearLayout3"
|
|
||||||
android:layout_width="@dimen/semaforo_width"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="vertical"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:id="@+id/item_article_row_semaforo_pre"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="@dimen/semaforo_height"
|
|
||||||
android:layout_marginBottom="1dp"
|
|
||||||
android:background="@color/verdnatura_warm_grey" />
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:id="@+id/item_article_row_semaforo_sac"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="@dimen/semaforo_height"
|
|
||||||
android:layout_marginBottom="1dp"
|
|
||||||
android:background="@color/verdnatura_warm_grey" />
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:id="@+id/item_article_row_semaforo_con"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="@dimen/semaforo_height"
|
|
||||||
android:background="@color/verdnatura_warm_grey" />
|
|
||||||
background_oval_checked
|
|
||||||
</LinearLayout>-->
|
|
||||||
|
|
||||||
<!--CONTENIDO=================================================-->
|
|
||||||
<!--app:layout_constraintEnd_toStartOf="@+id/item_article_quantity_picked"-->
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/item_article_itemFk"
|
android:id="@+id/item_article_itemFk"
|
||||||
|
@ -194,7 +105,7 @@
|
||||||
android:layout_marginStart="@dimen/layout_margin_min"
|
android:layout_marginStart="@dimen/layout_margin_min"
|
||||||
android:layout_marginEnd="@dimen/layout_margin_min"
|
android:layout_marginEnd="@dimen/layout_margin_min"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:text="@{reubication.itemFk}"
|
android:text="@{String.valueOf(reubication.itemFk)}"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:textSize="@dimen/body1"
|
android:textSize="@dimen/body1"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
|
@ -203,32 +114,6 @@
|
||||||
tool:text="85478" />
|
tool:text="85478" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- sale.pickedQuantity-->
|
|
||||||
<!-- <TextView
|
|
||||||
android:id="@+id/item_article_quantity_picked"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginEnd="@dimen/layout_margin_min"
|
|
||||||
android:text="@{reubication.itemFk}"
|
|
||||||
android:textColor="@color/verdnatura_white"
|
|
||||||
android:textSize="@dimen/body1"
|
|
||||||
android:textStyle="bold"
|
|
||||||
app:layout_constraintEnd_toStartOf="@+id/txtde"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
tool:text="1000" />-->
|
|
||||||
|
|
||||||
<!-- <TextView
|
|
||||||
android:id="@+id/txtde"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginEnd="@dimen/layout_margin_min"
|
|
||||||
android:text="@string/de"
|
|
||||||
android:textColor="@color/verdnatura_white"
|
|
||||||
android:textSize="@dimen/body1"
|
|
||||||
app:layout_constraintEnd_toStartOf="@+id/item_article_quantity"
|
|
||||||
app:layout_constraintTop_toTopOf="parent" />-->
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/item_article_quantity"
|
android:id="@+id/item_article_quantity"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -236,7 +121,7 @@
|
||||||
android:layout_marginEnd="@dimen/layout_margin_min"
|
android:layout_marginEnd="@dimen/layout_margin_min"
|
||||||
android:paddingLeft="10dp"
|
android:paddingLeft="10dp"
|
||||||
android:paddingRight="10dp"
|
android:paddingRight="10dp"
|
||||||
android:text="@{reubication.quantity}"
|
android:text="@{String.valueOf(reubication.quantity)}"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:textSize="@dimen/body1"
|
android:textSize="@dimen/body1"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
|
@ -257,89 +142,6 @@
|
||||||
app:layout_constraintTop_toBottomOf="@+id/item_article_itemFk"
|
app:layout_constraintTop_toBottomOf="@+id/item_article_itemFk"
|
||||||
tool:text="información de la linea 1" />
|
tool:text="información de la linea 1" />
|
||||||
|
|
||||||
<!--<TextView
|
|
||||||
android:id="@+id/item_article_cel1"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginEnd="@dimen/layout_margin_1"
|
|
||||||
android:text="@{sale.cel1}"
|
|
||||||
android:textColor="@color/verdnatura_white"
|
|
||||||
android:textSize="@dimen/body2"
|
|
||||||
android:textStyle="bold"
|
|
||||||
app:layout_constraintEnd_toEndOf="@+id/item_article_quantity_line1"
|
|
||||||
app:layout_constraintTop_toTopOf="@+id/item_article_quantity_line1"
|
|
||||||
tool:text="cel1" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/item_article_quantity_line2"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="@dimen/layout_margin_min"
|
|
||||||
android:ellipsize="end"
|
|
||||||
android:maxLines="1"
|
|
||||||
android:text="@{sale.line2}"
|
|
||||||
android:textColor="@color/verdnatura_white"
|
|
||||||
android:textSize="@dimen/body2"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/linearLayout3"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/item_article_quantity_line1"
|
|
||||||
tool:text="información de la linea 2" />-->
|
|
||||||
|
|
||||||
<!--
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/item_article_cel2"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginEnd="@dimen/layout_margin_1"
|
|
||||||
android:text="@{sale.cel2}"
|
|
||||||
android:textColor="@color/verdnatura_white"
|
|
||||||
android:textSize="@dimen/body2"
|
|
||||||
android:textStyle="bold"
|
|
||||||
app:layout_constraintEnd_toEndOf="@+id/item_article_quantity_line2"
|
|
||||||
app:layout_constraintTop_toTopOf="@+id/item_article_quantity_line2"
|
|
||||||
tool:text="cel2" />-->
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <TextView
|
|
||||||
android:id="@+id/item_article_quantity_line3"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
|
|
||||||
android:layout_marginStart="@dimen/layout_margin_min"
|
|
||||||
android:ellipsize="end"
|
|
||||||
android:maxLines="1"
|
|
||||||
android:text="@{sale.line3}"
|
|
||||||
android:textAlignment="center"
|
|
||||||
android:textColor="@color/verdnatura_white"
|
|
||||||
android:textSize="@dimen/body2"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/linearLayout3"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/item_article_quantity_line2"
|
|
||||||
tool:text="información de la linea 3" />-->
|
|
||||||
|
|
||||||
<!-- <View
|
|
||||||
android:id="@+id/item_color"
|
|
||||||
android:layout_width="15dp"
|
|
||||||
android:layout_height="15dp"
|
|
||||||
android:layout_marginLeft="5dp"
|
|
||||||
|
|
||||||
android:background="@drawable/background_item_color"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/item_article_quantity_line3"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/item_article_quantity_line3" />
|
|
||||||
/>-->
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <TextView
|
|
||||||
android:id="@+id/item_article_cel3"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginEnd="@dimen/layout_margin_1"
|
|
||||||
android:text="@{sale.cel3}"
|
|
||||||
android:textColor="@color/verdnatura_white"
|
|
||||||
android:textSize="@dimen/body2"
|
|
||||||
android:textStyle="bold"
|
|
||||||
app:layout_constraintEnd_toEndOf="@+id/content_layout"
|
|
||||||
app:layout_constraintTop_toTopOf="@+id/item_article_quantity_line3"
|
|
||||||
tool:text="cel3" />-->
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/linearLayoutColor"
|
android:id="@+id/linearLayoutColor"
|
||||||
|
@ -349,13 +151,6 @@
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
<!--<View
|
|
||||||
android:id="@+id/item_ticketColor"
|
|
||||||
android:layout_width="5dp"
|
|
||||||
android:layout_height="@dimen/ticketColor_height"
|
|
||||||
android:layout_marginBottom="1dp"
|
|
||||||
android:background="@drawable/border" />-->
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.Rutas}"
|
android:text="@{String.valueOf(item.Rutas)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.Cajas}"
|
android:text="@{String.valueOf(item.Cajas)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
android:id="@+id/itemFk"
|
android:id="@+id/itemFk"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:text="@{item.created}"
|
android:text="@{String.valueOf(item.created)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
android:id="@+id/expedition_pallet_rutas"
|
android:id="@+id/expedition_pallet_rutas"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.Rutas}"
|
android:text="@{String.valueOf(item.Rutas)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.Eti}"
|
android:text="@{String.valueOf(item.Eti)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.Ruta}"
|
android:text="@{String.valueOf(item.Ruta)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
android:id="@+id/expedition_pallet_rutas"
|
android:id="@+id/expedition_pallet_rutas"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.Ticket}"
|
android:text="@{String.valueOf(item.Ticket)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.Caja}"
|
android:text="@{String.valueOf(item.Caja)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.ETD}"
|
android:text="@{String.valueOf(item.ETD)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.invalue}"
|
android:text="@{String.valueOf(item.invalue)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.out}"
|
android:text="@{String.valueOf(item.out)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.balance}"
|
android:text="@{String.valueOf(item.balance)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.size}"
|
android:text="@{String.valueOf(item.size)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
|
@ -137,7 +137,7 @@
|
||||||
android:id="@+id/item_down"
|
android:id="@+id/item_down"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.downstairs}"
|
android:text="@{String.valueOf(item.downstairs)}"
|
||||||
android:textSize="@dimen/h6"
|
android:textSize="@dimen/h6"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:textColor="@color/verdnatura_pumpkin_orange"
|
android:textColor="@color/verdnatura_pumpkin_orange"
|
||||||
|
@ -149,7 +149,7 @@
|
||||||
android:id="@+id/item_up"
|
android:id="@+id/item_up"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.upstairs}"
|
android:text="@{String.valueOf(item.upstairs)}"
|
||||||
android:textSize="@dimen/h6"
|
android:textSize="@dimen/h6"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:textColor="@color/verdnatura_pumpkin_orange"
|
android:textColor="@color/verdnatura_pumpkin_orange"
|
||||||
|
@ -160,7 +160,7 @@
|
||||||
android:id="@+id/item_nicho"
|
android:id="@+id/item_nicho"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{Integer.toString(item.nicho)}"
|
android:text="@{String.valueOf(item.nicho)}"
|
||||||
android:textSize="@dimen/h6"
|
android:textSize="@dimen/h6"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:textColor="@color/verdnatura_red"
|
android:textColor="@color/verdnatura_red"
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.visible}"
|
android:text="@{String.valueOf(item.visible)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.priority}"
|
android:text="@{String.valueOf(item.priority)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
android:id="@+id/item_fk"
|
android:id="@+id/item_fk"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.itemFk}"
|
android:text="@{String.valueOf(item.itemFk)}"
|
||||||
android:textSize="@dimen/h6"
|
android:textSize="@dimen/h6"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
android:id="@+id/item_down"
|
android:id="@+id/item_down"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.available}"
|
android:text="@{String.valueOf(item.available)}"
|
||||||
android:textSize="@dimen/h6"
|
android:textSize="@dimen/h6"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:textColor="@color/verdnatura_pumpkin_orange"
|
android:textColor="@color/verdnatura_pumpkin_orange"
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
android:id="@+id/item_up"
|
android:id="@+id/item_up"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.minQuantity}"
|
android:text="@{String.valueOf(item.minQuantity)}"
|
||||||
android:textSize="@dimen/h6"
|
android:textSize="@dimen/h6"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:textColor="@color/verdnatura_pumpkin_orange"
|
android:textColor="@color/verdnatura_pumpkin_orange"
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
android:id="@+id/historico_date"
|
android:id="@+id/historico_date"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.itemFk}"
|
android:text="@{String.valueOf(item.itemFk)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.visible}"
|
android:text="@{String.valueOf(item.visible)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.stock}"
|
android:text="@{String.valueOf(item.stock)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
android:id="@+id/itemFk"
|
android:id="@+id/itemFk"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.itemFk}"
|
android:text="@{String.valueOf(item.itemFk)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{item.visible}"
|
android:text="@{String.valueOf(item.visible)}"
|
||||||
android:textSize="@dimen/body2"
|
android:textSize="@dimen/body2"
|
||||||
android:textColor="@color/verdnatura_white"
|
android:textColor="@color/verdnatura_white"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
@ -109,38 +109,6 @@
|
||||||
android:paddingRight="@dimen/layout_margin_min"
|
android:paddingRight="@dimen/layout_margin_min"
|
||||||
android:gravity="right"/>
|
android:gravity="right"/>
|
||||||
|
|
||||||
|
|
||||||
<!-- <TextView
|
|
||||||
android:id="@+id/date"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@{item.created}"
|
|
||||||
android:textSize="@dimen/body2"
|
|
||||||
android:textColor="@color/verdnatura_white"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:gravity="center"/>
|
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@{item.accion}"
|
|
||||||
android:textSize="@dimen/body2"
|
|
||||||
android:textColor="@color/verdnatura_white"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:gravity="center"/>
|
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@{item.code}"
|
|
||||||
android:textSize="@dimen/body2"
|
|
||||||
android:textColor="@color/verdnatura_white"
|
|
||||||
android:layout_weight="0.5"
|
|
||||||
android:gravity="center"/>-->
|
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
|
@ -1,66 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
>
|
|
||||||
|
|
||||||
<data>
|
|
||||||
|
|
||||||
<variable
|
|
||||||
name="item"
|
|
||||||
type="es.verdnatura.presentation.view.feature.shelvingparking.model.ItemShelvingParkingVO" />
|
|
||||||
</data>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="vertical">
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/item_row_layout"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:background="@color/verdnatura_black_5"
|
|
||||||
android:paddingLeft="@dimen/layout_margin_min"
|
|
||||||
android:paddingRight="@dimen/layout_margin_min"
|
|
||||||
android:paddingTop="@dimen/pasilleros_margin_main_menu"
|
|
||||||
android:paddingBottom="@dimen/pasilleros_margin_main_menu">
|
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@{item.itemFk}"
|
|
||||||
android:textSize="@dimen/body2"
|
|
||||||
android:textColor="@color/verdnatura_white"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:gravity="center"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@{item.concept}"
|
|
||||||
android:textSize="@dimen/body2"
|
|
||||||
android:textColor="@color/verdnatura_white"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:gravity="center"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@{item.sinServir}"
|
|
||||||
android:textSize="@dimen/body2"
|
|
||||||
android:textColor="@color/verdnatura_white"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:gravity="center"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@{item.aparcado}"
|
|
||||||
android:textSize="@dimen/body2"
|
|
||||||
android:textColor="@color/verdnatura_white"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:gravity="center"/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="1dp"
|
|
||||||
android:background="@color/verdnatura_black_9"/>
|
|
||||||
</LinearLayout>
|
|
||||||
</layout>
|
|
|
@ -665,6 +665,8 @@
|
||||||
<string name="sendDriverRoute">Envía la hoja de ruta al conductor</string>
|
<string name="sendDriverRoute">Envía la hoja de ruta al conductor</string>
|
||||||
<string name="loadRoute">Abre la pantalla para escanear ruta</string>
|
<string name="loadRoute">Abre la pantalla para escanear ruta</string>
|
||||||
<string name="scanAddressSelected">Permite escanear expediciones del consignatario seleccionado</string>
|
<string name="scanAddressSelected">Permite escanear expediciones del consignatario seleccionado</string>
|
||||||
|
<string name="itemNotValid">La etiqueta escaenada no es válida</string>
|
||||||
|
<string name="plateChecked">Matrícula ya revisada</string>
|
||||||
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -665,5 +665,7 @@
|
||||||
<string name="sendDriverRoute">Envoyez la feuille de route au conducteur</string>
|
<string name="sendDriverRoute">Envoyez la feuille de route au conducteur</string>
|
||||||
<string name="loadRoute">Ouvre l\'écran pour scanner l\'itinéraire</string>
|
<string name="loadRoute">Ouvre l\'écran pour scanner l\'itinéraire</string>
|
||||||
<string name="scanAddressSelected">Permet de scanner les expéditions du consignataire sélectionné</string>
|
<string name="scanAddressSelected">Permet de scanner les expéditions du consignataire sélectionné</string>
|
||||||
|
<string name="itemNotValid">La etiqueta escaenada no es válida</string>
|
||||||
|
<string name="plateChecked">Matrícula ya revisada</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -665,5 +665,7 @@
|
||||||
<string name="sendDriverRoute">Envie o itinerário para o motorista</string>
|
<string name="sendDriverRoute">Envie o itinerário para o motorista</string>
|
||||||
<string name="loadRoute">Abra a tela para escanear a rota</string>
|
<string name="loadRoute">Abra a tela para escanear a rota</string>
|
||||||
<string name="scanAddressSelected">Permite escanear expedições do consignatário selecionado</string>
|
<string name="scanAddressSelected">Permite escanear expedições do consignatário selecionado</string>
|
||||||
|
<string name="itemNotValid">La etiqueta escaenada no es válida</string>
|
||||||
|
<string name="plateChecked">Matrícula ya revisada</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -664,5 +664,7 @@
|
||||||
<string name="sendDriverRoute">Send the roadmap to the driver</string>
|
<string name="sendDriverRoute">Send the roadmap to the driver</string>
|
||||||
<string name="loadRoute">Open the screen to scan the route</string>
|
<string name="loadRoute">Open the screen to scan the route</string>
|
||||||
<string name="scanAddressSelected">Allows scanning shipments of the selected consignee</string>
|
<string name="scanAddressSelected">Allows scanning shipments of the selected consignee</string>
|
||||||
|
<string name="itemNotValid">La etiqueta escaenada no es válida</string>
|
||||||
|
<string name="plateChecked">Matrícula ya revisada</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in New Issue