123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- using System;
- using System.Collections.Generic;
- using System.ServiceModel;
- using Aitex.Core.UI.ControlDataContext;
- using Aitex.Core.RT.DataCenter;
- using Aitex.Core.RT.ConfigCenter;
- using Aitex.Core.RT.Event;
- using Aitex.Triton160.Common;
- using Aitex.Triton160.Common.Interface;
- using Aitex.Triton160.RT.Module;
- namespace Aitex.Triton160.RT.WCF
- {
- [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Multiple)]
- public class QueryDataService : IQueryDataService
- {
- public Dictionary<string, object> PollData(IEnumerable<string> keys)
- {
- return DATA.PollData(keys);
- }
- public string GetConfigFileContent(string fileName)
- {
- return CONFIG.GetFileContent(fileName);
- }
- public Dictionary<string, object> PollConfig(IEnumerable<string> keys)
- {
- return CONFIG.PollConfig(keys);
- }
- public object GetData(string key)
- {
- return DATA.Poll(key);
- }
- public object GetConfig(string key)
- {
- return CONFIG.Poll(key);
- }
- public List<EventItem> QueryDBEvent(string sql)
- {
- return EV.QueryDBEvent(sql);
- }
- public Dictionary<string, object> PollHardwareConfig(IEnumerable<string> keys)
- {
- return CONFIG.PollConfig(keys);
- }
- public List<string> GetHistoryRecipeList(DateTime from, DateTime to)
- {
- return DataLogManager.Instance.GetHistoryRecipeList(from, to);
- }
- public List<DataLogItem> GetHistoryDataLogList(DateTime from, DateTime to, string recipeName, string lot)
- {
- return DataLogManager.Instance.GetHistoryDataLogList(from, to, recipeName, lot);
- }
- public List<HistoryDataItem> GetHistoryData(IEnumerable<string> keys, string recipeRunGuid)
- {
- return DataLogManager.Instance.GetHistoryData(keys, recipeRunGuid);
- }
- public List<LeakCheckResultItem> GetHistoryLeakCheck()
- {
- return LeakCheckResultManager.Instance.GetHistoryLeakCheck();
- }
- }
- }
|