IAlertService.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.Serialization;
  5. using System.ServiceModel;
  6. using System.Text;
  7. using GDNXFD.Data;
  8. namespace GDNXFD.WcfService
  9. {
  10. // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
  11. [ServiceContract]
  12. public interface IAlertService
  13. {
  14. [OperationContract]
  15. string GetData(int value);
  16. #region 报警模块
  17. [OperationContract]
  18. IList<AlertInfo> GetAlertInfos();
  19. [OperationContract]
  20. IList<AlertInfo> GetAlertInfosPage(string filter, int pageIndex, int pageSize, ref int total);
  21. [OperationContract]
  22. IList<IFixBJTestingPointDI> GetIFixBjPage(string filter, int pageIndex, int pageSize, ref int total);
  23. [OperationContract]
  24. IList<AlertSnap> GetAlertSnaps();
  25. [OperationContract]
  26. IList<AlertSnap> GetLatestAlertSnaps(int count);
  27. [OperationContract]
  28. IList<ShutdownEvent> GetLatestShutdownEvents();
  29. [OperationContract]
  30. IList<AlertSnap> GetClosedAlertSnaps();
  31. [OperationContract]
  32. IList<DictItem> GetDataDictionary();
  33. [OperationContract]
  34. IList<AlertSnap> GetAlertSnaps2(string stationId, string rank, string category, string category2, string filter, string status);
  35. [OperationContract]
  36. void ConfirmAlert(long alertResultId);
  37. [OperationContract]
  38. void ConfirmAlertPage(string[] ids);
  39. [OperationContract]
  40. void ConfirmAllAlert();
  41. [OperationContract]
  42. IList<RankingModel> GetStationPieChartData();
  43. [OperationContract]
  44. IList<RankingModel> GetRankListData();
  45. [OperationContract]
  46. IList<AlertInfo> GetWindturbineAlertInfoByPage(string filter, int pageIndex, int pageSize, ref int total);
  47. #endregion
  48. #region 故障Fault
  49. [OperationContract]
  50. IList<FaultInfo> GetRealTimeFaultInfos();
  51. [OperationContract]
  52. IList<FaultInfo> GetLatestFaultInfos(int count);
  53. [OperationContract]
  54. IList<FaultInfo> GetFaultInfosByIdList(IList<long> idList);
  55. [OperationContract]
  56. IList<FaultSnap> GetFaultSnapByIdList(IList<long> snapIdList);
  57. [OperationContract]
  58. IList<FaultSnap> GetRealTimeFaultSnaps();
  59. [OperationContract]
  60. IList<FaultInfo> GetFaultInfosPage(string filter, int pageIndex, int pageSize, ref int total);
  61. //1-确认 2-复位 3-生成缺陷单
  62. [OperationContract]
  63. void ConfirmFault(long id, int confirmType, string confirmPerson,long alertSnapId);
  64. [OperationContract]
  65. IList<Warning> getUnabledResetWarning();
  66. #endregion
  67. #region 通用
  68. [OperationContract]
  69. IList<WindTurbine> GetFDCWindturbinies();
  70. [OperationContract]
  71. IList<WindPowerStation> GetWindPowerStations();
  72. [OperationContract]
  73. IList<Project> GetProjects();
  74. [OperationContract]
  75. IList<Line> GetLines();
  76. [OperationContract]
  77. IList<PointMapModel> GetTestingPoints(PointType ptype, string[] uniformcodes);
  78. #endregion
  79. }
  80. }