PickInfo.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using Newtonsoft.Json;
  2. using Prism.Mvvm;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using TeamAAS_VP.Enums;
  9. namespace TeamAAS_VP.Models
  10. {
  11. /// <summary>
  12. /// 取料方式
  13. /// </summary>
  14. public class PickInfo : BindableBase
  15. {
  16. private PickPlaceModel _PickPlaceModel;
  17. /// <summary>
  18. /// 取料方式
  19. /// </summary>
  20. public PickPlaceModel PickPlaceModel
  21. {
  22. get { return _PickPlaceModel; }
  23. set { SetProperty(ref _PickPlaceModel,value); }
  24. }
  25. private int _Inhal = -1;
  26. /// <summary>
  27. /// 吸气/夹紧
  28. /// </summary>
  29. public int Inhal
  30. {
  31. get { return _Inhal; }
  32. set { SetProperty(ref _Inhal, value); }
  33. }
  34. private int _Blow = -1;
  35. /// <summary>
  36. /// 吹气/松开
  37. /// </summary>
  38. public int Blow
  39. {
  40. get { return _Blow; }
  41. set { SetProperty(ref _Blow, value); }
  42. }
  43. public PickInfo Clone()
  44. {
  45. return JsonConvert.DeserializeObject<PickInfo>(JsonConvert.SerializeObject(this)); ;
  46. }
  47. }
  48. }