123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- 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>, IQueryDataService
- {
- public QueryDataServiceClient()
- : base("Client_IQueryDataService", "QueryDataService")
- {
- }
- public Dictionary<string, object> PollData(IEnumerable<string> keys)
- {
- Dictionary<string, object> 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<string, object> PollConfig(IEnumerable<string> keys)
- {
- Dictionary<string, object> 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<EventItem> QueryDBEvent(string sql)
- {
- List<EventItem> result = null;
- Invoke(svc => { result = svc.QueryDBEvent(sql); });
- return result;
- }
- public Dictionary<string, object> PollHardwareConfig(IEnumerable<string> keys)
- {
- Dictionary<string, object> result = null;
- Invoke(svc =>
- {
- result = svc.PollHardwareConfig(keys);
- });
- return result;
- }
- public List<string> GetHistoryRecipeList(DateTime from, DateTime to)
- {
- List<string> result = null;
- Invoke(svc =>
- {
- result = svc.GetHistoryRecipeList(from, to);
- });
- return result;
- }
- public List<DataLogItem> GetHistoryDataLogList(DateTime from, DateTime to, string recipeName, string lot)
- {
- List<DataLogItem> result = null;
- Invoke(svc =>
- {
- result = svc.GetHistoryDataLogList(from, to, recipeName, lot);
- });
- return result;
- }
- public List<HistoryDataItem> GetHistoryData(IEnumerable<string> keys, string recipeRunGuid)
- {
- List<HistoryDataItem> result = null;
- Invoke(svc =>
- {
- result = svc.GetHistoryData(keys, recipeRunGuid);
- });
- return result;
- }
- public List<LeakCheckResultItem> GetHistoryLeakCheck()
- {
- List<LeakCheckResultItem> result = null;
- Invoke(svc =>
- {
- result = svc.GetHistoryLeakCheck();
- });
- return result;
- }
- }
- }
|