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;
 }
 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;
 }
Exemple #8
0
 public ReportService(ICompanyRepository CompanyRepository,IEmployeeRepository employeeRespository, IExperienceRepository experienceRepository,ITerminateRepository terminateRepository)
 {
     this.companyRepository = CompanyRepository;
     this.employeeRespository = employeeRespository;
     this.experienceRepository = experienceRepository;
     this.terminateRepository = terminateRepository;
 }
Exemple #9
0
 static CompanyService()
 {
     CompanyService.unitOfWork = new UnitOfWork();
     CompanyService.repository = 
         RepositoryFactory.GetRepository<ICompanyRepository, 
         Company>(CompanyService.unitOfWork);
 }
Exemple #10
0
 public UnitOfWork(MessageBoardContext context,ITopicRepository topics,ICompanyRepository companies,IImageRepository images)
 {
     _context = context;
     _topics = topics;
     _companies = companies;
     _images = images;
 }
 public CompanyEmailsController(ICompanyRepository companyRepository, IContactRepository contactRepository, IUserRepository userRepository, ICompanyEmailRepository companyemailRepository)
 {
     this.companyRepository = companyRepository;
     this.contactRepository = contactRepository;
     this.userRepository = userRepository;
     this.companyemailRepository = companyemailRepository;
 }
Exemple #12
0
 public HomeController()
 {
     this._repository = new CompanyRepository();
     _productRepository = new ProductRepository();
     _productCompanyRepo = new ProductCompanyRepository();
     _productGroupRepository = new ProductGroupRepository();
 }
 public RegisterNewCompanyCommand(ICompanyFactory factory, Notification notification,
                                  ICompanyRepository companies)
 {
     this.factory = factory;
     this.notification = notification;
     this.companies = companies;
 }
Exemple #14
0
 public MProjectController(IMProjectRepository repoMProject, ILogRepository repoLog, ICompanyRepository repoCompany,IContractorRepository repoContractor,IProjectRepository repoProject)
     : base(repoLog)
 {
     RepoMProject = repoMProject;
     RepoCompany = repoCompany;
     RepoContractor = repoContractor;
     RepoProject = repoProject;
 }
 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;
 }
Exemple #16
0
 public ProductService(IProductRepository repository)
 {
     _repository = repository;
     _companyRepository = new CompanyRepository();
     _productCompanyRepo = new ProductCompanyRepository();
     _productgroupRepo = new ProductGroupRepository();
     _productScheduleRepo = new ProductScheduleRepository();
 }
 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);
	
		}
Exemple #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();
        }
Exemple #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>();
 }
Exemple #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);
 }
Exemple #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();
        }
Exemple #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;
 }
Exemple #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;
 }
Exemple #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;
 }
 /// <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;
 }
 public void SetUp()
 {
     // this._companyRepository = new CompanyRepository();
     var connectionString = ConfigurationManager.ConnectionStrings["appDatabase"];
     if (connectionString!=null)
     {
        _connectionString= connectionString.ConnectionString;
     }
     this._companyRepository = new CompanyRepository(_connectionString);
 }
Exemple #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;
 }
Exemple #31
0
 public CompanyService(ICompanyRepository companyRepository)
 {
     this.companyRepository = companyRepository;
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #35
0
 public CompanyAppService(IRepositoryBase <RCModel.Company> _companyRepo, ICompanyRepository <RCModel.Company> _companyRepo2)
 {
     this.companyRepoExtended = _companyRepo2;
     this.companyRepoBase     = _companyRepo;
 }
Exemple #36
0
 public AnimalController(ICompanyRepository companyRepository, IAnimalRepository animalRepository)
 {
     this.companyRepository = companyRepository;
     this.animalRepository  = animalRepository;
 }
Exemple #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));
 }
Exemple #39
0
 public CompanyService(ICompanyRepository companyRepository, IMapper mapper)
 {
     _companyRepository = companyRepository;
     _mapper            = mapper;
 }
Exemple #40
0
 public CrudCompanyService(ICompanyRepository baseRepository) : base(baseRepository)
 {
 }
Exemple #41
0
 public CompanyController(ICompanyRepository repository)
 {
     _repository = repository;
 }
Exemple #42
0
 public HomeController(ICompanyRepository companyRepository)
 {
     _companyRepository = companyRepository;
 }
Exemple #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;
 }
 public CompaniesController(ICompanyRepository companyRepository)
 {
     _companyRepository = companyRepository ?? throw new ArgumentNullException(nameof(companyRepository));
 }
Exemple #46
0
 public CompanyController(ICompanyRepository genericRepository, DatabaseContext context) : base(genericRepository, context)
 {
     _genericRepository = genericRepository;
     _context           = context;
     _entity            = _context.Set <CompanyEntity>();
 }
Exemple #47
0
 public SliceAssetService(ISliceAssetRepository sliceRepository, IStakeHolderRepository shRepository, ITypeAssetRepo typeRepository, ICompanyRepository cpRepository)
 {
     _sliceRepository = sliceRepository;
     _shRepository    = shRepository;
     _typeRepository  = typeRepository;
     _cpRepository    = cpRepository;
 }
Exemple #48
0
 public CompaniesController(IMapper mapper, ICompanyRepository repository, IUnitOfWork unitOfWork)
 {
     this.mapper     = mapper;
     this.repository = repository;
     this.unitOfWork = unitOfWork;
 }
Exemple #49
0
 public StoreController(IStoreRepository sr, ICompanyRepository cr)
 {
     storeRepository   = sr;
     companyRepository = cr;
 }
 public CompanyController(ICompanyRepository repo)
 {
     _repo = repo;
 }
Exemple #51
0
 public CompaniesController(ICompanyRepository companyRepository)
 {
     this.companyRepository = companyRepository;
 }
Exemple #52
0
 public ContactController(IContactRepository contactRepository, ICompanyRepository companyRepository)
 {
     _contactRepository = contactRepository;
     _companyRepository = companyRepository;
 }
 public MyController()
 {
     companyRepository = new CompanyRepository();
     personRepository  = new PersonRepository();
 }
Exemple #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;
 }
Exemple #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));
 }
Exemple #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;
 }
Exemple #60
0
 public AdminRuleRepository(IUnitOfWork unitOfWork, LogHandler.Logger logger, ICompanyRepository companyRepository) : base(unitOfWork, logger)
 {
     _logger            = logger;
     _uow               = unitOfWork;
     _companyRepository = companyRepository;
 }