Exemplo n.º 1
0
    /// <summary>
    /// Stores Attribute form data to main Edit form.
    /// </summary>
    private void StoreAttributeData()
    {
        // For attribute rule don't store validity
        ClearStoredValidityData();

        // Store contact column for attribute rule
        editForm.Data["RuleParameter"] = mSelectedAttribute.Name;

        // Store xml with where condition
        attributeFormCondition.SaveData(null);
        editForm.Data["RuleCondition"] = RuleHelper.GetAttributeCondition(attributeFormCondition.Data, attributeFormCondition.GetWhereCondition());
    }
Exemplo n.º 2
0
    /// <summary>
    /// Stores Attribute form data to main Edit form.
    /// </summary>
    private void StoreAttributeData()
    {
        // For attribute rule don't store validity
        ClearStoredValidityData();

        // Only activity rules can be recurring and have max points
        editForm.Data["RuleIsRecurring"] = false;
        editForm.Data["RuleMaxPoints"]   = null;

        // Store contact column for attribute rule
        editForm.Data["RuleParameter"] = mSelectedAttribute.Name;

        // Store xml with where condition
        attributeFormCondition.SaveData(null);
        editForm.Data["RuleCondition"] = RuleHelper.GetAttributeCondition(attributeFormCondition.Data, attributeFormCondition.GetWhereCondition());
    }