You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.8 KiB

8 months ago
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.Text.Json.Serialization;
  5. namespace Mirle.Component.Database.Model.WES
  6. {
  7. /// <summary>
  8. /// 即時軟體控制模式類別
  9. /// </summary>
  10. [Table("CUR_SOFTWARE_OPERATION_MODE")]
  11. public class CurSoftwareOperationModeDto
  12. {
  13. /// <summary>
  14. /// 軟體編號
  15. /// </summary>
  16. /// <remarks>[Sofeware Type]C[Floor][Sequence * 2]</remarks>
  17. [Column(Name = "SOFTWARE_ID")]
  18. [Required, Key, StringLength(7), JsonPropertyName("SOFTWARE_ID"), JsonPropertyOrder(1)]
  19. public string SOFTWARE_ID { get; set; }
  20. /// <summary>
  21. /// 起始時間
  22. /// </summary>
  23. [Column(Name = "START_TIME")]
  24. [Required, Key, JsonPropertyName("START_TIME"), JsonPropertyOrder(2)]
  25. public DateTime START_TIME { get; set; }
  26. /// <summary>
  27. /// 結束時間
  28. /// </summary>
  29. [Column(Name = "END_TIME")]
  30. [JsonPropertyName("END_TIME"), JsonPropertyOrder(3)]
  31. public DateTime? END_TIME { get; set; }
  32. /// <summary>
  33. /// 控制模式
  34. /// </summary>
  35. /// <value>
  36. /// 0 = Online Remote <br/>
  37. /// 1 = Online Local <br/>
  38. /// 2 = Offline <br/>
  39. /// 3 = Unknown <br/>
  40. /// </value>
  41. [Column(Name = "OPERATION_MODE")]
  42. [Required, JsonPropertyName("OPERATION_MODE"), JsonPropertyOrder(4)]
  43. public int OPERATION_MODE { get; set; }
  44. /// <summary>
  45. /// 程式名稱
  46. /// </summary>
  47. [Column(Name = "PROGRAM_NAME")]
  48. [Required, StringLength(30), JsonPropertyName("PROGRAM_NAME"), JsonPropertyOrder(5)]
  49. public string PROGRAM_NAME { get; set; }
  50. }
  51. }