Пример #1
0
        public override void Process(ReportProcessorArgs args)
        {
            if (args.ResultTableForView.Rows.Count == 0)
            {
                return;
            }

            var minLabelValue = double.Parse(ConfigurationManager.AppSettings["MinValueToShowTag"] ?? "80");
            var columnName    = AIFacet.FacetName + AIFacet._RESULT;

            args.ResultTableForView.Columns.Add(new ViewField <string>(columnName).ToColumn());

            foreach (DataRow row in args.ResultTableForView.Rows)
            {
                row[columnName] = _contact.GetAIResult(new Guid(row["ContactId"].ToString()), minLabelValue);
            }
        }
Пример #2
0
 public string GetAiResult(Guid id)
 {
     return(_contacts.GetAIResult(id));
 }