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.

58 lines
2.1 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_SOFTWARE")]
  10. public class CfgSoftwareDto : CommonDto
  11. {
  12. /// <summary>
  13. /// 軟體編號
  14. /// </summary>
  15. /// <remarks>[Sofeware Type]C[Floor][Sequence * 2]</remarks>
  16. [Column(Name = "SOFTWARE_ID")]
  17. [Required, Key, StringLength(7), JsonPropertyName("SOFTWARE_ID"), JsonPropertyOrder(1)]
  18. public string SOFTWARE_ID { get; set; }
  19. /// <summary>
  20. /// 軟體類別
  21. /// </summary>
  22. /// <value>
  23. /// AGV <br/>
  24. /// SHT <br/>
  25. /// PLC <br/>
  26. /// </value>
  27. [Column(Name = "SOFTWARE_TYPE")]
  28. [Required, StringLength(3), JsonPropertyName("SOFTWARE_TYPE"), JsonPropertyOrder(2)]
  29. public string SOFTWARE_TYPE { get; set; }
  30. /// <summary>
  31. /// 軟體名稱
  32. /// </summary>
  33. [Column(Name = "SOFTWARE_NAME")]
  34. [StringLength(30), JsonPropertyName("SOFTWARE_NAME"), JsonPropertyOrder(3)]
  35. public string SOFTWARE_NAME { get; set; }
  36. /// <summary>
  37. /// 軟體敘述
  38. /// </summary>
  39. [Column(Name = "SOFTWARE_DESC")]
  40. [StringLength(50), JsonPropertyName("SOFTWARE_DESC"), JsonPropertyOrder(4)]
  41. public string SOFTWARE_DESC { get; set; }
  42. /// <summary>
  43. /// 軟體網路位址
  44. /// </summary>
  45. /// <remarks>127.0.0.1</remarks>
  46. [Column(Name = "SOFTWARE_ADDRESS")]
  47. [Required, StringLength(15), JsonPropertyName("SOFTWARE_ADDRESS"), JsonPropertyOrder(5)]
  48. public string SOFTWARE_ADDRESS { get; set; }
  49. /// <summary>
  50. /// 軟體通訊埠口
  51. /// </summary>
  52. /// <remarks>8080</remarks>
  53. [Column(Name = "SOFTWARE_PORT")]
  54. [Required, JsonPropertyName("SOFTWARE_PORT"), JsonPropertyOrder(6)]
  55. public int SOFTWARE_PORT { get; set; }
  56. }
  57. }