123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- using System;
- using System.Collections.ObjectModel;
- using System.Windows.Media;
- using Comal.Classes;
- using InABox.Core;
- using InABox.WPF;
- namespace PRSDesktop
- {
- public class MeetingModel : Model<MeetingModel, Meeting>
- {
- public Guid MeetingID { get; set; }
-
- public int Number { get; set; }
- public String? Title { get; set; }
- public String? Description { get; set; }
-
- public DateTime Date { get; }
- public TimeSpan Start { get; set; }
- public TimeSpan Finish { get; set; }
- public TimeSpan Duration { get; }
-
- public Guid ActivityID { get; set; }
- public string? ActivityCode { get; }
- public string? ActivityDescription { get; }
- public string? Color { get; }
-
-
- public MeetingModel(CoreRow row) : base(row)
- {
-
- MeetingID = Get(x => x.ID);
-
- Number = Get(x => x.Number);
- Title = Get(x => x.Title);
- Description = Get(x => x.Description);
-
- Date = Get(x=>x.Date);
- Start = Get(x => x.Time.Start);
- Finish = Get(x => x.Time.Finish);
- Duration = Get(x => x.Time.Duration);
-
- ActivityID = Get(x => x.Activity.ID);
- ActivityCode = Get(x => x.Activity.Code);
- ActivityDescription = Get(x => x.Activity.Description);
- Color = Get(x => x.Activity.Color);
-
- }
-
- public override Columns<Meeting> GetColumns()
- {
- return InABox.Core.Columns.None<Meeting>().Add(x => x.ID)
- .Add(x => x.Number)
- .Add(x => x.Title)
- .Add(x => x.Description)
-
- .Add(x => x.Date)
- .Add(x => x.Time.Start)
- .Add(x => x.Time.Duration)
- .Add(x => x.Time.Finish)
-
- .Add(x => x.Activity.ID)
- .Add(x => x.Activity.Code)
- .Add(x => x.Activity.Description)
- .Add(x => x.Activity.Color);
-
- }
- }
- }
|