Exemplo n.º 1
0
 public UiModule(IUnityContainer container, IRegionManager regionManager, IDialogService dialogService,
                 ISelectService selectService, IUpdateDetailsService updateDetailsService) : base(container, regionManager)
 {
     _dialogService        = dialogService;
     _selectService        = selectService;
     _updateDetailsService = updateDetailsService;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 依赖注入
 /// </summary>
 public QuestionController(
     IJudgeService judgeService,
     ISelectService selectService)
 {
     _selectService = selectService;
     _judgeService  = judgeService;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 5
0
 public DerLayoutController(IDropdownService dropdownService, IDerService derService, IMeasurementService measurementService, IHighlightService highlightService, ISelectService selectService)
 {
     _dropdownService = dropdownService;
     _derService = derService;
     _measurementService = measurementService;
     _highlightService = highlightService;
     _selectService = selectService;
 }
Exemplo n.º 6
0
 public VesselScheduleController(IVesselScheduleService vesselScheduleService,
     IVesselService vesselService,
     IBuyerService buyerService,
     ISelectService selectService)
 {
     _vesselScheduleService = vesselScheduleService;
     _vesselService = vesselService;
     _buyerService = buyerService;
     _selectService = selectService;
 }
Exemplo n.º 7
0
 public BankAgencyService(
     IBankAgencyRepository bankAgencyRepository,
     ISelectService selectService,
     IMapper mapper
     )
 {
     _bankAgencyRepository = bankAgencyRepository;
     _selectService        = selectService;
     _mapper = mapper;
 }
Exemplo n.º 8
0
 public AccountTypeService(
     IAccountTypeRepository accountTypeRepository,
     IMapper mapper,
     ISelectService selectService
     )
 {
     _accountTypeRepository = accountTypeRepository;
     _mapper        = mapper;
     _selectService = selectService;
 }
 public OperationMethodService(IOperationMethodRepository operationMethodRepository,
                               IOperationMethodLexicalService operationMethodLexicalService,
                               ISelectService selectService,
                               IMapper mapper)
 {
     _operationMethodRepository     = operationMethodRepository;
     _operationMethodLexicalService = operationMethodLexicalService;
     _selectService = selectService;
     _mapper        = mapper;
 }
Exemplo n.º 10
0
 public VesselScheduleController(IVesselScheduleService vesselScheduleService,
                                 IVesselService vesselService,
                                 IBuyerService buyerService,
                                 ISelectService selectService)
 {
     _vesselScheduleService = vesselScheduleService;
     _vesselService         = vesselService;
     _buyerService          = buyerService;
     _selectService         = selectService;
 }
Exemplo n.º 11
0
 public OperationTransverseService(
     IOperationTransverseRepository operationTransverseRepository,
     IMapper mapper,
     ISelectService selectService
     )
 {
     _operationTransverseRepository = operationTransverseRepository;
     _mapper        = mapper;
     _selectService = selectService;
 }
        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;
            });
        }
Exemplo n.º 13
0
 public CustomFieldFactory(
     Func <CustomFieldViewModel> customFieldViewModelFactory,
     ISelectService <LoggType> selectService,
     IBaseService <LoggType> customFieldService,
     IBaseService <LoggTypeGroup> customFieldGroupService)
 {
     _customFieldViewModelFactory = customFieldViewModelFactory;
     _selectService           = selectService;
     _customFieldService      = customFieldService;
     _customFieldGroupService = customFieldGroupService;
 }
Exemplo n.º 14
0
 /// <summary>
 /// 依赖注入
 /// </summary>
 public StuanswerdetailService(
     IRepository <TbStuanswerdetail> answerRepository,
     IRepository <TbExamquestion> examquestionRepository,
     ISelectService selectService,
     IJudgeService judgeService)
 {
     _answerRepository       = answerRepository;
     _examquestionRepository = examquestionRepository;
     _selectService          = selectService;
     _judgeService           = judgeService;
 }
        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);
        }
Exemplo n.º 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(); });
        }
Exemplo n.º 17
0
 public OperationTypeService(
     IOperationTypeRepository operationTypeRepository,
     ISelectService selectService,
     IMapper mapper,
     IOperationTypeFamilyService operationTypeFamilyService
     )
 {
     _operationTypeRepository = operationTypeRepository;
     _selectService           = selectService;
     _mapper = mapper;
     _operationTypeFamilyService = operationTypeFamilyService;
 }
Exemplo n.º 18
0
 public OrderController(IApothecaryRepo apothecaryRepo,
                        IOrderRepo orderRepo,
                        IMedicineRepo medicineRepo,
                        ILogger <OrderController> logger,
                        ISelectService selectService)
 {
     _apothecaryRepo = apothecaryRepo;
     _orderRepo      = orderRepo;
     _medicineRepo   = medicineRepo;
     _logger         = logger;
     _selectService  = selectService;
 }
Exemplo n.º 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();
        }
Exemplo n.º 20
0
 public OperationService(
     IMapper mapper,
     IOperationRepository operationRepository,
     ISelectService selectService,
     IOperationMethodService operationMethodService,
     IOperationTypeService operationTypeService
     )
 {
     _mapper = mapper;
     _operationRepository    = operationRepository;
     _selectService          = selectService;
     _operationMethodService = operationMethodService;
     _operationTypeService   = operationTypeService;
 }
Exemplo n.º 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;
 }
Exemplo n.º 22
0
        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));
        }
Exemplo n.º 23
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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 29
0
 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;
 }
 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;
 }
Exemplo n.º 31
0
 public SelectController(ISelectService selectService)
 {
     _selectService = selectService;
 }
 public PharmacyController(IPharmacyRepository pharmacyRepository, ISelectService selectService)
 {
     _pharmacyRepository = pharmacyRepository;
     _selectService      = selectService;
 }
Exemplo n.º 33
0
 public WaveController(IWaveService waveService, ISelectService selectService)
 {
     _waveService = waveService;
     _selectService = selectService;
 }
Exemplo n.º 34
0
 public WaveController(IWaveService waveService, ISelectService selectService)
 {
     _waveService   = waveService;
     _selectService = selectService;
 }
Exemplo n.º 35
0
 public WeatherController(IWeatherService weatherService, ISelectService selectService)
 {
     _weatherService = weatherService;
     _selectService  = selectService;
 }
Exemplo n.º 36
0
 public WeatherController(IWeatherService weatherService,ISelectService selectService)
 {
     _weatherService = weatherService;
     _selectService = selectService;
 }
Exemplo n.º 37
0
 public TemplateController(IArtifactService artifactService, ITemplateService templateService, ISelectService selectService)
 {
     _artifactService = artifactService;
     _templateService = templateService;
     _selectService   = selectService;
 }
Exemplo n.º 38
0
 public SelectController(ISelectService selectService)
 {
     _selectService = selectService;
 }