IQueryDataService.cs 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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.CommonData.DeviceData;
  15. using MECF.Framework.Common.DBCore;
  16. using MECF.Framework.Common.Equipment;
  17. using MECF.Framework.Common.IOCore;
  18. using MECF.Framework.Common.Schedulers;
  19. using MECF.Framework.Common.SubstrateTrackings;
  20. using Venus_Core;
  21. using VenusCommon;
  22. namespace MECF.Framework.Common.DataCenter
  23. {
  24. [ServiceContract]
  25. [ServiceKnownType(typeof(SignalTowerDataItem))]
  26. [ServiceKnownType(typeof(GateValveDataItem))]
  27. [ServiceKnownType(typeof(List<EventItem>))]
  28. [ServiceKnownType(typeof(List<HistoryCarrierData>))]
  29. [ServiceKnownType(typeof(List<HistoryProcessData>))]
  30. [ServiceKnownType(typeof(List<HistoryWaferData>))]
  31. [ServiceKnownType(typeof(List<HistoryMoveData>))]
  32. [ServiceKnownType(typeof(List<LeakCheckResultItem>))]
  33. [ServiceKnownType(typeof(List<NotifiableIoItem>))]
  34. [ServiceKnownType(typeof(NotifiableIoItem))]
  35. [ServiceKnownType(typeof(AITValveData))]
  36. [ServiceKnownType(typeof(AITMfcData))]
  37. [ServiceKnownType(typeof(AITHeaterData))]
  38. [ServiceKnownType(typeof(AITChillerData))]
  39. [ServiceKnownType(typeof(AITThermalCoupleData))]
  40. [ServiceKnownType(typeof(AITWaterFlowMeterData))]
  41. [ServiceKnownType(typeof(AITPressureMeterData))]
  42. [ServiceKnownType(typeof(AITRfData))]
  43. [ServiceKnownType(typeof(AITThrottleValveData))]
  44. [ServiceKnownType(typeof(AITSensorData))]
  45. [ServiceKnownType(typeof(AITPumpData))]
  46. [ServiceKnownType(typeof(AITSignalTowerData))]
  47. [ServiceKnownType(typeof(AITEmoData))]
  48. [ServiceKnownType(typeof(AITStatisticsData))]
  49. [ServiceKnownType(typeof(AITBoostPumpData))]
  50. [ServiceKnownType(typeof(AITCylinderData))]
  51. [ServiceKnownType(typeof(AITWaterFlowSensorData))]
  52. [ServiceKnownType(typeof(AITServoMotorData))]
  53. [ServiceKnownType(typeof(AITLidData))]
  54. [ServiceKnownType(typeof(ServoState))]
  55. [ServiceKnownType(typeof(AITRfPowerData))]
  56. [ServiceKnownType(typeof(AITRfMatchData))]
  57. [ServiceKnownType(typeof(AITHVData))]
  58. [ServiceKnownType(typeof(FlowMeterAlarmItem))]
  59. [ServiceKnownType(typeof(WaferInfo))]
  60. [ServiceKnownType(typeof(WaferInfo[]))]
  61. [ServiceKnownType(typeof(CarrierInfo))]
  62. [ServiceKnownType(typeof(CarrierInfo[]))]
  63. [ServiceKnownType(typeof(NotifiableIoItem))]
  64. [ServiceKnownType(typeof(IndicatorState))]
  65. [ServiceKnownType(typeof(FoupClampState))]
  66. [ServiceKnownType(typeof(FoupDoorState))]
  67. [ServiceKnownType(typeof(LoadportCassetteState))]
  68. [ServiceKnownType(typeof(AITRfidReaderData))]
  69. [ServiceKnownType(typeof(AITAlignerData))]
  70. [ServiceKnownType(typeof(AITWaferIdReaderData))]
  71. [ServiceKnownType(typeof(ModuleName))]
  72. [ServiceKnownType(typeof(LidState))]
  73. [ServiceKnownType(typeof(DeviceState))]
  74. [ServiceKnownType(typeof(SorterRecipeXml))]
  75. [ServiceKnownType(typeof(SorterRecipeType))]
  76. [ServiceKnownType(typeof(SorterRecipePlaceModeOrder))]
  77. [ServiceKnownType(typeof(SorterRecipePlaceModeTransfer1To1))]
  78. [ServiceKnownType(typeof(SorterRecipePlaceModePack))]
  79. [ServiceKnownType(typeof(ObservableCollection<SorterRecipeTransferTableItem>))]
  80. [ServiceKnownType(typeof(SorterRecipeTransferTableItem))]
  81. [ServiceKnownType(typeof(SlotTransferInfo))]
  82. [ServiceKnownType(typeof(SlotTransferInfo[]))]
  83. [ServiceKnownType(typeof(List<string>))]
  84. [ServiceKnownType(typeof(SerializableDictionary<string, bool>))]
  85. [ServiceKnownType(typeof(SerializableDictionary<string, string>))]
  86. [ServiceKnownType(typeof(MoveItem))]
  87. [ServiceKnownType(typeof(RobotMoveInfo))]
  88. [ServiceKnownType(typeof(Venus_Core.RecipeResult))]
  89. [ServiceKnownType(typeof(AITPendulumValveData))]
  90. [ServiceKnownType(typeof(PMState))]
  91. [ServiceKnownType(typeof(ObservableCollection<MFCCalibrationData>))]
  92. [ServiceKnownType(typeof(List<PMLeakCheckResult>))]
  93. public interface IQueryDataService
  94. {
  95. [OperationContract]
  96. object GetData(string key);
  97. [OperationContract]
  98. Dictionary<string, object> PollData(IEnumerable<string> keys);
  99. [OperationContract]
  100. Dictionary<string, object> PollConfig(IEnumerable<string> keys);
  101. [OperationContract]
  102. object GetConfig(string key);
  103. [OperationContract]
  104. List<NotifiableIoItem> GetDiList(string key);
  105. [OperationContract]
  106. List<NotifiableIoItem> GetDoList(string key);
  107. [OperationContract]
  108. List<NotifiableIoItem> GetAiList(string key);
  109. [OperationContract]
  110. List<NotifiableIoItem> GetAoList(string key);
  111. [OperationContract]
  112. string GetConfigFileContent();
  113. [OperationContract]
  114. List<EventItem> QueryDBEvent(string sql);
  115. [OperationContract]
  116. List<HistoryCarrierData> QueryDBCarrier(string sql);
  117. [OperationContract]
  118. List<HistoryProcessData> QueryDBProcess(string sql);
  119. [OperationContract]
  120. List<HistoryWaferData> QueryDBWafer(string sql);
  121. [OperationContract]
  122. List<HistoryMoveData> QueryDBMovement(string sql);
  123. [OperationContract]
  124. List<HistoryJobMoveData> QueryDBJobMovementByJobGuid(string jobGuid);
  125. [OperationContract]
  126. List<HistoryJobMoveData> QueryDBJobMovementByJobGuidAndStationName(string jobGuid,string stationName);
  127. [OperationContract]
  128. List<HistoryDataItem> GetHistoryData(IEnumerable<string> keys, string recipeRunGuid, string module);
  129. [OperationContract]
  130. List<HistoryDataItem> GetOneDayHistoryData(IEnumerable<string> keys,DateTime begin,string module);
  131. [OperationContract]
  132. List<HistoryDataItem> GetHistoryDataFromStartToEnd(IEnumerable<string> keys, DateTime begin,DateTime end, string module);
  133. [OperationContract]
  134. DataTable QueryData(string sql);
  135. [OperationContract]
  136. List<LeakCheckResultItem> GetHistoryLeakCheck(string Module);
  137. [OperationContract]
  138. List<PMLeakCheckResult> GetPMLeakCheckResult(string moduleName);
  139. [OperationContract]
  140. List<MFCVerificationData> GetMFCVerificationData(DateTime begin, DateTime end);
  141. [OperationContract]
  142. List<MFCVerificationOnePointData> GetMFCVerificationOnePointData();
  143. [OperationContract]
  144. List<MFCVerificationTenPointsData> GetMFCVerificationTenPointsData();
  145. }
  146. }