コード例 #1
0
 public UiModule(IUnityContainer container, IRegionManager regionManager, IDialogService dialogService,
                 ISelectService selectService, IUpdateDetailsService updateDetailsService) : base(container, regionManager)
 {
     _dialogService        = dialogService;
     _selectService        = selectService;
     _updateDetailsService = updateDetailsService;
 }
コード例 #2
0
 /// <summary>
 /// 依赖注入
 /// </summary>
 public QuestionController(
     IJudgeService judgeService,
     ISelectService selectService)
 {
     _selectService = selectService;
     _judgeService  = judgeService;
 }
コード例 #3
0
 public DerLayoutController(IDropdownService dropdownService, IDerService derService, IMeasurementService measurementService, IHighlightService highlightService, ISelectService selectService, IUserService userService)
 {
     _dropdownService    = dropdownService;
     _derService         = derService;
     _measurementService = measurementService;
     _selectService      = selectService;
     _userService        = userService;
 }
コード例 #4
0
 public PrescriptionController(IPrescriptionRepo prescriptionRepo, ILogger <PrescriptionController> logger, ISelectService selectService, IDrugStoreStockRepo drugStoreStockRepo, IEmailSenderService emailSenderService)
 {
     _prescriptionRepo   = prescriptionRepo;
     _logger             = logger;
     _selectService      = selectService;
     _drugStoreStockRepo = drugStoreStockRepo;
     _emailSenderService = emailSenderService;
 }
コード例 #5
0
ファイル: DerLayoutController.cs プロジェクト: cobianwae/Pear
 public DerLayoutController(IDropdownService dropdownService, IDerService derService, IMeasurementService measurementService, IHighlightService highlightService, ISelectService selectService)
 {
     _dropdownService = dropdownService;
     _derService = derService;
     _measurementService = measurementService;
     _highlightService = highlightService;
     _selectService = selectService;
 }
コード例 #6
0
 public VesselScheduleController(IVesselScheduleService vesselScheduleService,
     IVesselService vesselService,
     IBuyerService buyerService,
     ISelectService selectService)
 {
     _vesselScheduleService = vesselScheduleService;
     _vesselService = vesselService;
     _buyerService = buyerService;
     _selectService = selectService;
 }
コード例 #7
0
 public BankAgencyService(
     IBankAgencyRepository bankAgencyRepository,
     ISelectService selectService,
     IMapper mapper
     )
 {
     _bankAgencyRepository = bankAgencyRepository;
     _selectService        = selectService;
     _mapper = mapper;
 }
コード例 #8
0
 public AccountTypeService(
     IAccountTypeRepository accountTypeRepository,
     IMapper mapper,
     ISelectService selectService
     )
 {
     _accountTypeRepository = accountTypeRepository;
     _mapper        = mapper;
     _selectService = selectService;
 }
コード例 #9
0
 public OperationMethodService(IOperationMethodRepository operationMethodRepository,
                               IOperationMethodLexicalService operationMethodLexicalService,
                               ISelectService selectService,
                               IMapper mapper)
 {
     _operationMethodRepository     = operationMethodRepository;
     _operationMethodLexicalService = operationMethodLexicalService;
     _selectService = selectService;
     _mapper        = mapper;
 }
コード例 #10
0
 public VesselScheduleController(IVesselScheduleService vesselScheduleService,
                                 IVesselService vesselService,
                                 IBuyerService buyerService,
                                 ISelectService selectService)
 {
     _vesselScheduleService = vesselScheduleService;
     _vesselService         = vesselService;
     _buyerService          = buyerService;
     _selectService         = selectService;
 }
コード例 #11
0
 public OperationTransverseService(
     IOperationTransverseRepository operationTransverseRepository,
     IMapper mapper,
     ISelectService selectService
     )
 {
     _operationTransverseRepository = operationTransverseRepository;
     _mapper        = mapper;
     _selectService = selectService;
 }
コード例 #12
0
        public PaymentConditionViewModel(PaymentConditionSet paymentConditionSet, IUnityContainer container)
        {
            _unitOfWork             = container.Resolve <IUnitOfWork>();
            PaymentConditionWrapper = new PaymentConditionWrapper2(paymentConditionSet)
            {
                Part = 1.0 - paymentConditionSet.PaymentConditions.Sum(condition => condition.Part),
                PaymentConditionPoint = new PaymentConditionPointWrapper(_unitOfWork.Repository <PaymentConditionPoint>().GetAll().First())
            };

            OkCommand = new DelegateLogCommand(
                () =>
            {
                PaymentCondition paymentCondition = this.PaymentConditionWrapper.Model;

                //если условие новое
                if (_unitOfWork.Repository <PaymentCondition>()
                    .Find(condition => Equals(condition, paymentCondition))
                    .Any() == false)
                {
                    if (_unitOfWork.SaveEntity(paymentCondition).OperationCompletedSuccessfully)
                    {
                        this.PaymentConditionWrapper.AcceptChanges();
                        container.Resolve <IEventAggregator>().GetEvent <AfterSavePaymentConditionEvent>().Publish(paymentCondition);
                    }
                    else
                    {
                        return;
                    }
                }

                IsOk = true;
                CloseRequested?.Invoke(this, new DialogRequestCloseEventArgs(true));
            },
                () => PaymentConditionWrapper.IsValid && PaymentConditionWrapper.IsChanged);

            PaymentConditionWrapper.PropertyChanged += (sender, args) => OkCommand.RaiseCanExecuteChanged();

            SelectPaymentConditionPointCommand = new DelegateLogCommand(
                () =>
            {
                ISelectService selectService = container.Resolve <ISelectService>();
                PaymentConditionPoint point  = selectService.SelectItem(_unitOfWork.Repository <PaymentConditionPoint>().GetAll());
                if (point != null)
                {
                    this.PaymentConditionWrapper.PaymentConditionPoint = new PaymentConditionPointWrapper(point);
                }
            });

            ClearPaymentConditionPointCommand = new DelegateLogCommand(
                () =>
            {
                this.PaymentConditionWrapper.PaymentConditionPoint = null;
            });
        }
コード例 #13
0
 public CustomFieldFactory(
     Func <CustomFieldViewModel> customFieldViewModelFactory,
     ISelectService <LoggType> selectService,
     IBaseService <LoggType> customFieldService,
     IBaseService <LoggTypeGroup> customFieldGroupService)
 {
     _customFieldViewModelFactory = customFieldViewModelFactory;
     _selectService           = selectService;
     _customFieldService      = customFieldService;
     _customFieldGroupService = customFieldGroupService;
 }
コード例 #14
0
 /// <summary>
 /// 依赖注入
 /// </summary>
 public StuanswerdetailService(
     IRepository <TbStuanswerdetail> answerRepository,
     IRepository <TbExamquestion> examquestionRepository,
     ISelectService selectService,
     IJudgeService judgeService)
 {
     _answerRepository       = answerRepository;
     _examquestionRepository = examquestionRepository;
     _selectService          = selectService;
     _judgeService           = judgeService;
 }
コード例 #15
0
        public CompanyDetailsViewModel(IUnityContainer container, ISelectService selectService) : base(container)
        {
            _selectService = selectService;

            Forms = new ObservableCollection <CompanyFormWrapper>(UnitOfWork.CompanyForms.GetAll().Select(x => new CompanyFormWrapper(x)));

            SelectParentCompanyCommand = new DelegateCommand(SelectParentCompanyCommand_Execute);
            RemoveParentCompanyCommand = new DelegateCommand(RemoveParentCompanyCommand_Execute);
            AddActivityFieldCommand    = new DelegateCommand(AddActivityFieldCommand_Execute);
            RemoveActivityFieldCommand = new DelegateCommand(RemoveActivityFieldCommand_Execute, RemoveActivityFieldCommand_CanExecute);
        }
コード例 #16
0
        public CustomFieldViewModel(IBaseService <LoggType> customFieldService, INavigator navigator, ISelectService <LoggType> selectService, IHuntFactory huntFactory)
        {
            _customFieldService = customFieldService;
            _navigator          = navigator;
            _selectService      = selectService;
            _huntFactory        = huntFactory;

            //SaveCommand = new Command(async () => await Save());
            //DeleteCommand = new Command(async () => await Delete());
            ItemTappedCommand = new Command(async() => await Tapped());
            CancelCommand     = new Command(async() => { await PopAsync(); });
        }
コード例 #17
0
 public OperationTypeService(
     IOperationTypeRepository operationTypeRepository,
     ISelectService selectService,
     IMapper mapper,
     IOperationTypeFamilyService operationTypeFamilyService
     )
 {
     _operationTypeRepository = operationTypeRepository;
     _selectService           = selectService;
     _mapper = mapper;
     _operationTypeFamilyService = operationTypeFamilyService;
 }
コード例 #18
0
ファイル: OrderController.cs プロジェクト: BartMiki/iDrugs
 public OrderController(IApothecaryRepo apothecaryRepo,
                        IOrderRepo orderRepo,
                        IMedicineRepo medicineRepo,
                        ILogger <OrderController> logger,
                        ISelectService selectService)
 {
     _apothecaryRepo = apothecaryRepo;
     _orderRepo      = orderRepo;
     _medicineRepo   = medicineRepo;
     _logger         = logger;
     _selectService  = selectService;
 }
コード例 #19
0
        public SpecieViewModel(IBaseService <Art> specieService, INavigator navigator, ISelectService <Art> selectService, IHuntFactory huntFactory)
        {
            _specieService = specieService;
            _navigator     = navigator;
            _selectService = selectService;
            _huntFactory   = huntFactory;

            //SaveCommand = new Command(async () => await Save());
            //DeleteCommand = new Command(async () => await Delete());
            ItemTappedCommand = new Command(async() => await Tapped());
            CancelCommand     = new Command(async() => { await PopAsync(); });

            CreateImageActions();
        }
コード例 #20
0
 public OperationService(
     IMapper mapper,
     IOperationRepository operationRepository,
     ISelectService selectService,
     IOperationMethodService operationMethodService,
     IOperationTypeService operationTypeService
     )
 {
     _mapper = mapper;
     _operationRepository    = operationRepository;
     _selectService          = selectService;
     _operationMethodService = operationMethodService;
     _operationTypeService   = operationTypeService;
 }
コード例 #21
0
 /// <summary>
 /// 依赖注入
 /// </summary>
 public ExamController(
     IExamService examService,
     IQuestionService questionService,
     IStuanswerdetailService stuanswerdetailService,
     ISelectService selectService,
     IJudgeService judgeService,
     IStuscoreService stuscoreService)
 {
     _examService            = examService;
     _questionService        = questionService;
     _stuanswerdetailService = stuanswerdetailService;
     _selectService          = selectService;
     _judgeService           = judgeService;
     _stuscoreService        = stuscoreService;
 }
コード例 #22
0
ファイル: SpeciesView.xaml.cs プロジェクト: darkwood/HuntLog
        public SpeciesViewModel(IBaseService <Art> specieService,
                                IBaseService <ArtGroup> specieGroupService,
                                ISelectService <Art> selectService,
                                INavigator navigator,
                                Func <SpecieViewModel> specieViewModelFactory,
                                IHuntFactory huntFactory)
        {
            _specieService          = specieService;
            _specieGroupService     = specieGroupService;
            _selectService          = selectService;
            _navigator              = navigator;
            _specieViewModelFactory = specieViewModelFactory;
            _huntFactory            = huntFactory;

            AddCommand = new Command(async() => await AddItem());
            //DeleteItemCommand = new Command(async (item) => await DeleteItem(item));
        }
コード例 #23
0
ファイル: HighlightController.cs プロジェクト: fazar/Pear
 public HighlightController(IHighlightService highlightService,
     ISelectService selectService,
     INLSService nlsService,
     IVesselScheduleService vesselScheduleService,
     IWeatherService weatherService,
     IHighlightOrderService highlightOrderService,
     IHighlightGroupService highlightGroupService
     )
 {
     _highlightService = highlightService;
     _selectService = selectService;
     _nlsService = nlsService;
     _vesselScheduleService = vesselScheduleService;
     _waetherService = weatherService;
     _highlightOrderService = highlightOrderService;
     _highlightGroupService = highlightGroupService;
 }
コード例 #24
0
 public HighlightController(IHighlightService highlightService,
     ISelectService selectService,
     INLSService nlsService,
     IVesselScheduleService vesselScheduleService,
     IWeatherService weatherService,
     IHighlightOrderService highlightOrderService,
     IHighlightGroupService highlightGroupService
     )
 {
     _highlightService = highlightService;
     _selectService = selectService;
     _nlsService = nlsService;
     _vesselScheduleService = vesselScheduleService;
     _waetherService = weatherService;
     _highlightOrderService = highlightOrderService;
     _highlightGroupService = highlightGroupService;
 }
コード例 #25
0
 public DerLoadingScheduleController(IVesselScheduleService vesselScheduleService, 
     IVesselService vesselService, 
     IBuyerService buyerService, 
     ISelectService selectService, 
     IMeasurementService measurementService,
     INLSService nlsService,
     IHighlightOrderService highlightOrderService,
     IDerLoadingScheduleService derLoadingScheduleService)
 {
     _vesselScheduleService = vesselScheduleService;
     _vesselService = vesselService;
     _buyerService = buyerService;
     _selectService = selectService;
     _measurementService = measurementService;
     _nlsService = nlsService;
     _highlightOrderService = highlightOrderService;
     _derLoadingScheduleService = derLoadingScheduleService;
 }
コード例 #26
0
 public DerLoadingScheduleController(IVesselScheduleService vesselScheduleService,
                                     IVesselService vesselService,
                                     IBuyerService buyerService,
                                     ISelectService selectService,
                                     IMeasurementService measurementService,
                                     INLSService nlsService,
                                     IHighlightOrderService highlightOrderService,
                                     IDerLoadingScheduleService derLoadingScheduleService)
 {
     _vesselScheduleService     = vesselScheduleService;
     _vesselService             = vesselService;
     _buyerService              = buyerService;
     _selectService             = selectService;
     _measurementService        = measurementService;
     _nlsService                = nlsService;
     _highlightOrderService     = highlightOrderService;
     _derLoadingScheduleService = derLoadingScheduleService;
 }
コード例 #27
0
 public OperationTypeFamilyService(
     IOperationTypeFamilyRepository operationTypeFamilyRepository,
     ISelectService selectService,
     IMovementService movementService,
     IMapper mapper,
     IHostingEnvironment hostingEnvironment,
     IContextTransaction contextTransaction,
     IMailService mailService
     //IOperationTypeService operationTypeService
     )
 {
     _operationTypeFamilyRepository = operationTypeFamilyRepository;
     _selectService      = selectService;
     _mapper             = mapper;
     _movementService    = movementService;
     _hostingEnvironment = hostingEnvironment;
     _contextTransaction = contextTransaction;
     _mailService        = mailService;
     //_operationTypeService = operationTypeService;
 }
コード例 #28
0
 public DerTransactionController(IDerService derService, 
     IDerTransactionService derTransactionService, 
     IKpiAchievementService kpiAchievementService, 
     IKpiTargetService kpiTargetService, 
     IHighlightService highlightService, 
     ISelectService selectService, 
     IWaveService waveService, 
     IWeatherService weatherService,
     IDerLoadingScheduleService derLoadingScheduleService,
     IKpiTransformationService kpiTransformationService)
 {
     _derService = derService;
     _derTransactionService = derTransactionService;
     _kpiAchievementService = kpiAchievementService;
     _kpiTargetService = kpiTargetService;
     _highlightService = highlightService;
     _selectService = selectService;
     _waveService = waveService;
     _weatherService = weatherService;
     _derLoadingScheduleService = derLoadingScheduleService;
     _kpiTransformationService = kpiTransformationService;
 }
コード例 #29
0
ファイル: HuntFactory.cs プロジェクト: darkwood/HuntLog
 public HuntFactory(IBaseService <Jeger> hunterService,
                    INavigator navigator,
                    IBaseService <Jakt> huntService,
                    IBaseService <Logg> logService,
                    IBaseService <Dog> dogService,
                    IBaseService <Art> specieService,
                    IDialogService dialogService,
                    IFileManager fileManager,
                    Func <SpecieViewModel> specieViewModelFactory,
                    ISelectService <Art> selectService)
 {
     _hunterService          = hunterService;
     _navigator              = navigator;
     _huntService            = huntService;
     _logService             = logService;
     _dogService             = dogService;
     _specieService          = specieService;
     _dialogService          = dialogService;
     _fileManager            = fileManager;
     _specieViewModelFactory = specieViewModelFactory;
     _selectService          = selectService;
 }
コード例 #30
0
 public DerTransactionController(IDerService derService,
                                 IDerTransactionService derTransactionService,
                                 IKpiAchievementService kpiAchievementService,
                                 IKpiTargetService kpiTargetService,
                                 IHighlightService highlightService,
                                 ISelectService selectService,
                                 IWaveService waveService,
                                 IWeatherService weatherService,
                                 IDerLoadingScheduleService derLoadingScheduleService,
                                 IKpiTransformationService kpiTransformationService)
 {
     _derService                = derService;
     _derTransactionService     = derTransactionService;
     _kpiAchievementService     = kpiAchievementService;
     _kpiTargetService          = kpiTargetService;
     _highlightService          = highlightService;
     _selectService             = selectService;
     _waveService               = waveService;
     _weatherService            = weatherService;
     _derLoadingScheduleService = derLoadingScheduleService;
     _kpiTransformationService  = kpiTransformationService;
 }
コード例 #31
0
 public SelectController(ISelectService selectService)
 {
     _selectService = selectService;
 }
コード例 #32
0
 public PharmacyController(IPharmacyRepository pharmacyRepository, ISelectService selectService)
 {
     _pharmacyRepository = pharmacyRepository;
     _selectService      = selectService;
 }
コード例 #33
0
ファイル: WaveController.cs プロジェクト: fazar/Pear
 public WaveController(IWaveService waveService, ISelectService selectService)
 {
     _waveService = waveService;
     _selectService = selectService;
 }
コード例 #34
0
 public WaveController(IWaveService waveService, ISelectService selectService)
 {
     _waveService   = waveService;
     _selectService = selectService;
 }
コード例 #35
0
 public WeatherController(IWeatherService weatherService, ISelectService selectService)
 {
     _weatherService = weatherService;
     _selectService  = selectService;
 }
コード例 #36
0
ファイル: WeatherController.cs プロジェクト: fazar/Pear
 public WeatherController(IWeatherService weatherService,ISelectService selectService)
 {
     _weatherService = weatherService;
     _selectService = selectService;
 }
コード例 #37
0
 public TemplateController(IArtifactService artifactService, ITemplateService templateService, ISelectService selectService)
 {
     _artifactService = artifactService;
     _templateService = templateService;
     _selectService   = selectService;
 }
コード例 #38
0
ファイル: SelectController.cs プロジェクト: fazar/Pear
 public SelectController(ISelectService selectService)
 {
     _selectService = selectService;
 }