59 lines
1.2 KiB
C#
59 lines
1.2 KiB
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using Newtonsoft.Json;
|
|
using Plugin.Cowain.Wcs.Models.Enum;
|
|
|
|
namespace Plugin.Cowain.Wcs.ViewModels;
|
|
|
|
public partial class StationViewModel : LayoutViewModel
|
|
{
|
|
|
|
|
|
[ObservableProperty]
|
|
private string _processName = string.Empty;
|
|
|
|
|
|
|
|
[ObservableProperty]
|
|
private string _qrCode = string.Empty;
|
|
|
|
[ObservableProperty]
|
|
private float _positionX;
|
|
|
|
[ObservableProperty]
|
|
private float _positionY;
|
|
|
|
[ObservableProperty]
|
|
private float _positionZ;
|
|
|
|
[ObservableProperty]
|
|
private int _stationPos;
|
|
|
|
[ObservableProperty]
|
|
private string _status = string.Empty;
|
|
|
|
[ObservableProperty]
|
|
private int _nextStationId;
|
|
|
|
[ObservableProperty]
|
|
private bool _enable;
|
|
[ObservableProperty]
|
|
private DateTime _createTime;
|
|
[ObservableProperty]
|
|
private DateTime _updateTime;
|
|
|
|
/// <summary>
|
|
/// 入队列时间
|
|
/// </summary>
|
|
public DateTime EnqueueTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 消费用时
|
|
/// </summary>
|
|
public double ConsumeUseTime { get; set; }
|
|
[JsonIgnore]
|
|
public StationUpdateSourceEnum UpdateSource { get; set; } = StationUpdateSourceEnum.User;
|
|
[JsonIgnore]
|
|
public Action<bool>? UpdatedAction { get; set; }
|
|
|
|
}
|