Click or drag to resize

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.

Inheritance Hierarchy
SystemObject
  MARIInterfaceclsImportBase
    MARIInterfaceclsImportQualityProcessQuestionLimits

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

The clsImportQualityProcessQuestionLimits type exposes the following members.

Constructors
  NameDescription
Public methodclsImportQualityProcessQuestionLimits
Initializes a new instance of the clsImportQualityProcessQuestionLimits class
Top
Fields
  NameDescription
Public fieldEquipmentCategory
Equipment Category. Mandatory field
Public fieldEquipmentCategoryCardCode
Business Partner to link the limits to a business partner. Only for LinkType = LinkToEquipmentCategoryBP(469).
Public fieldEquipmentCategoryCardCodeCompany
Company id for the Business Partner. Only for LinkType = LinkToEquipmentCategoryBP(469).
Public fieldLimitMaxValue
Max value for the question result.
Public fieldLimitMaxValueUse
Boolean to use the Max Value (because 0 can also be a Max Value)
Public fieldLimitMinValue
Min value for the question result.
Public fieldLimitMinValueUse
Boolean to use the Min Value (because 0 can also be a Min Value)
Public fieldLinkType
Link type to link the limits. See eLinkType.
Public fieldQualityProcess
QualityProcess. Mandatory field
Public fieldQualityProcessQuestion
QualityProcessQuestion. Mandatory field
Public fieldQuestionLimitID
Internal Key for the limit
Top
Remarks
Examples
Create a check list limit by equipment category
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

View: MARIWorkItemPosition: :Table: MPWorkItemPosition

See Also