Beispiel #1
0
        private bool ExistRunEqpByDspEqpGroup(FabAoEquipment baseEqp, FabLot lot, out bool isExistRunStep)
        {
            isExistRunStep = false;

            if (lot == null)
            {
                return(false);
            }

            string dspEqpGroupID = baseEqp.DspEqpGroupID;

            var eqpList = ResHelper.GetEqpsByDspEqpGroup(dspEqpGroupID);

            if (eqpList == null || eqpList.Count == 0)
            {
                return(false);
            }

            string currentStepID = lot.CurrentStepID;

            foreach (var eqp in eqpList)
            {
                if (eqp == baseEqp)
                {
                    continue;
                }

                var last = eqp.GetLastPlan();
                if (last == null)
                {
                    continue;
                }

                if (eqp.IsLastPlan(lot))
                {
                    isExistRunStep = true;
                    return(true);
                }
                else if (last.StepID == currentStepID)
                {
                    isExistRunStep = true;
                }
            }

            return(false);
        }