终端一体化运控平台
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.

OrderData.cs 2.1 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using BPA.Message;
  2. using BPA.Message.Enum;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Collections.ObjectModel;
  9. using Microsoft.Toolkit.Mvvm.ComponentModel;
  10. namespace BPASmartClient.Model
  11. {
  12. public class OrderData : ObservableObject
  13. {
  14. public bool IsAllSelect
  15. {
  16. get { return _mIsAllSelect; }
  17. set
  18. {
  19. _mIsAllSelect = value;
  20. OnPropertyChanged();
  21. for (int i = 0; i < morkOrderPushes.Count; i++)
  22. {
  23. morkOrderPushes.ElementAt(i).IsSelected = value;
  24. }
  25. }
  26. }
  27. private bool _mIsAllSelect;
  28. public string DeviceId { get { return _mDeviceId; } set { _mDeviceId = value; OnPropertyChanged(); } }
  29. private string _mDeviceId;
  30. public ObservableCollection<MorkOrder> morkOrderPushes { get; set; } = new ObservableCollection<MorkOrder>();
  31. }
  32. public class MorkOrder : ObservableObject
  33. {
  34. public bool IsSelected { get { return _mIsSelected; } set { _mIsSelected = value; OnPropertyChanged(); } }
  35. private bool _mIsSelected = true;
  36. public MorkOrderPush OrderPush { get { return _mOrderPush; } set { _mOrderPush = value; OnPropertyChanged(); } }
  37. private MorkOrderPush _mOrderPush = new MorkOrderPush();
  38. public ORDER_STATUS OrderStatus { get { return _mOrderStatus; } set { _mOrderStatus = value; OnPropertyChanged(); } }
  39. private ORDER_STATUS _mOrderStatus;
  40. public string StartDate { get { return _mStartDate; } set { _mStartDate = value; OnPropertyChanged(); } }
  41. private string _mStartDate = string.Empty;
  42. public string EndDate { get { return _mEndDate; } set { _mEndDate = value; OnPropertyChanged(); } }
  43. private string _mEndDate = string.Empty;
  44. public string CompleteDate { get { return _mCompleteDate; } set { _mCompleteDate = value; OnPropertyChanged(); } }
  45. private string _mCompleteDate = string.Empty;
  46. }
  47. }