1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using System;
- using System.Collections.Generic;
- using System.Windows.Controls;
- using Comal.Classes;
- using InABox.Core;
- namespace PRSDesktop
- {
- /// <summary>
- /// Interaction logic for JobStockPanel.xaml
- /// </summary>
- public partial class JobStockPanel : UserControl, IPanel<StockHolding>, IJobControl
- {
- public JobStockPanel()
- {
- InitializeComponent();
- }
- public Guid ParentID { get; set; }
-
- public JobPanelSettings Settings { get; set; }
- public bool IsReady { get; set; }
- public event DataModelUpdateEvent OnUpdateDataModel;
- public void CreateToolbarButtons(IPanelHost host)
- {
- }
- public string SectionName => "Job Stock";
- public DataModel DataModel(Selection selection)
- {
- return new BaseDataModel<Job>(new Filter<Job>(x => x.ID).IsEqualTo(ParentID));
- }
- public void Heartbeat(TimeSpan time)
- {
- }
- public void Refresh()
- {
- // JobStockGrid.Refresh(false,true);
- }
- public Dictionary<string, object[]> Selected()
- {
- var result = new Dictionary<string, object[]>();
- return result;
- }
- public void Setup()
- {
- // JobStockGrid.Refresh(true, false);
- }
- public void Shutdown()
- {
- }
- }
- }
|