private async void Print() { if (itemIndex != null) { TS_BEDocumentoInput documento = new TS_BEDocumentoInput(); documento.nroseriemaq = itemIndex.nroseriemaq; documento.cdtipodoc = itemIndex.cdtipodoc; documento.nrodocumento = itemIndex.nrodocumento; documento.nropos = itemIndex.nropos; documento.fecha = itemIndex.fecha; documento.imprimir = true; await Navigation.PushAsync(new ReImpresionCompleted(documento)); } }
public static async Task <PrintEstado> ProcesaReImprimirDocumento() { PrintEstado Respuesta = PrintEstado.ErrorSistema; await Task.Run(() => { TS_BEDocumentoInput input = new TS_BEDocumentoInput() { cdtipodoc = Cdtipodoc, nrodocumento = Nrodocumento, nropos = NroPos, nroseriemaq = NroSerieMaq, imprimir = imprimir, fecha = fecha }; TS_SIImpresionClient cliente = null; try { cliente = new TS_SIImpresionClient(Helper.ServicioSoapBinding(), new EndpointAddress(Config.Services.Impresion)); _OBTENER_DOCUMENTO_IMPRESOCompleted(cliente.OBTENER_DOCUMENTO_IMPRESO(input)); Respuesta = PrintEstado.EsperandoRespuesta; } catch { Respuesta = PrintEstado.ErrorSistema; } finally { if (cliente != null) { if (cliente.State == CommunicationState.Opened) { cliente.Close(); } } } }); return(Respuesta); }
public ReImpresionCompleted(TS_BEDocumentoInput input) { DocumentoInput = input; InitializeComponent(); }