コード例 #1
0
        public bool FilterForNoData(ref List<RotatedReading> rotatedReadings, ref List<string> filteredColumnList)
        {
            
            try
            {
                foreach (var item in rotatedReadings)
                {
                    var local = item;
                    foreach (PropertyInfo pi in item.GetType().GetProperties())
                    {
                        var value = pi.GetValue(local, null);
                        if (value != null)
                        {
                            if ((value.ToString().Length > 0) &&
                                (!filteredColumnList.Contains(pi.Name) && (!pi.Name.Contains("Id")) &&
                                 (!pi.Name.Contains("Name")) && (!pi.Name.Contains("Run_Date")) &&
                                 (!pi.Name.Contains("LastUpdate")) && (!pi.Name.Contains("UpdateBy"))))
                            {
                                filteredColumnList.Add(pi.Name);
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                throw new Exception("ColumnNameFilter Exception: " + ex.StackTrace);
            }

            return true;
        }
コード例 #2
0
 public RunHistoryChartDto()
 {
     Series = new List<List<string>>();
     Categorys = new List<string>();
     Readings=new List<Reading>();
 }