66 lines
1.5 KiB
C#
66 lines
1.5 KiB
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using System.Collections.ObjectModel;
|
|
|
|
namespace Plugin.Cowain.Wcs.ViewModels;
|
|
|
|
public partial class TaskViewModel : ObservableObject
|
|
{
|
|
[ObservableProperty]
|
|
private int _id;
|
|
|
|
[ObservableProperty]
|
|
private string _processName = string.Empty;
|
|
|
|
[ObservableProperty]
|
|
private int _processId;
|
|
|
|
[ObservableProperty]
|
|
private int _priority;
|
|
|
|
[ObservableProperty]
|
|
private int _fromStationId1;
|
|
[ObservableProperty]
|
|
private int _toStationId1;
|
|
|
|
[ObservableProperty]
|
|
private string _fromStatus1 = string.Empty;
|
|
[ObservableProperty]
|
|
private string _toStatus1 = string.Empty;
|
|
|
|
[ObservableProperty]
|
|
private int _fromStationId2;
|
|
[ObservableProperty]
|
|
private int _toStationId2;
|
|
|
|
[ObservableProperty]
|
|
private string _fromStatus2 = string.Empty;
|
|
[ObservableProperty]
|
|
private string _toStatus2 = string.Empty;
|
|
|
|
|
|
[ObservableProperty]
|
|
private string _action = string.Empty;
|
|
[ObservableProperty]
|
|
private string _qrCode1 = string.Empty;
|
|
[ObservableProperty]
|
|
private string _qrCode2 = string.Empty;
|
|
[ObservableProperty]
|
|
private int _executeAction;
|
|
|
|
[ObservableProperty]
|
|
private RgvActionViewModel? _selectedAction;
|
|
|
|
[ObservableProperty]
|
|
private ObservableCollection<RgvActionViewModel>? _actions;
|
|
|
|
[ObservableProperty]
|
|
private bool _isFinished;
|
|
|
|
[ObservableProperty]
|
|
private DateTime _creatTime;
|
|
|
|
[ObservableProperty]
|
|
private DateTime? _finishedTime;
|
|
|
|
}
|