コード例 #1
0
 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;
 }
コード例 #2
0
        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;
                }
            }
        }
コード例 #3
0
 public OrderItemController(IOrderItemFactory factory)
 {
     _factory = factory;
 }
コード例 #4
0
 public AdditionalWorkViewModel(IDirectoryManager directoryManager, IOrderItemFactory orderItemFactory)
     : base(directoryManager, orderItemFactory)
 {
     Type = 2;
 }
コード例 #5
0
 /// <summary>
 /// Initialize view model by work order
 /// </summary>
 public ManualWorkViewModel(IDirectoryManager directoryManager, IOrderItemFactory orderItemFactory)
     : base(directoryManager, orderItemFactory)
 {
     Type = 1;
 }
コード例 #6
0
 public OrderApiRepository(IDirectoryManager directoryManager, IOrderItemFactory orderItemFactory)
 {
     _directoryManager = directoryManager;
     _orderItemFactory = orderItemFactory;
 }
コード例 #7
0
        public OrderFactory(IDirectoryManager directoryManager, IOrderItemFactory orderItemFactory)
        {
            _orderItemFactory = orderItemFactory;

            _directoryManager = directoryManager;
        }
コード例 #8
0
 /// <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)
 {
 }