private void MapaEnEsperaAsync() { //var location = await Geolocation.GetLastKnownLocationAsync(); //if (Device.RuntimePlatform == Device.iOS) //{ // //https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html // Device.OpenUri(new Uri("http://maps.apple.com/?q=394+Pacific+Ave+San+Francisco+CA")); //} //else if (Device.RuntimePlatform == Device.Android) //{ // // opens the Maps app directly // Device.OpenUri(new Uri("geo:" + location.Latitude + "," + location.Longitude + "")); //} var AppInstance = MainViewModel.GetInstance(); AppInstance.MVHomeOrden = new VMHomeOrden { StrUidOrden = UidOrden.ToString(), UidDireccionDelCliente = UidDireccionCliente.ToString(), UidSucursal = UidSucursal, UidOrdenTarifario = UidOrdenTarifario, UidordenRepartidor = UidordenRepartidor }; AppInstance.MVHomeOrden.CargaOrden(); AppInstance.MVHomeOrden.ShowInfoOrder.Execute(null); }
private async void Entregarorden() { IsLoading = true; IsEnable = false; var AppInstance = MainViewModel.GetInstance(); AppInstance.MVHomeOrden = new VMHomeOrden { StrUidOrden = UidOrden.ToString(), UidDireccionDelCliente = UidDireccionCliente.ToString(), UidSucursal = UidSucursal, LngFolio = LngFolio, UidOrdenTarifario = UidOrdenTarifario, UidordenRepartidor = UidordenRepartidor, StrIdentificadorSucursal = MVSucursal.IDENTIFICADOR, StrCodigo = MVOrden.CodigoOrdenTarifario }; AppInstance.MVHomeOrden.StrCodigo = string.Empty; AppInstance.MVHomeOrden.CargaOrden(); await Application.Current.MainPage.Navigation.PushAsync(new Home_Entregar()); IsLoading = false; IsEnable = true; }
private async void MostrarCodigoQR() { IsLoading = true; IsEnable = false; MVOrden = new VMOrden(); using (var _WebApiGoDeliverix = new HttpClient()) { url = "" + settings.Sitio + "api/Orden/GetObtenerCodigoOrdenTarifario?uidOrdenTarifario=" + UidOrdenTarifario + ""; string content = await _WebApiGoDeliverix.GetStringAsync(url); var obj = JsonConvert.DeserializeObject <ResponseHelper>(content).Data.ToString(); MVOrden = JsonConvert.DeserializeObject <VistaDelModelo.VMOrden>(obj); StrCodigo = MVOrden.CodigoOrdenTarifario; } using (var _WebApiGoDeliverix = new HttpClient()) { url = string.Empty; url = "" + settings.Sitio + "api/Sucursales/GetBuscarSucursales?UidSucursal=" + UidSucursal + ""; string content = await _WebApiGoDeliverix.GetStringAsync(url); string obj = JsonConvert.DeserializeObject <ResponseHelper>(content).Data.ToString(); MVSucursal = JsonConvert.DeserializeObject <VistaDelModelo.VMSucursales>(obj); } var AppInstance = MainViewModel.GetInstance(); AppInstance.MVHomeOrden = new VMHomeOrden { StrUidOrden = UidOrden.ToString(), UidDireccionDelCliente = UidDireccionCliente.ToString(), UidSucursal = UidSucursal, LngFolio = LngFolio, UidOrdenTarifario = UidOrdenTarifario, UidordenRepartidor = UidordenRepartidor, StrIdentificadorSucursal = MVSucursal.IDENTIFICADOR, StrCodigo = MVOrden.CodigoOrdenTarifario }; AppInstance.MVHomeOrden.CargaOrden(); IsLoading = false; IsEnable = true; await Application.Current.MainPage.Navigation.PushAsync(new Home_CodigoQR()); }
private async void MostrarOrden() { IsLoading = true; IsEnable = false; var AppInstance = MainViewModel.GetInstance(); AppInstance.MVHomeOrden = new VMHomeOrden { StrUidOrden = UidOrden.ToString(), UidDireccionDelCliente = UidDireccionCliente.ToString(), UidSucursal = UidSucursal, LngFolio = LngFolio, UidOrdenTarifario = UidOrdenTarifario, UidordenRepartidor = UidordenRepartidor, ListaProductos = new System.Collections.Generic.List <Modelo.Productos>() }; AppInstance.MVHomeOrden.CargaOrden(); IsLoading = false; IsEnable = true; await Application.Current.MainPage.Navigation.PushAsync(new Home_NuevaOrden()); }