예제 #1
0
 public ReportTable(IKpi kpi, List <ClassInfo> classInfos, string firstColumnAlignment)
 {
     this.kpi                  = kpi;
     this.classInfos           = classInfos;
     this.firstColumnAlignment = firstColumnAlignment;
     this.departments          = classInfos.ConvertAll(ci => ci.department).Distinct().ToList();
     BuildComponents();
 }
예제 #2
0
 private Kpi CreateKpiGaugeList(IKpi kpi)
 {
     if (kpi != null)
     {
         return new Kpi(
             kpi.Id,
             kpi.Name,
             kpi.Guid,
             kpi.FavorableDirection,
             kpi.TargetValue,
             kpi.YellowValue,
             kpi.YellowIconURL,
             kpi.YellowIconID,
             kpi.GreenValue,
             kpi.GreenIconURL,
             kpi.GreenIconID,
             kpi.RedIconURL,
             kpi.RedIconID,
             kpi.MetricGuid,
             kpi.FilterDefinition);
     }
     return null;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KpiSelectorViewModel"/> class.
 /// </summary>
 /// <param name="kpi">The kpi.</param>
 /// <param name="parent">The parent.</param>
 public KpiSelectorViewModel(IKpi kpi, ProcessKpiListGadgetViewModel parent)
 {
     _kpi = kpi;
     _parent = parent;
 }