123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- using IMCS_CCS.Utils;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
-
- namespace IMCS.CCS.Entitys
- {
- [Table("ccs_action_address")]
- public class CcsActionAddress
- {
- [Key]
- [Column("id")]
- [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
- public int Id { get; set; }
- [Column("action_id")]
- public int ActionId { get; set; }
- [Column("type")]
- public string Type { get; set; }
- [Column("address")]
- public string Address { get; set; }
- [Column("value")]
- public string Value { get; set; }
-
- [Column("check_type")]
- public bool CheckType { get; set; }
-
- [Column("sort")]
- public int Sort { get; set; }
- [Column("description")]
- public string Description { get; set; }
- [Column("data_type")]
- public string dataType { get; set; }
- }
- /// <summary>
- /// 动作地址类型
- /// </summary>
- public enum ActionAddressTypeEnum
- {
- [EnumDescription("写入")]
- WRITE,
- [EnumDescription("二次写入")]
- WRITE_SECOND,
- [EnumDescription("写入校验下一个是否条件写入")]
- WRITE_CHECK,
- [EnumDescription("校验")]
- CHECK,
- [EnumDescription("校验")]
- CHECK_GET,
- [EnumDescription("校验")]
- CHECK_SEND,
- [EnumDescription("校验")]
- CHECK_PLC,
- [EnumDescription("回调")]
- CALLBACK,
- [EnumDescription("失败回调")]
- CALLBACK_FAIL,
- [EnumDescription("回调复位")]
- RESET,
- [EnumDescription("校验写入是否成功")]
- CHECK_SUCESS,
- }
-
- }
|