clsImportQualification Class |
MS Access Table: MARIProjektImportQualifications. See clsImportBase.eImportMode relative tables in MS-Access.
Use MPInterface.bImportQualification(clsImportQualification, clsImportBaseeImportMode) to import. MSAccess Import Table: MARIProjektImportWorkItemQualification.
Namespace: MARIInterface
The clsImportQualification type exposes the following members.
| Name | Description | |
|---|---|---|
| clsImportQualification | Initializes a new instance of the clsImportQualification class |
| Name | Description | |
|---|---|---|
| CheckList | CheckList (int) | |
| CycleType | Cycle Type: Defines the recuurent cycle for the QualificationPlans. Define as standard. Can be overwritten in the Plan | |
| CycleValue | Cycle Value = Number of month. For standard CycleType this value is set automatically | |
| GroupId |
Group value to manage many different qualifications by group.
See clsImportGroupseGroupType.Qualification = 10600 GroupID | |
| Matchcode |
NVARCHAR (50) Name of the Qualificaion
| |
| QualificationDocNum |
INT (4) Visible ID based on Number Series. Will be created automatically. Leave this blank.
| |
| QualificationDocSeries |
INT (4) ID of the number series
| |
| QualificationID |
Internal ID of the qualification INT (4) Unique ID (via MPTAN). In access can be <100000 to align the positiosn
| |
| QualificationStatus |
INT (4) Status (depending on type) 1:Request,2=Active,3=CloseReadyToInvoice,4=ClosedInvoiced. See clsImportQualificationeQualificationStatus for details.
| |
| WorkDescription |
NTEXT (0) Memo What to do
| |
| WorkNotes |
NTEXT (0) Memo for notes on site
|
| Name | Description | |
|---|---|---|
| GetListUserDefinedFields |
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).) |
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; } }