SearchCondition.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using IntelligentControlForsx.Service.WindturbineControl.Domain.Cmd;
  7. namespace IntelligentControlForsx.Service.ControlLog.Domain
  8. {
  9. public class SearchCondition
  10. {
  11. public bool ByUserId;
  12. private int userId;
  13. public int UserId
  14. {
  15. set
  16. {
  17. userId = value;
  18. ByUserId = true;
  19. }
  20. get { return userId; }
  21. }
  22. public bool ByControlType;
  23. private CmdType controlType;
  24. public CmdType ControlType
  25. {
  26. set
  27. {
  28. controlType = value;
  29. ByControlType = true;
  30. }
  31. get { return controlType; }
  32. }
  33. public bool ByWindturbineId;
  34. private string windturbineId;
  35. public string WindturbineId
  36. {
  37. set
  38. {
  39. windturbineId = value;
  40. ByWindturbineId = true;
  41. }
  42. get { return windturbineId; }
  43. }
  44. public bool ByStation;
  45. private string station;
  46. public string Station
  47. {
  48. set
  49. {
  50. station = value;
  51. ByStation = true;
  52. }
  53. get { return station; }
  54. }
  55. public DateTime? StartTime { set; get; }
  56. public DateTime? EndTime { set; get; }
  57. }
  58. }