public async void descargarDocumentosDeVehiculo_SQLServer(string placa, TablesOnRequestFinished callback) { Log.Info(TAG, "Se inicia descargar de Fechas de Vehiculo de SQLServer"); RestClient <Document> restClient = new RestClient <Document>(); var document = new Document(); try { document = await restClient.GetDocumentsByPlate(TIPO_DOCUMENTS, placa); callback.organizarFechas(document); } catch (Exception ex) { Log.Error("descargarDocumentosDeVehiculo_SQLServer", ex.Message); callback.errorDescargaDocumentos(); } }
public async void agregarPreUso_SQLServer(CheckList checkList, TablesOnRequestFinished callback) { callback.mostrarProgreso(true); Log.Info(TAG, "Se inicia agregar PreUso a la BD de SQLServer"); RestClient <CheckList> restClient = new RestClient <CheckList>(); try { var respuesta = await restClient.PostAsync(TIPO_CHECKLIST, checkList); Log.Info("agregarPreUso_SQLServer", Convert.ToString(respuesta)); callback.preUsoEnviado(); } catch (Exception ex) { Log.Error("agregarPreUso_SQLServer", ex.Message); } }
public async void actualizarResumenPreUso_SQLServer(CheckListSummary resumen, TablesOnRequestFinished callback) { callback.mostrarProgreso(true); Log.Info(TAG, "Se inicia actualizar resumen de Pre-Uso en la BD de SQLServer"); RestClient <CheckListSummary> restClient = new RestClient <CheckListSummary>(); try { var respuesta = await restClient.PutAsync(TIPO_CHECKLISTSUMMARY, resumen.IdResumen, resumen); Log.Info("actualizarResumenPreUso_SQLServer", Convert.ToString(respuesta)); callback.resumenPreUsoActualizado(); } catch (Exception ex) { Log.Error("actualizarResumenPreUso_SQLServer", ex.Message); } }