Beispiel #1
0
        //ICotizacionCoberturaRepository _cotizacionCoberturaRepository;
        //ICotizacionCoberturaUbicacionRepository _cotizacionCoberturaUbicacionRepository;

        public CotizacionManagementService(ICotizacionRepository cotizacionRepository, ICatalogoRepository catalogoRepository, IUbicacionRepository ubicacionRepository)
        //ICotizacionCoberturaRepository cotizacionCoberturaRepository, ICotizacionCoberturaUbicacionRepository cotizacionCoberturaUbicacionRepository)
        {
            if (cotizacionRepository == (ICotizacionRepository)null)
            {
                throw new ArgumentNullException("CotizacionRepository");
            }

            if (catalogoRepository == (ICotizacionRepository)null)
            {
                throw new ArgumentNullException("CatalogoRepository");
            }

            if (ubicacionRepository == (IUbicacionRepository)null)
            {
                throw new ArgumentNullException("UbicacionRepository");
            }

            //if (cotizacionCoberturaRepository == (ICotizacionCoberturaRepository)null)
            //    throw new ArgumentNullException("CotizacionCoberturaRepository");

            //if (cotizacionCoberturaUbicacionRepository == (ICotizacionCoberturaUbicacionRepository)null)
            //    throw new ArgumentNullException("CotizacionCoberturaUbicacionRepository");

            _cotizacionRepository = cotizacionRepository;
            _catalogoRepository   = catalogoRepository;
            _ubicacionRepository  = ubicacionRepository;
            //_cotizacionCoberturaRepository = cotizacionCoberturaRepository;
            //_cotizacionCoberturaUbicacionRepository = cotizacionCoberturaUbicacionRepository;
        }
Beispiel #2
0
 public CreditoPymeController(ICreditoPyme repoCreditoPyme, CommonSettingsManager settings, ICatalogoRepository repoCatalogo, IOtpRepository OtpRepo)
 {
     _repoCreditoPyme = repoCreditoPyme;
     _settings        = settings.Config;
     _repoCatalogo    = repoCatalogo;
     _OtpRepo         = OtpRepo;
 }
Beispiel #3
0
        public AseguradoManagementService(IAseguradoRepository aseguradoRepository,
                                          IUbicacionRepository ubicacionRepository, ICatalogoRepository catalogoRepository,
                                          IPersonaRepository personaRepository)
        {
            if (aseguradoRepository == (IAseguradoRepository)null)
            {
                throw new ArgumentNullException("aseguradoRepository");
            }

            if (ubicacionRepository == (IUbicacionRepository)null)
            {
                throw new ArgumentNullException("ubicacionRepository");
            }

            if (catalogoRepository == (ICatalogoRepository)null)
            {
                throw new ArgumentNullException("catalogoRepository");
            }

            if (personaRepository == (IPersonaRepository)null)
            {
                throw new ArgumentNullException("personaRepository");
            }

            _aseguradoRepository = aseguradoRepository;
            _ubicacionRepository = ubicacionRepository;
            _catalogoRepository  = catalogoRepository;
            _personaRepository   = personaRepository;
        }
 public AlterarCatalogoCommandHandler(
     ICatalogoQuery catalogoQuery,
     ICatalogoRepository catalogoRepository,
     IUnitOfWork unitOfWork)
 {
     CatalogoQuery      = catalogoQuery;
     CatalogoRepository = catalogoRepository;
     UnitOfWork         = unitOfWork;
 }
Beispiel #5
0
 public ExcluirCatalogoItemCatalogoCommandHandler(
     ICatalogoQuery catalogoQuery,
     ICatalogoRepository catalogoRepository,
     IUnitOfWork unitOfWork)
 {
     CatalogoQuery      = catalogoQuery;
     CatalogoRepository = catalogoRepository;
     UnitOfWork         = unitOfWork;
 }
Beispiel #6
0
        public CatalogoManagementService(ICatalogoRepository catalogoRepository)
        {
            if (catalogoRepository == (ICatalogoRepository)null)
            {
                throw new ArgumentNullException("CatalogoRepository");
            }

            _catalogRepository = catalogoRepository;
        }
        public AccountManagementService(IUsuarioRepository userRepository, ICatalogoRepository catalogoRepository)
        {
            if (userRepository == (IUsuarioRepository)null)
            {
                throw new ArgumentNullException("userRepository");
            }

            if (catalogoRepository == (ICatalogoRepository)null)
            {
                throw new ArgumentNullException("catalogoRepository");
            }

            _userRepository     = userRepository;
            _catalogoRepository = catalogoRepository;
        }
        public ProcessManagementService(IWorkFlowRepository workFlowRepository,
                                        ICotizacionRepository cotizacionRepository, ICatalogoRepository catalogoRepository)
        {
            if (workFlowRepository == (IWorkFlowRepository)null)
            {
                throw new ArgumentNullException("WorkFlowRepository");
            }

            if (workFlowRepository == (ICotizacionRepository)null)
            {
                throw new ArgumentNullException("CotizacionRepository");
            }

            if (workFlowRepository == (ICatalogoRepository)null)
            {
                throw new ArgumentNullException("CatalogoRepository");
            }

            _workFlowRepository   = workFlowRepository;
            _cotizacionRepository = cotizacionRepository;
            _catalogoRepository   = catalogoRepository;
        }
Beispiel #9
0
        public string GetDataForViewDireccionNegocio(ref ForViewInfoNegocioDto data, DatosClientePy datosCliente, ICatalogoRepository _repo)
        {
            Catalogo[] catalogos = null;
            if (datosCliente.infoNegocio != null)
            {
                data.SeleccionAnterior = datosCliente.infoNegocio;
                //DireccionNegocioSeleccion seleccion = data.SeleccionAnterior;
                if (datosCliente.infoNegocio.provincia != 0)
                {
                    catalogos = _repo.GetDataCboxDireccionBy("ciudad", datosCliente.infoNegocio.provincia.ToString());
                }

                if (catalogos != null)
                {
                    data.ciudad = catalogos;
                }
                else
                {
                    return("503");
                }

                if (datosCliente.infoNegocio.ciudad != 0)
                {
                    catalogos = _repo.GetDataCboxDireccionBy("parroquia", datosCliente.infoNegocio.ciudad.ToString());
                }

                if (catalogos != null)
                {
                    data.parroquia = catalogos;
                }
                else
                {
                    return("503");
                }
            }

            catalogos = _repo.GetDataCboxForAdress("tipoInmueble");

            if (catalogos != null)
            {
                data.tipoInmueble = catalogos;
            }
            else
            {
                return("503");
            }

            catalogos = _repo.GetDataCboxDireccionBy("provincia");

            if (catalogos != null)
            {
                data.comboOptionLocation = catalogos;
            }
            else
            {
                return("503");
            }

            catalogos = _repo.GetDataCboxForAdress("aseguradora");

            if (catalogos != null)
            {
                data.aseguradora = catalogos;
            }
            else
            {
                return("503");
            }

            data.direccion = datosCliente.DireccionDomicilio;

            return("200");
        }
 public CatalogoBusiness()
 {
     catalogoRepository = new CatalogoRepository();
 }