public void ConsultaComprobante(string fecha, string referencia, string codigoOperacion) { var itm = from item in this._tiposOperacion where item == codigoOperacion select item; if (itm.Count() > 0) { ReqComprobanteBitacora bitacora = new ReqComprobanteBitacora() { fecha = fecha, referencia = referencia, tipoOperacion = codigoOperacion }; Services.ComprobanteBitacora(base.ServiceRequest, ResponseComprobanteBitacora, bitacora); } else { if (comprobanteCompleted != null) { comprobanteCompleted(false, TextosFront.frontMensajeNoComprobante); } } }
public static void ComprobanteBitacora(ServiceRequest2 serviceRequest, ServiceRequestEventHandler<List<Comprobante>> asyncCallback, ReqComprobanteBitacora requestData) { #if OFFLINE serviceRequest.BeginWebRequestOffline<ResComprobanteBitacora, List<Comprobante>>(service._serviceComprobanteBitacora, asyncCallback, json._jsonGetComprobanteBitacora); #else new Thread(() => { serviceRequest.BeginWebRequest<ResComprobanteBitacora, List<Comprobante>, ReqComprobanteBitacora>(service._serviceComprobanteBitacora, asyncCallback, requestData); }).Start(); #endif }