JobStockPanel.xaml.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 ParentID { get; set; }
  18. public JobPanelSettings Settings { get; set; }
  19. public bool IsReady { get; set; }
  20. public event DataModelUpdateEvent OnUpdateDataModel;
  21. public void CreateToolbarButtons(IPanelHost host)
  22. {
  23. }
  24. public string SectionName => "Job Stock";
  25. public DataModel DataModel(Selection selection)
  26. {
  27. return new BaseDataModel<Job>(new Filter<Job>(x => x.ID).IsEqualTo(ParentID));
  28. }
  29. public void Heartbeat(TimeSpan time)
  30. {
  31. }
  32. public void Refresh()
  33. {
  34. // JobStockGrid.Refresh(false,true);
  35. }
  36. public Dictionary<string, object[]> Selected()
  37. {
  38. var result = new Dictionary<string, object[]>();
  39. return result;
  40. }
  41. public void Setup()
  42. {
  43. // JobStockGrid.Refresh(true, false);
  44. }
  45. public void Shutdown()
  46. {
  47. }
  48. }
  49. }