public async void agregarResumenPreUso_SQLServer(CheckListSummary summary, HomeOnRequestFinished callback) { //callback.mostrarProgreso(true); Log.Info(TAG, "Se inicia agregar Resumen de PreUso a la BD de SQLServer"); RestClient <CheckListSummary> restClient = new RestClient <CheckListSummary>(); try { var respuesta = await restClient.PostAsync(TIPO_CHECKLISTSUMMARY, summary); Log.Info("agregarResumenPreUso_SQLServer", Convert.ToString(respuesta)); //callback.preUsoEnviado(); } catch (Exception ex) { Log.Error("agregarResumenPreUso_SQLServer", ex.Message); } }
public async void actualizarVehiculo_SQLServer(Vehicle vehicle, HomeOnRequestFinished callback) { //callback.mostrarProgreso(true); Log.Info(TAG, "Se inicia actualizar Vehiculo en la BD de SQLServer"); RestClient <Vehicle> restClient = new RestClient <Vehicle>(); try { var respuesta = await restClient.PutAsync(TIPO_VEHICLES, vehicle.IdVehiculo, vehicle); Log.Info("actualizarVehiculo_SQLServer", Convert.ToString(respuesta)); //callback.preUsoEnviado(); } catch (Exception ex) { Log.Error("actualizarVehiculo_SQLServer", ex.Message); } }
public async void descargarListaPreUsosDelDia_SQLServer(string date, HomeOnRequestFinished callback) { callback.mostrarProgreso(true); Log.Info(TAG, "Se inicia descargar de Lista de Pre-Usos del dia desde SQLServer"); RestClient <CheckListSummary> restClient = new RestClient <CheckListSummary>(); var checkLists = new List <CheckListSummary>(); try { checkLists = await restClient.GetCheckListSummariesByBrowser(TIPO_CHECKLISTSUMMARY, date); callback.mostrarProgreso(false); callback.compararListaPreUsos(checkLists); } catch (Exception ex) { Log.Info("descargarListaPreUsosDelDia_SQLServer", ex.Message); callback.errorDescargaPreUsos(); } }