diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000..603b1407
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,14 @@
+*.iml
+.gradle
+/local.properties
+/.idea/caches
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+/.idea/navEditor.xml
+/.idea/assetWizardSettings.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
+.cxx
diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 00000000..dfebefaf
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+Gestor Almacén
\ No newline at end of file
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
new file mode 100644
index 00000000..88ea3aa1
--- /dev/null
+++ b/.idea/codeStyles/Project.xml
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ xmlns:android
+
+ ^$
+
+
+
+
+
+
+
+
+ xmlns:.*
+
+ ^$
+
+
+ BY_NAME
+
+
+
+
+
+
+ .*:id
+
+ http://schemas.android.com/apk/res/android
+
+
+
+
+
+
+
+
+ .*:name
+
+ http://schemas.android.com/apk/res/android
+
+
+
+
+
+
+
+
+ name
+
+ ^$
+
+
+
+
+
+
+
+
+ style
+
+ ^$
+
+
+
+
+
+
+
+
+ .*
+
+ ^$
+
+
+ BY_NAME
+
+
+
+
+
+
+ .*
+
+ http://schemas.android.com/apk/res/android
+
+
+ ANDROID_ATTRIBUTE_ORDER
+
+
+
+
+
+
+ .*
+
+ .*
+
+
+ BY_NAME
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 00000000..79ee123c
--- /dev/null
+++ b/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 00000000..fb7f4a8a
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 00000000..ed9c379e
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
new file mode 100644
index 00000000..23704740
--- /dev/null
+++ b/.idea/jarRepositories.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 00000000..860da66a
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
new file mode 100644
index 00000000..e497da99
--- /dev/null
+++ b/.idea/runConfigurations.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 00000000..94a25f7f
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/.gitignore b/app/.gitignore
new file mode 100644
index 00000000..796b96d1
--- /dev/null
+++ b/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/app/build.gradle b/app/build.gradle
new file mode 100644
index 00000000..9e0f9ea1
--- /dev/null
+++ b/app/build.gradle
@@ -0,0 +1,91 @@
+apply plugin: 'com.android.application'
+apply plugin: 'kotlin-android'
+apply plugin: 'kotlin-android-extensions'
+apply plugin: 'kotlin-kapt'
+apply plugin: 'com.google.gms.google-services'
+apply plugin: 'com.google.firebase.crashlytics'
+
+
+android {
+ compileSdkVersion 29
+ buildToolsVersion "29.0.3"
+
+ defaultConfig {
+ applicationId "es.verdnatura"
+ minSdkVersion 21
+ targetSdkVersion 29
+ versionCode 60
+ // versionName "5.4.4"
+ versionName "6.1.3"
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+
+ dataBinding {
+ enabled = true
+ }
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+}
+
+dependencies {
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
+ debugImplementation fileTree(dir: 'libs/debug', include: ['*.jar'])
+ releaseImplementation fileTree(dir: 'libs/release', include: ['*.jar'])
+
+ // Kotlin and Android
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
+ implementation 'androidx.appcompat:appcompat:1.1.0'
+ implementation 'androidx.core:core-ktx:1.2.0'
+ implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
+ implementation 'androidx.legacy:legacy-support-v4:1.0.0'
+ implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
+ implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
+ testImplementation 'junit:junit:4.12'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.1'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
+ implementation 'com.google.android.material:material:1.0.0'
+ implementation 'com.squareup.retrofit2:retrofit:2.0.2'
+ implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
+ implementation 'com.squareup.retrofit2:converter-scalars:2.3.0'
+ implementation "com.airbnb.android:lottie:$lottieVersion"
+ implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'
+
+
+ // Architecture components
+ implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle"
+ implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle"
+ implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle"
+ implementation 'androidx.legacy:legacy-support-v4:1.0.0'
+
+ // Koin for DI
+ implementation "org.koin:koin-core:$koin"
+ implementation "org.koin:koin-android:$koin"
+ implementation "org.koin:koin-androidx-scope:$koin"
+ implementation "org.koin:koin-androidx-viewmodel:$koin"
+
+
+ // Image libraries
+ implementation "io.coil-kt:coil:$coil"
+ implementation "com.github.bumptech.glide:glide:$glide"
+ implementation "com.github.bumptech.glide:okhttp3-integration:$glide"
+ kapt "com.github.bumptech.glide:compiler:$glide"
+
+ // Add the Firebase Crashlytics SDK.
+ implementation 'com.google.firebase:firebase-analytics:17.5.0'
+ implementation 'com.google.firebase:firebase-crashlytics:17.2.1'
+
+ //search
+ implementation 'com.github.mirrajabi:search-dialog:1.1'
+
+}
diff --git a/app/google-services.json b/app/google-services.json
new file mode 100644
index 00000000..57c27ec5
--- /dev/null
+++ b/app/google-services.json
@@ -0,0 +1,40 @@
+{
+ "project_info": {
+ "project_number": "519813071137",
+ "firebase_url": "https://gestoralmacen-bfa2a.firebaseio.com",
+ "project_id": "gestoralmacen-bfa2a",
+ "storage_bucket": "gestoralmacen-bfa2a.appspot.com"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:519813071137:android:3de54686c580a6f79dfe60",
+ "android_client_info": {
+ "package_name": "es.verdnatura"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "519813071137-5099s9mme9juufnrkm88ajt5n7cmluqh.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyA74wQCwDCpCjWs49lCX5m2SsdqcYb_J8s"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": [
+ {
+ "client_id": "519813071137-5099s9mme9juufnrkm88ajt5n7cmluqh.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644
index 00000000..f1b42451
--- /dev/null
+++ b/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/app/release/20210611-vn-picking.apk b/app/release/20210611-vn-picking.apk
new file mode 100644
index 00000000..207aa4d4
Binary files /dev/null and b/app/release/20210611-vn-picking.apk differ
diff --git a/app/release/app-release.apk b/app/release/app-release.apk
new file mode 100644
index 00000000..5ab975f7
Binary files /dev/null and b/app/release/app-release.apk differ
diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json
new file mode 100644
index 00000000..162516f0
--- /dev/null
+++ b/app/release/output-metadata.json
@@ -0,0 +1,18 @@
+{
+ "version": 2,
+ "artifactType": {
+ "type": "APK",
+ "kind": "Directory"
+ },
+ "applicationId": "es.verdnatura",
+ "variantName": "processReleaseResources",
+ "elements": [
+ {
+ "type": "SINGLE",
+ "filters": [],
+ "versionCode": 60,
+ "versionName": "6.1.3",
+ "outputFile": "app-release.apk"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/app/release/output.json b/app/release/output.json
new file mode 100644
index 00000000..439b2143
--- /dev/null
+++ b/app/release/output.json
@@ -0,0 +1 @@
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"5.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"app-release.apk","properties":{}}]
\ No newline at end of file
diff --git a/app/release/vn-picking-old-old.apk b/app/release/vn-picking-old-old.apk
new file mode 100644
index 00000000..6995a4da
Binary files /dev/null and b/app/release/vn-picking-old-old.apk differ
diff --git a/app/release/vn-picking-old.apk b/app/release/vn-picking-old.apk
new file mode 100644
index 00000000..65960acf
Binary files /dev/null and b/app/release/vn-picking-old.apk differ
diff --git a/app/release/vn-picking-test(delete_fragments).apk b/app/release/vn-picking-test(delete_fragments).apk
new file mode 100644
index 00000000..8e543fd4
Binary files /dev/null and b/app/release/vn-picking-test(delete_fragments).apk differ
diff --git a/app/release/vn-picking.apk b/app/release/vn-picking.apk
new file mode 100644
index 00000000..5ab975f7
Binary files /dev/null and b/app/release/vn-picking.apk differ
diff --git a/app/release/vn-picking_deletefragments.apk b/app/release/vn-picking_deletefragments.apk
new file mode 100644
index 00000000..8e543fd4
Binary files /dev/null and b/app/release/vn-picking_deletefragments.apk differ
diff --git a/app/src/androidTest/java/es/verdnatura/ExampleInstrumentedTest.kt b/app/src/androidTest/java/es/verdnatura/ExampleInstrumentedTest.kt
new file mode 100644
index 00000000..6a6e2eb3
--- /dev/null
+++ b/app/src/androidTest/java/es/verdnatura/ExampleInstrumentedTest.kt
@@ -0,0 +1,22 @@
+package es.verdnatura
+
+import androidx.test.ext.junit.runners.AndroidJUnit4
+import androidx.test.platform.app.InstrumentationRegistry
+import org.junit.Assert.assertEquals
+import org.junit.Test
+import org.junit.runner.RunWith
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * See [testing documentation](http://d.android.com/tools/testing).
+ */
+@RunWith(AndroidJUnit4::class)
+class ExampleInstrumentedTest {
+ @Test
+ fun useAppContext() {
+ // Context of the app under test.
+ val appContext = InstrumentationRegistry.getInstrumentation().targetContext
+ assertEquals("es.verdnatura", appContext.packageName)
+ }
+}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..ee231f59
--- /dev/null
+++ b/app/src/main/AndroidManifest.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/ic_launcher-playstore.png b/app/src/main/ic_launcher-playstore.png
new file mode 100644
index 00000000..e6d54026
Binary files /dev/null and b/app/src/main/ic_launcher-playstore.png differ
diff --git a/app/src/main/java/es/verdnatura/MobileApplication.kt b/app/src/main/java/es/verdnatura/MobileApplication.kt
new file mode 100644
index 00000000..20f831ea
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/MobileApplication.kt
@@ -0,0 +1,20 @@
+package es.verdnatura
+
+import android.app.Application
+import es.verdnatura.di.viewModelModule
+import org.koin.android.ext.koin.androidContext
+import org.koin.core.context.loadKoinModules
+import org.koin.core.context.startKoin
+
+class MobileApplication: Application() {
+ override fun onCreate() {
+ super.onCreate()
+
+ startKoin { androidContext(this@MobileApplication)
+ val moduleList = listOf(viewModelModule)
+ loadKoinModules(moduleList)
+ }
+
+
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/es/verdnatura/di/viewModelModule.kt b/app/src/main/java/es/verdnatura/di/viewModelModule.kt
new file mode 100644
index 00000000..f1681139
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/di/viewModelModule.kt
@@ -0,0 +1,140 @@
+package es.verdnatura.di
+
+import es.verdnatura.presentation.view.feature.ajustes.fragment.AjustesViewModel
+import es.verdnatura.presentation.view.feature.articulo.fragment.ItemCardViewModel
+import es.verdnatura.presentation.view.feature.buscaritem.fragment.BuscarItemViewModel
+import es.verdnatura.presentation.view.feature.buscaritemall.fragment.BuscarItemAllViewModel
+import es.verdnatura.presentation.view.feature.calidad.fragment.BuyersViewModel
+import es.verdnatura.presentation.view.feature.calidad.fragment.QaualityViewModel
+import es.verdnatura.presentation.view.feature.collection.fragment.CollectionViewModel
+import es.verdnatura.presentation.view.feature.controlador.fragment.ControladorViewModel
+import es.verdnatura.presentation.view.feature.faltas.fragment.FaltasViewModel
+import es.verdnatura.presentation.view.feature.historico.fragment.HistoricoViewModel
+import es.verdnatura.presentation.view.feature.inventario.fragment.InventaryViewModel
+import es.verdnatura.presentation.view.feature.login.fragment.LoginViewModel
+import es.verdnatura.presentation.view.feature.paletizador.fragment.ExpeditionPalletDetailViewModel
+import es.verdnatura.presentation.view.feature.paletizador.fragment.ExpeditionPalletViewModel
+import es.verdnatura.presentation.view.feature.paletizador.fragment.ExpeditionScanViewModel
+import es.verdnatura.presentation.view.feature.paletizador.fragment.ExpeditionTruckListViewModel
+import es.verdnatura.presentation.view.feature.parking.fragment.ParkingViewModel
+import es.verdnatura.presentation.view.feature.pasillero.fragment.PasilleroViewModel
+import es.verdnatura.presentation.view.feature.presacador.fragment.PreSacadorViewModel
+import es.verdnatura.presentation.view.feature.reposicion.fragment.ReposicionViewModel
+import es.verdnatura.presentation.view.feature.sacador.fragment.SacadorViewModel
+import es.verdnatura.presentation.view.feature.shelvingparking.fragment.ShelvingParkingViewModel
+import es.verdnatura.presentation.view.feature.ubicador.fragment.AutomaticAddItemViewModel
+import es.verdnatura.presentation.view.feature.ubicador.fragment.UbicadorViewModel
+import org.koin.android.ext.koin.androidContext
+import org.koin.androidx.viewmodel.dsl.viewModel
+import org.koin.dsl.module
+
+val viewModelModule = module{
+ // Login
+ viewModel {
+ LoginViewModel(androidContext())
+ }
+
+ // Pasilleros
+ viewModel {
+ PasilleroViewModel(androidContext())
+ }
+
+ // Pasilleros / Item Card
+ viewModel {
+ ItemCardViewModel(androidContext())
+ }
+
+ // Pasilleros / Item Card / Historico
+ viewModel {
+ HistoricoViewModel(androidContext())
+ }
+
+ // Pasilleros / Buscar Item
+ viewModel {
+ BuscarItemViewModel(androidContext())
+ }
+
+ // Pasilleros / Buscar Item 2
+ viewModel {
+ BuscarItemAllViewModel(androidContext())
+ }
+
+ // Pasilleros / Inventario
+ viewModel {
+ InventaryViewModel(androidContext())
+ }
+ // Pasilleros / Faltas
+ viewModel {
+ FaltasViewModel(androidContext())
+ }
+
+ // ShelvingParking
+ viewModel {
+ ShelvingParkingViewModel(androidContext())
+ }
+
+ // Ubicador
+ viewModel {
+ UbicadorViewModel(androidContext())
+ }
+
+ // Ubicador // Automatic
+ viewModel {
+ AutomaticAddItemViewModel(androidContext())
+ }
+
+ // Ajustes
+ viewModel {
+ AjustesViewModel(androidContext())
+ }
+
+ // PALETIZADOR
+ viewModel {
+ ExpeditionTruckListViewModel(androidContext())
+ }
+
+ viewModel {
+ ExpeditionPalletViewModel(androidContext())
+ }
+
+ viewModel {
+ ExpeditionPalletDetailViewModel(androidContext())
+ }
+
+ viewModel {
+ ExpeditionScanViewModel(androidContext())
+ }
+
+ // SACADOR
+ viewModel {
+ SacadorViewModel(androidContext())
+ }
+
+ viewModel {
+ CollectionViewModel(androidContext())
+ }
+
+ viewModel {
+ ControladorViewModel(androidContext())
+ }
+
+ viewModel {
+ ParkingViewModel(androidContext())
+ }
+
+ viewModel {
+ PreSacadorViewModel(androidContext())
+ }
+
+ viewModel {
+ ReposicionViewModel(androidContext())
+ }
+
+ viewModel {
+ BuyersViewModel(androidContext())
+ }
+
+ viewModel {
+ QaualityViewModel(androidContext())
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/es/verdnatura/domain/ApiSalixUtils.kt b/app/src/main/java/es/verdnatura/domain/ApiSalixUtils.kt
new file mode 100644
index 00000000..d9a70a43
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/ApiSalixUtils.kt
@@ -0,0 +1,16 @@
+package es.verdnatura.domain
+
+import retrofit2.Retrofit
+import retrofit2.converter.gson.GsonConverterFactory
+
+class ApiSalixUtils {
+ companion object {
+ //const val BASE_URL:String = "http://192.168.1.108:8000/"
+ const val BASE_URL:String = "https://salix.verdnatura.es/api/"
+ fun getApiService():SalixService{
+ val salixRetrofit = Retrofit.Builder().baseUrl(BASE_URL).addConverterFactory(
+ GsonConverterFactory.create()).build()
+ return salixRetrofit.create(SalixService::class.java)
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/es/verdnatura/domain/ApiUtils.kt b/app/src/main/java/es/verdnatura/domain/ApiUtils.kt
new file mode 100644
index 00000000..d24b7ddd
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/ApiUtils.kt
@@ -0,0 +1,65 @@
+package es.verdnatura.domain
+
+import android.content.Context
+import android.content.SharedPreferences
+import android.preference.PreferenceManager
+import android.util.Log
+import okhttp3.OkHttpClient
+import retrofit2.Retrofit
+import retrofit2.converter.gson.GsonConverterFactory
+import java.util.concurrent.TimeUnit
+
+
+class ApiUtils {
+ companion object {
+ //const val BASE_URL:String = "http://192.168.1.54:8009/"
+ const val BASE_URL:String = "https://app.verdnatura.es/"
+ //const val BASE_URL:String = "https://test-app.verdnatura.es/"
+ //const val BASE_URL:String = "http://10.1.4.186/"
+
+ fun getApiService(context: Context):VerdnaturaService{
+ val retrofit = Retrofit.Builder()
+ .baseUrl(getBaseUrlLocal(context))
+ .addConverterFactory(GsonConverterFactory.create())
+ .client(getRequestHeader())
+ .build()
+ return retrofit.create(VerdnaturaService::class.java)
+ }
+
+ fun getBaseUrlLocal(context: Context): String {
+ var url = this.getDefaults("base_url",context)
+ if (url.isNullOrEmpty()){
+ setDefaults("base_url", BASE_URL,context)
+ }else{
+ if (!url.contains("http")){
+ url = "https://"+url
+ }
+ }
+
+ return if (url.isNullOrEmpty()) BASE_URL else url
+ }
+
+ fun getRequestHeader(): OkHttpClient? {
+ val client = OkHttpClient.Builder()
+ .connectTimeout(10, TimeUnit.SECONDS)
+ .writeTimeout(10, TimeUnit.SECONDS)
+ .readTimeout(40, TimeUnit.SECONDS)
+ .build()
+ return client
+ }
+
+ fun setDefaults(key: String?, value: String?, context: Context?) {
+ val preferences: SharedPreferences = PreferenceManager.getDefaultSharedPreferences(context)
+ val editor = preferences.edit()
+ editor.putString(key, value)
+ editor.commit()
+ }
+
+ fun getDefaults(key: String?, context: Context?): String? {
+ val preferences = PreferenceManager.getDefaultSharedPreferences(context)
+ return preferences.getString(key, null)
+ }
+
+ }
+
+}
\ No newline at end of file
diff --git a/app/src/main/java/es/verdnatura/domain/ConstAndValues.kt b/app/src/main/java/es/verdnatura/domain/ConstAndValues.kt
new file mode 100644
index 00000000..e530c1a8
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/ConstAndValues.kt
@@ -0,0 +1,13 @@
+package es.verdnatura.domain
+
+object ConstAndValues {
+ const val SACADOR = "PREPARED"
+ const val CONTROLADOR = "CHECKED"
+ const val OK = "OK"
+ const val PREPARED = "PREPARED"
+ const val ON_PREPARATION = "ON_PREPARATION"
+ const val CHECKED = "CHECKED"
+ const val PRESACADOR = "PRESACADOR"
+ const val ON_CHECKING = "ON_CHECKING"
+}
+
diff --git a/app/src/main/java/es/verdnatura/domain/Extensions.kt b/app/src/main/java/es/verdnatura/domain/Extensions.kt
new file mode 100644
index 00000000..f2e18a59
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/Extensions.kt
@@ -0,0 +1,12 @@
+package es.verdnatura.domain
+
+import android.content.Context
+import android.widget.Toast
+
+fun Any.toast(context: Context?, duration: Int = Toast.LENGTH_SHORT): Toast {
+ return Toast.makeText(context, this.toString(), duration).apply { show() }
+}
+
+fun T?.notNull(f: (it: T) -> Unit) {
+ if (this != null) f(this)
+}
\ No newline at end of file
diff --git a/app/src/main/java/es/verdnatura/domain/GetAjustesUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetAjustesUserCase.kt
new file mode 100644
index 00000000..3a5a2f55
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/GetAjustesUserCase.kt
@@ -0,0 +1,14 @@
+package es.verdnatura.domain
+
+import android.content.Context
+import es.verdnatura.presentation.view.feature.ajustes.model.SectorItemVO
+import retrofit2.Call
+
+class GetAjustesUserCase(context: Context) : RestClient(context) {
+
+ fun getSectors(usuario:String,password:String) : Call> {
+ return restClient!!.getSectors("json","1",usuario,password,"application/json")
+ }
+
+
+}
\ No newline at end of file
diff --git a/app/src/main/java/es/verdnatura/domain/GetBuscarItemAllUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetBuscarItemAllUserCase.kt
new file mode 100644
index 00000000..590ed25b
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/GetBuscarItemAllUserCase.kt
@@ -0,0 +1,15 @@
+package es.verdnatura.domain
+
+import android.content.Context
+import es.verdnatura.presentation.view.feature.buscaritemall.model.ItemLocationAll
+import retrofit2.Call
+
+class GetBuscarItemAllUserCase(context: Context) : RestClient(context) {
+
+ fun searchItemsUbicadorAll(usuario:String,password:String,itemFk:String) : Call> {
+ val params:ArrayList = ArrayList()
+ params.add(itemFk)
+ return restClient!!.searchItemsUbicadorAll("json","1",usuario,password,"application/json",params = params)
+ }
+
+}
\ No newline at end of file
diff --git a/app/src/main/java/es/verdnatura/domain/GetBuscarItemUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetBuscarItemUserCase.kt
new file mode 100644
index 00000000..5448f6bc
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/GetBuscarItemUserCase.kt
@@ -0,0 +1,15 @@
+package es.verdnatura.domain
+
+import android.content.Context
+import es.verdnatura.presentation.view.feature.buscaritem.model.ItemLocationVO
+import retrofit2.Call
+
+class GetBuscarItemUserCase(context: Context) : RestClient(context) {
+
+ fun searchItemsUbicador(usuario:String,password:String,itemFk:String) : Call> {
+ val params:ArrayList = ArrayList();
+ params.add(itemFk)
+ return restClient!!.searchItemsUbicador("json","1",usuario,password,"application/json",params = params)
+ }
+
+}
\ No newline at end of file
diff --git a/app/src/main/java/es/verdnatura/domain/GetInventaryUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetInventaryUserCase.kt
new file mode 100644
index 00000000..2e61ba27
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/GetInventaryUserCase.kt
@@ -0,0 +1,44 @@
+package es.verdnatura.domain
+
+import android.content.Context
+import es.verdnatura.presentation.view.feature.ajustes.model.SectorItemVO
+import es.verdnatura.presentation.view.feature.calidad.model.BuyerVO
+import es.verdnatura.presentation.view.feature.faltas.model.ItemFaltasVO
+import es.verdnatura.presentation.view.feature.inventario.model.ItemInventaryVO
+import retrofit2.Call
+
+class GetInventaryUserCase(context: Context) : RestClient(context) {
+
+ fun itemShelvingRadar(usuario:String,password:String,sectorFk:String) : Call> {
+ val params:ArrayList = ArrayList();
+ params.add(sectorFk)
+ return restClient!!.itemShelvingRadar("json","1",usuario,password,"application/json",params = params)
+ }
+
+ fun itemShelvingRadarFilterBuyer(usuario:String,password:String,buyerFk:String,warehouseFk: String) : Call> {
+ val params:ArrayList = ArrayList();
+ params.add(buyerFk)
+ params.add(warehouseFk)
+ return restClient!!.itemShelvingRadarFilterBuyer("json","1",usuario,password,"application/json",params = params)
+ }
+
+ fun faultsReview(usuario:String,password:String,warehouseFk:String) : Call> {
+ val params:ArrayList = ArrayList();
+ params.add(warehouseFk)
+ return restClient!!.faultsReview("json","1",usuario,password,"application/json",params = params)
+ }
+
+ fun faultsReview_isChecked(usuario:String,password:String,itemFk:String,warehouseFk:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(itemFk)
+ params.add(warehouseFk)
+ return restClient!!.faultsReview_isChecked("json","1",usuario,password,"application/json",params = params)
+ }
+
+
+ fun itemShelvingBuyerGet(usuario:String,password:String) : Call> {
+ return restClient!!.itemShelvingBuyerGet("json","1",usuario,password,"application/json")
+ }
+
+
+}
\ No newline at end of file
diff --git a/app/src/main/java/es/verdnatura/domain/GetItemCardUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetItemCardUserCase.kt
new file mode 100644
index 00000000..814a2d25
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/GetItemCardUserCase.kt
@@ -0,0 +1,94 @@
+package es.verdnatura.domain
+
+import android.content.Context
+import es.verdnatura.presentation.view.feature.articulo.model.ItemCardVO
+import es.verdnatura.presentation.view.feature.articulo.model.ItemPackingType
+import es.verdnatura.presentation.view.feature.historico.model.ItemHistoricoVO
+import retrofit2.Call
+
+class GetItemCardUserCase(context: Context) : RestClient(context) {
+
+ fun getItemCard(usuario:String,password:String,itemFk:String,warehouseFk:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(itemFk)
+ params.add(warehouseFk)
+ return restClient!!.getItemCard("json","1",usuario,password,"application/json",params = params)
+ }
+
+ fun getItemPackingType(usuario:String,password:String) : Call> {
+ val params:ArrayList = ArrayList();
+ return restClient!!.getItemPackingType("json","1",usuario,password,"application/json",params = params)
+ }
+
+ fun itemStockUpdate(usuario:String,password:String,itemFk:String,warehouseFk:String,newVisible:String,isTrash:String ) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(itemFk)
+ params.add(warehouseFk)
+ params.add(newVisible)
+ params.add(isTrash)
+ return restClient!!.itemStockUpdate("json","1",usuario,password,"application/json",params = params)
+ }
+
+ fun itemTrash(usuario:String,password:String,itemFk:String,warehouseFk:String,newVisible:String,isTrash:String ) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(itemFk)
+ params.add(warehouseFk)
+ params.add(newVisible)
+ params.add(isTrash)
+ return restClient!!.itemTrash("json","1",usuario,password,"application/json",params = params)
+ }
+
+ fun itemPlacementSave(usuario:String,password:String,itemFk:String,warehouseFk:String,value:String ) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(itemFk)
+ params.add(warehouseFk)
+ params.add(value)
+ return restClient!!.itemPlacementSave("json","1",usuario,password,"application/json",params = params)
+ }
+
+ fun updateGrouping(usuario:String,password:String,itemFk:String,value:String ,warehouseFk:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(itemFk)
+ params.add(value)
+ params.add(warehouseFk)
+ return restClient!!.updateGrouping("json","1",usuario,password,"application/json",params = params)
+ }
+
+ fun updatePacking(usuario:String,password:String,itemFk:String,value:String ,warehouseFk:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(itemFk)
+ params.add(value)
+ params.add(warehouseFk)
+ return restClient!!.updatePacking("json","1",usuario,password,"application/json",params = params)
+ }
+
+ fun updatePackingType(usuario:String,password:String,itemFk:String,ItemPackingType:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(itemFk)
+ params.add(ItemPackingType)
+ return restClient!!.updatePackingType("json","1",usuario,password,"application/json",params = params)
+ }
+
+
+ fun itemSaveMin(usuario:String,password:String,itemFk:String,value:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(itemFk)
+ params.add(value)
+ return restClient!!.itemSaveMin("json","1",usuario,password,"application/json",params = params)
+ }
+
+ fun barcodes_edit(usuario:String,password:String,itemFk:String,value:String, delete:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(value)
+ params.add(itemFk)
+ params.add(delete)
+ return restClient!!.barcodes_edit("json","1",usuario,password,"application/json",params = params)
+ }
+
+ fun itemDiary(usuario:String,password:String,itemFk:String,warehouseFk: String) : Call> {
+ val params:ArrayList = ArrayList();
+ params.add(itemFk)
+ params.add(warehouseFk)
+ return restClient!!.itemDiary("json","1",usuario,password,"application/json",params = params)
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/es/verdnatura/domain/GetLoginUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetLoginUserCase.kt
new file mode 100644
index 00000000..65402d08
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/GetLoginUserCase.kt
@@ -0,0 +1,38 @@
+package es.verdnatura.domain
+
+import android.content.Context
+import es.verdnatura.presentation.view.feature.login.model.LoginSalixVO
+import es.verdnatura.presentation.view.feature.login.model.SalixMessageVO
+import es.verdnatura.presentation.view.feature.login.model.versionApp
+import retrofit2.Call
+
+class GetLoginUserCase(context: Context) : RestClient(context) {
+
+ fun login(usuario:String,password:String) : Call{
+ val params:ArrayList = ArrayList()
+ params.add(usuario)
+ params.add(password)
+ return restClient!!.login("json","1",usuario,password,"application/json",params)
+ }
+
+ fun salixLogin(usuario:String,password:String) : Call{
+ return salixClient!!.login("application/json", LoginSalixVO(usuario,password))
+ }
+
+ fun checkVersion_old(usuario:String,password:String,version:String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(version)
+ return restClient!!.version("json","1",usuario,password,"application/json",params)
+ }
+
+ fun sendChekingPresence(token:String,workerId:Int,message:String) : Call{
+ return salixClient!!.sendChekingPresence(content_type = "application/json", authorization = token, params = SalixMessageVO(workerId = workerId,message = message))
+ }
+
+ fun checkVersion(usuario:String,password:String,nameApp:String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(nameApp)
+ return restClient!!.version2("json","1",usuario,password,"application/json",params)
+ }
+
+}
\ No newline at end of file
diff --git a/app/src/main/java/es/verdnatura/domain/GetPaletizadoresUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetPaletizadoresUserCase.kt
new file mode 100644
index 00000000..24d54c8d
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/GetPaletizadoresUserCase.kt
@@ -0,0 +1,86 @@
+package es.verdnatura.domain
+
+import android.content.Context
+import es.verdnatura.presentation.view.feature.paletizador.model.*
+import retrofit2.Call
+
+class GetPaletizadoresUserCase(context: Context) : RestClient(context) {
+
+ fun expeditionTruckList(usuario:String,password:String) : Call> {
+ val params:ArrayList = ArrayList();
+ return restClient!!.expeditionTruckList("json","1",usuario,password,"application/json")
+ }
+
+ fun expeditionTruckAdd(usuario:String,password:String,vHour:String,vDescription:String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(vHour)
+ params.add(vDescription)
+ // ////Log.i("VERDNATURA"," La hora es $vHour y descrip $vDescription")
+ return restClient!!.expeditionTruckAdd("json","1",usuario,password,"application/json",params)
+ }
+
+ fun expeditionPallet_List(usuario:String,password:String,vTruckFk:String) : Call> {
+ val params:ArrayList = ArrayList()
+ params.add(vTruckFk)
+ return restClient!!.expeditionPallet_List("json","1",usuario,password,"application/json",params)
+ }
+
+ fun expeditionScanAdd(usuario:String,password:String,vPalletFk:String,vTruckFk:String) : Call> {
+ val params:ArrayList = ArrayList()
+ params.add(vPalletFk)
+ params.add(vTruckFk)
+ return restClient!!.expeditionScanAdd("json","1",usuario,password,"application/json",params)
+ }
+
+ fun expeditionScanPut(usuario:String,password:String,vPalletFk:String,vExpeditionFk:String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(vPalletFk)
+ params.add(vExpeditionFk)
+ return restClient!!.expeditionScanPut("json","1",usuario,password,"application/json",params)
+ }
+ fun checkRouteExpeditionScanPut(usuario:String,password:String,vPalletFk:String,vExpeditionFk:String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(vPalletFk)
+ params.add(vExpeditionFk)
+ return restClient!!.checkRouteExpeditionScanPut("json","1",usuario,password,"application/json",params)
+ }
+
+
+
+ fun expeditionPalletView(usuario:String,password:String,vPalletFk:String) : Call> {
+ val params:ArrayList = ArrayList()
+ params.add(vPalletFk)
+ return restClient!!.expeditionPalletView("json","1",usuario,password,"application/json",params)
+ }
+
+ fun expeditionPalletDel(usuario:String,password:String,vPalletFk:String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(vPalletFk)
+ return restClient!!.expeditionPalletDel("json","1",usuario,password,"application/json",params)
+ }
+
+ fun expeditionScanList(usuario:String,password:String,vPalletFk:String) : Call> {
+ val params:ArrayList = ArrayList()
+ params.add(vPalletFk)
+ return restClient!!.expeditionScanList("json","1",usuario,password,"application/json",params)
+ }
+
+ fun expeditionScanDel(usuario:String,password:String,vScanFk:String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(vScanFk)
+ return restClient!!.expeditionScanDel("json","1",usuario,password,"application/json",params)
+ }
+
+ fun expeditionPalletPrintSet(
+ usuario: String,
+ password: String,
+ vPalletFk: String,
+ vSectorFk: String
+ ) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(vPalletFk)
+ params.add(vSectorFk)
+ return restClient!!.expeditionPalletPrintSet("json","1",usuario,password,"application/json",params)
+ }
+
+}
diff --git a/app/src/main/java/es/verdnatura/domain/GetPreSacadorUseCase.kt b/app/src/main/java/es/verdnatura/domain/GetPreSacadorUseCase.kt
new file mode 100644
index 00000000..4880ed77
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/GetPreSacadorUseCase.kt
@@ -0,0 +1,31 @@
+package es.verdnatura.domain
+
+import android.content.Context
+import es.verdnatura.presentation.view.feature.presacador.model.PreSacadorItemVO
+import retrofit2.Call
+
+class GetPreSacadorUseCase(context: Context) : RestClient(context) {
+
+ fun ticketToPrePrepare(usuario:String,password:String,ticketFk:String,sectorFk:String) : Call> {
+ val params:ArrayList = ArrayList();
+ params.add(ticketFk)
+ params.add(sectorFk)
+ return restClient!!.ticketToPrePrepare("json","1",usuario,password,"application/json",params)
+ }
+
+ fun itemPlacementSupplyGetOrder(usuario:String,password:String,sectorFk:String) : Call> {
+ val params:ArrayList = ArrayList();
+ params.add(sectorFk)
+ return restClient!!.itemPlacementSupplyGetOrder("json","1",usuario,password,"application/json",params)
+ }
+
+ fun itemPlacementSupplyCloseOrder(usuario:String,password:String,id:String,quantity:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(id)
+ params.add(quantity)
+ return restClient!!.itemPlacementSupplyCloseOrder("json","1",usuario,password,"application/json",params)
+ }
+
+
+
+}
\ No newline at end of file
diff --git a/app/src/main/java/es/verdnatura/domain/GetQualityUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetQualityUserCase.kt
new file mode 100644
index 00000000..ee2264f8
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/GetQualityUserCase.kt
@@ -0,0 +1,26 @@
+package es.verdnatura.domain
+
+import android.content.Context
+import es.verdnatura.presentation.view.feature.calidad.model.BuyerVO
+import es.verdnatura.presentation.view.feature.calidad.model.ItemBuyerVO
+import retrofit2.Call
+
+class GetQualityUserCase(context: Context) : RestClient(context) {
+
+ fun itemShelvingBuyerGet(usuario:String,password:String) : Call> {
+ return restClient!!.itemShelvingBuyerGet("json","1",usuario,password,"application/json")
+ }
+
+ fun itemShelvingBuyerTask(usuario:String,password:String, userFk: String) : Call> {
+ val params:ArrayList = ArrayList();
+ params.add(userFk)
+ return restClient!!.itemShelvingBuyerTask("json","1",usuario,password,"application/json",params)
+ }
+
+ fun itemShelvingStarsUpdate(usuario:String,password:String, vId: String,vStars: String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(vId)
+ params.add(vStars)
+ return restClient!!.itemShelvingStarsUpdate("json","1",usuario,password,"application/json",params)
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/es/verdnatura/domain/GetSacadorControladorUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetSacadorControladorUserCase.kt
new file mode 100644
index 00000000..f16bda0d
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/GetSacadorControladorUserCase.kt
@@ -0,0 +1,150 @@
+package es.verdnatura.domain
+
+import android.content.Context
+import android.util.Log
+import es.verdnatura.presentation.view.feature.collection.ItemVO
+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.PlacementSupplyVO
+import retrofit2.Call
+
+class GetSacadorControladorUserCase(context: Context) : RestClient(context) {
+
+ fun collectionTicketGet(usuario:String,password:String,collectionFk:String,sectorFk:String,print:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(collectionFk)
+ params.add(sectorFk)
+ params.add(print)
+ return restClient!!.collectionTicketGet("json","1",usuario,password,"application/json",params)
+ }
+
+ fun collectionNew(usuario:String,password:String,sectorFk:String,carros:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(sectorFk)
+ params.add(carros)
+ return restClient!!.collectionNew("json","1",usuario,password,"application/json",params)
+
+ }
+
+
+ fun collectionGet(usuario:String,password:String) : Call> {
+ val params:ArrayList = ArrayList();
+ return restClient!!.collectionGet("json","1",usuario,password,"application/json")
+ }
+
+ fun saleTrackingReplace(usuario:String,password:String,saleFk:String,vOriginalQuantity:String,vStateFk:String,vIsChecked:String,vBuyFk:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(saleFk)
+ params.add(vOriginalQuantity)
+ params.add(vStateFk)
+ params.add(vIsChecked)
+ params.add(vBuyFk)
+ return restClient!!.saleTrackingReplace("json","1",usuario,password,"application/json",params)
+ }
+
+ fun itemPlacementSupplyAiming(usuario:String,password:String,shelvingFk:String,quantity:String,itemFk:String) : Call> {
+ val params:ArrayList = ArrayList();
+ params.add(shelvingFk)
+ params.add(quantity)
+ params.add(itemFk)
+ return restClient!!.itemPlacementSupplyAiming("json","1",usuario,password,"application/json",params)
+ }
+
+ fun itemShelvingSaleSupplyAdd(usuario:String,password:String,itemShelvingFk:String,saleFk:String,quantity:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(itemShelvingFk)
+ params.add(saleFk)
+ params.add(quantity)
+ return restClient!!.itemShelvingSaleSupplyAdd("json","1",usuario,password,"application/json",params)
+ }
+
+ fun itemShelvingPlacementSupplyAdd(usuario:String,password:String,itemShelvingFk:String,itemPlacementSupplyFk:String,quantity:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(itemShelvingFk)
+ params.add(itemPlacementSupplyFk)
+ params.add(quantity)
+ return restClient!!.itemShelvingPlacementSupplyAdd("json","1",usuario,password,"application/json",params)
+ }
+
+ fun collectionStickerPrint(usuario:String,password:String,collectionFk: String,sectorFk: String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(collectionFk)
+ params.add(sectorFk)
+ return restClient!!.collectionStickerPrint("json","1",usuario,password,"application/json",params)
+ }
+
+ fun itemGetAvailable(usuario:String,password:String,itemFk: String,warehouseFk: String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(itemFk)
+ params.add(warehouseFk)
+ return restClient!!.itemGetAvailable("json","1",usuario,password,"application/json",params)
+ }
+
+ fun collectionAddItem(usuario:String,password:String,itemFk: String,quantityFk: String,ticketFk: String,warehouseFk: String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(itemFk)
+ params.add(quantityFk)
+ params.add(ticketFk)
+ params.add(warehouseFk)
+ return restClient!!.collectionAddItem("json","1",usuario,password,"application/json",params)
+ }
+
+ fun saleMove(usuario:String,password:String,saleFk: String,quantity: String,originalQuantity:String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(saleFk)
+ params.add(quantity)
+ params.add(originalQuantity)
+ return restClient!!.saleMove("json","1",usuario,password,"application/json",params)
+ }
+
+ fun collectionMissingTrash(usuario:String,password:String,saleFk: String,quantity: String,type:String,warehouseFk:String,originalQuantity: String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(saleFk)
+ params.add(quantity)
+ params.add(type)
+ params.add(warehouseFk)
+ params.add(originalQuantity)
+ return restClient!!.collectionMissingTrash("json","1",usuario,password,"application/json",params)
+ }
+
+ fun saleTrackingDel(usuario:String,password:String,saleFk: String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(saleFk)
+ return restClient!!.saleTrackingDel("json","1",usuario,password,"application/json",params)
+ }
+
+ fun collectionUpdateState(usuario:String,password:String,collectionFk: String,state : String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(collectionFk)
+ params.add(state)
+ return restClient!!.collectionUpdateState("json","1",usuario,password,"application/json",params)
+ }
+
+ fun getIdFromCode(usuario:String,password:String,code: String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(code)
+ return restClient!!.getIdFromCode("json","1",usuario,password,"application/json",params)
+ }
+
+ fun collectionIncreaseQuantity(usuario:String,password:String,saleFk: String, quantity: String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(saleFk)
+ params.add(quantity)
+ return restClient!!.collectionIncreaseQuantity("json","1",usuario,password,"application/json",params)
+ }
+
+ fun saleMistakeAdd(usuario:String,password:String,vSaleFk: String, vUserFk: String, vTypeFk: String) : Call {
+ val params:ArrayList = ArrayList()
+ params.add(vSaleFk)
+ params.add(vUserFk)
+ params.add(vTypeFk)
+ return restClient!!.saleMistakeAdd("json","1",usuario,password,"application/json",params)
+ }
+
+ fun mistakeType(usuario:String,password:String) : Call> {
+ val params:ArrayList = ArrayList();
+ return restClient!!.mistakeType("json","1",usuario,password,"application/json")
+ }
+
+
+}
diff --git a/app/src/main/java/es/verdnatura/domain/GetShelvingParkingUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetShelvingParkingUserCase.kt
new file mode 100644
index 00000000..5e8d499e
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/GetShelvingParkingUserCase.kt
@@ -0,0 +1,17 @@
+package es.verdnatura.domain
+
+import android.content.Context
+import es.verdnatura.presentation.view.feature.shelvingparking.model.ItemShelvingParkingVO
+import retrofit2.Call
+
+class GetShelvingParkingUserCase(context: Context) : RestClient(context) {
+
+ fun shelvingParking_get(usuario:String,password:String,vShelvingFk:String,vWarehouseFk:String,vDayRange:String) : Call> {
+ val params:ArrayList = ArrayList();
+ params.add(vShelvingFk)
+ params.add(vWarehouseFk)
+ params.add(vDayRange)
+ return restClient!!.shelvingParking_get("json","1",usuario,password,"application/json",params)
+ }
+}
+
diff --git a/app/src/main/java/es/verdnatura/domain/GetUbicadorUserCase.kt b/app/src/main/java/es/verdnatura/domain/GetUbicadorUserCase.kt
new file mode 100644
index 00000000..e2565189
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/GetUbicadorUserCase.kt
@@ -0,0 +1,91 @@
+package es.verdnatura.domain
+
+import android.content.Context
+import es.verdnatura.presentation.view.feature.ubicador.model.ItemUbicadorVO
+import retrofit2.Call
+
+class GetUbicadorUserCase(context: Context) : RestClient(context) {
+
+ fun itemShelvingList(usuario:String,password:String,vShelvingFk:String) : Call> {
+ val params:ArrayList = ArrayList();
+ params.add(vShelvingFk)
+ return restClient!!.itemShelvingList("json","1",usuario,password,"application/json",params)
+ }
+
+ fun itemShelvingMake(usuario:String,password:String,shelving:String,item:String,deep:String,quantity:String,packing:String,warehouse:String,level:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(shelving)
+ params.add(item)
+ params.add(deep)
+ params.add(quantity)
+ params.add(packing)
+ params.add(warehouse)
+ params.add(level)
+ return restClient!!.itemShelvingMake("json","1",usuario,password,"application/json",params)
+ }
+
+ fun itemShelvingMakeEdit(usuario:String,password:String,shelving:String,item:String,deep:String,quantity:String,packing:String,warehouse:String,level:String,itemShelvingFk:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(shelving)
+ params.add(item)
+ params.add(deep)
+ params.add(quantity)
+ params.add(packing)
+ params.add(warehouse)
+ params.add(level)
+ params.add(itemShelvingFk)
+ return restClient!!.itemShelvingMakeEdit("json","1",usuario,password,"application/json",params)
+ }
+
+ fun itemShelvingMake_multi(usuario:String,password:String,shelving:String,items:List,deep:String,warehouse:String,level:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(shelving)
+ params.add(items)
+ params.add(deep)
+ params.add(warehouse)
+ params.add(level)
+ return restClient!!.itemShelvingMake_multi("json","1",usuario,password,"application/json",params)
+ }
+
+ fun shelvingPriorityUpdate(usuario:String,password:String,priority:String,shelving:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(priority)
+ params.add(shelving)
+ return restClient!!.shelvingPriorityUpdate("json","1",usuario,password,"application/json",params)
+ }
+
+ fun shelvingPark(usuario:String,password:String,shelving:String,parking:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(shelving)
+ params.add(parking)
+ return restClient!!.shelvingPark("json","1",usuario,password,"application/json",params)
+ }
+
+ fun shelvingChange(usuario:String,password:String,origen:String,destino:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(origen)
+ params.add(destino)
+ return restClient!!.shelvingChange("json","1",usuario,password,"application/json",params)
+ }
+
+ fun clearShelvingList(usuario:String,password:String,shelvingFk:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(shelvingFk)
+ return restClient!!.clearShelvingList("json","1",usuario,password,"application/json",params)
+ }
+
+ fun itemShelvingTransfer(usuario:String,password:String,itemFk:String,shelvingFk:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(itemFk)
+ params.add(shelvingFk)
+ return restClient!!.itemShelvingTransfer("json","1",usuario,password,"application/json",params)
+ }
+
+ fun itemShelvingDelete(usuario:String,password:String,itemFk:String) : Call {
+ val params:ArrayList = ArrayList();
+ params.add(itemFk)
+ return restClient!!.itemShelvingDelete("json","1",usuario,password,"application/json",params)
+ }
+}
+
+
diff --git a/app/src/main/java/es/verdnatura/domain/RestClient.kt b/app/src/main/java/es/verdnatura/domain/RestClient.kt
new file mode 100644
index 00000000..79c36af2
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/RestClient.kt
@@ -0,0 +1,15 @@
+package es.verdnatura.domain
+
+import android.content.Context
+
+open class RestClient(context:Context) {
+ var restClient:VerdnaturaService? = null
+ var salixClient:SalixService? = null
+
+ init {
+ restClient = ApiUtils.getApiService(context)
+ salixClient = ApiSalixUtils.getApiService()
+ }
+
+
+}
\ No newline at end of file
diff --git a/app/src/main/java/es/verdnatura/domain/SalixService.kt b/app/src/main/java/es/verdnatura/domain/SalixService.kt
new file mode 100644
index 00000000..37382f7e
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/SalixService.kt
@@ -0,0 +1,23 @@
+package es.verdnatura.domain
+
+import es.verdnatura.presentation.view.feature.login.model.LoginSalixVO
+import es.verdnatura.presentation.view.feature.login.model.SalixMessageVO
+import retrofit2.Call
+import retrofit2.http.Body
+import retrofit2.http.Header
+import retrofit2.http.POST
+
+interface SalixService {
+
+ @POST("Accounts/login")
+ fun login(@Header("Content-Type") content_type: String,
+ @Body params: LoginSalixVO):
+ Call
+
+ @POST("chats/sendCheckingPresence")
+ fun sendChekingPresence(
+ @Header("Content-Type") content_type: String,
+ @Header("Authorization") authorization: String,
+ @Body params: SalixMessageVO):
+ Call
+}
\ No newline at end of file
diff --git a/app/src/main/java/es/verdnatura/domain/VerdnaturaService.kt b/app/src/main/java/es/verdnatura/domain/VerdnaturaService.kt
new file mode 100644
index 00000000..bc2be372
--- /dev/null
+++ b/app/src/main/java/es/verdnatura/domain/VerdnaturaService.kt
@@ -0,0 +1,666 @@
+package es.verdnatura.domain
+
+
+
+import es.verdnatura.presentation.view.feature.ajustes.model.SectorItemVO
+import es.verdnatura.presentation.view.feature.articulo.model.ItemCardVO
+import es.verdnatura.presentation.view.feature.articulo.model.ItemPackingType
+import es.verdnatura.presentation.view.feature.buscaritemall.model.ItemLocationAll
+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.ItemBuyerVO
+import es.verdnatura.presentation.view.feature.collection.ItemVO
+import es.verdnatura.presentation.view.feature.faltas.model.ItemFaltasVO
+import es.verdnatura.presentation.view.feature.historico.model.ItemHistoricoVO
+import es.verdnatura.presentation.view.feature.inventario.model.ItemInventaryVO
+import es.verdnatura.presentation.view.feature.login.model.versionApp
+import es.verdnatura.presentation.view.feature.paletizador.model.*
+import es.verdnatura.presentation.view.feature.presacador.model.PreSacadorItemVO
+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.PlacementSupplyVO
+import es.verdnatura.presentation.view.feature.shelvingparking.model.ItemShelvingParkingVO
+import es.verdnatura.presentation.view.feature.ubicador.model.ItemUbicadorVO
+import retrofit2.Call
+import retrofit2.http.Body
+import retrofit2.http.Header
+import retrofit2.http.POST
+
+
+@JvmSuppressWildcards
+interface VerdnaturaService {
+
+ //LOGIN ========================================================================>
+ @POST("security/login")
+ fun login(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/version")
+ fun version(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("/security/getVersion")
+ fun version2(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+
+
+ //AJUSTES ========================================================================>
+ @POST("almacennew/sector_get")
+ fun getSectors(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String):
+ Call>
+
+
+ //PRESACADORES ========================================================================>
+
+ @POST("almacennew/ticketToPrePrepare")
+ fun ticketToPrePrepare(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call>
+
+
+ @POST("almacennew/itemPlacementSupplyGetOrder")
+ fun itemPlacementSupplyGetOrder(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call>
+
+ @POST("almacennew/itemPlacementSupplyCloseOrder")
+ fun itemPlacementSupplyCloseOrder(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+
+
+
+ //SACADORES / CONTROLADORES ========================================================================>
+ @POST("almacennew/collectionGet")
+ fun collectionGet(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String):
+ Call>
+
+ @POST("almacennew/collectionNew")
+ fun collectionNew(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/collectionTicketGet")
+ fun collectionTicketGet(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/saleTrackingReplace")
+ fun saleTrackingReplace(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/itemPlacementSupplyAiming")
+ fun itemPlacementSupplyAiming(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call>
+
+ @POST("almacennew/itemShelvingSaleSupplyAdd")
+ fun itemShelvingSaleSupplyAdd(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/itemShelvingPlacementSupplyAdd")
+ fun itemShelvingPlacementSupplyAdd(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/collectionStickerPrint")
+ fun collectionStickerPrint(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/itemGetAvailable")
+ fun itemGetAvailable(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/collectionAddItem")
+ fun collectionAddItem(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/saleMove")
+ fun saleMove(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/collectionMissingTrash")
+ fun collectionMissingTrash(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/saleTrackingDel")
+ fun saleTrackingDel(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/collectionUpdateState")
+ fun collectionUpdateState(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/barcodeToItem")
+ fun getIdFromCode(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/collectionIncreaseQuantity")
+ fun collectionIncreaseQuantity(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+
+ @POST("almacennew/saleMistakeAdd")
+ fun saleMistakeAdd(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/mistakeType")
+ fun mistakeType(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String):
+ Call>
+
+ //PASILLEROS ========================================================================>
+
+ //CONSULTAR ARTICULO ========================================================================>
+ @POST("almacennew/itemDiary")
+ fun itemDiary(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call>
+
+ @POST("almacennew/item_card")
+ fun getItemCard(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/get_ItemPackingType")
+ fun getItemPackingType(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call>
+
+
+
+ @POST("almacennew/itemStockUpdate")
+ fun itemStockUpdate(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/itemTrash")
+ fun itemTrash(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/item_placement_save")
+ fun itemPlacementSave(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/buy_updateGrouping")
+ fun updateGrouping(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/buy_updatePacking")
+ fun updatePacking(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/update_ItemPackingType")
+ fun updatePackingType(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/itemSaveMin")
+ fun itemSaveMin(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+
+ @POST("almacennew/barcodes_edit")
+ fun barcodes_edit(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ //BUSCAR ITEM ========================================================================>
+ @POST("almacennew/getItemUbication")
+ fun searchItemsUbicador(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call>
+
+// BUSCAR ITEM ALL
+ @POST("almacennew/getItemUbication")
+ fun searchItemsUbicadorAll(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call>
+
+ //INVENTARIO ========================================================================>
+
+
+ @POST("almacennew/itemShelvingRadar")
+ fun itemShelvingRadar(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call>
+
+ @POST("almacennew/itemShelving_filterBuyer")
+ fun itemShelvingRadarFilterBuyer(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call>
+
+ @POST("almacennew/faultsReview")
+ fun faultsReview(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call>
+
+ @POST("almacennew/faultsReview_isChecked")
+ fun faultsReview_isChecked(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ //SHELVING PARKING ========================================================================>
+ @POST("almacennew/shelvingParking_get")
+ fun shelvingParking_get(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call>
+
+
+
+ //UBICADOR ========================================================================>
+ @POST("almacennew/itemShelvingList")
+ fun itemShelvingList(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call>
+
+ @POST("almacennew/shelvingPriorityUpdate")
+ fun shelvingPriorityUpdate(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/itemShelvingMake")
+ fun itemShelvingMake(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/itemShelvingMakeEdit")
+ fun itemShelvingMakeEdit(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/itemShelvingMake_multi")
+ fun itemShelvingMake_multi(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/shelvingPark")
+ fun shelvingPark(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/shelvingChange")
+ fun shelvingChange(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/clearShelvingList")
+ fun clearShelvingList(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/itemShelvingTransfer")
+ fun itemShelvingTransfer(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/itemShelvingDelete")
+ fun itemShelvingDelete(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ //PALETIZADORES ========================================================================>
+ @POST("almacennew/expeditionTruckList")
+ fun expeditionTruckList(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String):
+ Call>
+
+ @POST("almacennew/expeditionTruckAdd")
+ fun expeditionTruckAdd(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/expeditionPalletList")
+ fun expeditionPallet_List(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call>
+
+ @POST("almacennew/expeditionScanAdd")
+ fun expeditionScanAdd(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call>
+
+ @POST("almacennew/expeditionScanPut")
+ fun expeditionScanPut(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+ @POST("almacennew/checkRouteExpeditionScanPut")
+ fun checkRouteExpeditionScanPut(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call
+
+
+
+ @POST("almacennew/expeditionPalletView")
+ fun expeditionPalletView(@Header("aplicacion") aplicacion: String,
+ @Header("version") version: String,
+ @Header("user") user: String,
+ @Header("pass") pass: String,
+ @Header("Content-Type") content_type: String,
+ @Body params: List):
+ Call