public BarCodeController(IBarCodeService codeService, IProductService prodService, IMapper mapper, ILogger <BarCodeController> logger)
 {
     _codeService = codeService;
     _prodService = prodService;
     _mapper      = mapper;
     _logger      = logger;
 }
コード例 #2
0
		public BarCodeCreateViewModel(IBarCodeService service, IUserDialogService dialogs) {
			this.service = service;
			this.dialogs = dialogs;
            this.Formats = Enum.GetNames(typeof(BarCodeFormat));
            this.selectedFormat = "QR_CODE";
			this.width = 200;
			this.height = 200;
        }
コード例 #3
0
 public BarCodeCreateViewModel(IBarCodeService service, IUserDialogService dialogs)
 {
     this.service        = service;
     this.dialogs        = dialogs;
     this.Formats        = Enum.GetNames(typeof(BarCodeFormat));
     this.selectedFormat = "QR_CODE";
     this.width          = 200;
     this.height         = 200;
 }
コード例 #4
0
        public BarCodeViewModel(IBarCodeService scanner, IUserDialogService dialogs) {
            this.Scanner = scanner;
            this.dialogs = dialogs;

            var list = Enum
                .GetNames(typeof(BarCodeFormat))
                .ToList();
            list.Insert(0, "Any");
            this.Formats = list;
            this.SelectedFormat = "Any";
        }
コード例 #5
0
        public EventVoucherListViewModel(IBaseRepository <Models.Voucher> voucherRepository, IVoucherService voucherService, INavigationService navigationService, IEventAggregator eventAggregator, IBarCodeService barCodeService, ITotpCodeService totpCodeService, IUIServices uiServices) : base(uiServices, navigationService)
        {
            _voucherService    = voucherService;
            _navigationService = navigationService;
            _eventAggregator   = eventAggregator;
            _barCodeService    = barCodeService;
            _totpCodeService   = totpCodeService;
            _voucherRepository = voucherRepository;

            GetEventVoucherListCommand = new DelegateCommand(GetEventVoucherListCommandAction);
        }
コード例 #6
0
        public BarCodeViewModel(IBarCodeService scanner, IUserDialogService dialogs)
        {
            this.Scanner = scanner;
            this.dialogs = dialogs;

            var list = Enum
                       .GetNames(typeof(BarCodeFormat))
                       .ToList();

            list.Insert(0, "Any");
            this.Formats = list;
            //this.SelectedFormat = "Any";
        }
コード例 #7
0
        public MainViewModel(IBarCodeService barCodeService, IUserDialogService userDialogService,
                             IDataService dataService, ICalculationAmountService amountService)
        {
            _dataService       = dataService;
            _amountService     = amountService;
            _barCodeService    = barCodeService;
            _userDialogService = userDialogService;

            SynchronizePromotion();
            RefreshPromotion();

            InitializeVariables();
            Recalc();
            RefreshPreviousTrans();
        }