private void ValidateCompensator(Type compensator) { DBG.Status(DBG.CRM, "Validating compensator: " + compensator); if (!compensator.IsSubclassOf(typeof(Compensator))) { // Throw an exception! throw new ArgumentException(Resource.FormatString("CRM_CompensatorDerive")); } // We've gotta make sure that this puppy's available for // COM clients: if (!(new RegistrationServices()).TypeRequiresRegistration(compensator)) { throw new ArgumentException(Resource.FormatString("CRM_CompensatorConstructor")); } DBG.Info(DBG.CRM, "Testing compensator instantiation:"); // Create an instance of it just in case: ServicedComponent inst = (ServicedComponent)Activator.CreateInstance(compensator); if (inst == null) { throw new ArgumentException(Resource.FormatString("CRM_CompensatorActivate")); } DBG.Info(DBG.CRM, "'" + compensator + "' instantiation succeeded"); // Make sure we forcibly get rid of the thing we just created immediately: // This has to happen in case it is pooled, otherwise we'll have to wait // for the GC to kick in. ServicedComponent.DisposeObject(inst); DBG.Info(DBG.CRM, "'" + compensator + "' is valid"); }
///<summary> /// Called by a <see cref="ServicedComponent"/> exported by <see cref="EnterpriseServicesExporter"/> /// to obtain a reference to the service it proxies. ///</summary> public static object GetObject(ServicedComponent sender, string targetName) { EnsureComponentContextRegistryInitialized(sender.GetType()); try { return(_appContext.GetObject(targetName)); } catch (Exception e) { Trace.WriteLine("Error configuring application context for COM component of type " + sender.GetType() + ": " + e); throw; } }
public string Novedades_Baja_Cuotas(DataSet CuotasABajar, string Ip, string Usuario) { Novedad_Trans oNov = new Novedad_Trans(); try { return(oNov.Novedades_Baja_Cuotas(CuotasABajar, Ip, Usuario)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oNov); } }
public string Novedades_Baja(long IdNovedadAnt, string IP, string Usuario, int Mensual) { Novedad_Trans oNov = new Novedad_Trans(); try { return(oNov.Novedades_Baja(IdNovedadAnt, IP, Usuario, Mensual)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oNov); } }
public DataSet TraeCuotas(long idNovedad, long idPrestador) { Cuotas oCuotas = new Cuotas(); try { return(oCuotas.TraeCuotas(idNovedad, idPrestador)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oCuotas); } }
public bool verDisponible(long idPrestador, long idBeneficiario, double monto, int mensualDesde, int mensualHasta) { EntidadPrivada entPriv = new EntidadPrivada(); try { return(entPriv.verDisponible(idPrestador, idBeneficiario, monto, mensualDesde, mensualHasta)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(entPriv); } }
public String[] altaDeNovedad(long idPrestador, long idBeneficiario, double monto, int mensualDesde, int mensualHasta, string IP, string usuario) { EntidadPrivada entPriv = new EntidadPrivada(); try { return(entPriv.altaDeNovedad(idPrestador, idBeneficiario, monto, mensualDesde, mensualHasta, IP, usuario)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(entPriv); } }
public void cancelarNovedad(long idPrestador, long nroDeTransaccion, long idBeneficiario, int mensualHasta) { EntidadPrivada entPriv = new EntidadPrivada(); try { entPriv.cancelarNovedad(idPrestador, nroDeTransaccion, idBeneficiario, mensualHasta); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(entPriv); } }
public DataSet buscoNovedadesPorTipo(long idPrestador, int tipo) { EntidadPrivada entPriv = new EntidadPrivada(); try { return(entPriv.buscoNovedadesPorTipo(idPrestador, tipo)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(entPriv); } }
public DataSet Traer(long Prestador) { TipoConcConcLiq oTipo = new TipoConcConcLiq(); try { return(oTipo.Traer(Prestador)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oTipo); } }
public DataSet TraerTipoServicio(int CodConceptoLiq, short TipoConcepto) { TipoConcConcLiq oTipo = new TipoConcConcLiq(); try { return(oTipo.TraerTipoServicio(CodConceptoLiq, TipoConcepto)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oTipo); } }
public float MaxPorcentaje( ) { Parametros oParam = new Parametros(); try { return(oParam.MaxPorcentaje()); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oParam); } }
public byte MaxCantCuotas( ) { Parametros oParam = new Parametros(); try { return(oParam.MaxCantCuotas()); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oParam); } }
public string SitioHabilitado() { Parametros oParam = new Parametros(); try { return(oParam.SitioHabilitado()); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oParam); } }
public DataSet CostoFinanciero_Trae(byte cantcuotas) { Parametros oParam = new Parametros(); try { return(oParam.CostoFinanciero_Trae(cantcuotas)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oParam); } }
public DataSet Modificacion_Masiva_Indeterminadas(DataSet NovAMod, double Monto, string Ip, string Usuario, bool Masiva) { Novedad_Trans oNov = new Novedad_Trans(); try { return(oNov.Modificacion_Masiva_Indeterminadas(NovAMod, Monto, Ip, Usuario, Masiva)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oNov); } }
public DataSet TraerxIdPrestador(long idPrestador, string nombreConsulta) { ConsultasBatch oCons = new ConsultasBatch(); try { return(oCons.TraerxIdPrestador(idPrestador, nombreConsulta)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oCons); } }
public DataSet Trae_SolicitudVamosPaseo(long beneficiario, int nroComprobante) { SolicitudVamosDePaseo oSol = new SolicitudVamosDePaseo(); try { return(oSol.Trae_SolicitudVamosPaseo(beneficiario, nroComprobante)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oSol); } }
public DataSet Trae_Agencia(int nroLegajo) { Agencia agencia = new Agencia(); try { return(agencia.Trae_Agencia(nroLegajo)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(agencia); } }
public DataSet Trae_Fec_Cierre_Ant() { Cierres Cie = new Cierres(); try { return(Cie.Trae_Fec_Cierre_Ant()); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(Cie); } }
public DataSet Traer(string Beneficiario, string Cuil) { Beneficiarios oBenef = new Beneficiarios(); try { return(oBenef.Traer(Beneficiario, Cuil)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oBenef); } }
public Boolean CtrolOcurrenciasCancCuotas(byte CantOcurrDisp, long IdBeneficiario, int ConceptoOPP, long IdNovedadABorrar) { Novedad_Trans oNov = new Novedad_Trans(); try { return(oNov.CtrolOcurrenciasCancCuotas(CantOcurrDisp, IdBeneficiario, ConceptoOPP, IdNovedadABorrar)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oNov); } }
public DataSet CuotaSocial_TraeXCuil(long idbeneficiario, long idPrestador) { Novedad oNov = new Novedad(); try { return(oNov.CuotaSocial_TraeXCuil(idbeneficiario, idPrestador)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oNov); } }
public DataSet Novedades_BajaTraerAgrupadas(long IDPrestador, byte OpcionBusqueda, long BenefCuil, byte TipoConc, int ConcOpp, string MesAplica, bool GeneraArchivo, out string rutaArchivoSal, string Usuario) { Novedad oNov = new Novedad(); try { return(oNov.Novedades_BajaTraerAgrupada(IDPrestador, OpcionBusqueda, BenefCuil, TipoConc, ConcOpp, MesAplica, GeneraArchivo, out rutaArchivoSal, Usuario)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oNov); } }
public DataSet Novedades_BajaTraer(long IDPrestador, byte OpcionBusqueda, long BenefCuil, byte TipoConc, int ConcOpp) { Novedad oNov = new Novedad(); try { return(oNov.Novedades_BajaTraer(IDPrestador, OpcionBusqueda, BenefCuil, TipoConc, ConcOpp)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oNov); } }
private void ValidateCompensator(Type compensator) { if (!compensator.IsSubclassOf(typeof(Compensator))) { throw new ArgumentException(Resource.FormatString("CRM_CompensatorDerive")); } if (!new RegistrationServices().TypeRequiresRegistration(compensator)) { throw new ArgumentException(Resource.FormatString("CRM_CompensatorConstructor")); } ServicedComponent sc = (ServicedComponent)Activator.CreateInstance(compensator); if (sc == null) { throw new ArgumentException(Resource.FormatString("CRM_CompensatorActivate")); } ServicedComponent.DisposeObject(sc); }
public DataSet Novedades_Trae_Xa_ABM(long Prestador, long Beneficiario) { Novedad oNov = new Novedad(); try { return(oNov.Novedades_Trae_Xa_ABM(Prestador, Beneficiario)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oNov); } }
public DataSet Novedades_T1o6_Trae(long Prestador, byte TipoConcepto) { Novedad oNov = new Novedad(); try { return(oNov.Novedades_T1o6_Trae(Prestador, TipoConcepto)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oNov); } }
public DataSet Novedades_Traer(byte opcion, long lintPrestador, long benefCuil, byte tipoConc, int concopp, int mensual, string fdesde, string fhasta, bool GeneraArchivo, out string rutaArchivoSal, string Usuario) { Novedad oNov = new Novedad(); try { return(oNov.Novedades_Traer(opcion, lintPrestador, benefCuil, tipoConc, concopp, mensual, fdesde, fhasta, GeneraArchivo, out rutaArchivoSal, Usuario)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oNov); } }
public string Novedades_Modificacion(long IdNovedadAnt, double ImpTotalN, Single PorcentajeN, string NroComprobanteN, string IPN, string UsuarioN, int Mensual, bool Masiva) { Novedad_Trans oNov = new Novedad_Trans(); try { return(oNov.Novedades_Modificacion(IdNovedadAnt, ImpTotalN, PorcentajeN, NroComprobanteN, IPN, UsuarioN, Mensual, Masiva)); } catch (Exception err) { throw err; } finally { ServicedComponent.DisposeObject(oNov); } }
// Methods public static void DisposeObject(ServicedComponent sc) { }
// Dispose a serviced component object. public static void DisposeObject(ServicedComponent sc) { sc.Dispose(true); }