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

51 rinda
1.6 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.JXJFoodSmallStation.Model
  9. {
  10. public class RemoteRecipeData: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 ObservableCollection<RemoteRecipeRawMaterial> RawMaterial { get; set; } = new ObservableCollection<RemoteRecipeRawMaterial>();
  31. /// <summary>
  32. /// 粉料仓的原料数据
  33. /// </summary>
  34. public ObservableCollection<WindSendRawMaterial> WindSend { get; set; } = new ObservableCollection<WindSendRawMaterial>();
  35. public RecipeSource RecipesSource { get { return _mRecipesSource; } set { _mRecipesSource = value; OnPropertyChanged(); } }
  36. private RecipeSource _mRecipesSource = RecipeSource.远程;
  37. }
  38. public enum RecipeSource
  39. {
  40. 本地,
  41. 远程
  42. }
  43. }