Esempio n. 1
0
        public void UpdatePlanningSum(long storeid, DateTime monday)
        {
            Dictionary <long, int?> diction = ExStoreToWorld.GetPlannedWorkingSumByStore(storeid, monday);

            if (diction != null)
            {
                WorldAvailableBufferHoursManager manager = null;
                int?sum = null;
                foreach (long sw_id in diction.Keys)
                {
                    manager = GetManager(sw_id);

                    if (manager != null)
                    {
                        sum = diction[sw_id];
                        if (sum.HasValue)
                        {
                            manager.UpdatePlanningSum(monday, sum.Value);
                        }
                    }
                }
            }
        }