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

62 regels
2.0 KiB

  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 BPA.Helper;
  10. namespace BPASmartClient.Model
  11. {
  12. public class OrderData : NotifyBase
  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 : NotifyBase
  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. }