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 lines
1.7 KiB

  1. using BPA.Helper;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Collections.ObjectModel;
  8. namespace BPA.Model
  9. {
  10. public class RecipeInfo : NotifyBase
  11. {
  12. /// <summary>
  13. /// 配方ID
  14. /// </summary>
  15. public string Id { get { return _mId; } set { _mId = value; OnPropertyChanged(); } }
  16. private string _mId;
  17. /// <summary>
  18. /// 配方名称
  19. /// </summary>
  20. public string Name { get { return _mName; } set { _mName = value; OnPropertyChanged(); } }
  21. private string _mName;
  22. /// <summary>
  23. /// 是否启用
  24. /// </summary>
  25. public bool IsEnable
  26. {
  27. get { return _mIsEnable; }
  28. set
  29. {
  30. if (_mIsEnable != value)
  31. {
  32. EnableChange?.Invoke(Id);
  33. }
  34. _mIsEnable = value;
  35. OnPropertyChanged();
  36. }
  37. }
  38. private bool _mIsEnable = true;
  39. /// <summary>
  40. /// 最后修改时间
  41. /// </summary>
  42. public string LastModified { get { return _mLastModified; } set { _mLastModified = value; OnPropertyChanged(); } }
  43. private string _mLastModified;
  44. public static Action<string> EnableChange { get; set; }
  45. ///// <summary>
  46. ///// 原料名称集合
  47. ///// </summary>
  48. //public ObservableCollection<string> RawMaters { get; set; } = new ObservableCollection<string>();
  49. ///// <summary>
  50. ///// 原料id列表
  51. ///// </summary>
  52. //public List<string> RawMaterIds { get; set; } = new List<string>();
  53. }
  54. }