clsImportQualityProcess Class |
Use MPInterface.bImportQualityProcess(clsImportQualityProcess, clsImportBaseeImportMode) to import.
Namespace: MARIInterface
The clsImportQualityProcess type exposes the following members.
| Name | Description | |
|---|---|---|
| clsImportQualityProcess | Initializes a new instance of the clsImportQualityProcess class |
| Name | Description | |
|---|---|---|
| bSaveRSToMDB | (Overrides clsImportBasebSaveRSToMDB(MPInterface, DataRow, DataTable).) |
| Name | Description | |
|---|---|---|
| AutoReportSaveModeCSO | 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 | |
| AutoReportSaveModeEquipment | 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 | |
| DefaultStatus | DefaultStatus | |
| FolderIDCSO | 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) | |
| FolderIDEquipment | Link a folder in the MARIProject Document Management to store manually or automtically the result Crystal Report PDF when saving results. (For equipment) | |
| Matchcode | Matchcode | |
| PictureArrayOfBytes |
The picture can be transfered via a byte array instead of a PictureFileName.
| |
| PictureFileName | 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 | |
| PictureID | Link one picture or drawing to ilustrate the quality process. See also clsImportQualityProcessQuestion.QuestionPictureID to store a picture for each question. | |
| QEmployee1 | First responsible for the quality process | |
| QEmployee2 | Second responsible for the quality process | |
| QualityProcess | internal unique ID | |
| QualityProcessType | Type the quality process/checklist is used for. See clsImportQualityProcesseQualityProcessType | |
| QualitySteps | QualitySteps to be taken. Only used for Quality Process for logistic | |
| ReportIDCSO | Link a Crystal Reports design to print the results for this QualityProcess linked to a customer service object | |
| ReportIDEquipment | Link a Crystal Reports design to print the results for this QualityProcess linked to a equipment master. | |
| SignatureModeCSO | 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 | |
| SignatureModeEquipment | 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 | |
| SignatureSourceCSO | stores the employee number, when the Signature mode uses a fixed employee (for tested customer service objects) | |
| SignatureSourceEquipment | stores the employee number, when the Signature mode uses a fixed employee (for tested equipment) |
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; } }
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; } }