/// <summary>
        /// Adds the summary
        /// </summary>
        /// <param name="item">Item to track</param>
        /// <param name="running">Current unit amount going into shift</param>
        /// <returns>Units in inventory after shift</returns>
        public double AddSummary(ProductMasterItem item, double running)
        {
            double added   = GetProduced(item);
            double removed = GetConsumed(item);

            var newSum = new ItemSummary(item, running, added, removed);

            ItemSummaries.Add(newSum);
            Control.AddSummary(newSum);

            ExtendedSchedule.RunningTotalsDictionary[item.MasterID] = newSum.RunningUnits;

            return(newSum.RunningUnits);
        }
 public SummaryControl(ItemSummary summary)
 {
     InitializeComponent();
     Summary     = summary;
     DataContext = Summary;
 }
Пример #3
0
        public void AddSummary(ItemSummary newSum)
        {
            var newControl = new SummaryControl(newSum);

            SummaryControls.Add(newControl);
        }
 public SummaryControl()
 {
     InitializeComponent();
     Summary     = new ItemSummary(null, 100, 30, 20);
     DataContext = Summary;
 }