예제 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public AdministracionTipoCambio()
 {
     credenciales       = new CredencialesServicioExterno();
     credenciales       = new InformacionServiciosExternosBusiness().ObtenerCredencialesCambioDivisa();
     repository         = new AdministracionTipoCambioRepository();
     externosRepository = new InformacionServiciosExternosRepository();
 }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="tokenDto"></param>
 public NotaCreditoBusiness(TokenDto tokenDto)
 {
     this.token         = tokenDto;
     externosRepository = new InformacionServiciosExternosRepository();
     infoService        = externosRepository.ObtenerInfoServicioExterno(20);
     proxy = new ProxyNotaCredito.wsNotaCreditoSoapClient();
     proxy.Endpoint.Address = new System.ServiceModel.EndpointAddress(infoService.UrlService);
 }
예제 #3
0
 /// <summary>
 /// Constructor por Default
 /// </summary>
 /// <param name="tokenDto"></param>
 public RedencionCuponPromocionalBusiness(TokenDto tokenDto)
 {
     token                         = tokenDto;
     repository                    = new CuponesRedimirRepository();
     externosRepository            = new InformacionServiciosExternosRepository();
     infoService                   = externosRepository.ObtenerInfoServicioExterno(23);
     proxyCupones                  = new ProxyCupones.wsCuponesSoapClient();
     proxyCupones.Endpoint.Address = new System.ServiceModel.EndpointAddress(infoService.UrlService);
 }
예제 #4
0
 /// <summary>
 /// Constructor por default
 /// </summary>
 public AdministracionVentaEmpleadoBusiness()
 {
     inforService       = new InfoService();
     externosRepository = new InformacionServiciosExternosRepository();
     inforService       = externosRepository.ObtenerInfoServicioExterno(15);
     proxy = new ProxyVentaEmpleado.wsVentaEmpleadoSoapClient();
     proxy.Endpoint.Address = new System.ServiceModel.EndpointAddress(inforService.UrlService);
     this.repositorio       = new AdministracionVentaEmpleadoRepository();
 }
예제 #5
0
 /// <summary>
 /// Repositorio de lectura luz
 /// </summary>
 public LecturaLuzBusiness(TokenDto tokenDto)
 {
     lecturaLuzRepository = new LecturaLuzRepository();
     this.token           = tokenDto;
     externosRepository   = new InformacionServiciosExternosRepository();
     infoService          = externosRepository.ObtenerInfoServicioExterno(21);
     proxy = new ProxyCapturaLuz.wsCapturaDeLuzSoapClient();
     proxy.Endpoint.Address = new System.ServiceModel.EndpointAddress(infoService.UrlService);
 }
예제 #6
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="token"></param>
 public TarjetaRegalosBusiness(TokenDto token)
 {
     inforService       = new InfoService();
     externosRepository = new InformacionServiciosExternosRepository();
     inforService       = externosRepository.ObtenerInfoServicioExterno(16);
     proxy = new ProxyTarjetasRegalo.wsTarjetasRegaloSoapClient();
     proxy.Endpoint.Address = new System.ServiceModel.EndpointAddress(inforService.UrlService);
     repository             = new TarjetasRegaloRepository();
     this.token             = token;
 }
예제 #7
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="token"></param>
        public AdministracionContraseniaBusiness(TokenDto token)
        {
            InformacionServiciosExternosRepository externosRepository = new InformacionServiciosExternosRepository();
            InfoService inforService = new InfoService();

            inforService           = externosRepository.ObtenerInfoServicioExterno(13);
            proxy                  = new ProxyCambioContrasenia.wsCambioPasswordSoapClient();
            proxy.Endpoint.Address = new System.ServiceModel.EndpointAddress(inforService.UrlService);
            this.token             = token;
        }
예제 #8
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="token"></param>
 public MayoristasBusiness(TokenDto token)
 {
     this.token                 = token;
     repository                 = new MayoristaRepository();
     inforService               = new InfoService();
     externosRepository         = new InformacionServiciosExternosRepository();
     inforService               = externosRepository.ObtenerInfoServicioExterno(17);
     wsVentaMayoristaSoapClient = new ProxyMayoristas.wsVentaMayoristaSoapClient();
     wsVentaMayoristaSoapClient.Endpoint.Address = new System.ServiceModel.EndpointAddress(inforService.UrlService);
 }
예제 #9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="token"></param>
 public FinlagBusiness(TokenDto token)
 {
     infoService                 = new InfoService();
     externosRepository          = new InformacionServiciosExternosRepository();
     paymentProcessingRepository = new PaymentProcessingRepository();
     finlagRepository            = new FinlagRepository();
     infoService                 = externosRepository.ObtenerInfoServicioExterno(22);
     proxy = new ProxyFinlag.VentasMilanoSoapClient();
     proxy.Endpoint.Address = new System.ServiceModel.EndpointAddress(infoService.UrlService);
     this.token             = token;
 }
예제 #10
0
 /// <summary>
 /// Constructor de tiempo aire
 /// </summary>
 public TiempoAireBusiness(TokenDto token)
 {
     this.token                = token;
     credenciales              = new CredencialesServicioExterno();
     credenciales              = new InformacionServiciosExternosBusiness().ObtenerCredencialesTiempoAire();
     inforService              = new InfoService();
     externosRepository        = new InformacionServiciosExternosRepository();
     inforService              = externosRepository.ObtenerInfoServicioExterno(11);
     transact                  = new ProxyTiempoAire.transactSoapClient();
     transact.Endpoint.Address = new System.ServiceModel.EndpointAddress(inforService.UrlService);
     repository                = new PagoServiciosRepository(this.token);
 }
예제 #11
0
        /// <summary>
        /// Constructor por default
        /// </summary>
        public DescuentoMercanciaDaniadaBusiness(TokenDto token)
        {
            InformacionServiciosExternosRepository externosRepository = new InformacionServiciosExternosRepository();

            infoService1 = new InfoService();
            infoService2 = new InfoService();
            infoService1 = externosRepository.ObtenerInfoServicioExterno(18);
            infoService2 = externosRepository.ObtenerInfoServicioExterno(19);
            this.proxyMercanciaDaniada             = new ProxyDescuentoMercanciaDaniada.wsMercanciaDanadaSoapClient();
            proxyMercanciaDaniada.Endpoint.Address = new System.ServiceModel.EndpointAddress(infoService1.UrlService);
            this.proxyMercanciaPico                 = new ProxyDescuentoPicoMercancia.wsPicosMercanciaSoapClient();
            proxyMercanciaPico.Endpoint.Address     = new System.ServiceModel.EndpointAddress(infoService2.UrlService);
            this.descuentoMercanciaDañadaRepository = new DescuentoMercanciaDañadaRepository();
            this.token = token;
        }
예제 #12
0
        /// <summary>
        /// Constructor de tiempo aire
        /// </summary>
        public AdministracionPagoServiciosBusiness(TokenDto token)
        {
            this.token                = token;
            repository                = new PagoServiciosRepository(token);
            inforService              = new InfoService();
            externosRepository        = new InformacionServiciosExternosRepository();
            inforService              = externosRepository.ObtenerInfoServicioExterno(12);
            transact                  = new ProxyPagoServicios.transactSoapClient();
            transact.Endpoint.Address = new System.ServiceModel.EndpointAddress(inforService.UrlService);
            credenciales              = new CredencialesServicioExterno();
            credenciales              = new InformacionServiciosExternosBusiness().ObtenerCredencialesPagoServicios();
            SecurityCCK.encripta encripta = new encripta();
            object userName = credenciales.UserName;
            object pwd      = credenciales.Password;
            var    obj      = encripta.Encrypt(ref userName);
            var    obje2    = encripta.Encrypt(ref pwd);

            this.credenciales.UserName = obj.ToString();
            this.credenciales.Password = obje2.ToString();
        }
예제 #13
0
 /// <summary>
 /// Constructor
 /// </summary>
 public InformacionServiciosExternosBusiness()
 {
     this.repositorio = new InformacionServiciosExternosRepository();
 }