42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using System.Collections.Generic;
|
|
using AyaNova.Biz;
|
|
using AyaNova.Models;
|
|
|
|
|
|
namespace AyaNova.KPI
|
|
{
|
|
internal static class KPIFactory
|
|
{
|
|
|
|
//Instantiate list object specified from type
|
|
internal static IAyaKPI GetAyaKPI(string name)
|
|
{
|
|
switch (name)
|
|
{
|
|
|
|
case "WorkOrderItemLaborQuantitySummary":
|
|
return new WorkOrderItemLaborQuantitySummary() as IAyaKPI;
|
|
case "WorkOrderUnscheduledOpenList":
|
|
return new WorkOrderUnscheduledOpenList() as IAyaKPI;
|
|
case "CSROpenList":
|
|
return new CSROpenList() as IAyaKPI;
|
|
|
|
default:
|
|
throw new System.NotImplementedException($"KPI {name} NOT IMPLEMENTED");
|
|
|
|
}
|
|
//return null;
|
|
}
|
|
|
|
//List all the KPI types available
|
|
internal static List<string> GetListOfAllKPI()
|
|
{
|
|
List<string> ret = new List<string>();
|
|
|
|
ret.Add("WorkOrderItemLaborQuantitySummary");
|
|
ret.Add("WorkOrderUnscheduledOpenList");
|
|
|
|
return ret;
|
|
}
|
|
}//eoc
|
|
}//eons |