IQueryDataService.cs 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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.RT.SCCore;
  11. using Aitex.Core.UI.ControlDataContext;
  12. using Aitex.Core.Util;
  13. using Aitex.Sorter.Common;
  14. using MECF.Framework.Common.CommonData;
  15. using MECF.Framework.Common.CommonData.DeviceData;
  16. using MECF.Framework.Common.Communications;
  17. using MECF.Framework.Common.Equipment;
  18. using MECF.Framework.Common.Event;
  19. using MECF.Framework.Common.FAServices.E94s;
  20. using MECF.Framework.Common.IOCore;
  21. using MECF.Framework.Common.Jobs;
  22. using MECF.Framework.Common.SubstrateTrackings;
  23. namespace MECF.Framework.Common.DataCenter
  24. {
  25. [ServiceContract]
  26. [ServiceKnownType(typeof(SignalTowerDataItem))]
  27. [ServiceKnownType(typeof(GateValveDataItem))]
  28. [ServiceKnownType(typeof(EventItem))]
  29. [ServiceKnownType(typeof(List<EventItem>))]
  30. [ServiceKnownType(typeof(AlarmEventItem))]
  31. [ServiceKnownType(typeof(List<AlarmEventItem>))]
  32. [ServiceKnownType(typeof(List<HistoryCarrierData>))]
  33. [ServiceKnownType(typeof(List<HistoryProcessData>))]
  34. [ServiceKnownType(typeof(List<HistoryWaferData>))]
  35. [ServiceKnownType(typeof(List<HistoryMoveData>))]
  36. [ServiceKnownType(typeof(List<ProcessJobInfo>))]
  37. [ServiceKnownType(typeof(List<NotifiableIoItem>))]
  38. [ServiceKnownType(typeof(NotifiableIoItem))]
  39. [ServiceKnownType(typeof(AITChillerData))]
  40. [ServiceKnownType(typeof(AITChillerData1))]
  41. [ServiceKnownType(typeof(AITValveData))]
  42. [ServiceKnownType(typeof(AITMfcData))]
  43. [ServiceKnownType(typeof(AITGasSplitterData))]
  44. [ServiceKnownType(typeof(AITHeaterData))]
  45. [ServiceKnownType(typeof(AITThermalCoupleData))]
  46. [ServiceKnownType(typeof(AITWaterFlowMeterData))]
  47. [ServiceKnownType(typeof(AITPressureMeterData))]
  48. [ServiceKnownType(typeof(AITRfData))]
  49. [ServiceKnownType(typeof(AITThrottleValveData))]
  50. [ServiceKnownType(typeof(AITSensorData))]
  51. [ServiceKnownType(typeof(AITPumpData))]
  52. [ServiceKnownType(typeof(AITSignalTowerData))]
  53. [ServiceKnownType(typeof(AITEmoData))]
  54. [ServiceKnownType(typeof(AITStatisticsData))]
  55. [ServiceKnownType(typeof(AITBoostPumpData))]
  56. [ServiceKnownType(typeof(AITCylinderData))]
  57. [ServiceKnownType(typeof(AITWaterFlowSensorData))]
  58. [ServiceKnownType(typeof(AITServoMotorData))]
  59. [ServiceKnownType(typeof(AITLidData))]
  60. [ServiceKnownType(typeof(ServoState))]
  61. [ServiceKnownType(typeof(AITRfPowerData))]
  62. [ServiceKnownType(typeof(AITRfMatchData))]
  63. [ServiceKnownType(typeof(FlowMeterAlarmItem))]
  64. [ServiceKnownType(typeof(WaferInfo))]
  65. [ServiceKnownType(typeof(WaferInfo[]))]
  66. [ServiceKnownType(typeof(CarrierInfo))]
  67. [ServiceKnownType(typeof(CarrierInfo[]))]
  68. [ServiceKnownType(typeof(NotifiableIoItem))]
  69. [ServiceKnownType(typeof(RobotMoveInfo))]
  70. [ServiceKnownType(typeof(IndicatorState))]
  71. [ServiceKnownType(typeof(FoupClampState))]
  72. [ServiceKnownType(typeof(FoupDoorState))]
  73. [ServiceKnownType(typeof(LoadportCassetteState))]
  74. [ServiceKnownType(typeof(AITRfidReaderData))]
  75. [ServiceKnownType(typeof(AITAlignerData))]
  76. [ServiceKnownType(typeof(AITWaferIdReaderData))]
  77. [ServiceKnownType(typeof(ModuleName))]
  78. [ServiceKnownType(typeof(DeviceState))]
  79. [ServiceKnownType(typeof(SorterRecipeXml))]
  80. [ServiceKnownType(typeof(SorterRecipeType))]
  81. [ServiceKnownType(typeof(SorterRecipePlaceModeOrder))]
  82. [ServiceKnownType(typeof(SorterRecipePlaceModeTransfer1To1))]
  83. [ServiceKnownType(typeof(SorterRecipePlaceModePack))]
  84. [ServiceKnownType(typeof(ObservableCollection<SorterRecipeTransferTableItem>))]
  85. [ServiceKnownType(typeof(SorterRecipeTransferTableItem))]
  86. [ServiceKnownType(typeof(SlotTransferInfo))]
  87. [ServiceKnownType(typeof(SlotTransferInfo[]))]
  88. [ServiceKnownType(typeof(List<string>))]
  89. [ServiceKnownType(typeof(List<SCConfigItem>))]
  90. [ServiceKnownType(typeof(SerializableDictionary<string, bool>))]
  91. [ServiceKnownType(typeof(SerializableDictionary<string, string>))]
  92. [ServiceKnownType(typeof(List<WCFProcessJobInterface>))]
  93. [ServiceKnownType(typeof(WCFProcessJobInterface))]
  94. [ServiceKnownType(typeof(List<WCFControlJobInterface>))]
  95. [ServiceKnownType(typeof(WCFControlJobInterface))]
  96. [ServiceKnownType(typeof(List<FAControlJob>))]
  97. [ServiceKnownType(typeof(List<FAProcessJob>))]
  98. [ServiceKnownType(typeof(NotifiableConnectionItem))]
  99. [ServiceKnownType(typeof(List<NotifiableConnectionItem>))]
  100. [ServiceKnownType(typeof(WaferHistoryItemType))]
  101. [ServiceKnownType(typeof(RecipeStep))]
  102. [ServiceKnownType(typeof(List<RecipeStep>))]
  103. [ServiceKnownType(typeof(WaferHistoryItem))]
  104. [ServiceKnownType(typeof(WaferHistoryRecipe))]
  105. [ServiceKnownType(typeof(List<WaferHistoryWafer>))]
  106. [ServiceKnownType(typeof(List<WaferHistoryRecipe>))]
  107. [ServiceKnownType(typeof(List<WaferHistoryMovement>))]
  108. [ServiceKnownType(typeof(List<WaferHistoryLot>))]
  109. [ServiceKnownType(typeof(WaferSize))]
  110. [ServiceKnownType(typeof(AITDeviceData))]
  111. [ServiceKnownType(typeof(float[]))]
  112. [ServiceKnownType(typeof(bool[]))]
  113. [ServiceKnownType(typeof(int[]))]
  114. [ServiceKnownType(typeof(byte[]))]
  115. [ServiceKnownType(typeof(double[]))]
  116. [ServiceKnownType(typeof(Tuple<int,string>))]
  117. [ServiceKnownType(typeof(Tuple<int, string>[]))]
  118. [ServiceKnownType(typeof(ManualTransferTask))]
  119. [ServiceKnownType(typeof(ManualTransferTask[]))]
  120. public interface IQueryDataService
  121. {
  122. [OperationContract]
  123. object GetData(string key);
  124. [OperationContract]
  125. Dictionary<string, object> PollData(IEnumerable<string> keys);
  126. [OperationContract]
  127. Dictionary<string, object> PollConfig(IEnumerable<string> keys);
  128. [OperationContract]
  129. void SetItemValue(string key,int value);
  130. [OperationContract]
  131. object GetConfig(string key);
  132. [OperationContract]
  133. List<NotifiableIoItem> GetDiList(string key);
  134. [OperationContract]
  135. List<NotifiableIoItem> GetDoList(string key);
  136. [OperationContract]
  137. List<NotifiableIoItem> GetAiList(string key);
  138. [OperationContract]
  139. List<NotifiableIoItem> GetAoList(string key);
  140. [OperationContract]
  141. string GetConfigFileContent();
  142. [OperationContract]
  143. string GetConfigFileContentByModule(string module);
  144. [OperationContract]
  145. object GetConfigByModule(string module, string key);
  146. [OperationContract]
  147. List<SCConfigItem> GetConfigItemList();
  148. [OperationContract]
  149. Dictionary<string, object> PollConfigByModule(string module, IEnumerable<string> keys);
  150. [OperationContract]
  151. List<EventItem> QueryDBEvent(string sql);
  152. [OperationContract]
  153. int GetCount(string sql);
  154. [OperationContract]
  155. List<HistoryCarrierData> QueryDBCarrier(string sql);
  156. [OperationContract]
  157. List<HistoryProcessData> QueryDBProcessCarrier(string sql);
  158. [OperationContract]
  159. List<HistoryProcessData> QueryDBProcessLot(string sql);
  160. [OperationContract]
  161. List<HistoryStatisticsOCRData> QueryDBOCRStatistics(string sql);
  162. [OperationContract]
  163. List<HistoryFfuDiffPressureData> QueryDBFfuDiffPressureStatistics(string sql);
  164. [OperationContract]
  165. List<StatsStatisticsData> QueryStatsDBStatistics(string sql);
  166. [OperationContract]
  167. List<HistoryOCRData> QueryDBOCRHistory(string sql);
  168. [OperationContract]
  169. List<HistoryProcessData> QueryDBProcess(string sql);
  170. [OperationContract]
  171. List<HistoryWaferData> QueryDBWafer(string sql);
  172. [OperationContract]
  173. List<HistoryMoveData> QueryDBMovement(string sql);
  174. [OperationContract]
  175. List<HistoryJobMoveData> QueryDBJobMovementByJobGuid(string jobGuid);
  176. [OperationContract]
  177. List<HistoryJobMoveData> QueryDBJobMovementByJobGuidAndStationName(string jobGuid, string stationName);
  178. [OperationContract]
  179. List<HistoryDataItem> GetHistoryData(IEnumerable<string> keys, string recipeRunGuid, string module);
  180. [OperationContract]
  181. List<HistoryDataItem> GetOneDayHistoryData(IEnumerable<string> keys, DateTime begin, string module);
  182. [OperationContract]
  183. List<HistoryDataItem> GetHistoryDataFromStartToEnd(IEnumerable<string> keys, DateTime begin, DateTime end, string module);
  184. [OperationContract]
  185. DataTable QueryData(string sql);
  186. [OperationContract]
  187. WaferHistoryRecipe GetWaferHistoryRecipe(string id);
  188. [OperationContract]
  189. List<WaferHistoryWafer> GetWaferHistoryWafers(string id);
  190. [OperationContract]
  191. List<WaferHistoryRecipe> GetWaferHistoryRecipes(string id);
  192. [OperationContract]
  193. List<WaferHistoryMovement> GetWaferHistoryMovements(string id);
  194. [OperationContract]
  195. List<WaferHistorySecquence> GetWaferHistorySecquences(string id);
  196. [OperationContract]
  197. List<WaferHistoryLot> QueryWaferHistoryLotsBySql(string sql);
  198. [OperationContract]
  199. List<WaferHistoryLot> GetWaferHistoryLots(DateTime startTime, DateTime endTime,string keyWord);
  200. [OperationContract]
  201. string GetTypedConfigContent(string type, string contentPath);
  202. [OperationContract]
  203. void SetTypedConfigContent(string type, string contentPath, string content);
  204. [OperationContract]
  205. List<LeakCheckResultItem> GetHistoryLeakCheck(string Module);
  206. }
  207. }