public SystemLogViewModel(ISystemLogService CurrentService,
                                  BackendDBContext context, IMapper Mapper,
                                  TranscationResultHelper transcationResultHelper)
        {
            this.CurrentService = CurrentService;
            this.context        = context;
            mapper = Mapper;
            TranscationResultHelper = transcationResultHelper;
            SystemLogSort.Initialization(SortConditions);

            Toolbaritems.Add(new ItemModel()
            {
                Id          = ButtonIdHelper.ButtonIdAdd,
                Text        = "新增",
                TooltipText = "新增",
                Type        = ItemType.Button,
                PrefixIcon  = "mdi mdi-plus-thick",
                Align       = ItemAlign.Left,
            });
            Toolbaritems.Add(new ItemModel()
            {
                Id          = ButtonIdHelper.ButtonIdRefresh,
                Text        = "重新整理",
                TooltipText = "重新整理",
                PrefixIcon  = "mdi mdi-refresh",
                Align       = ItemAlign.Left,
            });
            Toolbaritems.Add("Search");
        }
예제 #2
0
 public VendorController(IVendorService vendorService, ISystemLogService systemLogService) : base(systemLogService)
 {
     vendorService.InitialiseIValidationDictionary(new ModelStateWrapper(ModelState));
     _vendorService = vendorService;
     IService       = vendorService;
     Model          = new VendorModel();
 }
예제 #3
0
 public TimeInOutService(IConfiguration configuration, IHttpContextAccessor httpContextAccessor, IHostingEnvironment environment, ISystemLogService systemLogService)
 {
     _configuration    = configuration;
     _accessor         = httpContextAccessor;
     _environment      = environment;
     _systemLogService = systemLogService;
 }
 public CategoryController(ICodeFileService codeFileService, ISystemLogService systemLogService) : base(systemLogService)
 {
     codeFileService.InitialiseIValidationDictionary
         (new ModelStateWrapper(this.ModelState));
     IService         = codeFileService;
     _codeFileService = codeFileService;
 }
예제 #5
0
 public DepartmentController(IDepartmentService departmentService, ISystemLogService systemLogService) : base(systemLogService)
 {
     departmentService.InitialiseIValidationDictionary
         (new ModelStateWrapper(this.ModelState));
     IService           = departmentService;
     _departmentService = departmentService;
 }
예제 #6
0
 public ReportController(IUserService userService, IUserCodeService userCodeRepo, IAdministrationSecurityService adminSecurityService, ISystemLogService systemLogService)
 {
     this.userService          = userService;
     this.userCodeRepo         = userCodeRepo;
     this.adminSecurityService = adminSecurityService;
     this.systemLogService     = systemLogService;
 }
 public EducationController(IEducationService educationService, ISystemLogService systemLogService) : base(systemLogService)
 {
     educationService.InitialiseIValidationDictionary(
         new ModelStateWrapper(ModelState));
     _educationService = educationService;
     IService          = educationService;
 }
예제 #8
0
 public RoomController(IRoomService roomService, ISystemLogService systemLogService) : base(systemLogService)
 {
     roomService.InitialiseIValidationDictionary(
         new ModelStateWrapper(ModelState));
     _roomService = roomService;
     IService     = roomService;
 }
 public AccountController(
     ISystemLogService systemLogService,
     IAccountService accountService
     ) : base(systemLogService)
 {
     _accountService = accountService;
     _accountService.InitialiseIValidationDictionary(new ModelStateWrapper(ModelState));
 }
예제 #10
0
 public LogController(IUserService userService, IUserContext userContext, ISettingService settingService, IPermissionService permissionService, ISystemLogService systemLogService)
 {
     this._userService       = userService;
     this._userContext       = userContext;
     this._settingService    = settingService;
     this._permissionService = permissionService;
     this._systemLogService  = systemLogService;
 }
예제 #11
0
 public RoleController(
     IRoleService roleService,
     ISystemLogService systemLogService,
     IAppToRoleService appToRoleService) : base(systemLogService)
 {
     _roleService      = roleService;
     _appToRoleService = appToRoleService;
 }
예제 #12
0
 public LogAttribute(
     ISystemLogService systemLogService,
     Method method,
     string programName
     )
 {
     _systemLogService = systemLogService;
     _method           = method;
     _programName      = programName;
 }
예제 #13
0
 public DrugVendorController(
     IDrugVendorService drugVendorService,
     IDrugService drugService,
     ISystemLogService systemLogService) : base(systemLogService)
 {
     drugVendorService.InitialiseIValidationDictionary
         (new ModelStateWrapper(this.ModelState));
     IService     = drugVendorService;
     _drugService = drugService;
 }
예제 #14
0
        private static void FilteredLog(ISystemLogService logger, LogLevel level, string message, Exception exception = null, User user = null)
        {
            //don't log thread abort exception
            if (exception is System.Threading.ThreadAbortException)
            {
                return;
            }

            string fullMessage = exception == null ? string.Empty : exception.ToString();

            logger.InsertSystemLog(level, message, fullMessage, user);
        }
예제 #15
0
 public DashboardController(IUserService userService, IPictureService pictureService, IUserContext userContext, IAuthenticationService authenticationService, IRoleService roleService, IPermissionService permissionService, ICultureHelper cultureHelper, IFeedbackService feedbackService, IEventService eventService, ICommentService commentService, IAuditService auditService, ISystemLogService systemLogService, IReplyService replyService, ISMSService smsService)
 {
     this._userService           = userService;
     this._pictureService        = pictureService;
     this._userContext           = userContext;
     this._authenticationService = authenticationService;
     this._roleService           = roleService;
     this._permissionService     = permissionService;
     this._cultureHelper         = cultureHelper;
     this._feedbackService       = feedbackService;
     this._eventService          = eventService;
     this._commentService        = commentService;
     this._auditService          = auditService;
     this._systemLogService      = systemLogService;
     this._replyService          = replyService;
     this._smsService            = smsService;
 }
예제 #16
0
 public ItemController(
     IDrugService drugService,
     IDrugSettingService drugSettingService,
     IDrugCostService drugCostService,
     IDrugAppearanceService drugAppearanceService,
     ICodeFileService codeFileService,
     ISystemLogService systemLogService) : base(systemLogService)
 {
     _modelState = new ModelStateWrapper(ModelState);
     drugService.InitialiseIValidationDictionary(_modelState);
     drugSettingService.InitialiseIValidationDictionary(_modelState);
     drugCostService.InitialiseIValidationDictionary(_modelState);
     drugAppearanceService.InitialiseIValidationDictionary(_modelState);
     codeFileService.InitialiseIValidationDictionary(_modelState);
     _drugService           = drugService;
     _drugSettingService    = drugSettingService;
     _drugCostService       = drugCostService;
     _drugAppearanceService = drugAppearanceService;
     _codeFileService       = codeFileService;
 }
예제 #17
0
 public GrpcPublisher(ISystemLogService systemLogService)
 {
     _systemLogService = systemLogService;
     _appName          = @Assembly.GetEntryAssembly()?.GetName().Name;
     _appVersion       = @Assembly.GetEntryAssembly()?.GetName().Version.ToString();
 }
예제 #18
0
 public SettingService(IConfiguration configuration, IHttpContextAccessor httpContextAccessor, ISystemLogService systemLogService)
 {
     _configuration    = configuration;
     _accessor         = httpContextAccessor;
     _systemLogService = systemLogService;
 }
예제 #19
0
 public ValuesController(IMapper mapper, ILogger <ValuesController> logger, ISystemLogService systemLogService)
 {
     this._mapper           = mapper;
     this._logger           = logger;
     this._systemLogService = systemLogService;
 }
예제 #20
0
 public SettingController(ISettingService settingService, ISystemLogService systemLogService) : base(systemLogService)
 {
     settingService.InitialiseIValidationDictionary(
         new ModelStateWrapper(ModelState));
     _settingService = settingService;
 }
 public override void Close()
 {
     base.Close();
     deleteOfficeCommand = null;
     viewOfficeCommand = null;
     editOfficeCommand = null;
     newOfficeCommand = null;
     pagerViewModel = null;
     officeList = null;
     senatorService = null;
     search = null;
     _systemLogService = null;
     Senator = null;
     senators = null;
 }
 public override void Open()
 {
     base.Open();
     search = new OfficeSearch
     {
         SortColumn = "OfficeNumber",
         SortDirection = SortDirection.Ascending
     };
     this.senatorService = ServiceFactory.CreateSenatorService(SessionConnection);
     _systemLogService = ServiceFactory.CreateSystemLogService(SessionConnection);
     SearchText = "";
     GetOffices();
 }
예제 #23
0
 public SystemLogActionFilterImpl(ILoggerFactory loggerFactory, ISystemLogService logService)
 {
     _logService = logService;
 }
예제 #24
0
 public BaseWebController(ISystemLogService systemLogService) : base(systemLogService)
 {
 }
예제 #25
0
 public DrugController(IDrugSettingService drugSettingService, ISystemLogService systemLogService) : base(systemLogService)
 {
     drugSettingService.InitialiseIValidationDictionary(new ModelStateWrapper(ModelState));
     _drugSettingService = drugSettingService;
 }
예제 #26
0
 public LogOnController(ISettingService settingService, IAccountService accountService, ISystemLogService systemLogService) : base(systemLogService)
 {
     _settingService = settingService;
     _accountService = accountService;
 }
예제 #27
0
 public LogController(ISystemLogService service)
 {
     _service = service;
 }
예제 #28
0
 public FileController(IFileService fileService, ISystemLogService systemLogService) : base(systemLogService)
 {
     _fileService = fileService;
 }
예제 #29
0
 public CompanyService(IConfiguration configuration, IHttpContextAccessor httpContextAccessor, ISystemLogService systemLogService)
 {
     _systemLogService = systemLogService;
     _configuration    = configuration;
     _accessor         = httpContextAccessor;
 }
예제 #30
0
 public SystemlogController(ISystemLogService _service)
 {
     service = _service;
 }
예제 #31
0
 public SystemLogHelper(ISystemLogService systemLogService,
                        IMapper mapper)
 {
     SystemLogService = systemLogService;
     Mapper           = mapper;
 }
예제 #32
0
 public ValuesController(ITransactionService transactionService, ISystemLogService systemLogService)
 {
     _transactionService = transactionService;
     _systemLogService   = systemLogService;
 }