Click or drag to resize

clsImportQualification Class

Imports a qualification master data. Qualifications will be used to link them via qualification plans (clsImportQualificationPlan) to employees and plan recurring qualification tasks (clsImportQualificationTask).

MS Access Table: MARIProjektImportQualifications. See clsImportBase.eImportMode relative tables in MS-Access.

Use MPInterface.bImportQualification(clsImportQualification, clsImportBaseeImportMode) to import. MSAccess Import Table: MARIProjektImportWorkItemQualification.

Inheritance Hierarchy
SystemObject
  MARIInterfaceclsImportBase
    MARIInterfaceclsImportQualification

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

The clsImportQualification type exposes the following members.

Constructors
  NameDescription
Public methodclsImportQualification
Initializes a new instance of the clsImportQualification class
Top
Properties
  NameDescription
Public propertyCheckList
CheckList (int)
Public propertyCycleType
Cycle Type: Defines the recuurent cycle for the QualificationPlans. Define as standard. Can be overwritten in the Plan
Public propertyCycleValue
Cycle Value = Number of month. For standard CycleType this value is set automatically
Public propertyCode exampleGroupId
Group value to manage many different qualifications by group.

See clsImportGroupseGroupType.Qualification = 10600

GroupID
Public propertyMatchcode
NVARCHAR (50) Name of the Qualificaion
Public propertyQualificationDocNum
INT (4) Visible ID based on Number Series. Will be created automatically. Leave this blank.
Public propertyQualificationDocSeries
INT (4) ID of the number series
Public propertyQualificationID
Internal ID of the qualification INT (4) Unique ID (via MPTAN). In access can be <100000 to align the positiosn
Public propertyQualificationStatus
INT (4) Status (depending on type) 1:Request,2=Active,3=CloseReadyToInvoice,4=ClosedInvoiced. See clsImportQualificationeQualificationStatus for details.
Public propertyWorkDescription
NTEXT (0) Memo What to do
Public propertyWorkNotes
NTEXT (0) Memo for notes on site
Top
Methods
  NameDescription
Public methodGetListUserDefinedFields
Returns the user defined field definition for all dimension "WorkItem: Service Plan Template, Service Plan, Service Task, etc.". The fields have to be defined directly in MARIProject.
(Overrides clsImportBaseGetListUserDefinedFields(MPInterface).)
Top
Remarks
Examples
Create a qualification to be linked to employees
private int CreateQualificationMaster(string sQualification, int GroupID) {

    string sErrordetails;
    clsImportQualification NewQualification = new clsImportQualification();
    NewQualification.Matchcode = sQualification;
    NewQualification.CycleType = clsImportWorkItemServicePlanTemplate.ePlanTemplateCycleType.Yearly;
    NewQualification.GroupId = GroupID; // SELECT GroupID FROM MARIGroups WHERE GroupType=10600 

    if (oMPInterface.bImportQualification(NewQualification, clsImportBase.eImportMode.ValidateAndImport)) {
        return NewQualification.QualificationID;
    } else {

        sErrordetails = oMPInterface.oErrors.PrintErrors(true);
        Assert.False(true, sErrordetails);
        return 0;
    }
}
See Also