IQueryDataService.cs 6.0 KB

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