Table of Contents

Class LagerContext

Namespace
BpNexT.NET.Models.Lager
Assembly
BpNexT.NET.dll

Represents a context for performing warehouse operations. Disposable to ensure proper resource management. Use within a using statement.

public class LagerContext : ILagerContext, IDisposable
Inheritance
object
LagerContext
Implements

Remarks

The LagerContext provides access to warehouse operations such as stock entry (Einbuchen), stock transfer (Umbuchen), and stock removal (Abgang).

For articles with serial number management, use the Seriennummern property to manage serial numbers before executing operations.

Constructors

LagerContext(AutoLager)

Initializes a new instance of the LagerContext class.

public LagerContext(AutoLager autoLager)

Parameters

autoLager AutoLager

The underlying AutoLager COM object.

Properties

Seriennummern

Gets the serial number manager for handling serial numbers in warehouse operations.

public SeriennummernManager Seriennummern { get; }

Property Value

SeriennummernManager

Remarks

Use this property to manage serial numbers before executing warehouse operations. Serial numbers must be set before calling Execute() on operations that require them.

Note: Only warehouses with serial number management enabled will accept serial numbers. The number of serial numbers must exactly match the quantity being booked.

Methods

Dispose()

Releases unmanaged resources.

public void Dispose()

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Execute(LagerAbgang)

Führt einen Abgang gemäß Konfiguration aus.

public void Execute(LagerAbgang cfg)

Parameters

cfg LagerAbgang

Execute(LagerEinbuchung)

Führt eine Einbuchung gemäß Konfiguration aus.

public void Execute(LagerEinbuchung cfg)

Parameters

cfg LagerEinbuchung

Execute(LagerUmbuchung)

Führt eine Umbuchung gemäß Konfiguration aus.

public void Execute(LagerUmbuchung cfg)

Parameters

cfg LagerUmbuchung

~LagerContext()

protected ~LagerContext()