| 1234567891011121314151617181920212223242526272829303132333435363738 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading;
- using Comal.Classes;
- using InABox.Clients;
- using InABox.Core;
- using InABox.DynamicGrid;
- namespace PRSDesktop;
- public class MeetingMotionGrid :DynamicDataGrid<MeetingMotion>
- {
-
- public MeetingModel? Model { get; set; }
-
- public MeetingMotionGrid()
- {
- }
- protected override void DoReconfigure(DynamicGridOptions options)
- {
- base.DoReconfigure(options);
- options.Clear();
- options.SelectColumns = true;
- }
-
- protected override void Reload(
- Filters<MeetingMotion> criteria, Columns<MeetingMotion> columns, ref SortOrder<MeetingMotion>? sort,
- CancellationToken token, Action<CoreTable?, Exception?> action)
- {
- var meetingfilter = (Model == null) || (Model.ID == Guid.Empty)
- ? new Filter<MeetingMotion>().None()
- : Filter<MeetingMotion>.Where(x => x.Item.Meeting.ID).IsEqualTo(Model.ID);
- criteria.Add(meetingfilter);
- base.Reload(criteria, columns, ref sort, token, action);
- }
-
- }
|