Class LagerContext
Represents a context for performing warehouse operations. Disposable to ensure proper resource management. Use within a using statement.
public class LagerContext : ILagerContext, IDisposable
- Inheritance
-
objectLagerContext
- 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
autoLagerAutoLagerThe underlying AutoLager COM object.
Properties
Seriennummern
Gets the serial number manager for handling serial numbers in warehouse operations.
public SeriennummernManager Seriennummern { get; }
Property Value
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
disposingbooltrueto release both managed and unmanaged resources;falseto release only unmanaged resources.
Execute(LagerAbgang)
Führt einen Abgang gemäß Konfiguration aus.
public void Execute(LagerAbgang cfg)
Parameters
cfgLagerAbgang
Execute(LagerEinbuchung)
Führt eine Einbuchung gemäß Konfiguration aus.
public void Execute(LagerEinbuchung cfg)
Parameters
cfgLagerEinbuchung
Execute(LagerUmbuchung)
Führt eine Umbuchung gemäß Konfiguration aus.
public void Execute(LagerUmbuchung cfg)
Parameters
cfgLagerUmbuchung
~LagerContext()
protected ~LagerContext()