public IEnumerable <DataPoint> TrendP(string FactoryName, DateTime start, DateTime end)
        {
            try
            {
                List <string> taglist = OpReportUtils.GetPList(FactoryName);

                List <DataPoint> result = new List <DataPoint>();

                if (taglist.Count > 0)
                {
                    result = ScadaHisDao.AnalogSummaryHistoryCyclic(start, end, 30, taglist.ToArray(), ScadaHisDao.SummaryType.Average);
                }

                return(result);
            }
            catch { return(new List <DataPoint>()); }
        }
 public IEnumerable <DataPoint> Minimum([FromUri] DateTime start, [FromUri] DateTime end, [FromUri] int CycleMinutes, [FromBody] string[] TagNameList)
 {
     return(ScadaHisDao.AnalogSummaryHistoryCyclic(start, end, CycleMinutes, TagNameList, ScadaHisDao.SummaryType.Minimum));
 }