clsImportBPAuditTemplate Class |
MS Access Table: MARIProjektImportWorkItemBPAuditTemplate. See clsImportBase.eImportMode relative tables in MS-Access.
Use MPInterface.bImportBPAuditTemplate(clsImportBPAuditTemplate, clsImportBaseeImportMode) to import. MSAccess Import Table: MARIProjectImportWorkItemBPAuditTemplate.
Namespace: MARIInterface
The clsImportBPAuditTemplate type exposes the following members.
| Name | Description | |
|---|---|---|
| clsImportBPAuditTemplate | Initializes a new instance of the clsImportBPAuditTemplate class |
| Name | Description | |
|---|---|---|
| AuditTemplateDocNum |
INT (4) Visible ID based on Number Series. Will be created automatically. Leave this blank.
| |
| AuditTemplateDocSeries |
INT (4) ID of the number series
| |
| AuditTemplateID |
Internal ID of the audit template INT (4) Unique ID (via MPTAN). In access can be <100000 to align the positiosn
| |
| AuditTemplateStatus |
INT (4) Status (depending on type) 1=Active,2=InActive. See clsImportBPAuditTemplateeAuditTemplateStatus for details.
| |
| CheckList | CheckList (int) | |
| CycleType | Cycle Type: Defines the recuurent cycle for the Audit Plans. Define as standard. Can be overwritten in the Plan | |
| CycleValue | Cycle Value = Number of month. For standard CycleType this value is set automatically | |
| Matchcode |
NVARCHAR (50) Name of the Audit Template
| |
| 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).) |
public int CreateBPAuditTemplate(string sAuditTemplate) { Log($"CreateBPAuditTemplate({sAuditTemplate})"); clsImportBPAuditTemplate oBPAuditTemplate = new clsImportBPAuditTemplate(); oBPAuditTemplate.Matchcode = sAuditTemplate; oBPAuditTemplate.AuditTemplateStatus = clsImportBPAuditTemplate.eAuditTemplateStatus.InActive; oBPAuditTemplate.CycleType = clsImportWorkItemServicePlanTemplate.ePlanTemplateCycleType.Yearly; oBPAuditTemplate.WorkDescription = "This is a Audit Template Example."; if (!oMPInterface.bImportBPAuditTemplate(oBPAuditTemplate, clsImportBase.eImportMode.ValidateAndImport)) { // oTimeKeepingLine.oErrors contains all Errors LogFail(oMPInterface.oErrors.PrintErrors()); return 0; } else { Log($"CreateBPAuditTemplate: {oBPAuditTemplate.AuditTemplateID}"); return oBPAuditTemplate.AuditTemplateID; } }