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 PollData(IEnumerable keys) { return DATA.PollData(keys); } public string GetConfigFileContent(string fileName) { return CONFIG.GetFileContent(fileName); } public Dictionary PollConfig(IEnumerable 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 QueryDBEvent(string sql) { return EV.QueryDBEvent(sql); } public Dictionary PollHardwareConfig(IEnumerable keys) { return CONFIG.PollConfig(keys); } public List GetHistoryRecipeList(DateTime from, DateTime to) { return DataLogManager.Instance.GetHistoryRecipeList(from, to); } public List GetHistoryDataLogList(DateTime from, DateTime to, string recipeName, string lot) { return DataLogManager.Instance.GetHistoryDataLogList(from, to, recipeName, lot); } public List GetHistoryData(IEnumerable keys, string recipeRunGuid) { return DataLogManager.Instance.GetHistoryData(keys, recipeRunGuid); } public List GetHistoryLeakCheck() { return LeakCheckResultManager.Instance.GetHistoryLeakCheck(); } } }