IQueryDataService.cs 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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 VirgoCommon;
  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(RobotAction))]
  67. [ServiceKnownType(typeof(RobotArm))]
  68. [ServiceKnownType(typeof(RobotMoveInfo))]
  69. [ServiceKnownType(typeof(ModuleName))]
  70. [ServiceKnownType(typeof(LidState))]
  71. [ServiceKnownType(typeof(DeviceState))]
  72. [ServiceKnownType(typeof(SorterRecipeXml))]
  73. [ServiceKnownType(typeof(SorterRecipeType))]
  74. [ServiceKnownType(typeof(SorterRecipePlaceModeOrder))]
  75. [ServiceKnownType(typeof(SorterRecipePlaceModeTransfer1To1))]
  76. [ServiceKnownType(typeof(SorterRecipePlaceModePack))]
  77. [ServiceKnownType(typeof(ObservableCollection<SorterRecipeTransferTableItem>))]
  78. [ServiceKnownType(typeof(SorterRecipeTransferTableItem))]
  79. [ServiceKnownType(typeof(SlotTransferInfo))]
  80. [ServiceKnownType(typeof(SlotTransferInfo[]))]
  81. [ServiceKnownType(typeof(List<string>))]
  82. [ServiceKnownType(typeof(SerializableDictionary<string, bool>))]
  83. [ServiceKnownType(typeof(SerializableDictionary<string, string>))]
  84. public interface IQueryDataService
  85. {
  86. [OperationContract]
  87. object GetData(string key);
  88. [OperationContract]
  89. Dictionary<string, object> PollData(IEnumerable<string> keys);
  90. [OperationContract]
  91. Dictionary<string, object> PollConfig(IEnumerable<string> keys);
  92. [OperationContract]
  93. object GetConfig(string key);
  94. [OperationContract]
  95. List<NotifiableIoItem> GetDiList(string key);
  96. [OperationContract]
  97. List<NotifiableIoItem> GetDoList(string key);
  98. [OperationContract]
  99. List<NotifiableIoItem> GetAiList(string key);
  100. [OperationContract]
  101. List<NotifiableIoItem> GetAoList(string key);
  102. [OperationContract]
  103. string GetConfigFileContent();
  104. [OperationContract]
  105. List<EventItem> QueryDBEvent(string sql);
  106. [OperationContract]
  107. List<HistoryCarrierData> QueryDBCarrier(string sql);
  108. [OperationContract]
  109. List<HistoryProcessData> QueryDBProcess(string sql);
  110. [OperationContract]
  111. List<HistoryWaferData> QueryDBWafer(string sql);
  112. [OperationContract]
  113. List<HistoryMoveData> QueryDBMovement(string sql);
  114. [OperationContract]
  115. List<HistoryJobMoveData> QueryDBJobMovementByJobGuid(string jobGuid);
  116. [OperationContract]
  117. List<HistoryJobMoveData> QueryDBJobMovementByJobGuidAndStationName(string jobGuid,string stationName);
  118. [OperationContract]
  119. List<HistoryDataItem> GetHistoryData(IEnumerable<string> keys, string recipeRunGuid, string module);
  120. [OperationContract]
  121. List<HistoryDataItem> GetOneDayHistoryData(IEnumerable<string> keys,DateTime begin,string module);
  122. [OperationContract]
  123. List<HistoryDataItem> GetHistoryDataFromStartToEnd(IEnumerable<string> keys, DateTime begin,DateTime end, string module);
  124. [OperationContract]
  125. DataTable QueryData(string sql);
  126. [OperationContract]
  127. List<LeakCheckResultItem> GetHistoryLeakCheck(string Module);
  128. }
  129. }