public TaxCalculationListVm(bool isRectifying)
        {
            this.isRectifying = isRectifying;
            this.Title = "";
            SaveCommand = new DelegateCommand(Save, CanSave);
            CreateCommand = new DelegateCommand(Create, CanCreate);
            DeleteCommand = new DelegateCommand(Delete, CanDelete);
            EditCommand = new DelegateCommand(Edit, CanEdit);
            this.ModifyCommand = new DelegateCommand(Modify, CanModify);
            this.EditIndicatorsCommand = new DelegateCommand(EditIndicators, CanEditIndicators);
            this.ViewCommand = new DelegateCommand(View, CanView);
            this.FilterCommand = new DelegateCommand(Filter, CanFilter);
            this.ClearFiltersCommand = new DelegateCommand(ClearFilters, CanClearFilters);
            this.ChangeReportNameCommand = new DelegateCommand(ChangeReportName, CanChangeReportName);
            Mediator.Instance.Register(MediatorActionType.RefreshList, RefreshList);
            Mediator.Instance.Register(MediatorActionType.SetRemainingDays, SetRemainingDays);

            taxCalculationRepository = new TaxCalculationsRepository();
            companyRepository = new CompanyRepository();
            LoadInitialData();
            //if no company exists, do not continue loading data
            if (SelectedCompany == null)
            {
                return;
            }
            RefreshList(null);
            RemainingDays = CurrentRemainingDaysMessage;
        }
 public CompanyBusinessLogic(ICompanyRepository repository, IEmployeeRepository empRepository, IProjectRepository projectRepository, IPersonRepository personRepository)
 {
     _repository = repository;
     _empRepository = empRepository;
     _projectRepository = projectRepository;
     _personRepository = personRepository;
 }
 public ContactFolderContactsController(IContactFolderRepository contactfolderRepository, ICompanyRepository companyRepository, IContactRepository contactRepository, IContactFolderContactRepository contactfoldercontactRepository)
 {
     this.contactfolderRepository = contactfolderRepository;
     this.companyRepository = companyRepository;
     this.contactRepository = contactRepository;
     this.contactfoldercontactRepository = contactfoldercontactRepository;
 }
Esempio n. 4
0
 public UserProfileController()
 {
     var userrapo = new UserRepository();
     _userService = new UserService(userrapo);
     _repository = new CompanyRepository();
     _productGroupRepository = new ProductGroupRepository();
 }
 public RequisitionClientInfoesController(IRequisitionRepository requisitionRepository, ICompanyRepository companyRepository, ISalaryRateTypeRepository salaryratetypeRepository, IRequisitionClientInfoRepository requisitionclientinfoRepository)
 {
     this.requisitionRepository = requisitionRepository;
     this.companyRepository = companyRepository;
     this.salaryratetypeRepository = salaryratetypeRepository;
     this.requisitionclientinfoRepository = requisitionclientinfoRepository;
 }
 public CandleStickSignalManagementService(IDataPointRepository datapointsRepository, ICandleStickSignalRepository candleStickSignalRepository, ICompanyRepository companyRepository, ICandlestickPatternRecogniserFactory candlestickPatternFactory)
 {
     this.datapointsRepository = datapointsRepository;
     this.candleStickSignalRepository = candleStickSignalRepository;
     this.companyRepository = companyRepository;
     this.candlestickPatternFactory = candlestickPatternFactory;
 }
 public StateController(ISignboardRepository signboardRepository, IDeviceRepository deviceRepository, ICompanyRepository companyRepository, ILoggingComponent loggingComponent)
 {
     SignboardRepository = signboardRepository;
     DeviceRepository = deviceRepository;
     CompanyRepository = companyRepository;
     LoggingComponent = loggingComponent;
 }
Esempio n. 8
0
 public ReportService(ICompanyRepository CompanyRepository,IEmployeeRepository employeeRespository, IExperienceRepository experienceRepository,ITerminateRepository terminateRepository)
 {
     this.companyRepository = CompanyRepository;
     this.employeeRespository = employeeRespository;
     this.experienceRepository = experienceRepository;
     this.terminateRepository = terminateRepository;
 }
Esempio n. 9
0
 static CompanyService()
 {
     CompanyService.unitOfWork = new UnitOfWork();
     CompanyService.repository = 
         RepositoryFactory.GetRepository<ICompanyRepository, 
         Company>(CompanyService.unitOfWork);
 }
Esempio n. 10
0
 public UnitOfWork(MessageBoardContext context,ITopicRepository topics,ICompanyRepository companies,IImageRepository images)
 {
     _context = context;
     _topics = topics;
     _companies = companies;
     _images = images;
 }
Esempio n. 11
0
 public CompanyEmailsController(ICompanyRepository companyRepository, IContactRepository contactRepository, IUserRepository userRepository, ICompanyEmailRepository companyemailRepository)
 {
     this.companyRepository = companyRepository;
     this.contactRepository = contactRepository;
     this.userRepository = userRepository;
     this.companyemailRepository = companyemailRepository;
 }
Esempio n. 12
0
 public HomeController()
 {
     this._repository = new CompanyRepository();
     _productRepository = new ProductRepository();
     _productCompanyRepo = new ProductCompanyRepository();
     _productGroupRepository = new ProductGroupRepository();
 }
Esempio n. 13
0
 public RegisterNewCompanyCommand(ICompanyFactory factory, Notification notification,
                                  ICompanyRepository companies)
 {
     this.factory = factory;
     this.notification = notification;
     this.companies = companies;
 }
Esempio n. 14
0
 public MProjectController(IMProjectRepository repoMProject, ILogRepository repoLog, ICompanyRepository repoCompany,IContractorRepository repoContractor,IProjectRepository repoProject)
     : base(repoLog)
 {
     RepoMProject = repoMProject;
     RepoCompany = repoCompany;
     RepoContractor = repoContractor;
     RepoProject = repoProject;
 }
Esempio n. 15
0
 public CompanyAddressesController(ICompanyRepository companyRepository, ICompanyAddressCategoryRepository companyaddresscategoryRepository, ICountryRepository countryRepository, IStateRepository stateRepository, ICompanyAddressRepository companyaddressRepository)
 {
     this.companyRepository = companyRepository;
     this.companyaddresscategoryRepository = companyaddresscategoryRepository;
     this.countryRepository = countryRepository;
     this.stateRepository = stateRepository;
     this.companyaddressRepository = companyaddressRepository;
 }
Esempio n. 16
0
 public ProductService(IProductRepository repository)
 {
     _repository = repository;
     _companyRepository = new CompanyRepository();
     _productCompanyRepo = new ProductCompanyRepository();
     _productgroupRepo = new ProductGroupRepository();
     _productScheduleRepo = new ProductScheduleRepository();
 }
Esempio n. 17
0
 public AddNewIncomeCommand(IGetTheCurrentCustomerQuery query, Notification notification, IIncomeRepository all_income,
                            ICompanyRepository companys)
 {
     this.query = query;
     this.notification = notification;
     this.all_income = all_income;
     this.companys = companys;
 }
		public static void Initialize ()
		{
			DependencyService.Register<IUnitOfWork> (UnitOfWork = new MemoryUnitOfWork());
 
			DependencyService.Register<ICompanyRepository> (CompanyRepository = new MemoryCompanyRepository());
			CompanyRepository.SetUnitOfWork (UnitOfWork);
	
		}
Esempio n. 19
0
 public CompanyServices(ICompanyRepository companyRepository, 
     ICompanyTypeRepository companyTypeRepository, 
     IUnitOfWork unitOfWork)
 {
     _companyRepository = companyRepository;
     _companyTypeRepository = companyTypeRepository;
     _unitOfWork = unitOfWork;
 }
        public CompanyDataViewModel()
        {
            this.Title = "Detalii despre companie";
            SaveCommand = new DelegateCommand(Save, CanSave);
            companyRepository = new CompanyRepository();

            LoadData();
        }
Esempio n. 21
0
 public IndexViewModel()
 {
     this._repository = new CompanyRepository();
     this._productRepository = new ProductRepository();
     this._productCompanyRepo = new ProductCompanyRepository();
     this._db = new OrderMgntEntities();
     this.Companylist = new List<Company>();
     this.ProductGrouplist = new List<ProductGroup>();
 }
Esempio n. 22
0
 public UserController()
 {
     var userrapo = new UserRepository();
     _userService = new UserService(userrapo);
     _repository = new CompanyRepository();
     _productGroupRepository = new ProductGroupRepository();
     var productschedrapo = new ProductScheduleRepository();
     _repositoryschedule = new ProductScheduleService(productschedrapo);
 }
Esempio n. 23
0
 public StaffController()
 {
     var userrapo = new UserRepository();
     _userService = new UserService(userrapo);
     _repository = new CompanyRepository();
     _productGroupRepository = new ProductGroupRepository();
     var orderrapo = new OrderRepository();
     _orderService = new OrderService(orderrapo);
 }
        public CreateEditCompanyVm()
        {
            Mediator.Instance.Register(MediatorActionType.SetEntityToEdit, SetEntityToEdit);
            SaveCommand = new DelegateCommand(Save, CanSave);
            this.CancelCommand = new DelegateCommand(Cancel, CanCancel);
            companyRepository = new CompanyRepository();

            LoadData();
        }
Esempio n. 25
0
 public ExperienceService(IInsuranceRepository insuranceRepository, IExperienceRepository experienceRepository, IEmployeeRepository employeeRepository,ICompanyRepository companyRepository,IPositionRepository positionRepository, IUnitOfWork unitOfWork)
 {
     this.experienceRepository = experienceRepository;
     this.employeeRepository = employeeRepository;
     this.companyRepository = companyRepository;
     this.positionRepository = positionRepository;
     this.insuranceRepository = insuranceRepository;
     this.unitOfWork = unitOfWork;
 }
Esempio n. 26
0
 public CompanyController(IIndustryRepository industryRepository, ICountryRepository countryRepository, IStateRepository stateRepository, ICompanyOwnerRepository companyownerRepository, ICompanyStatusCategoryRepository companystatuscategoryRepository, IUserRepository userRepository, ICompanyRepository companyRepository)
 {
     this.industryRepository = industryRepository;
     this.countryRepository = countryRepository;
     this.stateRepository = stateRepository;
     this.companyownerRepository = companyownerRepository;
     this.companystatuscategoryRepository = companystatuscategoryRepository;
     this.userRepository = userRepository;
     this.companyRepository = companyRepository;
 }
Esempio n. 27
0
 public ContactsController(ICompanyRepository companyRepository, ICountryRepository countryRepository, IStateRepository stateRepository, IContactProfessionTypeRepository contactprofessiontypeRepository, IRatingScaleRepository ratingscaleRepository, IUserRepository userRepository, IContactRepository contactRepository)
 {
     this.companyRepository = companyRepository;
     this.countryRepository = countryRepository;
     this.stateRepository = stateRepository;
     this.contactprofessiontypeRepository = contactprofessiontypeRepository;
     this.ratingscaleRepository = ratingscaleRepository;
     this.userRepository = userRepository;
     this.contactRepository = contactRepository;
 }
Esempio n. 28
0
 /// <summary>
 ///In constructor, we can get needed classes/interfaces.
 ///They are sent here by dependency injection system automatically.
 /// </summary>
 public CompanyAppService(ICompanyRepository companyRepository, 
     MultiTenancy.TenantManager tenantRepository,
     Users.UserManager userRepository,
     ICompanyConfigRepository companyConfigRepository)
 {
     _companyRepository = companyRepository;
     _tenantRepository = tenantRepository;
     _userRepository = userRepository;
     _companyConfigRepository = companyConfigRepository;
 }
Esempio n. 29
0
 public void SetUp()
 {
     // this._companyRepository = new CompanyRepository();
     var connectionString = ConfigurationManager.ConnectionStrings["appDatabase"];
     if (connectionString!=null)
     {
        _connectionString= connectionString.ConnectionString;
     }
     this._companyRepository = new CompanyRepository(_connectionString);
 }
Esempio n. 30
0
 public AccountService(IAccountRepository accountRepository, IContactRepository contactRepository, ICompanyRepository companyRepository, 
     INumberGeneratorService generatorService, IInvoiceRepository invoiceRepository, IInvoicingService invoicingService)
 {
     _accountRepository = accountRepository;
     _contactRepository = contactRepository;
     _companyRepository = companyRepository;
     _generator = generatorService;
     _invoiceRepository = invoiceRepository;
     _invoicingService = invoicingService;
 }
Esempio n. 31
0
 public CompanyService(ICompanyRepository companyRepository)
 {
     this.companyRepository = companyRepository;
 }
Esempio n. 32
0
 /*
  *  Startup sınıfındaki ConfigureServices metodunda hatırlanacağı üzer ICompanyRepository için bir kayıt işlemi yapılmıştı.
  *  Oradaki tanıma göre çalışma zamanında buraya bir CompanyRepository nesnesi gelecek.
  */
 public CompanyController(ILogger <CompanyController> logger, ICompanyRepository repository)
 {
     _logger     = logger;
     _repository = repository;
 }
Esempio n. 33
0
 public AuthenticationController(ITokenInfoRepository tokenRepository, IUserRepository userRepository, IUnitOfWork unitOfWork, ICompanyRepository companyRepository, IAuthenticationService authenticationService)
 {
     this.TokenRepository       = tokenRepository;
     this.UserRepository        = userRepository;
     this.UnitOfWork            = unitOfWork;
     this.CompanyRepository     = companyRepository;
     this.AuthenticationService = authenticationService;
 }
 public CompanyService(ICompanyRepository repository, IUnitOfWork unitOfWork, IMapper mapper)
 {
     this.repository = repository;
     this.unitOfWork = unitOfWork;
     this.mapper     = mapper;
 }
Esempio n. 35
0
 public CompanyAppService(IRepositoryBase <RCModel.Company> _companyRepo, ICompanyRepository <RCModel.Company> _companyRepo2)
 {
     this.companyRepoExtended = _companyRepo2;
     this.companyRepoBase     = _companyRepo;
 }
Esempio n. 36
0
 public AnimalController(ICompanyRepository companyRepository, IAnimalRepository animalRepository)
 {
     this.companyRepository = companyRepository;
     this.animalRepository  = animalRepository;
 }
Esempio n. 37
0
 public UserCommandService(ICompanyRepository companyRepository, UserManager <Core.Model.User> userManager)
 {
     _companyRepository = companyRepository;
     _userManager       = userManager;
 }
 public CompanyCollectionsController(ICompanyRepository companyRepository, IMapper mapper)
 {
     this._companyRepository = companyRepository ?? throw new ArgumentNullException(nameof(companyRepository));
     this._mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Esempio n. 39
0
 public CompanyService(ICompanyRepository companyRepository, IMapper mapper)
 {
     _companyRepository = companyRepository;
     _mapper            = mapper;
 }
Esempio n. 40
0
 public CrudCompanyService(ICompanyRepository baseRepository) : base(baseRepository)
 {
 }
Esempio n. 41
0
 public CompanyController(ICompanyRepository repository)
 {
     _repository = repository;
 }
Esempio n. 42
0
 public HomeController(ICompanyRepository companyRepository)
 {
     _companyRepository = companyRepository;
 }
Esempio n. 43
0
 public ValuesController(IBankierService bankierService, IRecommendationRepository recommendationRepository, ICompanyRepository companyRepository)
 {
     this._bankierService           = bankierService;
     this._recommendationRepository = recommendationRepository;
     this._companyRepository        = companyRepository;
 }
 public ContactController(ICompanyRepository _contactRepository, IFeedbackRepository _feedbackRepository)
 {
     this.companyRepository  = _contactRepository;
     this.feedbackRepository = _feedbackRepository;
 }
Esempio n. 45
0
 public CompaniesController(ICompanyRepository companyRepository)
 {
     _companyRepository = companyRepository ?? throw new ArgumentNullException(nameof(companyRepository));
 }
Esempio n. 46
0
 public CompanyController(ICompanyRepository genericRepository, DatabaseContext context) : base(genericRepository, context)
 {
     _genericRepository = genericRepository;
     _context           = context;
     _entity            = _context.Set <CompanyEntity>();
 }
Esempio n. 47
0
 public SliceAssetService(ISliceAssetRepository sliceRepository, IStakeHolderRepository shRepository, ITypeAssetRepo typeRepository, ICompanyRepository cpRepository)
 {
     _sliceRepository = sliceRepository;
     _shRepository    = shRepository;
     _typeRepository  = typeRepository;
     _cpRepository    = cpRepository;
 }
Esempio n. 48
0
 public CompaniesController(IMapper mapper, ICompanyRepository repository, IUnitOfWork unitOfWork)
 {
     this.mapper     = mapper;
     this.repository = repository;
     this.unitOfWork = unitOfWork;
 }
Esempio n. 49
0
 public StoreController(IStoreRepository sr, ICompanyRepository cr)
 {
     storeRepository   = sr;
     companyRepository = cr;
 }
 public CompanyController(ICompanyRepository repo)
 {
     _repo = repo;
 }
Esempio n. 51
0
 public CompaniesController(ICompanyRepository companyRepository)
 {
     this.companyRepository = companyRepository;
 }
Esempio n. 52
0
 public ContactController(IContactRepository contactRepository, ICompanyRepository companyRepository)
 {
     _contactRepository = contactRepository;
     _companyRepository = companyRepository;
 }
 public MyController()
 {
     companyRepository = new CompanyRepository();
     personRepository  = new PersonRepository();
 }
Esempio n. 54
0
 public EmployeesController(ICompanyRepository compRepo, IEmployeeRepository empRepo, IBonusRepository bonRepo)
 {
     _compRepo = compRepo;
     _empRepo  = empRepo;
     _bonRepo  = bonRepo;
 }
 public MyController(ICompanyRepository CompanyRepository, IPersonRepository PersonRepository)
 {
     companyRepository = CompanyRepository;
     personRepository  = PersonRepository;
 }
Esempio n. 56
0
 public HomeController(ICompanyRepository companies)
 {
     _companies = companies;
 }
 public EmployeesController(ICompanyRepository companyRepository, IMapper mapper)
 {
     _companyRepository = companyRepository ?? throw new ArgumentNullException(nameof(companyRepository));
     _mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Esempio n. 58
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="repository"></param>
 /// <param name="mapper"></param>
 public CompanyService(ICompanyRepository repository, IMapper mapper) : base(repository, mapper)
 {
     this._repository = repository;
     this._mapper     = mapper;
 }
 public ProductService(IProductRepository productRepository, ICompanyRepository companyRepository)
 {
     this.productRepository = productRepository;
     this.companyRepository = companyRepository;
 }
Esempio n. 60
0
 public AdminRuleRepository(IUnitOfWork unitOfWork, LogHandler.Logger logger, ICompanyRepository companyRepository) : base(unitOfWork, logger)
 {
     _logger            = logger;
     _uow               = unitOfWork;
     _companyRepository = companyRepository;
 }