clsImportTrainingParticipant Class |
Namespace: MARIInterface
The clsImportTrainingParticipant type exposes the following members.
| Name | Description | |
|---|---|---|
| clsImportTrainingParticipant | Initializes a new instance of the clsImportTrainingParticipant class |
| Name | Description | |
|---|---|---|
| bReadFromDB | (Overrides clsImportBasebReadFromDB(MPInterface, String).) | |
| bSaveRSToMDB | (Overrides clsImportBasebSaveRSToMDB(MPInterface, DataRow, DataTable).) |
| Name | Description | |
|---|---|---|
| SysMasterProperties |
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. |
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; }