CcsActionAddress.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using IMCS_CCS.Utils;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. namespace IMCS.CCS.Entitys
  5. {
  6. [Table("ccs_action_address")]
  7. public class CcsActionAddress
  8. {
  9. [Key]
  10. [Column("id")]
  11. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  12. public int Id { get; set; }
  13. [Column("action_id")]
  14. public int ActionId { get; set; }
  15. [Column("type")]
  16. public string Type { get; set; }
  17. [Column("address")]
  18. public string Address { get; set; }
  19. [Column("value")]
  20. public string Value { get; set; }
  21. [Column("check_type")]
  22. public bool CheckType { get; set; }
  23. [Column("sort")]
  24. public int Sort { get; set; }
  25. [Column("description")]
  26. public string Description { get; set; }
  27. [Column("data_type")]
  28. public string dataType { get; set; }
  29. }
  30. /// <summary>
  31. /// 动作地址类型
  32. /// </summary>
  33. public enum ActionAddressTypeEnum
  34. {
  35. [EnumDescription("写入")]
  36. WRITE,
  37. [EnumDescription("二次写入")]
  38. WRITE_SECOND,
  39. [EnumDescription("写入校验下一个是否条件写入")]
  40. WRITE_CHECK,
  41. [EnumDescription("校验")]
  42. CHECK,
  43. [EnumDescription("校验")]
  44. CHECK_GET,
  45. [EnumDescription("校验")]
  46. CHECK_SEND,
  47. [EnumDescription("校验")]
  48. CHECK_PLC,
  49. [EnumDescription("回调")]
  50. CALLBACK,
  51. [EnumDescription("失败回调")]
  52. CALLBACK_FAIL,
  53. [EnumDescription("回调复位")]
  54. RESET,
  55. [EnumDescription("校验写入是否成功")]
  56. CHECK_SUCESS,
  57. }
  58. }