Beispiel #1
0
        /// <summary>
        /// </summary>
        /// <param name="wstep"/>
        /// <param name="handled"/>
        /// <param name="prevReturnValue"/>
        /// <returns/>
        public IEnumerable <AoEquipment> GET_LOADABLE_EQPS0(WorkStep wstep, ref bool handled, IEnumerable <AoEquipment> prevReturnValue)
        {
            try
            {
                List <AoEquipment> equipList = new List <AoEquipment>();

                if (wstep.Steps.Count == 0)
                {
                    return(equipList);
                }

                List <string> list = SimulationHelper.GetLoadableList(wstep.Steps[0] as MicronBEAssyBEStep);

                foreach (string eqp in list)
                {
                    AoEquipment aeqp = AoFactory.Current.GetEquipment(eqp);
                    if (aeqp == null)
                    {
                        continue;
                    }

                    equipList.Add(aeqp);
                }

                return(equipList);
            }
            catch (Exception e)
            {
                WriteHelper.WriteErrorHistory(ErrorLevel.FATAL, string.Format("ErrorMessage : {0}   MethodName : {1}", e.Message, System.Reflection.MethodInfo.GetCurrentMethod().Name));
                return(default(IEnumerable <AoEquipment>));
            }
        }