Click or drag to resize

clsImportBPAuditTask Class

An audit task can be used to store the status of a business partner audit.

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

Use MPInterface.bImportBPAuditTask(clsImportBPAuditTask, clsImportBaseeImportMode) to import.

MS Access Table: MARIProjektImportWorkItemBPAuditTask.

Inheritance Hierarchy
SystemObject
  MARIInterfaceclsImportBase
    MARIInterfaceclsImportBPAuditTask

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

The clsImportBPAuditTask type exposes the following members.

Constructors
  NameDescription
Public methodclsImportBPAuditTask
Initializes a new instance of the clsImportBPAuditTask class
Top
Properties
  NameDescription
Public propertyAuditTaskDocNum
WorkItemDocNum INT (4) Visible ID based on Number Series. Will be created automatically. Leave this blank.
Public propertyAuditTaskDocSeries
INT (4) ID of the number series
Public propertyAuditTaskID
Internal TaskID INT (4) Unique ID (via MPTAN). In access can be <100000 to align the positiosn
Public propertyAuditTaskStatus
INT (4) Status (depending on type) 1:Request,2=Active,3=Completed. See eTaskStatus for details.
Public propertyCardCode
Business Partner
Public propertyCheckList
CheckList (int)
Public propertyCompanyId
SMALLINT (2) Link to company (SBO Database)
Public propertyContractID
INT (4) Link to Contract (Plan, Task)
Public propertyContractPositionID
INT (4) 0=New positions as "at cost", Link to fixed price position
Public propertyEndDateTime
Datetime (8) End of Task with hh:mm
Public propertyMatchcode
NVARCHAR (50) Name of the Audit Task
Public propertyPhaseID
INT (4) Link to Phase (Plan, Task)
Public propertyProject
NVARCHAR (20) Link to Project (Plan, Task)
Public propertyStartDateTime
Datetime (8) Start of task with hh:mm
Top
Remarks
Examples
Create a audit task linked to a business partner
public int CreateBPAuditTask(string sAuditTask) {
    clsImportBPAuditTask oBPAuditTask = new clsImportBPAuditTask();

    oBPAuditTask.CompanyId = 1;
    oBPAuditTask.CardCode = "10003";
    oBPAuditTask.Matchcode = sAuditTask;

    if (!oMPInterface.bImportBPAuditTask(oBPAuditTask, clsImportBase.eImportMode.ValidateAndImport)) {
        // oTimeKeepingLine.oErrors contains all Errors
        throw new Exception(oMPInterface.oErrors.PrintErrors());
    } else {
        return oBPAuditTask.AuditTaskID;
    }
}
See Also