TdevWebScadaDevSpotViewModel.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Xml.Linq;
  8. namespace Ropin.Inspection.Model
  9. {
  10. public class TdevWebScadaDevSpotViewModel : BaseViewModel
  11. {
  12. public string C_ID { get; set; }
  13. public string C_Name { get; set; }
  14. public string C_ControlID { get; set; }
  15. public string C_DevSpotCode { get; set; }
  16. public string C_Type { get; set; }
  17. public string C_GroupName { get; set; }
  18. public bool IsCalFormula { get; set; }
  19. public string C_CalFormula { get; set; }
  20. public string C_UnitName { get; set; }
  21. public string C_BoxSpot { get; set; }
  22. public string C_BoxID { get; set; }
  23. public string C_BoxNo { get; set; }
  24. public string C_BoxName { get; set; }
  25. public string C_StoreCode { get; set; }
  26. public int I_Sort { get; set; }
  27. public string C_Remark { get; set; }
  28. public Guid C_CreateBy { get; set; }
  29. public DateTime D_CreateOn { get; set; }
  30. public Guid? C_LastUpdatedBy { get; set; }
  31. public DateTime? D_LastUpdatedOn { get; set; }
  32. public char C_Status { get; set; }
  33. public bool BMinax { get; set; }
  34. public string MinValue { get; set; }
  35. public string MaxValue { get; set; }
  36. public bool FBMinax { get; set; }
  37. public string FMinValue { get; set; }
  38. public string FMaxValue { get; set; }
  39. public bool BAlarm { get; set; }
  40. public string AlarmValue { get; set; }
  41. public string C_Run { get; set; }
  42. public string C_Public { get; set; }
  43. }
  44. /// <summary>
  45. /// 运行点
  46. /// </summary>
  47. public class TDEV_DevRunSpot : BaseViewModel
  48. {
  49. public string C_ID { get; set; }
  50. public DateTime? D_CreateOn { get; set; }
  51. }
  52. public class TdevDevStoreRunSpotConfigViewModel
  53. {
  54. public IEnumerable<RunSpotConfig> RunSpotConfigList { get; set; }
  55. }
  56. public class RunSpotConfig
  57. {
  58. public string Label { get; set; }
  59. public string Name { get; set; }
  60. public string Value { get; set; }
  61. //是否读取设备点
  62. public bool BReadDevSpot { get; set; }
  63. //设备点ID
  64. public string DevSpotId { get; set; }
  65. public string DevSpotName { get; set; }
  66. public string DevSpotGroupName { get; set; }
  67. public string DevSpotUnitName { get; set; }
  68. public string DevSpotBoxNo { get; set; }
  69. }
  70. public class TdevDevStoreUserConfigViewModel
  71. {
  72. public IEnumerable<DevStoreUser> UserConfigList { get; set; }
  73. }
  74. public class DevStoreUser
  75. {
  76. public string UserId { get; set; }
  77. public string UserName { get; set; }
  78. public string UserRole { get; set; }
  79. public int? Sort { get; set; }
  80. }
  81. public class TDEV_WebScadaDevSpotEndity
  82. {
  83. public string C_ID { get; set; }
  84. public string C_Name { get; set; }
  85. public string C_DevCode { get; set; }
  86. public string C_ControlID { get; set; }
  87. public string C_DevSpotCode { get; set; }
  88. public string C_Type { get; set; }
  89. public string C_CalFormula { get; set; }
  90. public string C_GroupName { get; set; }
  91. public string C_UnitName { get; set; }
  92. public string C_BoxSpot { get; set; }
  93. public string C_BoxID { get; set; }
  94. public string C_BoxNo { get; set; }
  95. public string C_BoxName { get; set; }
  96. public string C_StoreCode { get; set; }
  97. public string C_Run { get; set; }
  98. public string C_Remark { get; set; }
  99. public Guid C_CreateBy { get; set; }
  100. public DateTime D_CreateOn { get; set; }
  101. public Guid? C_LastUpdatedBy { get; set; }
  102. public DateTime? D_LastUpdatedOn { get; set; }
  103. public string C_Status { get; set; } = "1";
  104. public string C_Public { get; set; } = "1";
  105. }
  106. }