ManufacturingKanban.cs 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 MainRadius { get; set; }
  36. public CornerRadius OrderRadius { 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. OrderRadius = new CornerRadius(5, 0, 0, 5);
  49. MainRadius = new CornerRadius(0, 5, 5, 0);
  50. }
  51. else
  52. {
  53. GroupVisibility = Visibility.Visible;
  54. OrderRadius = new CornerRadius(5, 0, 0, 0);
  55. MainRadius = new CornerRadius(0, 5, 0, 0);
  56. }
  57. }
  58. }
  59. #endregion
  60. }
  61. }
  62. //public class ManufacturingKanban2 : KanbanModel
  63. //{
  64. // private CoreRow _row = null;
  65. // public ManufacturingKanban2(CoreRow row) : base()
  66. // {
  67. // _row = row;
  68. // }
  69. // public int Quantity { get; set; }
  70. // public String JobName { get; set; }
  71. // public DateTime CreatedDate { get; set; }
  72. // public DateTime DueDate { get; set; }
  73. // public BitmapImage Image { get; set; }
  74. // public bool Checked { get; set; }
  75. // public Guid SetoutID { get; set; }
  76. // public String Status { get; set; }
  77. // public object SelectedColor { get; set; }
  78. // public object SharedColor { get; set; }
  79. // public bool IsSelected { get; set; }
  80. // public String Template { get; set; }
  81. // public String Flags { get; set; }
  82. // public String Trolleys { get; set; }
  83. // public object OrderColor { get; set; }
  84. // public String OrderStatus { get; set; }
  85. //}