Click or drag to resize

clsImportQualityProcess Class

Import for table MPQualityProcess: QualityProcess Definition for logistic (goods receipts or goods delivery) and for the service module as check lists. See also the import of questions with clsImportQualityProcessQuestion and clsImportQualityProcessQuestionLimits. MS Access table MARIProjektImportQualityProcess. See clsImportBase.eImportMode relative tables in MS-Access.

Use MPInterface.bImportQualityProcess(clsImportQualityProcess, clsImportBaseeImportMode) to import.

Inheritance Hierarchy
SystemObject
  MARIInterfaceclsImportBase
    MARIInterfaceclsImportQualityProcess

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

The clsImportQualityProcess type exposes the following members.

Constructors
  NameDescription
Public methodclsImportQualityProcess
Initializes a new instance of the clsImportQualityProcess class
Top
Methods
Fields
  NameDescription
Public fieldAutoReportSaveModeCSO
Defines the process of document creation, when saving the results. (auto creation of crystal report pdf and storing into the Folder Mechanism) (for tested customer service objects). See clsImportQualityProcesseAutoPrintReportSaveMode
Public fieldAutoReportSaveModeEquipment
Defines the process of document creation, when saving the results. (auto creation of crystal report pdf and storing into the Folder Mechanism) (for tested equipment). See clsImportQualityProcesseAutoPrintReportSaveMode
Public fieldDefaultStatus
DefaultStatus
Public fieldFolderIDCSO
Link a folder in the MARIProject Document Management to store manually or automtically the result Crystal Report PDF when saving results. (For customer service objects)
Public fieldFolderIDEquipment
Link a folder in the MARIProject Document Management to store manually or automtically the result Crystal Report PDF when saving results. (For equipment)
Public fieldMatchcode
Matchcode
Public fieldPictureArrayOfBytes
The picture can be transfered via a byte array instead of a PictureFileName.
Public fieldPictureFileName
Linking a file name, will load this file into the database. The file content has to be accessable from the import process.

The picture content is stored in: View: MARIPictures : : Table: MPBilder

Public fieldPictureID
Link one picture or drawing to ilustrate the quality process. See also clsImportQualityProcessQuestion.QuestionPictureID to store a picture for each question.
Public fieldQEmployee1
First responsible for the quality process
Public fieldQEmployee2
Second responsible for the quality process
Public fieldQualityProcess
internal unique ID
Public fieldQualityProcessType
Public fieldQualitySteps
QualitySteps to be taken. Only used for Quality Process for logistic
Public fieldReportIDCSO
Link a Crystal Reports design to print the results for this QualityProcess linked to a customer service object
Public fieldReportIDEquipment
Link a Crystal Reports design to print the results for this QualityProcess linked to a equipment master.
Public fieldSignatureModeCSO
To integrated a signature picture. this mode defines the source. (From the user storing the result, from a fixed user) (for tested customer service objects). See clsImportQualityProcesseSignatureMode
Public fieldSignatureModeEquipment
To integrated a signature picture. this mode defines the source. (From the user storing the result, from a fixed user) (for tested equipment). See clsImportQualityProcesseSignatureMode
Public fieldSignatureSourceCSO
stores the employee number, when the Signature mode uses a fixed employee (for tested customer service objects)
Public fieldSignatureSourceEquipment
stores the employee number, when the Signature mode uses a fixed employee (for tested equipment)
Top
Remarks
Examples
Create a new checklist
private int CreateCheckList() {
    clsImportQualityProcess NewQProcess = new clsImportQualityProcess();
    NewQProcess.QualityProcessType = clsImportQualityProcess.eQualityProcessType.QualityProcessService;
    NewQProcess.Matchcode = NAMEOFMYQUALITYPROCESS;
    if (!oMPInterface.bImportQualityProcess(NewQProcess, MARIInterface.clsImportBase.eImportMode.ValidateAndImport)) {
        throw new Exception("CreateCheckList: " + oMPInterface.oErrors.PrintErrors());
    } else {
        string sMessage = "New Quality Process Created. Unique key = " + NewQProcess.QualityProcess.ToString();
        return NewQProcess.QualityProcess;
    }
}
Create Questions and Checklist for qualification tasks
int lChecklist, lQuestion1, lQuestion2, lQualificationPlan;

private void CreateQualificationCheckListAndQuestions(string CheckListName) {
    lChecklist = CreateQualificationCheckList(CheckListName);
    lQuestion1 = CreateChecklistQuestion(lChecklist, "Quality of training (school grades)", clsImportQualityProcessQuestion.eAnswerType.AnswerTypeInteger32Bit);
    lQuestion2 = CreateChecklistQuestion(lChecklist, "Quality of facility (school grades)", clsImportQualityProcessQuestion.eAnswerType.AnswerTypeInteger32Bit);
}

private int CreateQualificationCheckList(string CheckListName) {
    clsImportQualityProcess NewCheckList = new clsImportQualityProcess();
    NewCheckList.QualityProcessType = clsImportQualityProcess.eQualityProcessType.EmployeeQualification;
    NewCheckList.Matchcode = CheckListName;

    if (oMPInterface.bImportQualityProcess(NewCheckList, clsImportBase.eImportMode.ValidateAndImport)) {
        return NewCheckList.QualityProcess;
    } else {
        string sErrordetails;
        sErrordetails = oMPInterface.oErrors.PrintErrors(true);
        Assert.False(true, sErrordetails);
        return 0;
    }
}

private int CreateChecklistQuestion(int lQualityProcess, string sQuestion, clsImportQualityProcessQuestion.eAnswerType nAnswerType) {
    clsImportQualityProcessQuestion NewQuestion = new clsImportQualityProcessQuestion();
    NewQuestion.QualityProcess = lQualityProcess;
    NewQuestion.QuestionText = sQuestion;
    NewQuestion.QuestionModeQuestionFirst = true;
    NewQuestion.QuestionVisible = true;
    NewQuestion.AnswerType = nAnswerType;

    if (oMPInterface.bImportQualityProcessQuestion(NewQuestion, clsImportBase.eImportMode.ValidateAndImport)) {
        return NewQuestion.QualityProcessQuestion;
    } else {
        string sErrordetails;
        sErrordetails = oMPInterface.oErrors.PrintErrors(true);
        Assert.False(true, sErrordetails);
        return 0;
    }
}
See Also