JobStockPanel.xaml.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Windows.Controls;
  4. using Comal.Classes;
  5. using InABox.Core;
  6. namespace PRSDesktop
  7. {
  8. /// <summary>
  9. /// Interaction logic for JobStockPanel.xaml
  10. /// </summary>
  11. public partial class JobStockPanel : UserControl, IPanel<StockHolding>, IJobControl
  12. {
  13. public JobStockPanel()
  14. {
  15. InitializeComponent();
  16. }
  17. public Guid JobID { get; set; }
  18. public bool IsReady { get; set; }
  19. public event DataModelUpdateEvent OnUpdateDataModel;
  20. public void CreateToolbarButtons(IPanelHost host)
  21. {
  22. }
  23. public string SectionName => "Job Stock";
  24. public DataModel DataModel(Selection selection)
  25. {
  26. return new BaseDataModel<Job>(new Filter<Job>(x => x.ID).IsEqualTo(JobID));
  27. }
  28. public void Heartbeat(TimeSpan time)
  29. {
  30. }
  31. public void Refresh()
  32. {
  33. // JobStockGrid.Refresh(false,true);
  34. }
  35. public Dictionary<string, object[]> Selected()
  36. {
  37. var result = new Dictionary<string, object[]>();
  38. return result;
  39. }
  40. public void Setup()
  41. {
  42. // JobStockGrid.Refresh(true, false);
  43. }
  44. public void Shutdown()
  45. {
  46. }
  47. }
  48. }