Ejemplo n.º 1
0
        private static void StepChange_Curr(this QTimeInfo info, FabStep currStep, DateTime now)
        {
            if (info.HasMinQTime())
            {
                info.MinList.ForEach(t => t.StepChange_Curr(currStep, now));
            }

            if (info.HasMaxQTime())
            {
                info.MaxList.ForEach(t => t.StepChange_Curr(currStep, now));
            }
        }
Ejemplo n.º 2
0
        internal static StayHour FindMaximumMinHoldTime(this QTimeInfo info, DateTime now)
        {
            if (info.HasMinQTime() == false)
            {
                return(null);
            }

            var lot      = info.Lot;
            var currStep = lot.CurrentFabStep;

            var list = info.MinList.FindAll(x => x.ToStep == currStep);

            if (list.Count == 0)
            {
                return(null);
            }

            if (list.Count > 1)
            {
                list.Sort(new CompareHelper.MinQTimeComparer(lot, currStep, now, OrderType.DESC));
            }

            return(list[0]);
        }