1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- using System;
- using System.Windows;
- using System.Windows.Media.Imaging;
- using PropertyChanged;
- using Syncfusion.UI.Xaml.Kanban;
- namespace PRSDesktop
- {
- [DoNotNotify]
- public class ManufacturingKanban : KanbanModel
- {
- public int Quantity { get; set; }
- public string JobName { get; set; }
- public DateTime CreatedDate { get; set; }
- public DateTime DueDate { get; set; }
- public BitmapImage Image { get; set; }
- public bool Checked { get; set; }
- public Guid SetoutID { get; set; }
- public string Status { get; set; }
- public object SelectedColor { get; set; }
- public object SharedColor { get; set; }
- public bool IsSelected { get; set; }
- public string Template { get; set; }
- public string Flags { get; set; }
- public string Trolleys { get; set; }
- public object OrderColor { get; set; }
- public string OrderStatus { get; set; }
- public TimeSpan Time { get; set; }
- public double PercentageComplete { get; set; }
- public string Issues { get; set; }
- public BitmapImage IssuesImage { get; set; }
- public Guid TemplateID { get; set; }
- public Guid GroupID { get; set; }
- #region Group Display Properties
- //Automatically displays/hides the group section of a displayed packet, and sorts out things like the corner radius
- public CornerRadius MainRadius { get; set; }
- public CornerRadius OrderRadius { get; set; }
- public Visibility GroupVisibility { get; set; }
- private string groupname;
- public string GroupName
- {
- get => groupname;
- set
- {
- groupname = value;
- if (string.IsNullOrWhiteSpace(groupname))
- {
- GroupVisibility = Visibility.Collapsed;
- OrderRadius = new CornerRadius(5, 0, 0, 5);
- MainRadius = new CornerRadius(0, 5, 5, 0);
- }
- else
- {
- GroupVisibility = Visibility.Visible;
- OrderRadius = new CornerRadius(5, 0, 0, 0);
- MainRadius = new CornerRadius(0, 5, 0, 0);
- }
- }
- }
- #endregion
- }
- }
- //public class ManufacturingKanban2 : KanbanModel
- //{
- // private CoreRow _row = null;
- // public ManufacturingKanban2(CoreRow row) : base()
- // {
- // _row = row;
- // }
- // public int Quantity { get; set; }
- // public String JobName { get; set; }
- // public DateTime CreatedDate { get; set; }
- // public DateTime DueDate { get; set; }
- // public BitmapImage Image { get; set; }
- // public bool Checked { get; set; }
- // public Guid SetoutID { get; set; }
- // public String Status { get; set; }
- // public object SelectedColor { get; set; }
- // public object SharedColor { get; set; }
- // public bool IsSelected { get; set; }
- // public String Template { get; set; }
- // public String Flags { get; set; }
- // public String Trolleys { get; set; }
- // public object OrderColor { get; set; }
- // public String OrderStatus { get; set; }
- //}
|