ProductWithMes.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. using Prism.Mvvm;
  2. using SqlSugar;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace TeamAAS_VP.Models
  9. {
  10. [SugarTable("ProductWithMes")]
  11. public class ProductWithMes : BindableBase
  12. {
  13. //[SugarColumn(IsPrimaryKey = true)]
  14. //public Guid Id { get; set; } = Guid.NewGuid();
  15. private string _ProductName;
  16. [SugarColumn(IsPrimaryKey = true)]
  17. /// <summary>
  18. /// 产品名称
  19. /// </summary>
  20. public string ProductName
  21. {
  22. get { return _ProductName; }
  23. set { SetProperty(ref _ProductName, value); }
  24. }
  25. private string _ProductCode;
  26. /// <summary>
  27. /// 产品编码
  28. /// </summary>
  29. public string ProductCode
  30. {
  31. get { return _ProductCode; }
  32. set { SetProperty(ref _ProductCode, value); }
  33. }
  34. private string _ProductKBSN;
  35. /// <summary>
  36. /// 产品编码
  37. /// </summary>
  38. public string ProductKBSN
  39. {
  40. get { return _ProductKBSN; }
  41. set { SetProperty(ref _ProductKBSN, value); }
  42. }
  43. private string _ProductColor = "";
  44. /// <summary>
  45. /// 产品颜色
  46. /// </summary>
  47. public string ProductColor
  48. {
  49. get { return _ProductColor; }
  50. set { SetProperty(ref _ProductColor, value); }
  51. }
  52. private int _ProductLoadMode;
  53. /// <summary>
  54. /// 产品加载编号
  55. /// </summary>
  56. public int ProductLoadMode
  57. {
  58. get { return _ProductLoadMode; }
  59. set { SetProperty(ref _ProductLoadMode, value); }
  60. }
  61. ///// <summary>
  62. ///// 产品集合
  63. ///// </summary>
  64. //private List<string> _ProductLoadList = new List<string>();
  65. //public List<string> ProductLoadList
  66. //{
  67. // get { return _ProductLoadList; }
  68. // set { SetProperty(ref _ProductLoadList, value); }
  69. //}
  70. private string _ProductLoad;
  71. /// <summary>
  72. /// 产品集合
  73. /// </summary>
  74. [SugarColumn(Length =2550)]
  75. public string ProductLoad
  76. {
  77. get { return _ProductLoad; }
  78. set { SetProperty(ref _ProductLoad, value); }
  79. }
  80. }
  81. }