ManufacturingKanban.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. using System;
  2. using System.Windows;
  3. using System.Windows.Media.Imaging;
  4. using PropertyChanged;
  5. using Syncfusion.UI.Xaml.Kanban;
  6. namespace PRSDesktop
  7. {
  8. [DoNotNotify]
  9. public class ManufacturingKanban : KanbanModel
  10. {
  11. public int Quantity { get; set; }
  12. public string JobName { get; set; }
  13. public DateTime CreatedDate { get; set; }
  14. public DateTime DueDate { get; set; }
  15. public BitmapImage Image { get; set; }
  16. public bool Checked { get; set; }
  17. public Guid SetoutID { get; set; }
  18. public string Status { get; set; }
  19. public object SelectedColor { get; set; }
  20. public object SharedColor { get; set; }
  21. public bool IsSelected { get; set; }
  22. public string Template { get; set; }
  23. public string Flags { get; set; }
  24. public string Trolleys { get; set; }
  25. public object OrderColor { get; set; }
  26. public string OrderStatus { get; set; }
  27. public TimeSpan Time { get; set; }
  28. public double PercentageComplete { get; set; }
  29. public string Issues { get; set; }
  30. public BitmapImage IssuesImage { get; set; }
  31. public Guid TemplateID { get; set; }
  32. public Guid GroupID { get; set; }
  33. #region Group Display Properties
  34. //Automatically displays/hides the group section of a displayed packet, and sorts out things like the corner radius
  35. public CornerRadius MainSectionRadius { get; set; }
  36. public CornerRadius LeftSectionRadius { get; set; }
  37. public Visibility GroupVisibility { get; set; }
  38. private string groupname;
  39. public string GroupName
  40. {
  41. get => groupname;
  42. set
  43. {
  44. groupname = value;
  45. if (string.IsNullOrWhiteSpace(groupname))
  46. {
  47. GroupVisibility = Visibility.Collapsed;
  48. LeftSectionRadius = new CornerRadius(5, 0, 0, 5);
  49. MainSectionRadius = new CornerRadius(0, 5, 5, 0);
  50. }
  51. else
  52. {
  53. GroupVisibility = Visibility.Visible;
  54. LeftSectionRadius = new CornerRadius(5, 0, 0, 0);
  55. MainSectionRadius = new CornerRadius(0, 5, 0, 0);
  56. }
  57. }
  58. }
  59. #endregion
  60. public ManufacturingKanban()
  61. {
  62. GroupVisibility = Visibility.Collapsed;
  63. LeftSectionRadius = new CornerRadius(5, 0, 0, 5);
  64. MainSectionRadius = new CornerRadius(0, 5, 5, 0);
  65. }
  66. }
  67. }
  68. //public class ManufacturingKanban2 : KanbanModel
  69. //{
  70. // private CoreRow _row = null;
  71. // public ManufacturingKanban2(CoreRow row) : base()
  72. // {
  73. // _row = row;
  74. // }
  75. // public int Quantity { get; set; }
  76. // public String JobName { get; set; }
  77. // public DateTime CreatedDate { get; set; }
  78. // public DateTime DueDate { get; set; }
  79. // public BitmapImage Image { get; set; }
  80. // public bool Checked { get; set; }
  81. // public Guid SetoutID { get; set; }
  82. // public String Status { get; set; }
  83. // public object SelectedColor { get; set; }
  84. // public object SharedColor { get; set; }
  85. // public bool IsSelected { get; set; }
  86. // public String Template { get; set; }
  87. // public String Flags { get; set; }
  88. // public String Trolleys { get; set; }
  89. // public object OrderColor { get; set; }
  90. // public String OrderStatus { get; set; }
  91. //}