IQueryDataService.cs 9.9 KB

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