public NewOrderItemCommand(ICommandEventsManager commandEventsManager, IOrderRepository orderRepository, IUserRepository userRepository, ISupplierRepository suppliersRepository, IOrderFactory orderFactory, IOrderItemFactory orderItemFactory, IUserFactory userFactory) : base(commandEventsManager) { this.orderRepository = orderRepository; this.userRepository = userRepository; this.suppliersRepository = suppliersRepository; this.orderFactory = orderFactory; this.orderItemFactory = orderItemFactory; this.userFactory = userFactory; }
protected BaseWorkViewModel(IDirectoryManager directoryManager, IOrderItemFactory orderItemFactory) { _directoryManager = directoryManager; _orderItemFactory = orderItemFactory; InitializeDataItems(); InitializeDataCollection(); if (_directoryManager != null && _directoryManager.LaborStatus != null) { var status = _directoryManager.LaborStatus.FirstOrDefault(x => x.Name == "active"); if (status != null) { StatusId = status != null ? (int?)status.Identity : null; } } }
public OrderItemController(IOrderItemFactory factory) { _factory = factory; }
public AdditionalWorkViewModel(IDirectoryManager directoryManager, IOrderItemFactory orderItemFactory) : base(directoryManager, orderItemFactory) { Type = 2; }
/// <summary> /// Initialize view model by work order /// </summary> public ManualWorkViewModel(IDirectoryManager directoryManager, IOrderItemFactory orderItemFactory) : base(directoryManager, orderItemFactory) { Type = 1; }
public OrderApiRepository(IDirectoryManager directoryManager, IOrderItemFactory orderItemFactory) { _directoryManager = directoryManager; _orderItemFactory = orderItemFactory; }
public OrderFactory(IDirectoryManager directoryManager, IOrderItemFactory orderItemFactory) { _orderItemFactory = orderItemFactory; _directoryManager = directoryManager; }
/// <summary> /// Initialize view model by work order /// </summary> public BasicWorkViewModel(IDirectoryManager directoryManager, IOrderItemFactory orderItemFactory) : base(directoryManager, orderItemFactory) { Type = 0; }
/// <summary> /// Initialize view model by work order /// </summary> public TransportWorkViewModel(IDirectoryManager directoryManager, IOrderItemFactory orderItemFactory) : base(directoryManager, orderItemFactory) { }