| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using CommunityToolkit.Mvvm.ComponentModel;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Diagnostics;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Input;
- namespace ivf_tl_Entity.Entity.balance
- {
- public partial class TLInfo : ObservableObject
- {
- public event Action<string,int> StateChangedEvent;
- public long id { get; set; }
- private string _tlSn;
- public string tlSn { get => _tlSn; set => SetProperty(ref _tlSn, value); }
- private string _tlName;
- public string tlName { get => _tlName; set => SetProperty(ref _tlName, value); }
- private int _state;
- /// <summary>
- /// 0在线空闲 1在线培养
- /// </summary>
- public int state
- {
- get => _state;
- set
- {
- SetProperty(ref _state, value);
- }
- }
- private int _online;
- /// <summary>
- /// 在线状态 0离线 1在线 2解绑 3待初始化
- /// </summary>
- public int online
- {
- get => _online;
- set
- {
- if (_online != value)
- {
- //Debug.WriteLine($"{tlName}:{_online}->{value}");
- SetProperty(ref _online, value);
- StateChangedEvent?.Invoke(tlName,value);
- }
- }
- }
- private ObservableCollection<House> _houses;
- public ObservableCollection<House> houses { get => _houses; set => SetProperty(ref _houses, value); }
- }
- }
|