Example #1
0
        public static double?Parametros_CostoFinanciero_Trae(byte Ctas_Prestamo)
        {
            ParametrosWS.ParametrosWS oServicio = new ParametrosWS.ParametrosWS();
            oServicio.Url         = ConfigurationManager.AppSettings[oServicio.GetType().ToString()];
            oServicio.Credentials = System.Net.CredentialCache.DefaultCredentials;

            try
            {
                ParametrosWS.Parametros_CostoFinaciero unParametro = oServicio.Parametros_CostoFinanciero_Traer_X_CantCuota(Ctas_Prestamo);

                return(unParametro == null ? (double?)null : unParametro.Total);
            }
            catch (Exception ex)
            {
                log.Error(string.Format("ERROR EjecuciĆ³n:{0}->{1} - Error:{2}->{3}", DateTime.Now, System.Reflection.MethodBase.GetCurrentMethod(), ex.Source, ex.Message));
                throw ex;
            }
        }
Example #2
0
        /*Recupero_Simulador-->Se agrega pq lo utiliza ABM_Novedades_Recupero*/
        public static List <ParametrosWS.Parametros_CodConcepto_T3> Parametros_CodConcepto_T3_Traer(long CodConceptoLiq)
        {
            ParametrosWS.ParametrosWS oServicio = new ParametrosWS.ParametrosWS();
            oServicio.Url         = ConfigurationManager.AppSettings[oServicio.GetType().ToString()];
            oServicio.Credentials = System.Net.CredentialCache.DefaultCredentials;
            List <ParametrosWS.Parametros_CodConcepto_T3> oLista = null;

            try
            {
                oLista = new List <ParametrosWS.Parametros_CodConcepto_T3>(oServicio.Parametros_CodConcepto_T3_Traer(CodConceptoLiq));
                return(oLista);
            }
            catch (Exception ex)
            {
                log.Error(string.Format("ERROR EjecuciĆ³n:{0}->{1} - Error:{2}->{3}", DateTime.Now, System.Reflection.MethodBase.GetCurrentMethod(), ex.Source, ex.Message));
                throw ex;
            }
        }