/// <summary> /// Obtener la URL de la Imagen /// </summary> /// <param name="htmlHelper"></param> /// <param name="imagen"></param> /// <returns></returns> public static string UrlImagen(this HtmlHelper htmlHelper, string imagen) { IParametroService _parametroService = ServiceLocator.Current.GetInstance <IParametroService>(); var pathImagen = _parametroService.GetValor <string>(CodigosParametros.PARAMETRO_IMAGENES_URL_BASE); return(Path.Combine(pathImagen, imagen)); }
public InicioController(IHandlerExcepciones manejadorExcepciones, IApplication application, IParametroService parametroService, IRepository <ParametroSistema> parametrosistema) : base(manejadorExcepciones) { _application = application; _parametroService = parametroService; _parametroSistema = parametrosistema; }
public UsuarioService( IAuthentication authentication, IApplication application, IParametroService parametroService, IUsuarioRepository <Usuario> repositoryUsuario, AspUserManager <Rol, Usuario, Modulo> userManager, AspRoleManager <Rol, Usuario> roleManager, BaseModuleManager <Modulo, Usuario> moduleManager, IdentityEmailMessageService emailService, ITemplateEngine templateEngine, IRolRepository <Rol> rolRepository, IRolService rolService) : base(repositoryUsuario) { this.authentication = authentication; this.application = application; this.ParametroService = parametroService; this.RepositoryUsuario = repositoryUsuario; this.UserManager = userManager; this.RoleManager = roleManager; this.ModuleManager = moduleManager; this.EmailService = emailService; this.TemplateEngine = templateEngine; this.RepositoryRol = rolRepository; RolService = rolService; }
/// <summary> /// Verificar si es necesario recolectar informacion /// </summary> /// <param name="htmlHelper"></param> /// <returns></returns> public static bool RecolectarInformacionAnalisis(this HtmlHelper htmlHelper) { IParametroService _parametroService = ServiceLocator.Current.GetInstance <IParametroService>(); bool result = _parametroService.GetValor <bool>(CodigosParametros.PARAMETRO_RECOLECTAR_INFO_ANALISIS); return(result); }
/// <summary> /// Renderizar el nombre de la aplicacion /// </summary> /// <param name="htmlHelper"></param> /// <returns></returns> public static MvcHtmlString RenderNombreAplicacion(this HtmlHelper htmlHelper) { IParametroService _parametroService = ServiceLocator.Current.GetInstance <IParametroService>(); string app = _parametroService.GetValor <string>(CodigosParametros.PARAMETRO_NOMBRE_APLICACION); return(new MvcHtmlString(app)); }
protected BaseSearchDtoConttroller(IHandlerExcepciones manejadorExcepciones, IParametroService parametroService, TGetAllInput getAllInput, IViewService viewService, IAsyncBaseCrudAppService <TEntity, TEntityDto, TGetAllInput, TEntityDto> entityService) : base(manejadorExcepciones, parametroService, getAllInput, viewService, entityService) { }
public ParametroController(IHandlerExcepciones manejadorExcepciones, IParametroService iParametroService, IApplication application) : base(manejadorExcepciones) { _iParametroService = iParametroService; _application = application; }
public ParametroController(IParametroService objParamService, IParametroTempService objParamTempService, ICatalogoService objCatalogoService, IEventosTempService objEventService, ISupervisorTempService objSupervisorService) { paramService = objParamService; paramTempService = objParamTempService; catalogoService = objCatalogoService; eventService = objEventService; supervisorService = objSupervisorService; }
public CitasController(ICitaService service, IParametroService parametroService, IUsuariosService usuariosService, IUbicacionService ubicacionService, IErrorHandler errorHandler) { this.myService = service; this.myParametroService = parametroService; this.myUsuariosService = usuariosService; this.myUbicacionService = ubicacionService; this.myErrorHandler = errorHandler; }
//Constructores public ParametroController() { paramService = paramService ?? new ParametroService(); paramTempService = paramTempService ?? new ParametroTempService(); catalogoService = catalogoService ?? new CatalogoService(); eventService = eventService ?? new EventosTemporalService(); supervisorService = supervisorService ?? new SupervisorTempService(); }
public AuditoriaController(IHandlerExcepciones manejadorExcepciones, IParametroService parametroService, PagedAndFilteredResultRequestDto getAllInput, IViewService viewService, IAuditoriaService entityService) : base(manejadorExcepciones, parametroService, getAllInput, viewService, entityService) { }
public AuditoriaController(IHandlerExcepciones manejadorExcepciones, IAuditoriaRepository <Auditoria> repository, IParametroService parametroService, IApplication application) : base(manejadorExcepciones) { _repository = repository; _parametroService = parametroService; _application = application; }
public ParametroController() { var container = new UnityContainer(); container.RegisterInstance <IParametroUtility>(new ParametroUtility()); container.RegisterType <IParametroRepository, ParametroRepository>(); container.RegisterType <IParametroService, ParametroService>(); parametroService = container.Resolve <IParametroService>(); }
public CatalogoController(IHandlerExcepciones manejadorExcepciones, ICatalogoService catalogoService, IApplication application, IParametroService parametroService) : base(manejadorExcepciones) { _catalogoService = catalogoService; _application = application; _parametroService = parametroService; }
public FuncionalidadController(IHandlerExcepciones manejadorExcepciones, IParametroService iParametroService, IFuncionalidadService iFuncionalidadService, IApplication application) : base(manejadorExcepciones) { _iParametroService = iParametroService; _application = application; _iFuncionalidadService = iFuncionalidadService; }
protected BaseCrudDtoController(IHandlerExcepciones manejadorExcepciones, IApplication application, ICreateObject createObject, IParametroService parametroService, TGetAllInput getAllInput, IViewService viewService, IAsyncBaseCrudAppService <TEntity, TEntityDto, TGetAllInput> entityService) : base(manejadorExcepciones, application, createObject, parametroService, getAllInput, viewService, entityService) { }
public RolController(IHandlerExcepciones manejadorExcepciones, IParametroService iParametroService, IApplication application, IRolService iRolService, IFuncionalidadService funcionalidadService) : base(manejadorExcepciones) { _iParametroService = iParametroService; _application = application; _iRolService = iRolService; _funcionalidadService = funcionalidadService; }
public ReportePartidasAprController() { partAprSrv = partAprSrv ?? new ReportePartidasAprService(); // reportExcelService = reportExcelService ?? new ReporterService(); catalagoService = new CatalogoService(); serviceComprobante = new ComprobanteService(); usuarioAreaService = usuarioAreaService ?? new UsuarioAreaService(); usuarioService = usuarioService ?? new UserService(); partApConcSrv = partApConcSrv ?? new ReportePartidasAprConciliablesService(); parService = parService ?? new ParametroService(); Ctaservice = Ctaservice ?? new CuentaContableService(); }
public RegistroControlController() { service = service ?? new RegistroControlService(); srvOnlyRegistroControl = srvOnlyRegistroControl ?? new OnlyRegistroControlService(); userService = new UserService(); catalagoService = new CatalogoService(); areaOperativaService = areaOperativaService ?? new AreaOperativaService(); usuarioAreaService = usuarioAreaService ?? new UsuarioAreaService(); paramService = paramService ?? new ParametroService(); eventoService = eventoService ?? new EventosService(); usuarioEmpresaService = usuarioEmpresaService ?? new UsuarioEmpresaService(); empresaService = empresaService ?? new EmpresaService(); }
public ParametroSistemaController(IHandlerExcepciones manejadorExcepciones, ICreateObject createObject, IParametroService parametroService, IBaseRepository <ParametroSistema> repository, IBaseRepository <Usuario> repositoryUsuario, IApplication application, IViewService viewService) : base(manejadorExcepciones, application, createObject, parametroService, viewService, parametroService) { //Configuraciones Validator = new ParametroSistemaValidator(); this.repository = repository; this.repositoryUsuario = repositoryUsuario; }
public MenuController(IHandlerExcepciones manejadorExcepciones, IMenuService menuService, IApplication application, IParametroService parametroService, ICatalogoService catalogoService, IFuncionalidadService funcionalidadService) : base(manejadorExcepciones) { _menuService = menuService; _application = application; _parametroService = parametroService; _catalogoService = catalogoService; _funcionalidadService = funcionalidadService; }
public SesionController( IHandlerExcepciones manejadorExcepciones, ISesionService sesionService, IParametroService parametroService, ICreateObject createObject, IViewService viewService, IApplication application) : base(manejadorExcepciones, application, createObject, parametroService, viewService, sesionService) { _sesionService = sesionService; //Configuration ApplySearch = true; ApplyPagination = true; }
public ResultadoController(ICatalogoService iCatalogoService, IApplication application, IParametroService parametroService, IPersonaService iPersonaService, IMatriculaService iMatriculaService, IAsignacionDocenteService iAsignacionDocenteService, IResultadoService iResultadoService) { _iCatalogoService = iCatalogoService; _application = application; _parametroService = parametroService; _iPersonaService = iPersonaService; _iResultadoService = iResultadoService; _iMatriculaService = iMatriculaService; _iAsignacionDocenteService = iAsignacionDocenteService; }
public FileController() { //registroService = registroService ?? new RegistroControlService(); partService = partService ?? new PartidasService(); centService = centService ?? new CentroCostoService(); empService = empService ?? new EmpresaService(); ctaService = ctaService ?? new CuentaContableService(); cncService = cncService ?? new ConceptoCostoService(); registroService = registroService ?? new RegistroControlService(); monedaSrv = monedaSrv ?? new MonedaService(); areaOperativaService = areaOperativaService ?? new AreaOperativaService(); paramService = paramService ?? new ParametroService(); paramEmpresaAreaCentroCostoService = paramEmpresaAreaCentroCostoService ?? new EmpresaAreasCentroCostoService(); paramEmpresaCentro = paramEmpresaCentro ?? new EmpresaCentroService(); fileService = fileService ?? new FilesProvider(partService, centService, empService, cncService, ctaService, monedaSrv, areaOperativaService, paramService, paramEmpresaAreaCentroCostoService, paramEmpresaCentro); }
public RegistroControlService(RegistroControl ao) : base(ao) { registroControl = ao; fileProvider = fileProvider ?? new FilesProvider(); partidaService = partidaService ?? new PartidasService(); ctaService = ctaService ?? new CuentaContableService(); centroCostoService = centroCostoService ?? new CentroCostoService(); empresaService = empresaService ?? new EmpresaService(); conceptoCostoService = conceptoCostoService ?? new ConceptoCostoService(); monedaService = monedaService ?? new MonedaService(); paramService = paramService ?? new ParametroService(); areaOperativaService = areaOperativaService ?? new AreaOperativaService(); empresaAreaCentroCostoSrv = empresaAreaCentroCostoSrv ?? new EmpresaAreasCentroCostoService(); empresaCentroSrv = empresaCentroSrv ?? new EmpresaCentroService(); empresaUsuarioService = empresaUsuarioService ?? new UsuarioEmpresaService(); }
public RegistroControlService(RegistroControl ao, IFilesProvider provider, IPartidasService partSvc, ICuentaContableService ctaSvc, ICentroCostoService centroCosSvc, IEmpresaService empSvc, IConceptoCostoService cocosSvc) : base(ao) { registroControl = ao ?? new RegistroControl(); fileProvider = provider ?? new FilesProvider(); partidaService = partSvc ?? new PartidasService(); ctaService = ctaSvc ?? new CuentaContableService(); centroCostoService = centroCosSvc ?? new CentroCostoService(); empresaService = empSvc ?? new EmpresaService(); conceptoCostoService = cocosSvc ?? new ConceptoCostoService(); monedaService = monedaService ?? new MonedaService(); paramService = paramService ?? new ParametroService(); areaOperativaService = areaOperativaService ?? new AreaOperativaService(); empresaAreaCentroCostoSrv = empresaAreaCentroCostoSrv ?? new EmpresaAreasCentroCostoService(); empresaCentroSrv = empresaCentroSrv ?? new EmpresaCentroService(); empresaUsuarioService = empresaUsuarioService ?? new UsuarioEmpresaService(); }
public RolController(IHandlerExcepciones manejadorExcepciones, IApplication application, ICreateObject createObject, IParametroService parametroService, PagedAndFilteredResultRequestDto getAllInput, IFuncionalidadService funcionalidadService, IViewService viewService, IRolService entityService) : base(manejadorExcepciones, application, createObject, parametroService, getAllInput, viewService, entityService) { FuncionalidadService = funcionalidadService; ///Configuration ApplySearch = false; ApplyPagination = false; }
protected BaseEntityController(IHandlerExcepciones manejadorExcepciones, IApplication application, ICreateObject createObject, IParametroService parametroService, IViewService viewService, IEntityService <Entity> entityService) : base(manejadorExcepciones) { Application = application; CreateObject = createObject; ParametroService = parametroService; ViewService = viewService; EntityService = entityService; }
private void RegistrarContainer() { var container = new UnityContainer(); container.RegisterType <IParametroUtility, ParametroUtility>(); container.RegisterType <IPlantillaUtility, PlantillaUtility>(); container.RegisterType <ITipoUtility, TipoUtility>(); container.RegisterType <IParametroRepository, ParametroRepository>(); container.RegisterType <IPlantillaRepository, PlantillaRepository>(); container.RegisterType <ITipoRepository, TipoRepository>(); container.RegisterType <IParametroService, ParametroService>(); container.RegisterType <IPlantillaService, PlantillaService>(); container.RegisterType <ITipoService, TipoService>(); servPar = container.Resolve <IParametroService>(); servPla = container.Resolve <IPlantillaService>(); servTip = container.Resolve <ITipoService>(); }
public ReportePartidasAprController(IReportePartidasAprService PartService, ICatalogoService cat, ICatalogoService serv, IComprobanteService comprob, IUsuarioAreaService userArea, IAreaOperativaService area, IUserService usuario, IReportePartidasAprConciliableService PartApConcSrv, IUsuarioEmpresaService objUsuarioAreaService) { // reportService = rep; // reportExcelService = repexcel; catalagoService = serv; serviceComprobante = comprob; usuarioAreaService = userArea; areaOperativaService = area; usuarioService = usuario; catalogoService = cat; partAprSrv = PartService; comprobanteService = comprobanteService ?? new ComprobanteService(); eventoServ = eventoServ ?? new EventosService(); partApConcSrv = PartApConcSrv; usuarioEmpresaService = objUsuarioAreaService; parService = parService ?? new ParametroService(); }
public ParametroServiceApp(IParametroService parametroService) { _service = parametroService; }