IQueryDataService.cs 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.Data;
  5. using System.ServiceModel;
  6. using Aitex.Core.Common;
  7. using Aitex.Core.Common.DeviceData;
  8. using Aitex.Core.RT.Event;
  9. using Aitex.Core.RT.IOCore;
  10. using Aitex.Core.UI.ControlDataContext;
  11. using Aitex.Core.Util;
  12. using Aitex.Sorter.Common;
  13. using MECF.Framework.Common.CommonData;
  14. using MECF.Framework.Common.Equipment;
  15. using MECF.Framework.Common.IOCore;
  16. using MECF.Framework.Common.SubstrateTrackings;
  17. using VenusCommon;
  18. namespace MECF.Framework.Common.DataCenter
  19. {
  20. [ServiceContract]
  21. [ServiceKnownType(typeof(SignalTowerDataItem))]
  22. [ServiceKnownType(typeof(GateValveDataItem))]
  23. [ServiceKnownType(typeof(List<EventItem>))]
  24. [ServiceKnownType(typeof(List<HistoryCarrierData>))]
  25. [ServiceKnownType(typeof(List<HistoryProcessData>))]
  26. [ServiceKnownType(typeof(List<HistoryWaferData>))]
  27. [ServiceKnownType(typeof(List<HistoryMoveData>))]
  28. [ServiceKnownType(typeof(List<LeakCheckResultItem>))]
  29. [ServiceKnownType(typeof(List<NotifiableIoItem>))]
  30. [ServiceKnownType(typeof(NotifiableIoItem))]
  31. [ServiceKnownType(typeof(AITValveData))]
  32. [ServiceKnownType(typeof(AITMfcData))]
  33. [ServiceKnownType(typeof(AITHeaterData))]
  34. [ServiceKnownType(typeof(AITChillerData))]
  35. [ServiceKnownType(typeof(AITThermalCoupleData))]
  36. [ServiceKnownType(typeof(AITWaterFlowMeterData))]
  37. [ServiceKnownType(typeof(AITPressureMeterData))]
  38. [ServiceKnownType(typeof(AITRfData))]
  39. [ServiceKnownType(typeof(AITThrottleValveData))]
  40. [ServiceKnownType(typeof(AITSensorData))]
  41. [ServiceKnownType(typeof(AITPumpData))]
  42. [ServiceKnownType(typeof(AITSignalTowerData))]
  43. [ServiceKnownType(typeof(AITEmoData))]
  44. [ServiceKnownType(typeof(AITStatisticsData))]
  45. [ServiceKnownType(typeof(AITBoostPumpData))]
  46. [ServiceKnownType(typeof(AITCylinderData))]
  47. [ServiceKnownType(typeof(AITWaterFlowSensorData))]
  48. [ServiceKnownType(typeof(AITServoMotorData))]
  49. [ServiceKnownType(typeof(AITLidData))]
  50. [ServiceKnownType(typeof(ServoState))]
  51. [ServiceKnownType(typeof(AITRfPowerData))]
  52. [ServiceKnownType(typeof(AITRfMatchData))]
  53. [ServiceKnownType(typeof(FlowMeterAlarmItem))]
  54. [ServiceKnownType(typeof(WaferInfo))]
  55. [ServiceKnownType(typeof(WaferInfo[]))]
  56. [ServiceKnownType(typeof(CarrierInfo))]
  57. [ServiceKnownType(typeof(CarrierInfo[]))]
  58. [ServiceKnownType(typeof(NotifiableIoItem))]
  59. [ServiceKnownType(typeof(IndicatorState))]
  60. [ServiceKnownType(typeof(FoupClampState))]
  61. [ServiceKnownType(typeof(FoupDoorState))]
  62. [ServiceKnownType(typeof(LoadportCassetteState))]
  63. [ServiceKnownType(typeof(AITRfidReaderData))]
  64. [ServiceKnownType(typeof(AITAlignerData))]
  65. [ServiceKnownType(typeof(AITWaferIdReaderData))]
  66. [ServiceKnownType(typeof(ModuleName))]
  67. [ServiceKnownType(typeof(LidState))]
  68. [ServiceKnownType(typeof(DeviceState))]
  69. [ServiceKnownType(typeof(SorterRecipeXml))]
  70. [ServiceKnownType(typeof(SorterRecipeType))]
  71. [ServiceKnownType(typeof(SorterRecipePlaceModeOrder))]
  72. [ServiceKnownType(typeof(SorterRecipePlaceModeTransfer1To1))]
  73. [ServiceKnownType(typeof(SorterRecipePlaceModePack))]
  74. [ServiceKnownType(typeof(ObservableCollection<SorterRecipeTransferTableItem>))]
  75. [ServiceKnownType(typeof(SorterRecipeTransferTableItem))]
  76. [ServiceKnownType(typeof(SlotTransferInfo))]
  77. [ServiceKnownType(typeof(SlotTransferInfo[]))]
  78. [ServiceKnownType(typeof(List<string>))]
  79. [ServiceKnownType(typeof(SerializableDictionary<string, bool>))]
  80. [ServiceKnownType(typeof(SerializableDictionary<string, string>))]
  81. public interface IQueryDataService
  82. {
  83. [OperationContract]
  84. object GetData(string key);
  85. [OperationContract]
  86. Dictionary<string, object> PollData(IEnumerable<string> keys);
  87. [OperationContract]
  88. Dictionary<string, object> PollConfig(IEnumerable<string> keys);
  89. [OperationContract]
  90. object GetConfig(string key);
  91. [OperationContract]
  92. List<NotifiableIoItem> GetDiList(string key);
  93. [OperationContract]
  94. List<NotifiableIoItem> GetDoList(string key);
  95. [OperationContract]
  96. List<NotifiableIoItem> GetAiList(string key);
  97. [OperationContract]
  98. List<NotifiableIoItem> GetAoList(string key);
  99. [OperationContract]
  100. string GetConfigFileContent();
  101. [OperationContract]
  102. List<EventItem> QueryDBEvent(string sql);
  103. [OperationContract]
  104. List<HistoryCarrierData> QueryDBCarrier(string sql);
  105. [OperationContract]
  106. List<HistoryProcessData> QueryDBProcess(string sql);
  107. [OperationContract]
  108. List<HistoryWaferData> QueryDBWafer(string sql);
  109. [OperationContract]
  110. List<HistoryMoveData> QueryDBMovement(string sql);
  111. [OperationContract]
  112. List<HistoryJobMoveData> QueryDBJobMovementByJobGuid(string jobGuid);
  113. [OperationContract]
  114. List<HistoryJobMoveData> QueryDBJobMovementByJobGuidAndStationName(string jobGuid,string stationName);
  115. [OperationContract]
  116. List<HistoryDataItem> GetHistoryData(IEnumerable<string> keys, string recipeRunGuid, string module);
  117. [OperationContract]
  118. List<HistoryDataItem> GetOneDayHistoryData(IEnumerable<string> keys,DateTime begin,string module);
  119. [OperationContract]
  120. List<HistoryDataItem> GetHistoryDataFromStartToEnd(IEnumerable<string> keys, DateTime begin,DateTime end, string module);
  121. [OperationContract]
  122. DataTable QueryData(string sql);
  123. [OperationContract]
  124. List<LeakCheckResultItem> GetHistoryLeakCheck(string Module);
  125. }
  126. }