public TransporterPaymentRequestController(IBusinessProcessService _paramBusinessProcessService , IBusinessProcessStateService _paramBusinessProcessStateService , IApplicationSettingService _paramApplicationSettingService , ITransporterPaymentRequestService transporterPaymentRequestService , ITransportOrderService _paramTransportOrderService , IBidWinnerService bidWinnerService , IDispatchService dispatchService , IWorkflowStatusService workflowStatusService , IUserAccountService userAccountService , Services.Procurement.ITransporterService transporterService, ITransportOrderService transportOrderService, ITransportOrderDetailService transportOrderDetailService, ICommonService commodityService , IFlowTemplateService flowTemplateService) { _BusinessProcessService = _paramBusinessProcessService; _BusinessProcessStateService = _paramBusinessProcessStateService; _ApplicationSettingService = _paramApplicationSettingService; _transporterPaymentRequestService = transporterPaymentRequestService; _TransportOrderService = _paramTransportOrderService; _bidWinnerService = bidWinnerService; _dispatchService = dispatchService; _workflowStatusService = workflowStatusService; _userAccountService = userAccountService; _transporterService = transporterService; _transportOrderService = transportOrderService; _transportOrderDetailService = transportOrderDetailService; _commodityService = commodityService; _flowTemplateService = flowTemplateService; }
/// <summary>重新加载</summary> private void Reload() { if (this.restartCount > 0) { KernelContext.Log.Info(string.Format(I18n.Strings["application_is_reloading"], AppsConfiguration.ApplicationName)); // 重新加载配置信息 AppsConfigurationView.Instance.Reload(); } else { KernelContext.Log.Info(string.Format(I18n.Strings["application_is_loading"], AppsConfiguration.ApplicationName)); } // 创建对象构建器(Spring.NET) string springObjectFile = AppsConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value; SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(AppsConfiguration.ApplicationName, springObjectFile); // 创建数据服务对象 this.m_ApplicationService = objectBuilder.GetObject <IApplicationService>(typeof(IApplicationService)); this.m_ApplicationOptionService = objectBuilder.GetObject <IApplicationOptionService>(typeof(IApplicationOptionService)); this.m_ApplicationErrorService = objectBuilder.GetObject <IApplicationErrorService>(typeof(IApplicationErrorService)); this.m_ApplicationEventService = objectBuilder.GetObject <IApplicationEventService>(typeof(IApplicationEventService)); this.m_ApplicationFeatureService = objectBuilder.GetObject <IApplicationFeatureService>(typeof(IApplicationFeatureService)); this.m_ApplicationFeatureDateLimitService = objectBuilder.GetObject <IApplicationFeatureDateLimitService>(typeof(IApplicationFeatureDateLimitService)); this.m_ApplicationSettingService = objectBuilder.GetObject <IApplicationSettingService>(typeof(IApplicationSettingService)); this.m_ApplicationSettingGroupService = objectBuilder.GetObject <IApplicationSettingGroupService>(typeof(IApplicationSettingGroupService)); this.m_ApplicationMenuService = objectBuilder.GetObject <IApplicationMenuService>(typeof(IApplicationMenuService)); this.m_ApplicationMethodService = objectBuilder.GetObject <IApplicationMethodService>(typeof(IApplicationMethodService)); KernelContext.Log.Info(string.Format(I18n.Strings["application_is_successfully_loaded"], AppsConfiguration.ApplicationName)); }
public DeliveryController(ITransportOrderService transportOrderService, IWorkflowStatusService workflowStatusService, IDispatchAllocationService dispatchAllocationService, IDeliveryService deliveryService, IDispatchService dispatchService, IDeliveryDetailService deliveryDetailService, INotificationService notificationService, IActionTypesService actionTypeService, IUserAccountService userAccountService, Cats.Services.EarlyWarning.ICommodityService commodityService, Cats.Services.EarlyWarning.IUnitService unitService, Cats.Services.Transaction.ITransactionService transactionService, IBusinessProcessService businessProcessService, IApplicationSettingService applicationSettingService, ITransporterPaymentRequestService transporterPaymentRequestService) { _transportOrderService = transportOrderService; _workflowStatusService = workflowStatusService; _dispatchAllocationService = dispatchAllocationService; _deliveryService = deliveryService; _dispatchService = dispatchService; _deliveryDetailService = deliveryDetailService; _notificationService = notificationService; _actionTypeService = actionTypeService; _userAccountService = userAccountService; _commodityService = commodityService; _unitService = unitService; _transactionService = transactionService; _businessProcessService = businessProcessService; _applicationSettingService = applicationSettingService; _transporterPaymentRequestService = transporterPaymentRequestService; }
public RequestController(IRegionalRequestService reliefRequistionService, IFDPService fdpService, IRegionalRequestDetailService reliefRequisitionDetailService, ICommonService commonService, IHRDService hrdService, IApplicationSettingService ApplicationSettingService, IUserAccountService userAccountService, ILog log, IHRDDetailService hrdDetailService, IRegionalPSNPPlanDetailService regionalPSNPPlanDetailService, IRegionalPSNPPlanService RegionalPSNPPlanService, IAdminUnitService adminUnitService, IPlanService planService, IIDPSReasonTypeServices idpsReasonTypeServices) { _regionalRequestService = reliefRequistionService; _fdpService = fdpService; _regionalRequestDetailService = reliefRequisitionDetailService; _commonService = commonService; _hrdService = hrdService; _applicationSettingService = ApplicationSettingService; _userAccountService = userAccountService; _log = log; _HRDDetailService = hrdDetailService; _RegionalPSNPPlanDetailService = regionalPSNPPlanDetailService; _RegionalPSNPPlanService = RegionalPSNPPlanService; _adminUnitService = adminUnitService; _planService = planService; _idpsReasonTypeServices = idpsReasonTypeServices; }
public RestoreViewModel( IApplicationSettingService applicationSettingService, IBitnamiRedmineService bitnamiRedmineService, IBackupService backupService, IDispatcherService dispatcherService, IDialogService dialogService, ILogService logService) : base(dialogService, logService) { if (applicationSettingService == null) { throw new ArgumentNullException(nameof(applicationSettingService)); } if (bitnamiRedmineService == null) { throw new ArgumentNullException(nameof(bitnamiRedmineService)); } if (backupService == null) { throw new ArgumentNullException(nameof(backupService)); } if (dispatcherService == null) { throw new ArgumentNullException(nameof(dispatcherService)); } var bitNamiRedmineStacks = bitnamiRedmineService.GetBitnamiRedmineStacks(); this.Stacks = new ObservableCollection <RestoreModel>(bitNamiRedmineStacks.Select( stack => new RestoreModel(applicationSettingService, bitnamiRedmineService, backupService, dispatcherService, dialogService, logService, stack))); }
public PriceQuotationController(ITransportBidPlanService transportBidPlanServiceParam , IAdminUnitService adminUnitServiceParam , IProgramService programServiceParam , ITransportBidPlanDetailService transportBidPlanDetailServiceParam , IHubService hubServiceParam , ITransportBidQuotationService bidQuotationServiceParam , ITransporterService transporterServiceParam , IBidService bidServiceParam , ITransportBidQuotationService transportBidQuotationService , IBidWinnerService bidWinnerService , IBusinessProcessService businessProcessService , IApplicationSettingService applicationSettingService , ITransportBidQuotationHeaderService transportBidQuotationHeaderService , ITransportOrderService transportOrderService ) { this._transportBidPlanService = transportBidPlanServiceParam; this._adminUnitService = adminUnitServiceParam; this._programService = programServiceParam; this._transportBidPlanDetailService = transportBidPlanDetailServiceParam; this._hubService = hubServiceParam; this._bidQuotationService = bidQuotationServiceParam; this._bidService = bidServiceParam; this._transporterService = transporterServiceParam; this._transportBidQuotationService = transportBidQuotationService; this._bidWinnerService = bidWinnerService; this._BusinessProcessService = businessProcessService; this._transportBidQuotationHeaderService = transportBidQuotationHeaderService; this._ApplicationSettingService = applicationSettingService; _transportOrderService = transportOrderService; }
public PriceQuotationController(ITransportBidPlanService transportBidPlanServiceParam , IAdminUnitService adminUnitServiceParam , IProgramService programServiceParam , ITransportBidPlanDetailService transportBidPlanDetailServiceParam , IHubService hubServiceParam , ITransportBidQuotationService bidQuotationServiceParam , ITransporterService transporterServiceParam , IBidService bidServiceParam , ITransportBidQuotationService transportBidQuotationService , IBidWinnerService bidWinnerService , IBusinessProcessService businessProcessService , IApplicationSettingService applicationSettingService , ITransportBidQuotationHeaderService transportBidQuotationHeaderService , ITransportOrderService transportOrderService) { this._transportBidPlanService = transportBidPlanServiceParam; this._adminUnitService = adminUnitServiceParam; this._programService = programServiceParam; this._transportBidPlanDetailService = transportBidPlanDetailServiceParam; this._hubService = hubServiceParam; this._bidQuotationService = bidQuotationServiceParam; this._bidService = bidServiceParam; this._transporterService = transporterServiceParam; this._transportBidQuotationService = transportBidQuotationService; this._bidWinnerService = bidWinnerService; this._BusinessProcessService = businessProcessService; this._transportBidQuotationHeaderService = transportBidQuotationHeaderService; this._ApplicationSettingService = applicationSettingService; _transportOrderService = transportOrderService; }
public ValidatedPaymentRequestController(IBusinessProcessService paramBusinessProcessService , IBusinessProcessStateService paramBusinessProcessStateService , IApplicationSettingService paramApplicationSettingService , ITransportOrderService paramTransportOrderService , ITransporterAgreementVersionService transporterAgreementVersionService , IWorkflowStatusService workflowStatusService, ITransporterService transporterService , ITransporterChequeService transporterChequeService, IUserProfileService userProfileService , ITransporterPaymentRequestService transporterPaymentRequestService, IBidWinnerService bidWinnerService , IUserAccountService userAccountService, IDispatchService dispatchService , ITransporterChequeDetailService transporterChequeDetailService, ITransportOrderDetailService transportOrderDetailService) { _businessProcessService = paramBusinessProcessService; _businessProcessStateService = paramBusinessProcessStateService; _applicationSettingService = paramApplicationSettingService; _transportOrderService = paramTransportOrderService; _transporterAgreementVersionService = transporterAgreementVersionService; _workflowStatusService = workflowStatusService; _transporterService = transporterService; _transporterChequeService = transporterChequeService; _userProfileService = userProfileService; _transporterPaymentRequestService = transporterPaymentRequestService; _bidWinnerService = bidWinnerService; _userAccountService = userAccountService; _dispatchService = dispatchService; _transporterChequeDetailService = transporterChequeDetailService; _transportOrderDetailService = transportOrderDetailService; }
public DeliveryController(ITransportOrderService transportOrderService, IWorkflowStatusService workflowStatusService, IDispatchAllocationService dispatchAllocationService, IDeliveryService deliveryService, IDispatchService dispatchService, IDeliveryDetailService deliveryDetailService, INotificationService notificationService, IActionTypesService actionTypeService, IUserAccountService userAccountService, Cats.Services.EarlyWarning.ICommodityService commodityService, Cats.Services.EarlyWarning.IUnitService unitService, Cats.Services.Transaction.ITransactionService transactionService, IBusinessProcessService businessProcessService, IApplicationSettingService applicationSettingService, ITransporterPaymentRequestService transporterPaymentRequestService) { _transportOrderService = transportOrderService; _workflowStatusService = workflowStatusService; _dispatchAllocationService = dispatchAllocationService; _deliveryService = deliveryService; _dispatchService = dispatchService; _deliveryDetailService = deliveryDetailService; _notificationService = notificationService; _actionTypeService = actionTypeService; _userAccountService = userAccountService; _commodityService = commodityService; _unitService = unitService; _transactionService = transactionService; _businessProcessService = businessProcessService; _applicationSettingService = applicationSettingService; _transporterPaymentRequestService = transporterPaymentRequestService; }
public ValidatedPaymentRequestController(IBusinessProcessService paramBusinessProcessService , IBusinessProcessStateService paramBusinessProcessStateService , IApplicationSettingService paramApplicationSettingService , ITransportOrderService paramTransportOrderService , ITransporterAgreementVersionService transporterAgreementVersionService , IWorkflowStatusService workflowStatusService, ITransporterService transporterService , ITransporterChequeService transporterChequeService, IUserProfileService userProfileService ,ITransporterPaymentRequestService transporterPaymentRequestService, IBidWinnerService bidWinnerService , IUserAccountService userAccountService, IDispatchService dispatchService , ITransporterChequeDetailService transporterChequeDetailService,ITransportOrderDetailService transportOrderDetailService) { _businessProcessService = paramBusinessProcessService; _businessProcessStateService = paramBusinessProcessStateService; _applicationSettingService = paramApplicationSettingService; _transportOrderService = paramTransportOrderService; _transporterAgreementVersionService = transporterAgreementVersionService; _workflowStatusService = workflowStatusService; _transporterService = transporterService; _transporterChequeService = transporterChequeService; _userProfileService = userProfileService; _transporterPaymentRequestService = transporterPaymentRequestService; _bidWinnerService = bidWinnerService; _userAccountService = userAccountService; _dispatchService = dispatchService; _transporterChequeDetailService = transporterChequeDetailService; _transportOrderDetailService = transportOrderDetailService; }
public TransporterPaymentRequestController(IBusinessProcessService _paramBusinessProcessService , IBusinessProcessStateService _paramBusinessProcessStateService , IApplicationSettingService _paramApplicationSettingService , ITransporterPaymentRequestService transporterPaymentRequestService , ITransportOrderService _paramTransportOrderService , IBidWinnerService bidWinnerService , IDispatchService dispatchService , IWorkflowStatusService workflowStatusService , IUserAccountService userAccountService , Services.Procurement.ITransporterService transporterService, ITransportOrderService transportOrderService, ITransportOrderDetailService transportOrderDetailService, ICommonService commodityService , IFlowTemplateService flowTemplateService) { _BusinessProcessService = _paramBusinessProcessService; _BusinessProcessStateService = _paramBusinessProcessStateService; _ApplicationSettingService = _paramApplicationSettingService; _transporterPaymentRequestService = transporterPaymentRequestService; _TransportOrderService = _paramTransportOrderService; _bidWinnerService = bidWinnerService; _dispatchService = dispatchService; _workflowStatusService = workflowStatusService; _userAccountService = userAccountService; _transporterService = transporterService; _transportOrderService = transportOrderService; _transportOrderDetailService = transportOrderDetailService; _commodityService = commodityService; _flowTemplateService = flowTemplateService; }
public BackupModel( IApplicationSettingService applicationSettingService, IBitnamiRedmineService bitnamiRedmineService, IBackupService backupService, IDispatcherService dispatcherService, IDialogService dialogService, ILogService logService, BitnamiRedmineStack stack) : base(applicationSettingService, bitnamiRedmineService, backupService, dispatcherService, dialogService, logService, stack) { // Apply Setting RedmineSetting redmineSetting; this.GetApplicationSetting(out redmineSetting); this.Directory = redmineSetting.Backup.BaseDirectory; this.DirectoryName = redmineSetting.Backup.DirectoryName; this.Database = redmineSetting.Backup.Database; this.Files = redmineSetting.Backup.Files; this.Plugins = redmineSetting.Backup.Plugins; this.Themes = redmineSetting.Backup.Themes; this.PropertyChanged += (sender, args) => { switch (args.PropertyName) { case "Directory": var path = Path.Combine(this.Directory, this.DirectoryName); this.OutputDirectory = Utility.GetSanitizedDirectoryPath(stack, path); break; } }; this.UpdateDiskSpace(); }
public SystemSettingsController(ILogger <SystemSettingsController> logger, OperLogHelper operLogHelper, IApplicationSettingService applicationSettingService, IBLLSystemSettings bLLSystemSettings) : base(logger, operLogHelper) { _applicationSettingService = applicationSettingService; _systemSettingHelper = bLLSystemSettings; }
public DistributedCacheManager() { EventLog.WriteEntry("Application", "AppFabric Constructor", EventLogEntryType.Information, 9111); DataCacheClientLogManager.ChangeLogLevel(TraceLevel.Off); _applicationSettingService = EngineContext.Current.Resolve <IApplicationSettingService>(); InitializeFactory(); _cacheClients = new ConcurrentDictionary <string, CacheClient>(); }
public JsonResult GetPageTree() { IApplicationSettingService applicationSettingService = HttpContext.RequestServices.GetService <IApplicationSettingService>(); var expandAll = applicationSettingService.Get(SettingKeys.ExpandAllPage, "true"); var pages = Service.Get(m => !m.IsPublishedPage).OrderBy(m => m.DisplayOrder); var node = new Tree <PageEntity>().Source(pages).ToNode(m => m.ID, m => m.PageName, m => m.ParentId, "#", expandAll.Equals("true", StringComparison.OrdinalIgnoreCase)); return(Json(node)); }
/// <summary> /// Initializes a new instance of the <see cref="BaseController" /> class. /// </summary> public BaseController() { this.UserService = UnityConfig.UnityContainer.Resolve<IUserService>(); this.LogService = UnityConfig.UnityContainer.Resolve<ILogService>(); this.DataService = UnityConfig.UnityContainer.Resolve<IDataService>(); this.CryptoService = UnityConfig.UnityContainer.Resolve<ICryptoService>(); this.StorageService = UnityConfig.UnityContainer.Resolve<IStorageService>(); this.ApplicationSettingService = UnityConfig.UnityContainer.Resolve<IApplicationSettingService>(); this.DocumentService = UnityConfig.UnityContainer.Resolve<IDocumentService>(); }
/// <summary> /// Initializes a new instance of the <see cref="DataController"/> class. /// </summary> public DataController() { this.DataService = UnityConfig.UnityContainer.Resolve <IDataService>(); this.UserService = UnityConfig.UnityContainer.Resolve <IUserService>(); this.CryptoService = UnityConfig.UnityContainer.Resolve <ICryptoService>(); this.StorageService = UnityConfig.UnityContainer.Resolve <IStorageService>(); this.ApplicationSettingService = UnityConfig.UnityContainer.Resolve <IApplicationSettingService>(); this.syngentaSIPUnitOfWork = UnityConfig.UnityContainer.Resolve <ISyngentaSIPUnitOfWork>(); this.LogService = UnityConfig.UnityContainer.Resolve <ILogService>(); }
public AlipayService(IOptions <AlipayOptions> alipayOptions, IApplicationSettingService applicationSettingService) { Options = applicationSettingService.Get <AlipayOptions>(); if (Options.AppId.IsNullOrWhiteSpace()) { Options = alipayOptions.Value; } _aopClient = new DefaultAopClient(Options.Gatewayurl, Options.AppId, Options.PrivateKey, "json", "1.0", Options.SignType, Options.AlipayPublicKey, Options.CharSet, Options.IsKeyFromFile); }
public BidAdministrationController(IBidWinnerService bidWinnerService, IApplicationSettingService applicationSettingService, IWorkflowStatusService workflowStatusService, IUserAccountService userAccountService, IBidService bidService, ITransportBidPlanService bidPlanService) { _bidWinnerService = bidWinnerService; _applicationSettingService = applicationSettingService; _workflowStatusService = workflowStatusService; _userAccountService = userAccountService; _bidService = bidService; _bidPlanService = bidPlanService; }
public BidAdministrationController(IBidWinnerService bidWinnerService, IApplicationSettingService applicationSettingService, IWorkflowStatusService workflowStatusService, IUserAccountService userAccountService, IBidService bidService, ITransportBidPlanService bidPlanService) { _bidWinnerService = bidWinnerService; _applicationSettingService = applicationSettingService; _workflowStatusService = workflowStatusService; _userAccountService = userAccountService; _bidService = bidService; _bidPlanService = bidPlanService; }
public CommentsService(IApplicationContext applicationContext, INotificationManager notificationManager, IApplicationSettingService applicationSettingService, ILocalize localize, CMSDbContext dbContext) : base(applicationContext, dbContext) { _notificationManager = notificationManager; _applicationSettingService = applicationSettingService; _localize = localize; }
public PaymentRequestController(IBusinessProcessService _paramBusinessProcessService , IBusinessProcessStateService _paramBusinessProcessStateService , IApplicationSettingService _paramApplicationSettingService , IPaymentRequestService _paramPaymentRequestservice , ITransportOrderService _paramTransportOrderService ) { _BusinessProcessService = _paramBusinessProcessService; _BusinessProcessStateService = _paramBusinessProcessStateService; _ApplicationSettingService = _paramApplicationSettingService; _PaymentRequestservice = _paramPaymentRequestservice; _TransportOrderService = _paramTransportOrderService; }
internal ApplicationOption GetApplicationOption() { ApplicationOption option = new ApplicationOption(); IApplicationSettingService service = UnitOfWork.GetService <IApplicationSettingService>(); var query = service.GetAll(); if (query.HasResult) { ParseSettings(option, query.DataList); } return(option); }
public PaymentRequestController(IBusinessProcessService _paramBusinessProcessService , IBusinessProcessStateService _paramBusinessProcessStateService , IApplicationSettingService _paramApplicationSettingService , IPaymentRequestService _paramPaymentRequestservice , ITransportOrderService _paramTransportOrderService ) { _BusinessProcessService=_paramBusinessProcessService; _BusinessProcessStateService=_paramBusinessProcessStateService; _ApplicationSettingService=_paramApplicationSettingService; _PaymentRequestservice =_paramPaymentRequestservice; _TransportOrderService = _paramTransportOrderService; }
public ApplicationSettingController( IApplicationSettingService applicationSettingService, IMapper mapper, ApplicationSettingValue applicationSetting, IConfiguration configuration, ILogger <ApplicationSettingController> logger) { _applicationSettingService = applicationSettingService; _configuration = configuration; _applicationSetting = applicationSetting; _mapper = mapper; _logger = logger; }
public PageController(IPageService service, ICookie cookie, ILayoutService layoutService, IWidgetBasePartService widgetService, IRuleService ruleService, IApplicationSettingService applicationSettingService) : base(service) { _cookie = cookie; _layoutService = layoutService; _widgetService = widgetService; _ruleService = ruleService; _applicationSettingService = applicationSettingService; }
internal IEnumerable <TDto> RetrieveAllApplicationSetting <TDto>(IDataConverter <ApplicationSettingData, TDto> converter) where TDto : class { ArgumentValidator.IsNotNull("converter", converter); IApplicationSettingService service = UnitOfWork.GetService <IApplicationSettingService>(); var query = service.GetAll(); if (query.HasResult) { return(query.DataToDtoList(converter)); } return(null); }
public WoredaHubController(IWoredaHubService woredaHubService, IWoredaHubLinkService woredaHubLinkService, IHRDService hrdService, IRegionalPSNPPlanService regionalPSNPPlanService, IAdminUnitService adminUnitService, IHubService hubService, IHRDDetailService hrdDetailService, IRegionalPSNPPlanDetailService regionalPSNPPlanDetailService, IApplicationSettingService applicationSettingService, IUserAccountService userAccountService, IPlanService planService) { _woredaHubService = woredaHubService; _woredaHubLinkService = woredaHubLinkService; _hrdService = hrdService; _regionalPSNPPlanService = regionalPSNPPlanService; _adminUnitService = adminUnitService; _hubService = hubService; _hrdDetailService = hrdDetailService; _regionalPSNPPlanDetailService = regionalPSNPPlanDetailService; _applicationSettingService = applicationSettingService; _planService = planService; }
internal IList <BindingListItem> GetBindingList() { List <BindingListItem> dataSource = new List <BindingListItem>(); IApplicationSettingService service = UnitOfWork.GetService <IApplicationSettingService>(); var query = service.GetAll(); if (query.HasResult) { foreach (ApplicationSettingData data in query.DataList) { dataSource.Add(new BindingListItem(data.Id, data.SettingKey)); } } return(dataSource); }
public WoredaHubController(IWoredaHubService woredaHubService, IWoredaHubLinkService woredaHubLinkService, IHRDService hrdService, IRegionalPSNPPlanService regionalPSNPPlanService, IAdminUnitService adminUnitService, IHubService hubService, IHRDDetailService hrdDetailService, IRegionalPSNPPlanDetailService regionalPSNPPlanDetailService, IApplicationSettingService applicationSettingService, IUserAccountService userAccountService, IPlanService planService) { _woredaHubService = woredaHubService; _woredaHubLinkService = woredaHubLinkService; _hrdService = hrdService; _regionalPSNPPlanService = regionalPSNPPlanService; _adminUnitService = adminUnitService; _hubService = hubService; _hrdDetailService = hrdDetailService; _regionalPSNPPlanDetailService = regionalPSNPPlanDetailService; _applicationSettingService = applicationSettingService; _planService = planService; }
internal TDto RetrieveOrNewApplicationSetting <TDto>(object instanceId, IDataConverter <ApplicationSettingData, TDto> converter) where TDto : class { ArgumentValidator.IsNotNull("converter", converter); IApplicationSettingService service = UnitOfWork.GetService <IApplicationSettingService>(); FacadeUpdateResult <ApplicationSettingData> result = new FacadeUpdateResult <ApplicationSettingData>(); ApplicationSetting instance = RetrieveOrNew <ApplicationSettingData, ApplicationSetting, IApplicationSettingService>(result.ValidationResult, instanceId); if (result.IsSuccessful) { return(converter.Convert(instance.RetrieveData <ApplicationSettingData>())); } else { return(null); } }
public RestoreModel( IApplicationSettingService applicationSettingService, IBitnamiRedmineService bitnamiRedmineService, IBackupService backupService, IDispatcherService dispatcherService, IDialogService dialogService, ILogService logService, BitnamiRedmineStack stack) : base(applicationSettingService, bitnamiRedmineService, backupService, dispatcherService, dialogService, logService, stack) { this.PropertyChanged += (sender, args) => { switch (args.PropertyName) { case "Directory": this.UpdateState(); break; } }; RedmineSetting redmineSetting; this.GetApplicationSetting(out redmineSetting); this.BackupHistories = new CollectionViewSource { Source = this._ApplicationSettingService.BackupHistories }; this._ApplicationSettingService.BackupHistories.CollectionChanged += (sender, args) => this.BackupHistories.View.Refresh(); var version = this.Stack.DisplayVersion.ToVersion(); this.BackupHistories.View.Filter = x => { var setting = (BackupHistorySetting)x; var compared = setting.DisplayVersion.ToVersion() <= version; return(compared); }; this.BackupHistories.View.SortDescriptions.Add(new SortDescription("DateTime", ListSortDirection.Descending)); this.DeleteHistoryCommand = new RelayCommand <BackupHistorySetting>(this.DeleteHistoryExecute); }
public RegionalPSNPPlanController(IRegionalPSNPPlanService regionalPSNPPlanServiceParam , IRationService rationServiceParam , IAdminUnitService adminUnitServiceParam , IBusinessProcessService BusinessProcessServiceParam , IBusinessProcessStateService BusinessProcessStateServiceParam , IApplicationSettingService ApplicationSettingParam , ILog log , IPlanService planService ) { this._regionalPSNPPlanService = regionalPSNPPlanServiceParam; this._rationService = rationServiceParam; this._adminUnitService = adminUnitServiceParam; this._BusinessProcessService = BusinessProcessServiceParam; this._BusinessProcessStateService = BusinessProcessStateServiceParam; this._ApplicationSettingService = ApplicationSettingParam; this._log = log; this._planService = planService; }
public BackupViewModel( IApplicationSettingService applicationSettingService, IBitnamiRedmineService bitnamiRedmineService, IBackupService backupService, ITaskService taskService, IDispatcherService dispatcherService, IDialogService dialogService, ILogService logService) : base(dialogService, logService) { if (applicationSettingService == null) { throw new ArgumentNullException(nameof(applicationSettingService)); } if (bitnamiRedmineService == null) { throw new ArgumentNullException(nameof(bitnamiRedmineService)); } if (backupService == null) { throw new ArgumentNullException(nameof(backupService)); } if (taskService == null) { throw new ArgumentNullException(nameof(taskService)); } if (dispatcherService == null) { throw new ArgumentNullException(nameof(dispatcherService)); } var bitNamiRedmineStacks = bitnamiRedmineService.GetBitnamiRedmineStacks(); this.Stacks = new ObservableCollection <BackupModel>(bitNamiRedmineStacks.Select( stack => new BackupModel(applicationSettingService, bitnamiRedmineService, backupService, dispatcherService, dialogService, logService, stack))); this._TaskService = taskService; this.CreateTaskCommand = new RelayCommand(this.ExecuteCreateTask, this.CanCreateTaskExecute); }
public ValidatedPaymentRequestController(IBusinessProcessService paramBusinessProcessService , IBusinessProcessStateService paramBusinessProcessStateService , IApplicationSettingService paramApplicationSettingService , IPaymentRequestService paramPaymentRequestservice , ITransportOrderService paramTransportOrderService , ITransporterAgreementVersionService transporterAgreementVersionService , IWorkflowStatusService workflowStatusService, ITransporterService transporterService , ITransporterChequeService transporterChequeService, IUserProfileService userProfileService) { _businessProcessService = paramBusinessProcessService; _businessProcessStateService = paramBusinessProcessStateService; _applicationSettingService = paramApplicationSettingService; _paymentRequestservice = paramPaymentRequestservice; _transportOrderService = paramTransportOrderService; _transporterAgreementVersionService = transporterAgreementVersionService; _workflowStatusService = workflowStatusService; _transporterService = transporterService; _transporterChequeService = transporterChequeService; _userProfileService = userProfileService; }
public ThemeService(ICookie cookie, ILogger <ThemeService> logger, IHttpContextAccessor httpContextAccessor, IWebHostEnvironment hostingEnvironment, IApplicationContext applicationContext, IApplicationSettingService applicationSettingService, ICacheManager <ConcurrentDictionary <string, object> > cacheManager, ICacheManager <IEnumerable <ThemeEntity> > cacheMgr, CMSDbContext dbContext) : base(applicationContext, dbContext) { _cookie = cookie; _httpContextAccessor = httpContextAccessor; _hostingEnvironment = hostingEnvironment; _applicationSettingService = applicationSettingService; _cache = cacheManager.GetOrAdd(CurrentThemeCacheKey, key => new ConcurrentDictionary <string, object>()); _versionMap = cacheManager.GetOrAdd(CurrentThemeVersionMapCacheKey, key => new ConcurrentDictionary <string, object>()); _cacheMgr = cacheMgr; _logger = logger; }
internal IFacadeUpdateResult <ApplicationSettingData> DeleteApplicationSetting(object instanceId) { ArgumentValidator.IsNotNull("instanceId", instanceId); FacadeUpdateResult <ApplicationSettingData> result = new FacadeUpdateResult <ApplicationSettingData>(); IApplicationSettingService service = UnitOfWork.GetService <IApplicationSettingService>(); var query = service.Retrieve(instanceId); if (query.HasResult) { ApplicationSetting instance = query.ToBo <ApplicationSetting>(); var saveQuery = instance.Delete(); result.Merge(saveQuery); } else { AddError(result.ValidationResult, "ApplicationSettingCannotBeFound"); } return(result); }
internal IFacadeUpdateResult <ApplicationSettingData> SaveApplicationSetting(ApplicationSettingDto dto) { ArgumentValidator.IsNotNull("dto", dto); FacadeUpdateResult <ApplicationSettingData> result = new FacadeUpdateResult <ApplicationSettingData>(); IApplicationSettingService service = UnitOfWork.GetService <IApplicationSettingService>(); ApplicationSetting instance = RetrieveOrNew <ApplicationSettingData, ApplicationSetting, IApplicationSettingService>(result.ValidationResult, dto.Id); if (result.IsSuccessful) { instance.SettingKey = dto.SettingKey; instance.SettingValue = dto.SettingValue; var saveQuery = service.Save(instance); result.AttachResult(instance.RetrieveData <ApplicationSettingData>()); result.Merge(saveQuery); } return(result); }
public RegionalPSNPPlanController(IRegionalPSNPPlanService regionalPSNPPlanServiceParam , IRationService rationServiceParam , IAdminUnitService adminUnitServiceParam , IBusinessProcessService BusinessProcessServiceParam , IBusinessProcessStateService BusinessProcessStateServiceParam , IApplicationSettingService ApplicationSettingParam , ILog log , IPlanService planService , IUserAccountService userAccountService, ITransactionService transactionService, IUserProfileService userProfileService) { this._regionalPSNPPlanService = regionalPSNPPlanServiceParam; this._rationService = rationServiceParam; this._adminUnitService = adminUnitServiceParam; this._BusinessProcessService = BusinessProcessServiceParam; this._BusinessProcessStateService = BusinessProcessStateServiceParam; this._ApplicationSettingService = ApplicationSettingParam; this._log = log; this._planService = planService; this._userAccountService = userAccountService; _transactionService = transactionService; this._userProfileService = userProfileService; }
public RegionalPSNPPlanController(IRegionalPSNPPlanService regionalPSNPPlanServiceParam , IRationService rationServiceParam , IAdminUnitService adminUnitServiceParam , IBusinessProcessService BusinessProcessServiceParam , IBusinessProcessStateService BusinessProcessStateServiceParam , IApplicationSettingService ApplicationSettingParam , ILog log , IPlanService planService ,IUserAccountService userAccountService, ITransactionService transactionService, IUserProfileService userProfileService) { this._regionalPSNPPlanService = regionalPSNPPlanServiceParam; this._rationService = rationServiceParam; this._adminUnitService = adminUnitServiceParam; this._BusinessProcessService = BusinessProcessServiceParam; this._BusinessProcessStateService = BusinessProcessStateServiceParam; this._ApplicationSettingService = ApplicationSettingParam; this._log = log; this._planService = planService; this._userAccountService = userAccountService; _transactionService = transactionService; this._userProfileService = userProfileService; }
public BidController(IBidService bidService, IBidDetailService bidDetailService, IAdminUnitService adminUnitService, IStatusService statusService, ITransportBidPlanService transportBidPlanService, ITransportBidPlanDetailService transportBidPlanDetailService, IApplicationSettingService applicationSettingService,IUserAccountService userAccountService, ITransportBidQuotationService transportBidQuotationService, IBidWinnerService bidWinnerService, ITransporterService transporterService, IHubService hubService,IWorkflowStatusService workflowStatusService) { _bidService = bidService; _bidDetailService = bidDetailService; _adminUnitService = adminUnitService; _statusService = statusService; _transportBidPlanService = transportBidPlanService; _transportBidPlanDetailService = transportBidPlanDetailService; _applicationSettingService = applicationSettingService; _userAccountService = userAccountService; _transportBidQuotationService = transportBidQuotationService; _bidWinnerService = bidWinnerService; _transporterService = transporterService; _hubService = hubService; _workflowStatusService = workflowStatusService; }
public BidController(IBidService bidService, IBidDetailService bidDetailService, IAdminUnitService adminUnitService, IStatusService statusService, ITransportBidPlanService transportBidPlanService, ITransportBidPlanDetailService transportBidPlanDetailService, IApplicationSettingService applicationSettingService, IUserAccountService userAccountService, ITransportBidQuotationService transportBidQuotationService, IBidWinnerService bidWinnerService, ITransporterService transporterService, IHubService hubService, IWorkflowStatusService workflowStatusService) { _bidService = bidService; _bidDetailService = bidDetailService; _adminUnitService = adminUnitService; _statusService = statusService; _transportBidPlanService = transportBidPlanService; _transportBidPlanDetailService = transportBidPlanDetailService; _applicationSettingService = applicationSettingService; _userAccountService = userAccountService; _transportBidQuotationService = transportBidQuotationService; _bidWinnerService = bidWinnerService; _transporterService = transporterService; _hubService = hubService; _workflowStatusService = workflowStatusService; }