public AgendaController(IAgendaAppService baseApps, ILogAppService logApps, IUsuarioAppService usuApps, ICategoriaAgendaAppService caApps)
 {
     baseApp = baseApps;
     logApp  = logApps;
     usuApp  = usuApps;
     caApp   = caApps;
 }
 public EquipeController(IUsuarioAppService baseApps, ILogAppService logApps, ICargoAppService carApps, IFilialAppService filApps)
 {
     baseApp = baseApps;
     logApp  = logApps;
     carApp  = carApps;
     filApp  = filApps;
 }
Example #3
0
 public AccountController(
     UserManager userManager,
     IMultiTenancyConfig multiTenancyConfig,
     TenantManager tenantManager,
     IUnitOfWorkManager unitOfWorkManager,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     LogInManager logInManager,
     SignInManager signInManager,
     UserRegistrationManager userRegistrationManager,
     ISessionAppService sessionAppService,
     ITenantCache tenantCache,
     IAccountAppService account,
     INotificationPublisher notificationPublisher,
     ILogAppService log
     )
 {
     _account                  = account;
     _userManager              = userManager;
     _multiTenancyConfig       = multiTenancyConfig;
     _tenantManager            = tenantManager;
     _unitOfWorkManager        = unitOfWorkManager;
     _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
     _logInManager             = logInManager;
     _signInManager            = signInManager;
     _userRegistrationManager  = userRegistrationManager;
     _sessionAppService        = sessionAppService;
     _tenantCache              = tenantCache;
     _notificationPublisher    = notificationPublisher;
     _log = log;
 }
Example #4
0
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, ILogAppService logAppService, IPrestadorAppService prestadorAppService)
 {
     _userManager         = userManager;
     _signInManager       = signInManager;
     _logAppService       = logAppService;
     _prestadorAppService = prestadorAppService;
 }
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, ILogAppService logAppService, IPrestadorAppService prestadorAppService)
 {
     _userManager = userManager;
     _signInManager = signInManager;
     _logAppService = logAppService;
     _prestadorAppService = prestadorAppService;
 }
 public TipoProcedimentoController(ITipoProcedimentoAppService baseApps, ILogAppService logApps, IFilialAppService filApps, ISubProcedimentoAppService subApps)
 {
     baseApp = baseApps;
     logApp  = logApps;
     filApp  = filApps;
     subApp  = subApps;
 }
        /// <summary>
        /// 产生错误
        /// </summary>
        /// <param name="actionExecutedContext"></param>
        public override void OnActionExecuted(HttpActionExecutedContext actionExecutedContext)
        {
            WebApiProp wenApiProp = actionExecutedContext.Request.Properties[Key] as WebApiProp;

            var ActionName     = actionExecutedContext.ActionContext.ActionDescriptor.ActionName;
            var ControllerName = actionExecutedContext.ActionContext.ActionDescriptor.ControllerDescriptor.ControllerName;

            if (ControllerName != "Log")
            {
                BLogRecord log = new BLogRecord()
                {
                    ActionName     = ActionName,
                    ControllerName = ControllerName + "Controller",
                    STime          = wenApiProp.ExecuteStartTime,
                    ETime          = DateTime.Now,
                    CreateDate     = DateTime.Now,
                    ActionPara     = wenApiProp.GetCollections(wenApiProp.ActionParams),
                    TimeSpan       = decimal.Parse((wenApiProp.ExecuteEndTime - wenApiProp.ExecuteStartTime).TotalSeconds.ToString()),
                    IP             = wenApiProp.GetIP()
                };

                if (actionExecutedContext.Exception != null)
                {
                    log.Category = "错误";
                    log.Contents = actionExecutedContext.Exception.Message;
                }
                else
                {
                    log.Category = "正常";
                }
                _iLogAppService = GetLogAppService();  //iLogAppService;
                _iLogAppService.AddLogRecord(log);
            }
        }
Example #8
0
 public HomeController(IUsuarioAppService baseApps, ILogAppService logApps, INotificacaoAppService notApps, ITarefaAppService tarApps)
 {
     baseApp = baseApps;
     logApp  = logApps;
     notiApp = notApps;
     tarApp  = tarApps;
 }
Example #9
0
 public AppServicesTests(EfCoreDbcontextFixture fixture)
 {
     _fixture = fixture;
     //_output = output;
     _logAppService  = _fixture.Container.Resolve <ILogAppService>();
     _userAppService = _fixture.Container.Resolve <IUserAppService>();
     _roleAppService = _fixture.Container.Resolve <IRoleAppService>();
 }
 public BaseAdminController(IUsuarioAppService baseApps, ILogAppService logApps, INoticiaAppService notApps, INotificacaoAppService notfApps, IUsuarioAppService usuApps, IConfiguracaoAppService confApps, ICargoAppService carApps)
 {
     baseApp = baseApps;
     logApp  = logApps;
     notiApp = notApps;
     notfApp = notfApps;
     usuApp  = usuApps;
     confApp = confApps;
     carApp  = carApps;
 }
Example #11
0
 public ServicoController(IServicoAppService iServicoApp, ICategoriaAppService iCategoriaApp,
                          IPrestadorAppService iPrestadorApp, IServicoPrestadorAppService iServicoPrestadorApp, ILogAppService logAppService, IServicoPrestadorAppService servicoPrestadorAppService)
 {
     _iServicoApp                = iServicoApp;
     _iCategoriaApp              = iCategoriaApp;
     _iPrestadorApp              = iPrestadorApp;
     _iServicoPrestadorApp       = iServicoPrestadorApp;
     _logAppService              = logAppService;
     _servicoPrestadorAppService = servicoPrestadorAppService;
     _utils = new Utils();
 }
 //public BancoController(IBancoAppService baseApps, ILogAppService logApps, IContaBancariaAppService contaApps, IUsuarioAppService usuApps, IFilialAppService filApps, IContaPagarAppService pagApps, IContaReceberAppService recApps)
 public BancoController(IBancoAppService baseApps, ILogAppService logApps, IContaBancariaAppService contaApps, IUsuarioAppService usuApps, IFilialAppService filApps, ITipoContaAppService tcApps)
 {
     baseApp  = baseApps;
     logApp   = logApps;
     contaApp = contaApps;
     usuApp   = usuApps;
     filApp   = filApps;
     tcApp    = tcApps;
     //pagApp = pagApps;
     //recApp = recApps;
 }
 public ServicoController(IServicoAppService iServicoApp, ICategoriaAppService iCategoriaApp,
     IPrestadorAppService iPrestadorApp, IServicoPrestadorAppService iServicoPrestadorApp, ILogAppService logAppService, IServicoPrestadorAppService servicoPrestadorAppService)
 {
     _iServicoApp = iServicoApp;
     _iCategoriaApp = iCategoriaApp;
     _iPrestadorApp = iPrestadorApp;
     _iServicoPrestadorApp = iServicoPrestadorApp;
     _logAppService = logAppService;
     _servicoPrestadorAppService = servicoPrestadorAppService;
     _utils = new Utils();
 }
 public BaseAdminController(IUsuarioAppService baseApps, ILogAppService logApps, INoticiaAppService notApps, ITarefaAppService tarApps, INotificacaoAppService notfApps, IUsuarioAppService usuApps, IAgendaAppService ageApps, IConfiguracaoAppService confApps, ITipoPessoaAppService tpApps)
 {
     baseApp = baseApps;
     logApp  = logApps;
     notiApp = notApps;
     tarApp  = tarApps;
     notfApp = notfApps;
     usuApp  = usuApps;
     ageApp  = ageApps;
     confApp = confApps;
     tpApp   = tpApps;
 }
 public BaseAdminController(IUsuarioAppService baseApps, ILogAppService logApps, INoticiaAppService notApps, INotificacaoAppService notfApps, IUsuarioAppService usuApps, IOrigemAppService oriApps, IProfissaoAppService proApps, IClubeAppService cluApps, ICategoriaContatoAppService ccApps)
 {
     baseApp = baseApps;
     logApp  = logApps;
     notiApp = notApps;
     notfApp = notfApps;
     usuApp  = usuApps;
     oriApp  = oriApps;
     proApp  = proApps;
     cluApp  = cluApps;
     ccApp   = ccApps;
 }
 public ILogAppService GetLogAppService()
 {
     if (_iLogAppService == null)
     {
         _iLogAppService = Abp.Dependency.IocManager.Instance.Resolve <ILogAppService>();
         return(_iLogAppService);
     }
     else
     {
         return(_iLogAppService);
     }
 }
        public OrcamentoController(IOrcamentoAppService orcamentoApp, ICategoriaAppService categoriaApp,
        IServicoAppService servicoApp, IPrestadorAppService prestadorApp, ICidadeAppService cidadeApp,
        ILogAppService logAppService)
        {
            _orcamentoApp = orcamentoApp;
              _categoriaApp = categoriaApp;
              _servicoApp = servicoApp;
              _prestadorApp = prestadorApp;
              _cidadeApp = cidadeApp;
              _logAppService = logAppService;

              _utils = new Utils();
        }
        public OrcamentoController(IOrcamentoAppService orcamentoApp, ICategoriaAppService categoriaApp,
                                   IServicoAppService servicoApp, IPrestadorAppService prestadorApp, ICidadeAppService cidadeApp,
                                   ILogAppService logAppService)
        {
            _orcamentoApp  = orcamentoApp;
            _categoriaApp  = categoriaApp;
            _servicoApp    = servicoApp;
            _prestadorApp  = prestadorApp;
            _cidadeApp     = cidadeApp;
            _logAppService = logAppService;

            _utils = new Utils();
        }
 public PrestadorController(IPrestadorAppService prestadorApp, IOrcamentoAppService orcamentoApp,
     IUsuarioAppService usuarioApp, IServicoPrestadorAppService servicoPrestadorApp, ILogAppService logApp, IServicoAppService servicoApp,
     ICategoriaAppService categoriaApp, ApplicationUserManager userManager, ApplicationSignInManager signInManager)
 {
     _prestadorApp = prestadorApp;
     _orcamentoApp = orcamentoApp;
     _userManager = userManager;
     _signInManager = signInManager;
     _usuarioApp = usuarioApp;
     _servicoPrestadorApp = servicoPrestadorApp;
     _logAppService = logApp;
     _servicoAppService = servicoApp;
     _categoriaApp = categoriaApp;
     _utils = new Utils();
 }
Example #20
0
 public PrestadorController(IPrestadorAppService prestadorApp, IOrcamentoAppService orcamentoApp,
                            IUsuarioAppService usuarioApp, IServicoPrestadorAppService servicoPrestadorApp, ILogAppService logApp, IServicoAppService servicoApp,
                            ICategoriaAppService categoriaApp, ApplicationUserManager userManager, ApplicationSignInManager signInManager)
 {
     _prestadorApp        = prestadorApp;
     _orcamentoApp        = orcamentoApp;
     _userManager         = userManager;
     _signInManager       = signInManager;
     _usuarioApp          = usuarioApp;
     _servicoPrestadorApp = servicoPrestadorApp;
     _logAppService       = logApp;
     _servicoAppService   = servicoApp;
     _categoriaApp        = categoriaApp;
     _utils = new Utils();
 }
 public BaseAdminController(IUsuarioAppService baseApps, ILogAppService logApps, INoticiaAppService notApps, ITarefaAppService tarApps, INotificacaoAppService notfApps, ICargoAppService carApps, IUsuarioAppService usuApps, IFilialAppService filApps, ITipoContribuinteAppService tcoApps, IUnidadeAppService uniApps, IAgendaAppService ageApps, ITipoTagAppService tagApps, IConfiguracaoAppService confApps, ITipoPessoaAppService tpApps, IRegimeTributarioAppService rtApps)
 {
     baseApp = baseApps;
     logApp  = logApps;
     notiApp = notApps;
     tarApp  = tarApps;
     notfApp = notfApps;
     carApp  = carApps;
     usuApp  = usuApps;
     filApp  = filApps;
     tcoApp  = tcoApps;
     uniApp  = uniApps;
     ageApp  = ageApps;
     tagApp  = tagApps;
     confApp = confApps;
     tpApp   = tpApps;
     rtApp   = rtApps;
 }
        public CentralDeErrosQuery(IUserAppService userAppService, ILogAppService logAppService)
        {
            Field <ListGraphType <UserType> >("users",
                                              description: "Query of user",
                                              arguments: new QueryArguments(new List <QueryArgument>
            {
                new QueryArgument <UserFilterType>
                {
                    Name = "filter"
                }
            }),

                                              resolve: context =>
            {
                var filter = context.GetArgument <UserFilterViewModel?>("filter");
                return(userAppService.GetUsersFilter(filter));
            }
                                              );

            Field <ListGraphType <LogType> >("logs",
                                             description: "Query of log",
                                             arguments: new QueryArguments(new List <QueryArgument>
            {
                new QueryArgument <LogFilterType>
                {
                    Name = "filter"
                }
            }),

                                             resolve: context =>
            {
                var filter = context.GetArgument <LogFilterViewModel?>("filter");
                return(logAppService.GetLogsFilter(filter));
            }
                                             );
        }
Example #23
0
 public LogController(ILogAppService logAppService)
 {
     _logAppService = logAppService;
 }
 public CargoController(ICargoAppService baseApps, ILogAppService logApps)
 {
     baseApp = baseApps;
     logApp  = logApps;
 }
Example #25
0
 public TelefoneController(ITelefoneAppService baseApps, ILogAppService logApps)
 {
     baseApp = baseApps;
     logApp  = logApps;
 }
Example #26
0
 public LogController(ILogAppService AppService, ICommonAppService comService)
 {
     _AppService = AppService;
     _comService = comService;
 }
Example #27
0
 public LogController(ILogAppService logAppService, IHostingEnvironment hostingEnvironment)
 {
     _logAppService      = logAppService;
     _hostingEnvironment = hostingEnvironment;
 }
Example #28
0
 public UnidadeController(IUnidadeAppService baseApps, ILogAppService logApps)
 {
     baseApp = baseApps;
     logApp  = logApps;
 }
 public FilialController(IFilialAppService baseApps, ILogAppService logApps)
 {
     baseApp = baseApps;
     logApp  = logApps;
 }
Example #30
0
 public TarefaController(ITarefaAppService baseApps, ILogAppService logApps, IUsuarioAppService usuApps)
 {
     baseApp = baseApps;
     logApp  = logApps;
     usuApp  = usuApps;
 }
Example #31
0
 public LogController(ILogAppService logService
                      , UserContext userContext)
 {
     _logService  = logService;
     _userContext = userContext;
 }
 public NoticiaController(INoticiaAppService baseApps, ILogAppService logApps)
 {
     baseApp = baseApps;
     logApp  = logApps;
 }
Example #33
0
 public LogController(ILogAppService service)
 {
     _service = service;
 }
 public UsuarioController(IUsuarioAppService baseApps, ILogAppService logApps)
 {
     baseApp = baseApps;
     logApp  = logApps;
 }