public TableTypeViewModel(ITableService tableService, IMessenger messenger)
            : base(messenger)
        {
            this.TableService = tableService;


        }
Esempio n. 2
0
        public SensorsController(IDocumentsService documentsService, ITableService tableService)
        {
            if (documentsService == null) throw new ArgumentNullException(nameof(documentsService));
            if (tableService == null) throw new ArgumentNullException(nameof(tableService));

            _documentsService = documentsService;
            _tableService = tableService;
        }
Esempio n. 3
0
 public TableController(IEmployeeService employeeService,
     ITableService tableService,
     IUnitOfWork unitOfWork)
 {
     _employeeService = employeeService;
     _tableService = tableService;
     _unitOfWork = unitOfWork;
 }
 public PlanWorktimeController(IPlanWorkDayRepository planWorkDayRepository,
     ITableService tableService,
     IUnitOfWork unitOfWork)
 {
     _planWorkDayRepository = planWorkDayRepository;
     _tableService = tableService;
     _unitOfWork = unitOfWork;
 }
Esempio n. 5
0
 public CancelPurchaseOrderCommandHandler(
     IAppDbContext context,
     ISheaftMediatr mediatr,
     ITableService tableService,
     ILogger <CancelPurchaseOrderCommandHandler> logger)
     : base(mediatr, context, logger)
 {
     _tableService = tableService;
 }
 public AzureRestController(IAccountQueuesService accountQueueService,
                            IStorageAccountService storageAccountService, ITableService tableService,
                            IDocumentDBRepository <Book> documentDBRepository, ILogger <AzureRestController> logger)
 {
     _accountQueueService   = accountQueueService;
     _storageAccountService = storageAccountService;
     _tableService          = tableService;
     _logger = logger;
 }
Esempio n. 7
0
        protected BaseUiService(ITableService <TDal> service,
                                IEnumerable <KeyValuePair <string, Type> > childrenTypes)
        {
            this.service       = service;
            this.ChildrenTypes = childrenTypes;

            SelectedItem = null;
            service.Broadcaster.StatusChange += Broadcaster_StatusChange;
        }
Esempio n. 8
0
 public TableItemController(ITableService tableService, IOrderService orderService, IOrderItemService orderItemService, IUserService userService, IProductService productService, ITableItemService tableItemService)
 {
     this.tableService     = tableService;
     this.orderService     = orderService;
     this.orderItemService = orderItemService;
     this.userService      = userService;
     this.productService   = productService;
     this.tableItemService = tableItemService;
 }
Esempio n. 9
0
 public DeliveryModeQueries(
     ICurrentUserService currentUserService,
     IHttpContextAccessor httpContextAccessor,
     ITableService tableService,
     IOptionsSnapshot <RoleOptions> roleOptions)
     : base(currentUserService, httpContextAccessor)
 {
     _tableService = tableService;
     _roleOptions  = roleOptions.Value;
 }
Esempio n. 10
0
 public ReservationController(
     ITableService TableService,
     IReservationService ReservationService,
     ICurrentContext CurrentContext
     )
 {
     this.TableService       = TableService;
     this.ReservationService = ReservationService;
     this.CurrentContext     = CurrentContext;
 }
Esempio n. 11
0
        public CommonHub(ILifetimeScope lifetimeScope)
        {
            // Create a lifetime scope for the hub.
            _hubLifetimeScope = lifetimeScope.BeginLifetimeScope();

            // Resolve dependencies from the hub lifetime scope
            _documentService = _hubLifetimeScope.Resolve<IDocumentsService>(); // singleton
            _tableService = _hubLifetimeScope.Resolve<ITableService>(); // singleton
            _counterService = _hubLifetimeScope.Resolve<IDistributedCounter>(); // singleton
        }
Esempio n. 12
0
        public HealthController(IDocumentsService documentsService, ITableService tableService, ILogger loger)
        {
            if (documentsService == null) throw new ArgumentNullException(nameof(documentsService));
            if (tableService == null) throw new ArgumentNullException(nameof(tableService));
            if (loger == null) throw new ArgumentNullException(nameof(loger));

            _documentsService = documentsService;
            _tableService = tableService;
            _loger = loger;
        }
Esempio n. 13
0
 public TableController(
     IOrderService OrderService,
     ITableService TableService,
     ICurrentContext CurrentContext
     )
 {
     this.OrderService   = OrderService;
     this.TableService   = TableService;
     this.CurrentContext = CurrentContext;
 }
Esempio n. 14
0
        public TableViewModel(ITableService tableService, IChooseDishesDataService dataService, IMessenger messenger)
            : base(messenger)
        {
            _TableService = tableService;
            _DataService = dataService;
            this.Init();//构造目录树
            //初始化时查询所有餐桌
            this.TableGrid = new ObservableCollection<Table>(_TableService.LoadAllTable());

        }
Esempio n. 15
0
 public BookingController(IBookingService bookingService,
                          IUserService userService,
                          ITableService tableService,
                          IOptions <RestaurantDatabaseSettings> databaseContext)
 {
     this.bookingService = bookingService;
     this.userService    = userService;
     this.tableService   = tableService;
     this.dbSettings     = databaseContext.Value;
 }
Esempio n. 16
0
        public ServiceFixtures()
        {
            this.partyRepository = new PartyRepository();
            this.tableRepository = new TableRepository();

            this.arrangerService = new ArrangerService();
            this.partyService    = new PartyService(partyRepository);
            this.tableService    = new TableService(tableRepository);
            this.mockData        = new MockFixtures();
        }
 public CustomerController(IBranchService branchService, ICountryService countryService, ILogger <CustomerController> logger, ITableService tableService, ICustomerService customerService, IMenuTypeService menuTypeService, IFirmService firmService, IOrderService orderService)
 {
     _logger          = logger;
     _tableService    = tableService;
     _customerService = customerService;
     _menuTypeService = menuTypeService;
     _firmService     = firmService;
     _branchService   = branchService;
     _countryService  = countryService;
     _orderService    = orderService;
 }
Esempio n. 18
0
 public MasterDataController(IMasterDataService masterDataService, ITableService tableService, ITableConfigService tableConfigService, ILocalizationService localizationService, ITableColumnService tableColumnService)
 {
     this._masterDataService  = masterDataService;
     this._tableService       = tableService;
     this._tableConfigService = tableConfigService;
     _tableColumnService      = tableColumnService;
     this._languageId         = CurrentUser.LanguageId;
     _localizationService     = localizationService;
     _userId      = CurrentUser.UserId;
     this._roleId = 1;
 }
Esempio n. 19
0
 public CreatePurchaseOrderCommandHandler(
     IAppDbContext context,
     ISheaftMediatr mediatr,
     IIdentifierService identifierService,
     ITableService tableService,
     ILogger <CreatePurchaseOrderCommandHandler> logger)
     : base(mediatr, context, logger)
 {
     _identifierService = identifierService;
     _tableService      = tableService;
 }
Esempio n. 20
0
 public AbstractTableController(
     ApiSettings settings,
     ILogger <AbstractTableController> logger,
     ITransactionCoordinator transactionCoordinator,
     ITableService tableService,
     IApiTableModelMapper tableModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.TableService     = tableService;
     this.TableModelMapper = tableModelMapper;
 }
Esempio n. 21
0
 public CRUD(
     ISqlExpressionExecutor sqlExecutor,
     IDatabaseService databaseService,
     ICRUDsqlExpressionProvider crudSqlExpressionProvider,
     ITableService tableService,
     IAttributeService attributeService)
 {
     _sqlExecutor               = sqlExecutor;
     _databaseService           = databaseService;
     _crudSqlExpressionProvider = crudSqlExpressionProvider;
     _tableService              = tableService;
     _attributeService          = attributeService;
 }
Esempio n. 22
0
 public CreatePurchaseOrderFromOrderCommandHandler(
     IAppDbContext context,
     ISheaftMediatr mediatr,
     IIdentifierService identifierService,
     ITableService tableService,
     IOptionsSnapshot <RoleOptions> roles,
     ILogger <CreatePurchaseOrderFromOrderCommandHandler> logger)
     : base(mediatr, context, logger)
 {
     _identifierService = identifierService;
     _tableService      = tableService;
     _roles             = roles.Value;
 }
Esempio n. 23
0
 public OrganizationController(IOrganizationService organizationService, ITableConfigService tableConfigService, ITableService tableService, IStaffService staffService, IMasterDataService masterDataService, ILocalizationService localizationService, ITableColumnService tableColumnService)
 {
     this._organizationService = organizationService;
     this._tableConfigService  = tableConfigService;
     this._tableService        = tableService;
     this._staffService        = staffService;
     this._masterDataService   = masterDataService;
     this._languageId          = CurrentUser.LanguageId;
     this._userId         = CurrentUser.UserId;
     this._roleId         = 1;
     _localizationService = localizationService;
     _tableColumnService  = tableColumnService;
 }
Esempio n. 24
0
 public TableItemService(
     IOrderItemService orderItemService,
     ITableService tableService,
     IOrderService orderService,
     IHttpContextAccessor context,
     IProductService productService)
 {
     this.orderItemService = orderItemService;
     this.tableService     = tableService;
     this.orderService     = orderService;
     this.context          = context;
     this.productService   = productService;
 }
Esempio n. 25
0
 public TableColumnManager
 (
     ITableService tableService,
     ITableColumnService tableColumnService,
     ITableRowService tableRowService,
     ITableRowItemService tableRowItemService
 )
 {
     _tableColumnService  = tableColumnService;
     _tableRowService     = tableRowService;
     _tableRowItemService = tableRowItemService;
     _tableService        = tableService;
 }
 public TableDeleteForecastWorker(
     ITableService tableService,
     string storageAccountName,
     string[] tableNames,
     ScheduleDay[] scheduleDays,
     int pollingIntervalInMinutes)
     : base(GetWorkerId(storageAccountName))
 {
     this.tableService = tableService;
     this.storageAccountName = storageAccountName;
     this.tableNames = tableNames;
     this.scheduleDays = scheduleDays;
     this.pollingIntervalInMinutes = pollingIntervalInMinutes;
 }
Esempio n. 27
0
 public PurchaseController(IPurchaseService purchaseService,
                           IOrderService orderService,
                           IFlowService flowService,
                           IUserService userService,
                           ITableService tableService,
                           IOptions <RestaurantDatabaseSettings> databaseContext)
 {
     this.purchaseService = purchaseService;
     this.userService     = userService;
     this.flowService     = flowService;
     this.tableService    = tableService;
     this.dbSettings      = databaseContext.Value;
     this.orderService    = orderService;
 }
Esempio n. 28
0
 public TableDeleteForecastWorker(
     ITableService tableService,
     string storageAccountName,
     string[] tableNames,
     ScheduleDay[] scheduleDays,
     int pollingIntervalInMinutes)
     : base(GetWorkerId(storageAccountName))
 {
     this.tableService             = tableService;
     this.storageAccountName       = storageAccountName;
     this.tableNames               = tableNames;
     this.scheduleDays             = scheduleDays;
     this.pollingIntervalInMinutes = pollingIntervalInMinutes;
 }
Esempio n. 29
0
        // GET: Api
        public ApiController(IDiscountRepository _DiscountRepository, IRestaurantRepository _RestaurantRepository, IAreaRepository _AreaRepository, ICategoryRepository _CategoryRepository, IMarketRepository _MarketRepository, IBoxRepository _BoxRepository, IProjectRepository _ProjectRepository, ITableRepository _TableRepository, IOrderRepository _OrderRepository, IExtendRepository _ExtendRepository, ITableService tableService)
        {
            DiscountRepository   = _DiscountRepository;
            RestaurantRepository = _RestaurantRepository;
            AreaRepository       = _AreaRepository;
            CategoryRepository   = _CategoryRepository;
            MarketRepository     = _MarketRepository;
            BoxRepository        = _BoxRepository;
            ProjectRepository    = _ProjectRepository;
            TableRepository      = _TableRepository;
            OrderRepository      = _OrderRepository;
            ExtendRepository     = _ExtendRepository;

            TableServices = tableService;
        }
Esempio n. 30
0
 public TableController(
     ApiSettings settings,
     ILogger <TableController> logger,
     ITransactionCoordinator transactionCoordinator,
     ITableService tableService,
     IApiTableServerModelMapper tableModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.TableService     = tableService;
     this.TableModelMapper = tableModelMapper;
     this.BulkInsertLimit  = 250;
     this.MaxLimit         = 1000;
     this.DefaultLimit     = 250;
 }
Esempio n. 31
0
 public ApiPluginController(IRestaurantRepository restaurantRepository,
                            IRestaurantService restaurantService, IMarketRepository marketRepository,
                            ICategoryRepository categoryRepository, IRestaurantCategoryRepository restaurantCategoryRepository,
                            IProjectRepository projectRepository, IOrderRepository orderRepository,
                            ITableService tableHandlerSers)
 {
     _restaurantRepository         = restaurantRepository;
     _restaurantService            = restaurantService;
     _marketRepository             = marketRepository;
     _categoryRepository           = categoryRepository;
     _restaurantCategoryRepository = restaurantCategoryRepository;
     _projectRepository            = projectRepository;
     _orderRepository  = orderRepository;
     _tableHandlerSers = tableHandlerSers;
 }
Esempio n. 32
0
 public PersonalIncomeTaxController(IPersonalIncomeTaxService personalIncomeTaxService,
                                    ITableService tableService,
                                    ITableConfigService tableConfigService,
                                    ITableColumnService tableColumnService,
                                    IMasterDataService masterDataService
                                    )
 {
     this._personalIncomeTaxService = personalIncomeTaxService;
     this._tableService             = tableService;
     this._tableConfigService       = tableConfigService;
     this._tableColumnService       = tableColumnService;
     this._masterDataService        = masterDataService;
     this._languageId = CurrentUser.LanguageId;
     this._userId     = CurrentUser.UserId;
     this._roleId     = CurrentUser.RoleId;
 }
Esempio n. 33
0
 public OrderController(
     IOrderService orderService,
     IPickupItemService pickupItemService,
     ITableService tableService,
     UserManager <ApplicationUser> userManager,
     IEmailSender emailSender,
     IHubContext <OrderHub> orderHub
     )
 {
     this.orderService      = orderService;
     this.pickupItemService = pickupItemService;
     this.tableService      = tableService;
     this.userManager       = userManager;
     this.emailSender       = emailSender;
     this.orderHub          = orderHub;
 }
Esempio n. 34
0
 public RegisterModel(
     IChampsService champsService,
     IUserService userServices,
     ITableService tableServices,
     UserManager <IdentityUser> userManager,
     SignInManager <IdentityUser> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender)
 {
     ChampsService  = champsService ?? throw new ArgumentNullException(nameof(champsService));
     UserServices   = userServices;
     TableServices  = tableServices;
     _userManager   = userManager;
     _signInManager = signInManager;
     _logger        = logger;
     _emailSender   = emailSender;
 }
 /// <summary>
 /// Creates new ReservationsViewModel object
 /// </summary>
 /// <param name="tableService">ITableService injected through prism</param>
 /// <param name="reservationService">IReservationService injected through prism</param>
 /// <param name="eventAggregator">IEventAggregator injected through prism</param>
 public ReservationsViewModel(ITableService tableService, IReservationService reservationService, IEventAggregator eventAggregator)
 {
     _eventAggregtor     = eventAggregator;
     _tables             = new ObservableCollection <TableModel>();
     _tableService       = tableService;
     _reservationService = reservationService;
     this.CheckinDate    = DateTime.Now;
     try
     {
         this.LoadTableInformation();
     }
     catch (Exception ex)
     {
         //log execption
         //TODO: log
     }
 }
Esempio n. 36
0
 public OrderService(
     IDeletableEntityRepository <Order> orderRepository,
     IBasketService basketService,
     ITableService tableService,
     IDishTypeService dishTypeService,
     IPromoCodeService promoCodeService,
     IOrderDishService orderDishService,
     IOrderDrinkService orderDrinkService
     )
 {
     this.orderRepository   = orderRepository;
     this.basketService     = basketService;
     this.tableService      = tableService;
     this.dishTypeService   = dishTypeService;
     this.promoCodeService  = promoCodeService;
     this.orderDishService  = orderDishService;
     this.orderDrinkService = orderDrinkService;
 }
Esempio n. 37
0
        public MHomeController(
            IOrderRepository orderRepository,
            ICategoryRepository categoryRepository,
            ITableRepository tableRepository,
            IMarketRepository marketRepository,
            IAreaRepository areaRepository,
            IExtendItemRepository extendItemRepository,
            ICustomerRepository customerRepository,
            IUserRepository_Old oldUserRepository,
            ITableService tableService,
            IOrderService orderService,
            IRestaurantService restaurantService,
            ICheckOutRepository checkOutRepository,
            IRestaurantRepository resRepository,
            IExtendTypeRepository extendTypeRepository,
            IOrderPayRecordRepository orderPayRecordRepository,
            IPrintService printService,
            IRestaurantRepository restaurantRepository,
            IMarketRepository marketRep,
            ITableRepository tableRep)
        {
            _orderRepository      = orderRepository;
            _tableRepository      = tableRepository;
            _marketRepository     = marketRepository;
            _categoryRepository   = categoryRepository;
            _areaRepository       = areaRepository;
            _extendItemRepository = extendItemRepository;
            _oldCustRepository    = customerRepository;
            _oldUserRepository    = oldUserRepository;

            _tableHandlerSers         = tableService;
            _orderHandlerSers         = orderService;
            _restaurantHandlerSers    = restaurantService;
            _checkOutRepository       = checkOutRepository;
            _resRepository            = resRepository;
            _extendTypeRepository     = extendTypeRepository;
            _orderPayRecordRepository = orderPayRecordRepository;
            _printService             = printService;
            _restaurantRepository     = restaurantRepository;
            _marketRep = marketRep;
            _tableRep  = tableRep;
        }
Esempio n. 38
0
 public WeiXinController(IRestaurantRepository restaurantRepository,
                         IRestaurantService restaurantService, IMarketRepository marketRepository,
                         ICategoryRepository categoryRepository, IRestaurantCategoryRepository restaurantCategoryRepository,
                         IProjectRepository projectRepository, IOrderRepository orderRepository,
                         ITableService tableHandlerSers, IExtendItemRepository extendItemRepository,
                         IPackageRepository packageRepository, ICheckOutService checkOutService, IPayMethodRepository payMethodRepository)
 {
     _restaurantRepository         = restaurantRepository;
     _restaurantService            = restaurantService;
     _marketRepository             = marketRepository;
     _categoryRepository           = categoryRepository;
     _restaurantCategoryRepository = restaurantCategoryRepository;
     _projectRepository            = projectRepository;
     _orderRepository      = orderRepository;
     _tableHandlerSers     = tableHandlerSers;
     _extendItemRepository = extendItemRepository;
     _packageRepository    = packageRepository;
     _checkOutService      = checkOutService;
     _payMethodRepository  = payMethodRepository;
 }
Esempio n. 39
0
 public TablesController()
 {
     var db = new CartSysContext();
     repo = new TableRepository(db);
     tableService = new TableService(repo);
 }
Esempio n. 40
0
 public TableController(ITableService tableService)
 {
     this.tableService = tableService;
 }
Esempio n. 41
0
        private void Register_RegisterClicked(object sender, RoutedEventArgs e)
        {
            NetTcpBinding serviceBinding = new NetTcpBinding(SecurityMode.None);
            serviceBinding.ReceiveTimeout = TimeSpan.MaxValue;
            serviceBinding.SendTimeout = TimeSpan.MaxValue;
            proxy = DuplexChannelFactory<ITableService>.CreateChannel(this, serviceBinding, new EndpointAddress(Properties.Settings.Default.ServerAddress));

            TcpTransportBindingElement transport = new TcpTransportBindingElement();
            transport.MaxReceivedMessageSize = long.MaxValue;
            transport.MaxBufferSize = int.MaxValue;
            transport.MaxBufferPoolSize = long.MaxValue;
            transport.TransferMode = TransferMode.Streamed;

            BinaryMessageEncodingBindingElement encoder = new BinaryMessageEncodingBindingElement();
            CustomBinding fileBinding = new CustomBinding(encoder, transport);
            fileBinding.ReceiveTimeout = TimeSpan.MaxValue;
            fileBinding.SendTimeout = TimeSpan.MaxValue;
            fileProxy = ChannelFactory<IFileDownloadService>.CreateChannel(fileBinding, new EndpointAddress(Properties.Settings.Default.FileServerAddress));

            try
            {
                DateTime serverTime = proxy.GetTime();
                OffsetDateTime.Difference = serverTime - DateTime.UtcNow;

                proxy.Register(currentUser);
            }
            catch (FaultException ex)
            {
                MessageBox.Show(ex.Message);
            }
            catch (EndpointNotFoundException)
            {
                MessageBox.Show("Could not connect to the table");
            }
            finally
            {
                Register r = (Register)sender;
                r.RegisterButton.Visibility = Visibility.Visible;
                r.Spinner.Visibility = Visibility.Collapsed;
            }
        }