AlertServiceClient.cs 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. using GDNXFD.Data;
  2. using System.Collections.Generic;
  3. using System;
  4. namespace IntelligentControlForsx
  5. {
  6. [System.Diagnostics.DebuggerStepThroughAttribute()]
  7. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  8. public partial class AlertServiceClient : System.ServiceModel.ClientBase<GDNXFD.WcfService.IAlertService>, GDNXFD.WcfService.IAlertService
  9. {
  10. #region 构造方法
  11. public AlertServiceClient()
  12. {
  13. }
  14. public AlertServiceClient(string endpointConfigurationName) :
  15. base(endpointConfigurationName)
  16. {
  17. }
  18. public AlertServiceClient(string endpointConfigurationName, string remoteAddress) :
  19. base(endpointConfigurationName, remoteAddress)
  20. {
  21. }
  22. public AlertServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
  23. base(endpointConfigurationName, remoteAddress)
  24. {
  25. }
  26. public AlertServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
  27. base(binding, remoteAddress)
  28. {
  29. }
  30. #endregion
  31. #region 协议
  32. //此处应与WCF服务接口保持一致
  33. public string GetData(int value)
  34. {
  35. return base.Channel.GetData(value);
  36. }
  37. public IList<AlertInfo> GetAlertInfos()
  38. {
  39. return base.Channel.GetAlertInfos();
  40. }
  41. public IList<AlertInfo> GetAlertInfosPage(string filter, int pageIndex, int pageSize, ref int total)
  42. {
  43. return base.Channel.GetAlertInfosPage(filter, pageIndex, pageSize, ref total);
  44. }
  45. public IList<IFixBJTestingPointDI> GetIFixBjPage(string filter, int pageIndex, int pageSize, ref int total)
  46. {
  47. return base.Channel.GetIFixBjPage(filter, pageIndex, pageSize, ref total);
  48. }
  49. public IList<AlertSnap> GetAlertSnaps()
  50. {
  51. return base.Channel.GetAlertSnaps();
  52. }
  53. public IList<AlertSnap> GetLatestAlertSnaps(int count)
  54. {
  55. return base.Channel.GetLatestAlertSnaps(count);
  56. }
  57. public IList<ShutdownEvent> GetLatestShutdownEvents()
  58. {
  59. return base.Channel.GetLatestShutdownEvents();
  60. }
  61. public IList<AlertSnap> GetClosedAlertSnaps()
  62. {
  63. return base.Channel.GetClosedAlertSnaps();
  64. }
  65. public IList<DictItem> GetDataDictionary()
  66. {
  67. return base.Channel.GetDataDictionary();
  68. }
  69. public IList<AlertSnap> GetAlertSnaps2(string stationId, string rank, string category, string category2, string filter, string status)
  70. {
  71. return base.Channel.GetAlertSnaps2(stationId, rank, category, category2, filter,status);
  72. }
  73. public void ConfirmAlert(long alertResultId)
  74. {
  75. base.Channel.ConfirmAlert(alertResultId);
  76. }
  77. public void ConfirmAlertPage(string[] ids)
  78. {
  79. base.Channel.ConfirmAlertPage(ids);
  80. }
  81. public void ConfirmAllAlert()
  82. {
  83. base.Channel.ConfirmAllAlert();
  84. }
  85. public IList<RankingModel> GetStationPieChartData()
  86. {
  87. return base.Channel.GetStationPieChartData();
  88. }
  89. public IList<RankingModel> GetRankListData()
  90. {
  91. return base.Channel.GetRankListData();
  92. }
  93. public IList<WindTurbine> GetFDCWindturbinies()
  94. {
  95. return base.Channel.GetFDCWindturbinies();
  96. }
  97. public IList<WindPowerStation> GetWindPowerStations()
  98. {
  99. return base.Channel.GetWindPowerStations();
  100. }
  101. public IList<Project> GetProjects()
  102. {
  103. return base.Channel.GetProjects();
  104. }
  105. public IList<Line> GetLines()
  106. {
  107. return base.Channel.GetLines();
  108. }
  109. public IList<PointMapModel> GetTestingPoints(PointType ptype, string[] uniformcodes)
  110. {
  111. return base.Channel.GetTestingPoints(ptype, uniformcodes);
  112. }
  113. #region 故障fault
  114. public IList<FaultInfo> GetRealTimeFaultInfos()
  115. {
  116. return base.Channel.GetRealTimeFaultInfos();
  117. }
  118. public IList<FaultInfo> GetLatestFaultInfos(int count)
  119. {
  120. return base.Channel.GetLatestFaultInfos(count);
  121. }
  122. public IList<FaultSnap> GetRealTimeFaultSnaps()
  123. {
  124. return base.Channel.GetRealTimeFaultSnaps();
  125. }
  126. public IList<FaultInfo> GetFaultInfosPage(string filter, int pageIndex, int pageSize, ref int total)
  127. {
  128. return base.Channel.GetFaultInfosPage(filter, pageIndex, pageSize, ref total);
  129. }
  130. //1-确认 2-复位 3-生成缺陷单
  131. public void ConfirmFault(long id, int confirmType, string confirmPerson)
  132. {
  133. base.Channel.ConfirmFault(id, confirmType, confirmPerson,0);
  134. }
  135. public IList<Warning> getUnabledResetWarning()
  136. {
  137. return base.Channel.getUnabledResetWarning();
  138. }
  139. public IList<AlertInfo> GetWindturbineAlertInfoByPage(string filter, int pageIndex, int pageSize, ref int total)
  140. {
  141. throw new NotImplementedException();
  142. }
  143. public bool DefectBill(FaultInfo info, string userName)
  144. {
  145. throw new NotImplementedException();
  146. }
  147. public IList<FaultInfo> GetFaultInfosByIdList(IList<long> idList)
  148. {
  149. throw new NotImplementedException();
  150. }
  151. public IList<FaultSnap> GetFaultSnapByIdList(IList<long> snapIdList)
  152. {
  153. throw new NotImplementedException();
  154. }
  155. public void ConfirmFault(long id, int confirmType, string confirmPerson, long alertSnapId)
  156. {
  157. throw new NotImplementedException();
  158. }
  159. #endregion
  160. #endregion
  161. }
  162. }