Esempio n. 1
0
        /*Recupero-Simulador-->Se agrego por que lo utiliza el ABM_Novedades_Recupero*/
        public static List <WSTipoConcConcLiq.TipoServicio> TraerTipoServicio(int CodConceptoLiq, short tipoDescuento)
        {
            WSTipoConcConcLiq.TipoConcConcLiqWS oServicio = new WSTipoConcConcLiq.TipoConcConcLiqWS();
            oServicio.Url         = ConfigurationManager.AppSettings[oServicio.GetType().ToString()];
            oServicio.Credentials = System.Net.CredentialCache.DefaultCredentials;
            List <WSTipoConcConcLiq.TipoServicio> lst = null;

            try
            {
                #region Para desarrollo y produccion Habilitar

                lst = new List <WSTipoConcConcLiq.TipoServicio>(oServicio.TraerTipoServicio(CodConceptoLiq, tipoDescuento));

                #endregion

                return(lst);
            }
            catch (Exception err)
            {
                log.Error(string.Format("ERROR Ejecución:{0}->{1} - Error:{2}->{3}", DateTime.Now, System.Reflection.MethodBase.GetCurrentMethod(), err.Source, err.Message));
                string MsgError = String.Format("No se pudieron obtener los tipos de servicio para el tipodedescuento {0}. El mensaje original es : {1} ", tipoDescuento, err.Message);
                throw new Exception(MsgError);
            }
            finally
            {
                oServicio.Dispose();
            }
        }
Esempio n. 2
0
        public static List <WSTipoConcConcLiq.ConceptoLiquidacion> Traer_CodConceptoLiquidacion_TConceptosArgenta(long idPrestador)
        {
            WSTipoConcConcLiq.TipoConcConcLiqWS oServicio = new WSTipoConcConcLiq.TipoConcConcLiqWS();
            oServicio.Url         = System.Configuration.ConfigurationManager.AppSettings[oServicio.GetType().ToString()];
            oServicio.Credentials = CredentialCache.DefaultCredentials;
            List <WSTipoConcConcLiq.ConceptoLiquidacion> oListTipoConcepto = null;

            try
            {
                oListTipoConcepto = new List <WSTipoConcConcLiq.ConceptoLiquidacion>(oServicio.Traer_CodConceptoLiquidacion_TConceptosArgenta(idPrestador));

                return(oListTipoConcepto);
            }
            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;
            }
            finally
            {
                oServicio.Dispose();
            }
        }