public RecuperoWS.RecuperoDetalleForm ObtenerRecuperosPorId(decimal idRecupero, out decimal valorResidualTotal) { try { RecuperoWS.RecuperoWS clientRecuperoWs = new RecuperoWS.RecuperoWS(); clientRecuperoWs.Url = System.Configuration.ConfigurationManager.AppSettings[clientRecuperoWs.GetType().ToString()]; clientRecuperoWs.Credentials = System.Net.CredentialCache.DefaultCredentials; return(clientRecuperoWs.ObtenerDatosDeRecupero_TXId(idRecupero, out valorResidualTotal)); } catch (Exception ex) { log.Error(string.Format("ERROR Ejecución:{0}->{1} - Error:{2}->{3}", DateTime.Now, "ObtenerRecuperosPorId", ex.Source, ex.Message)); throw; } }
public decimal ObtenerMontoMinimoDeRecupero(int idPrestador) { try { RecuperoWS.RecuperoWS clientRecuperoWs = new RecuperoWS.RecuperoWS(); clientRecuperoWs.Url = System.Configuration.ConfigurationManager.AppSettings[clientRecuperoWs.GetType().ToString()]; clientRecuperoWs.Credentials = System.Net.CredentialCache.DefaultCredentials; return(clientRecuperoWs.ObtenerValorMinimoDeRecupero(idPrestador)); } catch (Exception ex) { log.Error(string.Format("ERROR Ejecución:{0}->{1} - Error:{2}->{3}", DateTime.Now, "ObtenerMontoMinimoDeRecupero", ex.Source, ex.Message)); throw; } }
public List <ComboBoxItem> ListarFormasDePago() { try { RecuperoWS.RecuperoWS clientRecuperoWs = new RecuperoWS.RecuperoWS(); clientRecuperoWs.Url = System.Configuration.ConfigurationManager.AppSettings[clientRecuperoWs.GetType().ToString()]; clientRecuperoWs.Credentials = System.Net.CredentialCache.DefaultCredentials; return(clientRecuperoWs.ObtenerModalidadDePago().ToList().Select(x => new ComboBoxItem { Id = x.Id, Texto = x.Descripcion }).ToList()); } catch (Exception ex) { log.Error(string.Format("ERROR Ejecución:{0}->{1} - Error:{2}->{3}", DateTime.Now, "ListarFormasDePago()", ex.Source, ex.Message)); throw; } }