/// <summary> /// Matchings the criteria for row. /// </summary> /// <param name="row">The row.</param> /// <returns></returns> public ConfigTimelineCriteria MatchingCriteriaForRow(UPCRMResultRow row) { foreach (ConfigTimelineCriteria crit in this.TimelineInfoArea.ColorCriteria) { string value = row.RawValueForFieldIdInfoAreaIdLinkId(crit.FieldId, this.TimelineInfoArea.InfoAreaId, this.TimelineInfoArea.LinkId); if (!string.IsNullOrEmpty(value)) { bool checkresult = UPCRMField.ResultForValue(value, crit.CompareOperator, crit.CompareValue, crit.CompareValueTo, false, false, false); if (checkresult) { return(crit); } } } return(null); }
/// <summary> /// Results for value pattern. /// </summary> /// <param name="value">The value.</param> /// <param name="fieldValue">The field value.</param> /// <returns>the result of the value pattern</returns> public bool ResultForValuePattern(string value, string fieldValue) { return(UPCRMField.ResultForValue(value, this.Compare, fieldValue, null, this.numericEmptyCheck, this.boolEmptyCheck, this.EmptyFieldValue)); }