Table of Contents

Class WandelnBuilder

Namespace
BpNexT.NET.Models.Wandeln
Assembly
BpNexT.NET.dll

Fluent builder for converting (Wandeln) a Vorgang from one type to another.

public class WandelnBuilder : IWandelnBuilder
Inheritance
object
WandelnBuilder
Implements

Constructors

WandelnBuilder(IBpApplication, string, int)

Creates a new WandelnBuilder for converting a Vorgang.

public WandelnBuilder(IBpApplication bpApp, string vorgangNr, int targetVorgangArt)

Parameters

bpApp IBpApplication

The BpApplication instance.

vorgangNr string

The source Vorgangsnummer to convert.

targetVorgangArt int

The target Vorgangsart number (from BEARBEITEN - PARAMETER - ARTEN).

Methods

Execute()

Executes the conversion and returns a result with the new Vorgangsnummer. Uses WandelnEx internally to retrieve the new number.

public WandelnResult Execute()

Returns

WandelnResult

A WandelnResult containing the outcome and new Vorgangsnummer.

MitAnzahlPakete(int)

Sets the number of packages for the converted Vorgang.

public WandelnBuilder MitAnzahlPakete(int anzahl)

Parameters

anzahl int

The number of packages.

Returns

WandelnBuilder

The builder instance for method chaining.

MitLieferDatum(DateTime)

Sets the delivery date for the converted Vorgang.

public WandelnBuilder MitLieferDatum(DateTime lieferDatum)

Parameters

lieferDatum DateTime

The delivery date.

Returns

WandelnBuilder

The builder instance for method chaining.

MitLieferMengeSchluessel(LieferMengeSchluessel)

Sets how delivery quantities should be handled during conversion.

public WandelnBuilder MitLieferMengeSchluessel(LieferMengeSchluessel schluessel)

Parameters

schluessel LieferMengeSchluessel

The delivery quantity handling mode.

Returns

WandelnBuilder

The builder instance for method chaining.

MitNeuerVorgangNr(string)

Sets the desired new Vorgangsnummer after conversion. If not set, the default from the Vorgangsart will be used.

public WandelnBuilder MitNeuerVorgangNr(string neueNummer)

Parameters

neueNummer string

The desired new Vorgangsnummer.

Returns

WandelnBuilder

The builder instance for method chaining.