clsImportQualityProcessQuestion Class |
Import for table MPQualityProcessQuestions: QualityProcess Definition Questionnaire. Import first clsImportQualityProcess.
MS Access table MARIProjektImportQualityProcessQuestions. See clsImportBase.eImportMode relative tables in MS-Access.
Use MPInterface.bImportQualityProcessQuestion(clsImportQualityProcessQuestion, clsImportBaseeImportMode) to import.
Namespace: MARIInterface
The clsImportQualityProcessQuestion type exposes the following members.
| Name | Description | |
|---|---|---|
| clsImportQualityProcessQuestion | Initializes a new instance of the clsImportQualityProcessQuestion class |
| Name | Description | |
|---|---|---|
| bSaveRSToMDB | (Overrides clsImportBasebSaveRSToMDB(MPInterface, DataRow, DataTable).) |
| Name | Description | |
|---|---|---|
| AnswerLength | AnswerLength. Only applies for text types | |
| AnswerType | AnswerType: Value type for the result. 1=Bool,4=Int32,5=Currency/Float,8=Date,10=VARCHAR. See eAnswerType for details. | |
| DependencyID | DependencyID Makes a new question dependend on another question. | |
| DependencyType | Diside the visibility of a question based on the eDependencyType. | |
| DestinationField | DestinationField User Defined field in the customer service object table to store the result in this field. USER_Field1 | |
| HandlingOfLimits | ||
| QualityProcess | Link to the quality process or check list. See clsImportQualityProcess | |
| QualityProcessQuestion | Internal ID for the question. Will be created replaced during the import with the number in MARIProject. | |
| QuestionInstructions1 | This text will be shown, when the object is tested for the first time (initial test) | |
| QuestionInstructions2 | This text (hint) is shown, then the object is tested a second time. | |
| QuestionModeApprovalFirst | QuestionMode: Show the question on the initial test approval | |
| QuestionModeApprovalRepeat | QuestionMode: Show the question after the initial approval | |
| QuestionModeQuestionFirst | QuestionMode: Show the question on a initial test | |
| QuestionModeQuestionRepeat | QuestionMode: Show the question after the initial test | |
| QuestionOrder | QuestionOrder. Will be handled automatically. New questions will be added at the end. | |
| QuestionPictureArrayOfBytes |
The picture can be transfered via a byte array instead of a QuestionPictureFileName.
| |
| QuestionPictureFileName | 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 | |
| QuestionPictureID | A picture or drawing can ilustrate information for the selected question. See also clsImportQualityProcess.PictureID to link a picture or drawing to the check list. | |
| QuestionText | The question text. | |
| QuestionVisible | Questions can be hided, when not used any more. A question cannot be deleted, because historic results may be linked. | |
| RetestOption | Defines the visibility of the question, when the object is tested again. eRetestOption for details. | |
| Unit | Unit of measurnment: kW, kmh mi/h... | |
| ValueListMemo | ValueListMemo: For ComboBoxes use a colon seperated list with two columns; First the value, second the visible: A;ValueA;B;ValueB | |
| ValueRangeFrom | Allowed value the results can be used. Only for eAnswerType integer or currency | |
| ValueRangeTo | Allowed value the results can be used. Only for eAnswerType integer or currency | |
| ViewFieldName | Name for the field to be used in the automaticly created view for Reports on results. | |
| VisibilityOfLimits |
private void CreateQuestion(int lCheckList, string sQuestionText, clsImportQualityProcessQuestion.eAnswerType AnswerType) { clsImportQualityProcessQuestion NewQuestion = new clsImportQualityProcessQuestion(); NewQuestion.QualityProcess = lCheckList; NewQuestion.QuestionText = sQuestionText; NewQuestion.AnswerType = AnswerType; NewQuestion.QuestionModeQuestionFirst = true; NewQuestion.QuestionModeQuestionRepeat = true; NewQuestion.QuestionModeApprovalFirst = false; NewQuestion.QuestionModeApprovalRepeat = false; NewQuestion.QuestionVisible = true; NewQuestion.Unit = "mm"; if (!oMPInterface.bImportQualityProcessQuestion(NewQuestion, MARIInterface.clsImportBase.eImportMode.ValidateAndImport)) { //NewEquipmentCategory.oErrors contains all Errors Assert.False(true, oMPInterface.oErrors.PrintErrors()); } else { string sMessage = "New Quality Process Question. Unique key = " + NewQuestion.QualityProcessQuestion.ToString(); } }
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; } }
View: MARIQualityProcessQuestions: :Table: MPQualityProcessQuestions