public AccountController()
 {
     usuarioAreaService    = usuarioAreaService ?? new UsuarioAreaService();
     usuarioEmpresaService = usuarioEmpresaService ?? new UsuarioEmpresaService();
     moduloRolService      = moduloRolService ?? new ModuloRolService();
     catalagoService       = catalagoService ?? new CatalogoService();
     directorioActivo      = directorioActivo ?? new LDAP();
     objInjUserRol         = objInjUserRol ?? new AspNetUserRolesService();
 }
示例#2
0
 public ReporteSaldoContableController()
 {
     reportService        = reportService ?? new ReporteSaldoContableService();
     reportExcelService   = reportExcelService ?? new ReporterService();
     areaOperativaService = areaOperativaService ?? new AreaOperativaService();
     usuarioAreaService   = usuarioAreaService ?? new UsuarioAreaService();
     usuarioSerive        = usuarioSerive ?? new UserService();
     usuarioEmpService    = usuarioEmpService ?? new UsuarioEmpresaService();
     saldoServ            = new reporteSaldoServ();
 }
 public SupervisorController(ISupervisorService objSupervisorService, ISupervisorTempService objSupervisorTempService, IUsuarioEmpresaService objUsuarioAreaService, IEmpresaAreasCentroCostoService eacc, IUsuariosPorRoleService usrRol, IAspNetUserRolesService ue, IUserService userServ, IUsuarioAreaService uas)
 {
     objInj                        = ue;
     supervisorService             = objSupervisorService;
     supervisorTempService         = objSupervisorTempService;
     usuarioEmpresaService         = objUsuarioAreaService;
     empresaAreaCentroCostoService = eacc;
     usuarioRol                    = usrRol;
     userService                   = userServ;
     usuarioAreaService            = uas;
 }
 public ComprobanteController(IComprobanteService svc, IPartidasService svcPart, IUsuarioEmpresaService usEmpServ)
 {
     service                = svc;
     servicePartida         = svcPart;
     usuarioAreaService     = new UsuarioAreaService();
     usuarioEmpService      = usEmpServ;
     areaOperativaService   = areaOperativaService ?? new AreaOperativaService();
     catalagoService        = catalagoService ?? new CatalogoDetalleService();
     comprobanteDetalleServ = comprobanteDetalleServ ?? new ComprobanteDetalleService();
     empresaService         = empresaService ?? new EmpresaService();
 }
 public AccountController(IUsuarioAreaService svcusuarioAreaService,
                          IUsuarioEmpresaService svcusuarioEmpresaService, IModuloRolService svcmoduloRolService,
                          ICatalogoService catServ, ILDAP dau, IAspNetUserRolesService userRole)
 {
     usuarioAreaService    = svcusuarioAreaService;
     usuarioEmpresaService = svcusuarioEmpresaService;
     moduloRolService      = svcmoduloRolService;
     catalagoService       = catServ;
     directorioActivo      = dau;
     objInjUserRol         = userRole;
 }
 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();
 }
示例#7
0
        public ReporteSaldoContableController(ISaldoContableService rep, IReporterService repexcel, IUsuarioAreaService userArea, IAreaOperativaService area, IUserService usuario,
                                              IUsuarioEmpresaService objUsuarioAreaService, ISaldoContableServ saldoServs, IEmpresaService EmpServs, ICuentaContableService CCSrvs)
        {
            reportService      = rep;
            reportExcelService = repexcel;
            usuarioAreaService = userArea;

            usuarioSerive        = usuario;
            areaOperativaService = area;

            usuarioEmpresaService = objUsuarioAreaService;
            saldoServ             = saldoServs;
            EmpServ   = EmpServs;
            CCService = CCSrvs;
        }
示例#8
0
 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();
 }
        /// <summary>
        /// Este contructor se implemento, con un intento para resolver el problema del IIS
        /// en el servidor de banistmo 10.71.27.116
        /// </summary>
        public UserController()
        {
            userService            = new UserService();
            reporteSrv             = new ReporteService();
            rrmService             = new ReporteRolesMenuService();
            usuarioAreaService     = new UsuarioAreaService();
            usuarioEmpresaService  = new UsuarioEmpresaService();
            catalagoService        = new CatalogoService();
            directorioactivo       = new LDAP();
            usrRolService          = new UsuariosPorRolService();
            AspNetUserRolesService = new AspNetUserRolesService();
            rolService             = rolService ?? new RolService();

            areaOperativaService = areaOperativaService ?? new AreaOperativaService();

            RegConSrv = new RegistroControlService();
        }
 public UserController(IUserService usr, IReporteService reporte, IReporteRolesMenuService rrmSrv, IUsuarioAreaService usrAreaSrv, IUsuarioEmpresaService usrEmpSrv,
                       ICatalogoService catSrv, ILDAP dau, IUsuariosPorRoleService usrRol, IAspNetUserRolesService aspNetUserRolesServ, IAreaOperativaService area,
                       IRegistroControlService RegControlSrv)
 {
     userService            = usr;
     reporteSrv             = reporte;
     rrmService             = rrmSrv;
     usuarioAreaService     = usrAreaSrv;
     usuarioEmpresaService  = usrEmpSrv;
     catalagoService        = catSrv;
     directorioactivo       = dau;
     usrRolService          = usrRol;
     AspNetUserRolesService = aspNetUserRolesServ;
     rolService             = rolService ?? new RolService();
     areaOperativaService   = area;
     RegConSrv = RegControlSrv;
 }
示例#11
0
 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 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 async Task <IHttpActionResult> CreateEmpresaForUser([FromBody] EmpresasToUser model)
        {
            usuarioEmpresaService = usuarioEmpresaService ?? new UsuarioEmpresaService();
            IdentityUser user = await UserManager.FindByIdAsync(User.Identity.GetUserId());

            var currentAreas = usuarioEmpresaService.GetAll(c => c.US_ID_USUARIO == model.id, null, includes: c => c.SAX_EMPRESA);
            var denoms       = new List <int>(currentAreas.Select(c => c.UE_ID_USUARIO_EMPRESA));
            //var listEmpresas =
            List <UsuarioEmpresaModel> objInsert = new List <UsuarioEmpresaModel>();

            foreach (var obj in model.EnrolledEmpresas)
            {
                obj.UE_ESTATUS          = 1;
                obj.UE_FECHA_CREACION   = DateTime.Now;
                obj.UE_USUARIO_CREACION = user.Id;
                objInsert.Add(obj);
            }
            usuarioEmpresaService.CreateAndRemove(objInsert, denoms);
            return(Ok());
        }
 public UsuarioService(GerenciaContext dbContext, IUsuarioEmpresaService usuarioEmpresaService) : base(dbContext)
 {
     this.usuarioEmpresaService = usuarioEmpresaService;
 }
 public UsuarioEmpresaController(IUsuarioEmpresaService ue)
 {
     usuarioEmpresaService = ue;
 }
 public UsuarioEmpresaController()
 {
     usuarioEmpresaService = usuarioEmpresaService ?? new UsuarioEmpresaService();
 }