Esempio n. 1
0
 public DirectSalesGenerator(IMaterialBatchFacade batchFacade, IInvoiceFormsRepository invoiceFormsRepository, IMaterialRepository materialRepository, IUnitRepository unitRepository, IDatabase database, ISaleEventRepository saleEventRepository) : base(batchFacade, invoiceFormsRepository, materialRepository)
 {
     m_materialRepository  = materialRepository;
     m_unitRepository      = unitRepository;
     m_database            = database;
     m_saleEventRepository = saleEventRepository;
 }
Esempio n. 2
0
 public BatchReportingFacade(ISession session,
                             IDatabase database,
                             IMaterialBatchFacade batchFacade,
                             IMaterialBatchRepository batchRepository,
                             IMaterialRepository materialRepository,
                             IProductionFacade productionFacade,
                             AmountProcessor amountProcessor,
                             IUnitRepository unitRepository,
                             IOrdersFacade ordersFacade,
                             IOrderStatusRepository orderStatusRepository,
                             IPurchaseOrderRepository orderRepository,
                             IUserRepository userRepository,
                             IStockEventRepository stockEventRepository,
                             ISaleEventRepository saleEventRepository)
 {
     m_session               = session;
     m_database              = database;
     m_batchFacade           = batchFacade;
     m_batchRepository       = batchRepository;
     m_materialRepository    = materialRepository;
     m_productionFacade      = productionFacade;
     m_amountProcessor       = amountProcessor;
     m_unitRepository        = unitRepository;
     m_ordersFacade          = ordersFacade;
     m_orderStatusRepository = orderStatusRepository;
     m_orderRepository       = orderRepository;
     m_userRepository        = userRepository;
     m_stockEventRepository  = stockEventRepository;
     m_saleEventRepository   = saleEventRepository;
 }
Esempio n. 3
0
 public PremanufacturedMixturesInvFrmGenerator(IMaterialBatchFacade batchFacade,
                                               IInvoiceFormsRepository invoiceFormsRepository,
                                               IMaterialRepository materialRepository)
     : base(batchFacade, invoiceFormsRepository)
 {
     m_materialRepository = materialRepository;
 }
Esempio n. 4
0
 public StockEventsFormsGenerator(IMaterialBatchFacade batchFacade,
                                  IInvoiceFormsRepository invoiceFormsRepository, IMaterialRepository materialRepository,
                                  IStockEventRepository stockEventRepository, IDatabase database) : base(batchFacade, invoiceFormsRepository,
                                                                                                         materialRepository)
 {
     m_stockEventRepository = stockEventRepository;
     m_database             = database;
 }
Esempio n. 5
0
 public SetComponents(IMaterialRepository materialRepository, IUnitRepository unitRepository, AmountProcessor amountProcessor, IMaterialBatchFacade batchFacade, IMaterialBatchRepository batchRepository)
 {
     m_materialRepository = materialRepository;
     m_unitRepository     = unitRepository;
     m_amountProcessor    = amountProcessor;
     m_batchFacade        = batchFacade;
     m_batchRepository    = batchRepository;
 }
 public ReturnedOrdersFormGenerator(IMaterialBatchFacade batchFacade, IInvoiceFormsRepository invoiceFormsRepository, IMaterialRepository materialRepository, IPurchaseOrderRepository orderRepository, IUnitRepository unitRepository, AmountProcessor amountProcessor, IStockEventRepository stockEventRepository) : base(batchFacade, invoiceFormsRepository, materialRepository)
 {
     m_materialRepository   = materialRepository;
     m_orderRepository      = orderRepository;
     m_unitRepository       = unitRepository;
     m_amountProcessor      = amountProcessor;
     m_stockEventRepository = stockEventRepository;
 }
 public BatchCompositionReleaseFormsGenerator(IMaterialBatchFacade batchFacade,
                                              IInvoiceFormsRepository invoiceFormsRepository, IMaterialBatchRepository batchRepository,
                                              IDatabase database, IMaterialRepository materialRepo) : base(
         batchFacade, invoiceFormsRepository, materialRepo)
 {
     m_batchRepository = batchRepository;
     m_database        = database;
 }
 public WarehouseActionsController(IWebSession webSession, ILog log, IMaterialRepository materialRepository, IUnitRepository unitRepository, IMaterialBatchRepository batchRepository, IMaterialBatchFacade batchFacade, ISupplierRepository supplierRepository)
     : base(webSession, log)
 {
     m_materialRepository = materialRepository;
     m_unitRepository     = unitRepository;
     m_batchRepository    = batchRepository;
     m_batchFacade        = batchFacade;
     m_supplierRepository = supplierRepository;
 }
Esempio n. 9
0
 public EshopSalesGenerator(IMaterialBatchFacade batchFacade, IInvoiceFormsRepository invoiceFormsRepository,
                            IPurchaseOrderRepository orderRepository, IMaterialRepository materialRepository,
                            IUnitRepository unitRepository, IDatabase database) : base(batchFacade, invoiceFormsRepository, materialRepository)
 {
     m_orderRepository    = orderRepository;
     m_materialRepository = materialRepository;
     m_unitRepository     = unitRepository;
     m_database           = database;
 }
Esempio n. 10
0
 public StockEventsController(IWebSession webSession, ILog log, IStockEventRepository eventRepository,
                              IMaterialBatchFacade batchFacade,
                              IMaterialBatchRepository batchRepository, AmountProcessor amountProcessor)
     : base(webSession, log)
 {
     m_eventRepository = eventRepository;
     m_batchFacade     = batchFacade;
     m_batchRepository = batchRepository;
     m_amountProcessor = amountProcessor;
 }
Esempio n. 11
0
        public BatchPriceBulkProvider(IDatabase database, ISession session, IMaterialBatchFacade batchFacade, DateTime from, DateTime to)
        {
            m_database    = database;
            m_session     = session;
            m_batchFacade = batchFacade;
            m_from        = from;
            m_to          = to;

            Preload();
        }
Esempio n. 12
0
 public SaleEventRepository(IDatabase database, ICache cache, ISession session, IServiceLocator serviceLocator, IMaterialBatchFacade batchFacade, IMaterialRepository materialRepository, AmountProcessor amountProcessor)
 {
     m_database           = database;
     m_cache              = cache;
     m_session            = session;
     m_serviceLocator     = serviceLocator;
     m_batchFacade        = batchFacade;
     m_materialRepository = materialRepository;
     m_amountProcessor    = amountProcessor;
 }
Esempio n. 13
0
 public InvoiceFormRepository(IDatabase database, ISession session, ICache cache, ISysCountersManager countersManager, ILog log, IServiceLocator serviceLocator, IMaterialBatchFacade batchFacade)
 {
     m_database        = database;
     m_session         = session;
     m_cache           = cache;
     m_countersManager = countersManager;
     m_log             = log;
     m_serviceLocator  = serviceLocator;
     m_batchFacade     = batchFacade;
 }
Esempio n. 14
0
 public ApplySourceSegmentId(IMaterialBatchRepository batchRepository,
                             IMaterialBatchFacade batchFacade,
                             AmountProcessor amountProcessor,
                             IRecipeRepository recipeRepository, IMaterialRepository materialRepository, IUnitRepository unitRepository)
 {
     m_batchRepository    = batchRepository;
     m_batchFacade        = batchFacade;
     m_amountProcessor    = amountProcessor;
     m_recipeRepository   = recipeRepository;
     m_materialRepository = materialRepository;
     m_unitRepository     = unitRepository;
 }
Esempio n. 15
0
        protected override IEnumerable <IMaterialBatch> FindSourceBatches(IMaterialInventory forInventory,
                                                                          int year,
                                                                          int month,
                                                                          IMaterialBatchFacade facade,
                                                                          IInvoiceFormGenerationContext context)
        {
            var startDate = new DateTime(year, month, 1).Date;
            var endDate   = startDate.AddMonths(1);

            context.Info($"Hledám šarže na skladu {forInventory.Name} od {startDate} do {endDate}");

            return(facade.FindNotClosedBatches(forInventory.Id, startDate, endDate).ToList());
        }
Esempio n. 16
0
        protected ReleaseFormsGeneratorBase(IMaterialBatchFacade batchFacade,
                                            IInvoiceFormsRepository invoiceFormsRepository, IMaterialRepository materialRepository)
        {
            m_batchFacade        = batchFacade;
            m_materialRepository = materialRepository;

            FormType = invoiceFormsRepository.GetInvoiceFormTypes().FirstOrDefault(t =>
                                                                                   t.GeneratorName.Equals("ReleasingForm", StringComparison.InvariantCultureIgnoreCase));

            if (FormType == null)
            {
                throw new InvalidOperationException("No InvoiceFormType found by 'ReleasingForm'");
            }
        }
Esempio n. 17
0
 public OrdersFacade(
     IPurchaseOrderRepository orderRepository,
     IDatabase database,
     IErpClientFactory clientFactory,
     ISession session,
     IPaymentRepository paymentRepository,
     ILog log,
     IMaterialBatchFacade batchFacade, IKitProductRepository kitProductRepository)
 {
     m_orderRepository   = orderRepository;
     m_database          = database;
     m_clientFactory     = clientFactory;
     m_session           = session;
     m_paymentRepository = paymentRepository;
     m_log                  = log;
     m_batchFacade          = batchFacade;
     m_kitProductRepository = kitProductRepository;
 }
Esempio n. 18
0
 public ProductionFacade(
     IDatabase database,
     IMaterialBatchRepository batchRepository,
     IMaterialRepository materialRepository,
     IUnitConversionHelper unitConversion,
     AmountProcessor amountProcessor,
     ILog log,
     IMaterialBatchFacade batchFacade, IUnitRepository unitRepository, ISession session)
 {
     m_database           = database;
     m_batchRepository    = batchRepository;
     m_materialRepository = materialRepository;
     m_unitConversion     = unitConversion;
     m_amountProcessor    = amountProcessor;
     m_log            = log;
     m_batchFacade    = batchFacade;
     m_unitRepository = unitRepository;
     m_session        = session;
 }
Esempio n. 19
0
 public PackingController(
     IWebSession webSession,
     ILog log,
     IPurchaseOrderRepository orderRepository,
     IShipmentProvider shipmentProvider,
     IOrdersFacade ordersFacade,
     IKitProductRepository kitProductRepository,
     IErpClientFactory erpClientFactory,
     IMaterialBatchFacade batchFacade,
     IDatabase database,
     IVirtualProductFacade virtualProductFacade, OrdersSystemConfig config)
     : base(webSession, log)
 {
     m_orderRepository      = orderRepository;
     m_shipmentProvider     = shipmentProvider;
     m_ordersFacade         = ordersFacade;
     m_kitProductRepository = kitProductRepository;
     m_erpClientFactory     = erpClientFactory;
     m_batchFacade          = batchFacade;
     m_database             = database;
     m_virtualProductFacade = virtualProductFacade;
     m_config = config;
 }
Esempio n. 20
0
 public PurchasedMaterialInvFrmGenerator(IMaterialBatchFacade batchFacade, IInvoiceFormsRepository invoiceFormsRepository)
     : base(batchFacade, invoiceFormsRepository)
 {
 }
Esempio n. 21
0
 public FinalProductRecInvFormGenerator(IMaterialBatchFacade batchFacade, IInvoiceFormsRepository invoiceFormsRepository, IMaterialRepository materialRepository)
     : base(batchFacade, invoiceFormsRepository, materialRepository)
 {
 }
Esempio n. 22
0
 protected abstract IEnumerable <IMaterialBatch> FindSourceBatches(IMaterialInventory forInventory, int year,
                                                                   int month,
                                                                   IMaterialBatchFacade facade,
                                                                   IInvoiceFormGenerationContext context);
Esempio n. 23
0
 public MaterialLevelController(IWebSession webSession, ILog log, IMaterialBatchFacade batchFacade)
     : base(webSession, log)
 {
     m_batchFacade = batchFacade;
 }
Esempio n. 24
0
 protected ReceivingInvoiceGeneratorBase(IMaterialBatchFacade batchFacade, IInvoiceFormsRepository invoiceFormsRepository)
 {
     m_batchFacade            = batchFacade;
     m_invoiceFormsRepository = invoiceFormsRepository;
 }