コード例 #1
0
 public LoginController(
     ICashierRepository cashierRepository,
     JwtHelper jwtHelper)
 {
     _cashierRepository = cashierRepository;
     _jwtHelper         = jwtHelper;
 }
コード例 #2
0
        public CashierVM(ICashierRepository repository,
                         IMainNavigationService navigationService)
        {
            this.DataGridVisibility = true;
            this.ButtonVisible      = false;

            _repository        = repository;
            _navigationService = navigationService;

            this.Cashier = new CashierModel();

            Task.Factory.StartNew(() =>
            {
                lock (locker)
                {
                    this.Cashiers = new ObservableCollection <CashierModel>(_repository.GetAll());
                }

                Application.Current.Dispatcher.Invoke(
                    new Action(() =>
                {
                    this.DataGridVisibility = false;
                    this.ButtonVisible      = true;
                    this.ForegroundForUser  = "******";
                    this.MessageForUser     = "******";
                }));
            });

            ReceiveCashier();
        }
コード例 #3
0
 public CashierController(
     ICashierRepository cashierRepository,
     ICashRegisterCashierRepository cashRegisterCashierRepository)
 {
     _cashierRepository             = cashierRepository;
     _cashRegisterCashierRepository = cashRegisterCashierRepository;
 }
コード例 #4
0
        public CashierController(ICashierRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.ToLong();
            this._UserId = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog = catalog;

            this.CashierRepository = repository;
        }
コード例 #5
0
        public CashierController(ICashierRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.ToLong();
            this._UserId   = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog  = catalog;

            this.CashierRepository = repository;
        }
コード例 #6
0
 public HireCashierHandler(
     IValidator <HireCashier> validator,
     IEventBus eventBus,
     IMapper mapper,
     ICashierRepository cashierRepository)
     : base(validator, eventBus, mapper)
 {
     _cashierRepository = cashierRepository;
 }
コード例 #7
0
 public OrderServices(IOrderRepository orderRepository, IProductRepository productRepository, IDiscountRepository discountRepository, IPairRepository <DatabaseModels.OrderItems> orderItemsRepository, IOrderDiscountRepository orderDiscountRepository, ICashierRepository cashierRepository)
 {
     _orderRepository         = orderRepository;
     _productRepository       = productRepository;
     _discountRepository      = discountRepository;
     _orderItemsRepository    = orderItemsRepository;
     _orderDiscountRepository = orderDiscountRepository;
     _cashierRepository       = cashierRepository;
     ticketNumberLock         = new object();
 }
コード例 #8
0
 public AssignCashierToAccountHandler(
     IValidator <AssignCashierToAccount> validator,
     IEventBus eventBus,
     IMapper mapper,
     IUserRepository userRepository,
     ICashierRepository cashierRepository)
     : base(validator, eventBus, mapper, userRepository)
 {
     _cashierRepository = cashierRepository;
 }
コード例 #9
0
 public CashierController(ICustomerManager custManager, ITransManager transManager,
                          IMapper mapper, RollerDataContext context, ICashierRepository cashier,
                          IEmailSender emailSender, IPaymentService payment)
 {
     _custManager  = custManager;
     _transManager = transManager;
     _mapper       = mapper;
     _context      = context;
     _cashier      = cashier;
     _emailSender  = emailSender;
     _payment      = payment;
 }
コード例 #10
0
        public CashierController()
        {
            this._LoginId  = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId   = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog  = AppUsers.GetCurrentUserDB();

            this.CashierRepository = new MixERP.Net.Schemas.Office.Data.Cashier
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
コード例 #11
0
        public CashierController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog = AppUsers.GetCurrentUserDB();

            this.CashierRepository = new MixERP.Net.Schemas.Office.Data.Cashier
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
コード例 #12
0
 public AuthenticationAppService(IContactRepository contactRepository,
                                 ISMSCodeRepository smsCodeRepository,
                                 ICashierRepository cashierRepository,
                                 IAdminRepository adminRepository,
                                 IConfiguration configuration,
                                 ILogger <AuthenticationAppService> logger)
 {
     _contactRepository = contactRepository;
     _smsCodeRepository = smsCodeRepository;
     _cashierRepository = cashierRepository;
     _adminRepository   = adminRepository;
     _logger            = logger;
     _resources         = LocalizationFactory.CreateLocalResources();
 }
コード例 #13
0
ファイル: AdminController.cs プロジェクト: hansel0691/BSpos
 public AdminController(IBlackstonePosService blackstonePosService, 
                     ICashierRepository cashierRepository, 
                     IOrderRepository orderRepository, 
                     ISettingRepository settingRepository, 
                     IPaymentService paymentService, IAchPaymentRepository achPaymentRepository,
                     IAchTransactionRepository achTransactionRepository,IApplicantRepository applicantRepository,  IMeteleService meteleService, IAppLogoRepository appLogoRepository)
 {
     _blackstonePosService = blackstonePosService;
                     _cashierRepository = cashierRepository;
                     _orderRepository = orderRepository;
                     _settingRepository = settingRepository;
                     _paymentService = paymentService;
                    _achPaymentRepository = achPaymentRepository;
                    _achTransactionRepository = achTransactionRepository;
                    _applicantRepository = applicantRepository;
                    _meteleService = meteleService;
                   _appLogoRepository = appLogoRepository;
 }
コード例 #14
0
 public CashierController(ICashierRepository cashierRepository)
 {
     _cashierRepository = cashierRepository;
 }
コード例 #15
0
 public CrudCashierServices(ICashierRepository repository) : base(repository)
 {
 }
コード例 #16
0
        public UnitOfWork(IContoRepository contoRepository,
                          IBusinessPartnerBankAccountRepository businessPartnerBankAccountRepository,
                          IBusinessPartnerLocationRepository businessPartnerLocationRepository,
                          IBusinessPartnerPhoneRepository businessPartnerPhoneRepository,
                          IBusinessPartnerRepository businessPartnerRepository,

                          ICalculationsRepository inputCalculationsRepository,
                          IPriceLevelingRepository priceLevelingRepository,
                          IPricingRepository pricingRepository,

                          ICashierRepository cashierRepository,

                          IClawbackFromBuyerRepository clawbackFromBuyerRepository,
                          IClawbackFromSupplierRepository clawbackFromSupplierRepository,

                          ILoanRepository loanRepository,

                          IWritingOffRepository writingOffRepository,

                          ICompanyBankAccountRepository companyBankAccountRepository,
                          ICompanyPhoneRepository companyPhoneRepository,
                          ICompanyRepository companyRepository,

                          IDeliveryNoteRepository deliveryNoteRepository,
                          IInternalDeliveryNoteRepository internalDeliveryNoteRepository,
                          IInputNoteRepository inputNoteRepository,

                          IPassportRepository passportRepository,

                          IExchangeRateRepository exchangeRateRepository,

                          IAuthenticationRepository authenticationRepository,
                          IUserRepository userRepository,

                          IAccountStatementRepository accountStatementRepository,
                          IBookOfOutputInvoicesRepository bookOfOutputInvoicesRepository,
                          ICreditNoteRepository creditNoteRepository,
                          IOutputInvoiceRepository outputInvoiceRepository,
                          IInputInvoiceRepository inputInvoiceRepository,
                          IOutputProInvoiceRepository outputProInvoiceRepository,



                          ICountryRepository countryRepository,
                          ICityRepository cityRepository,
                          IExpenseLocationRepository expenseLocationRepository,

                          IMunicipalityRepository municipalityRepository,

                          IOrganizationUnitRepository organizationUnitRepository,
                          ISectionRepository sectionRepository,

                          IProductCardRepository productCardRepository,
                          IProductGroupRepository productGroupRepository,
                          IProductSubGroupRepository productSubGroupRepository,
                          IProductRepository productRepository,
                          IProductSubItemRepository productSubItemRepository,
                          IAnimalTypeRepository animalTypeRepository,
                          IAnimalSubTypeRepository animalSubTypeRepository,
                          IUnitOfMeasurementRepository unitOfMeasurementRepository,
                          IPalletRepository palletRepository,

                          IProductTypeRepository productTypeRepository,
                          IProductVatPercentRepository productVatPercentRepository,

                          IKepuBookRepository kepuBookRepository,

                          IBoxRepository boxRepository,
                          IDepotRepository depotRepository,
                          IStockRepository stockRepository,
                          IWarehouseRepository warehouseRepository,
                          IWarehouseTypeRepository warehouseTypeRepository,
                          IWarehousePriceTypeRepository warehousePriceTypeRepository,

                          IManuelWarrantRepository manuelWarrantRepository,
                          IEmployeeRepository employeeRepository,
                          IEmployeeBankAccountRepository employeeBankAccountRepository,
                          IWorkHourRepository workHourRepository,
                          IWorkTypeRepository workTypeRepository,
                          IDeductionTypeRepository deductionTypeRepository,
                          IContributionRepository contributionRepository,
                          IDeductionRepository deductionRepository,

                          IMonthUtilityRepository monthUtilityRepository,

                          IWarrantTypeRepository warrantTypeRepository,

                          IAmortizationGroupRepository amortizationGroupRepository,
                          IFixedAssetRepository fixedAssetRepository,

                          IMigrationLogRepository migrationLogRepository,

                          IFinancialTemplateRepository financialTemplateRepository,

                          IMainFinancialBookRepository mainFinancialBookRepository,

                          IAdvanceOutputInvoiceRepository advanceOutputInvoiceRepository)
        {
            this.context = ApplicationDbContext.GetInstance();

            this.contoRepository = contoRepository;

            this.businessPartnerBankAccountRepository = businessPartnerBankAccountRepository;
            this.businessPartnerLocationRepository    = businessPartnerLocationRepository;
            this.businessPartnerPhoneRepository       = businessPartnerPhoneRepository;
            this.businessPartnerRepository            = businessPartnerRepository;

            this.inputCalculationsRepository = inputCalculationsRepository;
            this.priceLevelingRepository     = priceLevelingRepository;
            this.pricingRepository           = pricingRepository;

            this.cashierRepository = cashierRepository;

            this.clawbackFromBuyerRepository    = clawbackFromBuyerRepository;
            this.clawbackFromSupplierRepository = clawbackFromSupplierRepository;

            this.loanRepository = loanRepository;

            this.writingOffRepository = writingOffRepository;

            this.companyBankAccountRepository = companyBankAccountRepository;
            this.companyPhoneRepository       = companyPhoneRepository;
            this.companyRepository            = companyRepository;

            this.deliveryNoteRepository         = deliveryNoteRepository;
            this.internalDeliveryNoteRepository = internalDeliveryNoteRepository;
            this.inputNoteRepository            = inputNoteRepository;

            this.passportRepository = passportRepository;

            this.exchangeRateRepository = exchangeRateRepository;

            this.authenticationRepository = authenticationRepository;
            this.userRepository           = userRepository;

            this.accountStatementRepository     = accountStatementRepository;
            this.bookOfOutputInvoicesRepository = bookOfOutputInvoicesRepository;
            this.creditNoteRepository           = creditNoteRepository;
            this.outputInvoiceRepository        = outputInvoiceRepository;
            this.outputProInvoiceRepository     = outputProInvoiceRepository;


            this.inputInvoiceRepository         = inputInvoiceRepository;
            this.advanceOutputInvoiceRepository = advanceOutputInvoiceRepository;

            this.countryRepository         = countryRepository;
            this.cityRepository            = cityRepository;
            this.expenseLocationRepository = expenseLocationRepository;

            this.municipalityRepository = municipalityRepository;

            this.organizationUnitRepository = organizationUnitRepository;
            this.sectionRepository          = sectionRepository;

            this.productCardRepository       = productCardRepository;
            this.productGroupRepository      = productGroupRepository;
            this.productSubGroupRepository   = productSubGroupRepository;
            this.productRepository           = productRepository;
            this.productSubItemRepository    = productSubItemRepository;
            this.animalTypeRepository        = animalTypeRepository;
            this.animalSubTypeRepository     = animalSubTypeRepository;
            this.unitOfMeasurementRepository = unitOfMeasurementRepository;
            this.palletRepository            = palletRepository;

            this.productTypeRepository       = productTypeRepository;
            this.productVatPercentRepository = productVatPercentRepository;

            this.kepuBookRepository = kepuBookRepository;

            this.boxRepository                = boxRepository;
            this.depotRepository              = depotRepository;
            this.stockRepository              = stockRepository;
            this.warehouseRepository          = warehouseRepository;
            this.warehouseTypeRepository      = warehouseTypeRepository;
            this.warehousePriceTypeRepository = warehousePriceTypeRepository;

            this.manuelWarrantRepository = manuelWarrantRepository;

            this.employeeRepository            = employeeRepository;
            this.employeeBankAccountRepository = employeeBankAccountRepository;
            this.deductionTypeRepository       = deductionTypeRepository;
            this.workHourRepository            = workHourRepository;
            this.workTypeRepository            = workTypeRepository;

            this.contributionRepository = contributionRepository;
            this.deductionRepository    = deductionRepository;

            this.monthUtilityRepository = monthUtilityRepository;

            this.warrantTypeRepository = warrantTypeRepository;

            this.amortizationGroupRepository = amortizationGroupRepository;
            this.fixedAssetRepository        = fixedAssetRepository;

            this.migrationLogRepository = migrationLogRepository;

            this.financialTemplateRepository = financialTemplateRepository;

            this.mainFinancialBookRepository = mainFinancialBookRepository;
        }
コード例 #17
0
 public CashierService(ICashierRepository cashierRepository, IHubContext <CashierHub> cashierHub)
 {
     _cashierRepository = cashierRepository;
     _cashierHub        = cashierHub;
 }
コード例 #18
0
 public UserServices(IUserRepository userRepository, ICashierRepository cashierRepository)
 {
     _userRepository    = userRepository;
     _cashierRepository = cashierRepository;
 }