Click or drag to resize

clsImportTrainingParticipant Class

Import for table MPTrainingParticipant: Training Module: List Of Participants
Inheritance Hierarchy
SystemObject
  MARIInterfaceclsImportBase
    MARIInterfaceclsImportTrainingParticipant

Namespace:  MARIInterface
Assembly:  MARIInterface (in MARIInterface.dll) Version: 8.0.0.100
Syntax
public class clsImportTrainingParticipant : clsImportBase

The clsImportTrainingParticipant type exposes the following members.

Constructors
  NameDescription
Public methodclsImportTrainingParticipant
Initializes a new instance of the clsImportTrainingParticipant class
Top
Properties
  NameDescription
Public propertyA0AddressName1
Public propertyA0AddressName2
Public propertyA0AddressName3
Public propertyA0Block
Public propertyA0Building
Public propertyA0CardCode
Public propertyA0City
Public propertyA0Country
Public propertyA0County
Public propertyA0Name1
Public propertyA0Name2
Public propertyA0Name3
Public propertyA0Salutation
Public propertyA0State
Public propertyA0Street
Public propertyA0StreetNumber
Public propertyA0ZIP
Public propertyBirthday
Birthday
Public propertyBlockCommunicationEMail
Block Marketing communication eMai.

On ParticipantType=FreeParticipant it is read as first bit from A0AdressLineNum

On ParticipantType=Customer it is read from SELECT Select FROM CPRC CntctCode= AND CommMeanID=-1

Public propertyBlockCommunicationFax
Block Marketing communication.

On ParticipantType=FreeParticipant it is read as second bit from A0AdressLineNum

On ParticipantType=Customer it is read from SELECT Select FROM CPRC CntctCode= AND CommMeanID=-2

Public propertyCardCode
Public propertyCellular
Public propertyCompanyId
Internal company id linked to the MARIProject database (default 1). Required only for eParticipantType=Customer
Public propertyContactPerson
Public propertyEmail
Public propertyEmployeeNumber
Public propertyFirstName
Public propertyGroup1
Group1
Public propertyGroup2
Group2
Public propertyGroup3
Group3
Public propertyIdentifier
Identifier additional code as a reference. Is not used at the momen.
Public propertyLastName
Public propertyMatchcode
Public propertyMiddleName
Public propertyNotes1
Notes1
Public propertyNotes2
Notes2
Public propertyParticipantNumber
Participant Number: Kee field
Public propertyParticipantType
Public propertyPhone
Public propertyPosition
Public propertyProfession
Public propertySalutation2
Public propertySex
Sex M, F
Public propertyTelefax
Telefax
Top
Methods
Fields
  NameDescription
Public fieldSysMasterProperties
Link this Trainint participant to one or many SysMaster Properties. Having the ID in the list means, that the property is true.

See the clsImportSysMasterProperties descriotion to create new properites.

Alle selected properties must have a UsageFlag of ClassID438ParticipantFree.

Top
Remarks
Examples
Create a participant
private string CreateParticipant(clsImportTrainingParticipant NewParticipant) {
    if (!oMPInterface.bImportTrainingParticipant(NewParticipant, MARIInterface.clsImportBase.eImportMode.ValidateAndImport)) {
        LogFail(oMPInterface.oErrors.PrintErrors());
        LogFail($"ParticipantNumber: {NewParticipant.ParticipantNumber}");
        return null;
    } else {
        return NewParticipant.ParticipantNumber;
    }
}

private clsImportTrainingParticipant NewParticipantSample() {
    Log($"User check (bIsInterfaceInitiated): Login {oEngine.oBenutzer.sLoginName}, Active: {oEngine.oBenutzer.bBenutzerAktiv}");
    clsImportTrainingParticipant oNewPart = new clsImportTrainingParticipant();
    oNewPart.ParticipantNumber = oMPInterface.sGetNewParticipantNumber(); //number will be created            
    oNewPart.ParticipantType = clsImportTrainingParticipant.eParticipantType.FreeParticipant;
    oNewPart.Matchcode = "Peter Test";
    oNewPart.FirstName = "Peter";
    oNewPart.LastName = "Test";
    oNewPart.A0Salutation = "Mr.";
    oNewPart.Salutation2 = "Dear Peter";
    oNewPart.Email = "p.test@company.com";
    Log($"New participant - ParticipantNumber: {oNewPart.ParticipantNumber}");
    return oNewPart;
}
See Also