IQueryDataService.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ServiceModel;
  6. using Aitex.Core.Common.DeviceData;
  7. using Aitex.Core.UI.ControlDataContext;
  8. using Aitex.Core.RT.Event;
  9. namespace Aitex.Triton160.Common.Interface
  10. {
  11. [ServiceContract]
  12. [ServiceKnownType(typeof(SignalTowerDataItem))]
  13. [ServiceKnownType(typeof(GateValveDataItem))]
  14. [ServiceKnownType(typeof(List<EventItem>))]
  15. [ServiceKnownType(typeof(AITValveData))]
  16. [ServiceKnownType(typeof(AITMfcData))]
  17. [ServiceKnownType(typeof(AITHeaterData))]
  18. [ServiceKnownType(typeof(AITThermalCoupleData))]
  19. [ServiceKnownType(typeof(AITWaterFlowMeterData))]
  20. [ServiceKnownType(typeof(AITPressureMeterData))]
  21. [ServiceKnownType(typeof(AITRfData))]
  22. [ServiceKnownType(typeof(AITThrottleValveData))]
  23. [ServiceKnownType(typeof(AITSensorData))]
  24. [ServiceKnownType(typeof(AITPumpData))]
  25. [ServiceKnownType(typeof(AITSignalTowerData))]
  26. [ServiceKnownType(typeof(AITEmoData))]
  27. [ServiceKnownType(typeof(AITStatisticsData))]
  28. [ServiceKnownType(typeof(AITBoostPumpData))]
  29. public interface IQueryDataService
  30. {
  31. [OperationContract]
  32. object GetData(string key);
  33. [OperationContract]
  34. Dictionary<string, object> PollData(IEnumerable<string> keys);
  35. [OperationContract]
  36. object GetConfig(string key);
  37. [OperationContract]
  38. Dictionary<string, object> PollConfig(IEnumerable<string> keys);
  39. [OperationContract]
  40. Dictionary<string, object> PollHardwareConfig(IEnumerable<string> keys);
  41. [OperationContract]
  42. string GetConfigFileContent(string fileName);
  43. [OperationContract]
  44. List<EventItem> QueryDBEvent(string sql);
  45. [OperationContract]
  46. List<string> GetHistoryRecipeList(DateTime from, DateTime to);
  47. [OperationContract]
  48. List<DataLogItem> GetHistoryDataLogList(DateTime from, DateTime to, string recipeName, string lot);
  49. [OperationContract]
  50. List<HistoryDataItem> GetHistoryData(IEnumerable<string> keys, string recipeRunGuid);
  51. [OperationContract]
  52. List<LeakCheckResultItem> GetHistoryLeakCheck( );
  53. }
  54. }