Pallet.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. using TeamAAS_VP.Interfaces;
  10. namespace TeamAAS_VP.Models
  11. {
  12. /// <summary>
  13. /// 托盘
  14. /// </summary>
  15. public class Pallet : BindableBase
  16. {
  17. private Guid _Id;
  18. public Guid Id
  19. {
  20. get { return _Id; }
  21. set { SetProperty(ref _Id,value); }
  22. }
  23. private string _Name;
  24. public string Name
  25. {
  26. get { return _Name; }
  27. set { SetProperty(ref _Name, value); }
  28. }
  29. private string _Description;
  30. /// <summary>
  31. /// 描述
  32. /// </summary>
  33. public string Description
  34. {
  35. get { return _Description; }
  36. set { SetProperty(ref _Description, value); }
  37. }
  38. private int _Row;
  39. public int Row
  40. {
  41. get { return _Row; }
  42. set { SetProperty(ref _Row, value); }
  43. }
  44. private int _Column;
  45. public int Column
  46. {
  47. get { return _Column; }
  48. set { SetProperty(ref _Column, value); }
  49. }
  50. private RPoint _P0;
  51. public RPoint P0
  52. {
  53. get { return _P0; }
  54. set { SetProperty(ref _P0, value); }
  55. }
  56. private RPoint _P1;
  57. public RPoint P1
  58. {
  59. get { return _P1; }
  60. set { SetProperty(ref _P1, value); }
  61. }
  62. private RPoint _P2;
  63. public RPoint P2
  64. {
  65. get { return _P2; }
  66. set { SetProperty(ref _P2, value); }
  67. }
  68. private PalletArrangement _Arrangement;
  69. public PalletArrangement Arrangement
  70. {
  71. get { return _Arrangement; }
  72. set { SetProperty(ref _Arrangement, value); }
  73. }
  74. private PalletExtend _Extend;
  75. /// <summary>
  76. /// 组合托盘功能
  77. /// </summary>
  78. public PalletExtend Extend
  79. {
  80. get { return _Extend; }
  81. set { SetProperty(ref _Extend, value); }
  82. }
  83. public Pallet Clone()
  84. {
  85. return JsonConvert.DeserializeObject<Pallet>(JsonConvert.SerializeObject(this)); ;
  86. }
  87. }
  88. }