using System; using System.Collections.Generic; using Aitex.Core.RT.Event; using Aitex.Core.UI.ControlDataContext; using Aitex.Core.WCF; using Aitex.Triton160.Common; using Aitex.Triton160.Common.Interface; namespace Aitex.Triton160.UI.WCF { public class QueryDataServiceClient : ServiceClientWrapper, IQueryDataService { public QueryDataServiceClient() : base("Client_IQueryDataService", "QueryDataService") { } public Dictionary PollData(IEnumerable keys) { Dictionary result = null; Invoke(svc => { result = svc.PollData(keys); }); return result; } public string GetConfigFileContent(string fileName) { string result = null; Invoke(svc => { result = svc.GetConfigFileContent(fileName); }); return result; } public Dictionary PollConfig(IEnumerable keys) { Dictionary result = null; Invoke(svc => { result = svc.PollConfig(keys); }); return result; } public object GetData(string key) { object result = null; Invoke(svc => { result = svc.GetData(key); }); return result; } public object GetConfig(string key) { object result = null; Invoke(svc => { result = svc.GetConfig(key); }); return result; } public List QueryDBEvent(string sql) { List result = null; Invoke(svc => { result = svc.QueryDBEvent(sql); }); return result; } public Dictionary PollHardwareConfig(IEnumerable keys) { Dictionary result = null; Invoke(svc => { result = svc.PollHardwareConfig(keys); }); return result; } public List GetHistoryRecipeList(DateTime from, DateTime to) { List result = null; Invoke(svc => { result = svc.GetHistoryRecipeList(from, to); }); return result; } public List GetHistoryDataLogList(DateTime from, DateTime to, string recipeName, string lot) { List result = null; Invoke(svc => { result = svc.GetHistoryDataLogList(from, to, recipeName, lot); }); return result; } public List GetHistoryData(IEnumerable keys, string recipeRunGuid) { List result = null; Invoke(svc => { result = svc.GetHistoryData(keys, recipeRunGuid); }); return result; } public List GetHistoryLeakCheck() { List result = null; Invoke(svc => { result = svc.GetHistoryLeakCheck(); }); return result; } } }