终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

81 lines
2.6 KiB

  1. using BPASmart.VariableManager.Enums;
  2. using Microsoft.Toolkit.Mvvm.Input;
  3. using Newtonsoft.Json;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Collections.ObjectModel;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace BPASmart.VariableManager.Models
  11. {
  12. /// <summary>
  13. /// 属性绑定信息
  14. /// </summary>
  15. public class PropBindInfo : VariableInfo
  16. {
  17. //public PropBindInfo()
  18. //{
  19. // ComboBoxItemInit();
  20. // //CancelCommand = new RelayCommand(() => { IsOpen = false; });
  21. // //ConfirmCommand = new RelayCommand(() => { IsOpen = false; });
  22. //}
  23. ///// <summary>
  24. ///// 数据类型下拉列表
  25. ///// </summary>
  26. //public ObservableCollection<string> dataType { get; set; } = new ObservableCollection<string>();
  27. ///// <summary>
  28. ///// 报警类型下拉列表
  29. ///// </summary>
  30. //public ObservableCollection<string> alarmType { get; set; } = new ObservableCollection<string>();
  31. ///// <summary>
  32. ///// 报警设置窗离散量报警类型
  33. ///// </summary>
  34. //public ObservableCollection<string> PopupDiscreteAlarmType { get; set; } = new ObservableCollection<string>();
  35. ///// <summary>
  36. ///// 是否显示报警设置框
  37. ///// </summary>
  38. //public bool IsOpen { get { return _mIsOpen; } set { _mIsOpen = value; OnPropertyChanged(); } }
  39. //private bool _mIsOpen;
  40. //public bool IsRedundant { get { return _mIsRedundant; } set { _mIsRedundant = value; OnPropertyChanged(); } }
  41. //private bool _mIsRedundant;
  42. ///// <summary>
  43. ///// 报警设置框取消操作
  44. ///// </summary>
  45. //public RelayCommand CancelCommand { get; set; }
  46. ///// <summary>
  47. ///// 报警设置框确认按钮
  48. ///// </summary>
  49. //public RelayCommand ConfirmCommand { get; set; }
  50. ///// <summary>
  51. ///// 下拉列表初始化
  52. ///// </summary>
  53. //private void ComboBoxItemInit()
  54. //{
  55. // dataType.Clear();
  56. // alarmType.Clear();
  57. // PopupDiscreteAlarmType.Clear();
  58. // string[] DataTypeNames = Enum.GetNames(typeof(EDataType));
  59. // foreach (var item in DataTypeNames) { dataType.Add(item); }
  60. // string[] AlarmTypeNames = Enum.GetNames(typeof(EAlarmType));
  61. // foreach (var item in AlarmTypeNames) { alarmType.Add(item); }
  62. // string[] PopupAlarmTypes = Enum.GetNames(typeof(EAlongTriggerType));
  63. // foreach (var item in PopupAlarmTypes) { PopupDiscreteAlarmType.Add(item); }
  64. //}
  65. }
  66. }