private string getDestFactByOV(string sIdClienteRP, string sOV) { StringBuilder sb = new StringBuilder(); try { CLIENTE oCliente = CLIENTE.ObtenerResponsablePago(null, int.Parse(sIdClienteRP), sOV); sb.Append(oCliente.t302_idcliente.ToString() + "@#@"); sb.Append(oCliente.t302_denominacion + "@#@"); sb.Append(oCliente.NIF + "@#@"); sb.Append(oCliente.direccion + "@#@"); sb.Append(oCliente.denominacion_SAP); return("OK@#@" + sb.ToString()); } catch (NullReferenceException) { return("OK@#@@#@@#@@#@@#@"); } catch (Exception ex) { return("Error@#@" + Errores.mostrarError("Error al obtener el destinatario de factura.", ex)); } }