BasPlcItemConfigDto.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. using Model.Entities;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Model.Dto
  8. {
  9. public class BasPlcItemConfigDto:BaseDto
  10. {
  11. public long Id { get; set; }
  12. /// <summary>
  13. /// Desc:
  14. /// Default:
  15. /// Nullable:True
  16. /// </summary>
  17. public string PlcCode { get; set; }
  18. /// <summary>
  19. /// Desc:
  20. /// Default:
  21. /// Nullable:True
  22. /// </summary>
  23. private string plcItem { get; set; }
  24. public string PlcItem
  25. {
  26. get { return plcItem; }
  27. set { plcItem = value; OnPropertyChanged(); }
  28. }
  29. public string plcAddType { get; set; }
  30. public string PlcAddType
  31. {
  32. get { return plcAddType; }
  33. set { plcAddType = value; OnPropertyChanged(); }
  34. }
  35. /// <summary>
  36. /// Desc:
  37. /// Default:
  38. /// Nullable:True
  39. /// </summary>
  40. private string plcAddress { get; set; }
  41. public string PlcAddress
  42. {
  43. get { return plcAddress; }
  44. set { plcAddress = value; OnPropertyChanged(); }
  45. }
  46. private string plcValue { get; set; }
  47. public string PlcValue
  48. {
  49. get { return plcValue; }
  50. set { plcValue = value; OnPropertyChanged(); }
  51. }
  52. /// <summary>
  53. /// plc实时值(数据库中没有的字段,方便测试时绑定使用)
  54. /// </summary>
  55. private string realValue { get; set; }
  56. public string RealValue
  57. {
  58. get { return realValue; }
  59. set { realValue = value; OnPropertyChanged(); }
  60. }
  61. /// <summary>
  62. /// Desc:
  63. /// Default:
  64. /// Nullable:True
  65. /// </summary>
  66. private string remark { get; set; }
  67. public string Remark
  68. {
  69. get { return remark; }
  70. set { remark = value; OnPropertyChanged(); }
  71. }
  72. }
  73. }