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.

51 lines
1.8 KiB

8 months ago
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using System.Text.Json.Serialization;
  4. namespace Mirle.Component.Database.Model.WES
  5. {
  6. /// <summary>
  7. /// 路線基本資料類別
  8. /// </summary>
  9. [Table("CFG_ROUTE")]
  10. public class CfgRouteDto : CommonDto
  11. {
  12. /// <summary>
  13. /// 產品類別
  14. /// </summary>
  15. [Column(Name = "PRODUCT_TYPE")]
  16. [Required, Key, StringLength(10), JsonPropertyName("PRODUCT_TYPE"), JsonPropertyOrder(1)]
  17. public string PRODUCT_TYPE { get; set; }
  18. /// <summary>
  19. /// 路線類別
  20. /// </summary>
  21. [Column(Name = "ROUTE_TYPE")]
  22. [Required, Key, StringLength(10), JsonPropertyName("ROUTE_TYPE"), JsonPropertyOrder(2)]
  23. public string ROUTE_TYPE { get; set; }
  24. /// <summary>
  25. /// 起始位置
  26. /// </summary>
  27. [Column(Name = "SOURCE_POSITION")]
  28. [Required, Key, StringLength(9), JsonPropertyName("SOURCE_POSITION"), JsonPropertyOrder(3)]
  29. public string SOURCE_POSITION { get; set; }
  30. /// <summary>
  31. /// 目的位置
  32. /// </summary>
  33. [Column(Name = "DESC_POSITION")]
  34. [Required, Key, StringLength(9), JsonPropertyName("DESC_POSITION"), JsonPropertyOrder(4)]
  35. public string DESC_POSITION { get; set; }
  36. /// <summary>
  37. /// 軟體編號
  38. /// </summary>
  39. [Column(Name = "SOFTWARE_ID")]
  40. [Required, StringLength(7), JsonPropertyName("SOFTWARE_ID"), JsonPropertyOrder(5)]
  41. public string SOFTWARE_ID { get; set; }
  42. /// <summary>
  43. /// 預估時間 (Sesc)
  44. /// </summary>
  45. [Column(Name = "ESTIMATED_TIME")]
  46. [JsonPropertyName("ESTIMATED_TIME"), JsonPropertyOrder(6)]
  47. public int ESTIMATED_TIME { get; set; }
  48. }
  49. }