终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

57 rindas
1.9 KiB

  1. using Microsoft.Toolkit.Mvvm.ComponentModel;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Collections.ObjectModel;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace BPASmartClient.JXJFoodBigStation.Model
  9. {
  10. public class RecipeData : ObservableObject
  11. {
  12. /// <summary>
  13. /// 配方名称
  14. /// </summary>
  15. public string RecipeName { get { return _mRecipeName; } set { _mRecipeName = value; OnPropertyChanged(); } }
  16. private string _mRecipeName;
  17. /// <summary>
  18. /// 配方ID
  19. /// </summary>
  20. public string RecipeCode { get { return _mRecipeCode; } set { _mRecipeCode = value;OnPropertyChanged(); } }
  21. private string _mRecipeCode;
  22. /// <summary>
  23. /// 托盘编号
  24. /// </summary>
  25. public int TrayCode { get { return _mTrayCode; } set { _mTrayCode = value; OnPropertyChanged(); } }
  26. private int _mTrayCode;
  27. /// <summary>
  28. /// 配方类型是否为洗桶
  29. /// </summary>
  30. public string OrderType { get { return _mOrderType; } set { _mOrderType = value; OnPropertyChanged(); } }
  31. private string _mOrderType;
  32. /// <summary>
  33. /// 配方类型是否为洗桶
  34. /// </summary>
  35. public bool IsWashingBarrel { get { return _mIsWashingBarrel; } set { _mIsWashingBarrel = value; OnPropertyChanged(); } }
  36. private bool _mIsWashingBarrel;
  37. /// <summary>
  38. /// 原料数据
  39. /// </summary>
  40. public ObservableCollection<RawMaterial> RawMaterial { get; set; } = new ObservableCollection<RawMaterial>();
  41. public RecipeSource RecipesSource { get { return _mRecipesSource; } set { _mRecipesSource = value; OnPropertyChanged(); } }
  42. private RecipeSource _mRecipesSource = RecipeSource.远程;
  43. }
  44. public enum RecipeSource
  45. {
  46. 本地,
  47. 远程
  48. }
  49. }