123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Windows.Controls;
- using Comal.Classes;
- using InABox.Clients;
- using InABox.Core;
- namespace PRSDesktop
- {
- /// <summary>
- /// Interaction logic for ConsignmentDock.xaml
- /// </summary>
- public partial class ConsignmentDock : UserControl, IDockPanel
- {
- public ConsignmentDock()
- {
- InitializeComponent();
- }
- public void Setup()
- {
-
- }
-
- public void Refresh()
- {
- Consignments.ItemsSource = null;
- new Client<Consignment>().Load(
- new Filter<Consignment>(x => x.Closed).IsEqualTo(DateTime.MinValue),
- new SortOrder<Consignment>(x => x.EstimatedWarehouseArrival),
- CoreRange.All,
- (c, e) => { Dispatcher.Invoke(() => { Consignments.ItemsSource = c; }); }
- );
- }
- }
- }
|