clsImportQualityProcessQuestionLimits Class |
Limit values for QualityProcessQuestions linked to an equipment category or an equipment category business partner catalog.
The Quality Checklist and the Questions must exist.
MS Access Table: MARIProjektImportQualityProcessQuestionLimits. See clsImportBase.eImportMode relative tables in MS-Access.
Use MPInterface.bImportQualityProcessQuestionLimits(clsImportQualityProcessQuestionLimits, clsImportBaseeImportMode) to import.
Namespace: MARIInterface
The clsImportQualityProcessQuestionLimits type exposes the following members.
| Name | Description | |
|---|---|---|
| clsImportQualityProcessQuestionLimits | Initializes a new instance of the clsImportQualityProcessQuestionLimits class |
| Name | Description | |
|---|---|---|
| EquipmentCategory | Equipment Category. Mandatory field | |
| EquipmentCategoryCardCode | Business Partner to link the limits to a business partner. Only for LinkType = LinkToEquipmentCategoryBP(469). | |
| EquipmentCategoryCardCodeCompany | Company id for the Business Partner. Only for LinkType = LinkToEquipmentCategoryBP(469). | |
| LimitMaxValue | Max value for the question result. | |
| LimitMaxValueUse | Boolean to use the Max Value (because 0 can also be a Max Value) | |
| LimitMinValue | Min value for the question result. | |
| LimitMinValueUse | Boolean to use the Min Value (because 0 can also be a Min Value) | |
| LinkType | Link type to link the limits. See eLinkType. | |
| QualityProcess | QualityProcess. Mandatory field | |
| QualityProcessQuestion | QualityProcessQuestion. Mandatory field | |
| QuestionLimitID |
Internal Key for the limit
|
private int CreateCheckListLimit(int lCheckList) { if (lCheckList != 0) { clsImportQualityProcessQuestionLimits NewQLimit = new clsImportQualityProcessQuestionLimits(); NewQLimit.QualityProcess = lCheckList; NewQLimit.LinkType = clsImportQualityProcessQuestionLimits.eQPLimitLinkType.LinkToEquipmentCategory; NewQLimit.EquipmentCategory = lGetEquipmentCategoryByName(NAMEEQUIPMENTCAT); NewQLimit.QualityProcessQuestion = lCheckList_Question(lCheckList, NAMEOFMYQUALITYPROCESSQ1); NewQLimit.LimitMaxValueUse = true; NewQLimit.LimitMaxValue = 345.67m; if (!oMPInterface.bImportQualityProcessQuestionLimits(NewQLimit, MARIInterface.clsImportBase.eImportMode.ValidateAndImport)) { throw new Exception("CreateCheckList: " + oMPInterface.oErrors.PrintErrors()); } else { return NewQLimit.QuestionLimitID; } } else return 0; }
View: MARIWorkItem: :Table: MPWorkItem With WorkItemType=471