private HistoryDataCacheNotification(int intreval)
     : base("获取模拟量历史数据", intreval)
 {
     historyDataCache = HistoryDataCache.Instance;
     hourService      = ServiceFactory.Create <IJc_HourService>();
     largeDataAnalysisLastChangedService = ServiceFactory.Create <ILargeDataAnalysisLastChangedService>();
 }
        /// <summary>
        /// 计算单个测点的分析基础值
        /// </summary>
        /// <param name="pointid"></param>
        /// <returns></returns>
        private Jc_HourInfo GetHourInfoByPointID(string pointid)
        {
            Jc_HourInfo hourInfo = null;

            try
            {
                IJc_HourService   jc_HourService    = ServiceFactory.Create <IJc_HourService>();
                Jc_HourGetRequest jc_HourGetRequest = new Jc_HourGetRequest();
                jc_HourGetRequest.PointId = pointid;
                var result = jc_HourService.GetWeekAverageValueByPointId(jc_HourGetRequest);
                if (result.Data != null && result.IsSuccess)
                {
                    hourInfo = result.Data;
                }
            }
            catch (Exception ex)
            {
                LogHelper.Error("RatioAlarmProcHandle GetBasicValues Error" + ex.Message);
            }
            return(hourInfo);
        }
Exemplo n.º 3
0
 private HistoryDataCache()
 {
     hourService = ServiceFactory.Create <IJc_HourService>();
 }