//TODO: Za duży konstruktor, Dodać IOrderContext. public OrderViewModel(IRegionManager regionManager, IOrderRepository orderRepository, IOrderTypeRepository typeRepository, IOrderStatusRepository statusRepository, IEventAggregator eventAggregator, IHardwareTypeRepository hardwareTypesRepository, INumerationRepository numerationRepository, IMessageDialogService messageDialogService, IRBACManager rBACManager, IPrintTemplateRepository templateRepository, ISettingsManager <Setting> settingsManager) : base(eventAggregator, messageDialogService) { _orderRepository = orderRepository; _typeRepository = typeRepository; _statusRepository = statusRepository; _hardwareTypesRepository = hardwareTypesRepository; _numerationRepository = numerationRepository; _rBACManager = rBACManager; _templateRepository = templateRepository; _settingsManager = settingsManager; _regionManager = regionManager; OrderStatuses = new ObservableCollection <OrderStatus>(); OrderTypes = new ObservableCollection <OrderType>(); HardwareTypes = new ObservableCollection <HardwareType>(); Attachments = new ObservableCollection <Blob>(); PrintTemplates = new ObservableCollection <PrintTemplate>(); AddAttachmentCommand = new DelegateCommand(OnAddAttachmentExecute); RemoveAttachmentCommand = new DelegateCommand(OnRemoveAttachmentExecute, OnRemoveAttachmentCanExecute); PrintCommand = new DelegateCommand <object>(OnPrintExecute); ShowHardwareDetailFlyoutCommand = new DelegateCommand(OnShowHardwareFlyoutExecute); ShowCustomerDetailFlyoutCommand = new DelegateCommand(OnShowCustomerFlyoutExecute); }
public OrderContext(IEventAggregator eventAggregator, IMessageDialogService messageDialogService, IOrderRepository orderRepository, ICustomerRepository customerRepository, ICustomItemRepository customItemRepository, IHwCustomItemRepository hwCustomItemRepository, IHardwareTypeRepository hardwareTypeRepository, IOrderStatusRepository orderStatusRepository, IOrderTypeRepository orderTypeRepository, INumerationRepository numerationRepository) : base(eventAggregator, messageDialogService) { _orderRepository = orderRepository; _customerRepository = customerRepository; _customItemRepository = customItemRepository; _hwCustomItemRepository = hwCustomItemRepository; _hardwareTypeRepository = hardwareTypeRepository; _orderStatusRepository = orderStatusRepository; _orderTypeRepository = orderTypeRepository; _numerationRepository = numerationRepository; Customers = new ObservableCollection <Customer>(); HardwareTypes = new ObservableCollection <HardwareType>(); HardwareCustomItems = new ObservableCollection <HwCustomItem>(); DisplayableCustomItems = new ObservableCollection <DisblayableCustomItem>(); OrderStatuses = new ObservableCollection <OrderStatus>(); OrderTypes = new ObservableCollection <OrderType>(); Attachments = new ObservableCollection <Blob>(); Initialize(); }
public CreateOrderService(IOrderRepository orderRepository, IOrderTypeRepository orderTypeRepository, OrderValidator validator) { _orderRepository = orderRepository; _orderTypeRepository = orderTypeRepository; _validator = validator; }
public OrderController(IOrderRepository rep, IAuthRepository auth, IHelper helper, IRestaurantRepository restaurant, ICityRepository city, ICustomerRepository customerRep, IOrderTypeRepository orderTypes) { this._helper = helper; this._auth = auth; this._restaurant = restaurant; this._city = city; this._rep = rep; this._customers = customerRep; this._orderTypes = orderTypes; }
public OrderSearchViewModel( IOrderStatusRepository statusRepository, IOrderTypeRepository typeRepository, IEventAggregator eventAggregator) : base(eventAggregator) { Order = new Order() { DateAdded = DateTime.Now, DateEnded = DateTime.Now }; Customer = new Customer(); OrderStatuses = new ObservableCollection <OrderStatus>(); OrderTypes = new ObservableCollection <OrderType>(); _statusRepository = statusRepository; _typeRepository = typeRepository; LoadOrderStatusesAsync(); LoadOrderTypesAsync(); }
public StatusConfigViewModel(IEventAggregator eventAggregator, IOrderStatusRepository orderStatusRepository, IOrderTypeRepository orderTypeRepository, IMessageDialogService messageDialogService) : base(eventAggregator, messageDialogService) { Title = "Konfiguracja statusów"; _orderStatusRepository = orderStatusRepository; _orderTypeRepository = orderTypeRepository; _isNewStatusCollapsed = true; OrderTypes = new ObservableCollection <OrderTypeWrapper>(); OrderStatuses = new ObservableCollection <OrderStatusWrapper>(); Groups = new ObservableCollection <StatusGroupLookupItem>(); AddOrderTypeCommand = new DelegateCommand(OnAddOrderTypeExecute); AddOrderStatusCommand = new DelegateCommand <object>(OnAddOrderStatusExecute); RemoveOrderTypeCommand = new DelegateCommand(OnRemoveOrderTypeExecute, OnRemoveOrderTypeCanExecute); RemoveOrderStatusCommand = new DelegateCommand(OnRemoveOrderStatusExecute, OnRemoveOrderStatusCanExecute); ToggleNewStatusPaneCommand = new DelegateCommand(OnNewStatusToggled); }
public ReportController(IOrderRepository orders, IReservationRepository reservations, IGiftCardRepository giftcards, IAuthRepository auth, ICustomerRepository customers, IOrderTypeRepository orderTypes, IReservationStatusRepository reservationStatuses, IGiftCardRepository giftCards, IGiftCardTypeRepository giftCardTypes, IHelper helper) { this._orders = orders; this._reservations = reservations; this._giftcards = giftcards; this._helper = helper; this._auth = auth; this._customers = customers; this._orderTypes = orderTypes; this._reservationStatuses = reservationStatuses; this._giftcards = giftcards; this._giftCardTypes = giftCardTypes; }
public OrderTypeService(IOrderTypeRepository repo) { this.repository = repo; }
public OrderTypeController(IOrderTypeRepository orderTypeRepository, ICustomerRepository customerRepository) { _orderTypeRepository = orderTypeRepository; _customerRepository = customerRepository; }
public OrderTypeService(IOrderTypeRepository repo) { this.repository = repo; }