终端一体化运控平台
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

OrderData.cs 2.0 KiB

před 1 rokem
před 1 rokem
před 1 rokem
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 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. }