终端一体化运控平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

100 linhas
3.5 KiB

  1. using Microsoft.Toolkit.Mvvm.ComponentModel;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace BPASmartClient.DosingHKProject.Model.RawMaterial
  8. {
  9. public class RawMaterialColl : ObservableObject
  10. {
  11. /// <summary>
  12. /// 原料设备IP
  13. /// </summary>
  14. public string DeviceIp { get; set; }
  15. /// <summary>
  16. /// 原料名称
  17. /// </summary>
  18. public string RawMaterialName { get { return _mRawMaterialName; } set { _mRawMaterialName = value; OnPropertyChanged(); } }
  19. private string _mRawMaterialName;
  20. /// <summary>
  21. /// 原料重量设置
  22. /// </summary>
  23. public uint RawMaterialWeight { get { return _mRawMaterialWeight; } set { _mRawMaterialWeight = value; OnPropertyChanged(); } }
  24. private uint _mRawMaterialWeight;
  25. /// <summary>
  26. /// 原料来源
  27. /// 0:本地
  28. /// 1:设备
  29. /// </summary>
  30. public ushort RawMaterialSource { get { return _mRawMaterialSource; } set { _mRawMaterialSource = value; OnPropertyChanged(); } }
  31. private ushort _mRawMaterialSource;
  32. /// <summary>
  33. /// 原料类型 MW18
  34. /// 1:液体
  35. /// 2:膏体
  36. /// 3:粉体
  37. /// </summary>
  38. [Newtonsoft.Json.JsonIgnore]
  39. public ushort RawMaterialType { get { return _mRawMaterialType; } set { _mRawMaterialType = value; OnPropertyChanged(); } }
  40. private ushort _mRawMaterialType;
  41. /// <summary>
  42. /// 料仓重量反馈 MD40
  43. /// </summary>
  44. [Newtonsoft.Json.JsonIgnore]
  45. public float WeightFeedback { get { return _mWeightFeedback; } set { _mWeightFeedback = value; OnPropertyChanged(); } }
  46. private float _mWeightFeedback;
  47. /// <summary>
  48. /// 上限反馈
  49. /// </summary>
  50. [Newtonsoft.Json.JsonIgnore]
  51. public bool UpLimtFeedback { get { return _mUpLimtFeedback; } set { _mUpLimtFeedback = value; OnPropertyChanged(); } }
  52. private bool _mUpLimtFeedback;
  53. /// <summary>
  54. /// 下限反馈
  55. /// </summary>
  56. [Newtonsoft.Json.JsonIgnore]
  57. public bool DownLimtFeedback { get { return _mDownLimtFeedback; } set { _mDownLimtFeedback = value; OnPropertyChanged(); } }
  58. private bool _mDownLimtFeedback;
  59. /// <summary>
  60. /// 下料重量反馈 MD52
  61. /// </summary>
  62. [Newtonsoft.Json.JsonIgnore]
  63. public float UpLimtWeightFeedback { get { return _mUpLimtWeightFeedback; } set { _mUpLimtWeightFeedback = value; OnPropertyChanged(); } }
  64. private float _mUpLimtWeightFeedback;
  65. /// <summary>
  66. /// 原料ID
  67. /// </summary>
  68. public string RawMaterialId { get { return _mRawMaterialId; } set { _mRawMaterialId = value; OnPropertyChanged(); } }
  69. private string _mRawMaterialId;
  70. /// <summary>
  71. /// 原料设备执行状态
  72. /// 1:等待配料
  73. /// 2:下料中
  74. /// 3:下料完成
  75. /// </summary>
  76. [Newtonsoft.Json.JsonIgnore]
  77. public ushort RecipeStatus { get { return _mRecipeStatus; } set { _mRecipeStatus = value; OnPropertyChanged(); } }
  78. private ushort _mRecipeStatus = 1;
  79. /// <summary>
  80. /// 原料对应的桶号
  81. /// </summary>
  82. public ushort BarrelNum { get { return _mBarrelNum; } set { _mBarrelNum = value; OnPropertyChanged(); } }
  83. private ushort _mBarrelNum = 1;
  84. }
  85. }