Пример #1
0
        //public Step GET_NEXT_STEP1(Mozart.SeePlan.Simulation.ILot lot, Mozart.SeePlan.DataModel.LoadInfo loadInfo, Mozart.SeePlan.DataModel.Step step, DateTime now, ref bool handled, Mozart.SeePlan.DataModel.Step prevReturnValue)
        //{
        //    FabPlanInfo plan = loadInfo as FabPlanInfo;
        //    FabProduct prod = plan.Product;
        //    FabLot mlot = lot as FabLot;

        //    #region PartChange
        //    if (prod.HasNextInterBom)
        //    {
        //        FabInterBom bom;
        //        prod.TryGetNextInterRoute(step as FabStep, out bom);

        //        if (bom != null)
        //        {
        //            plan.InterBom = bom;
        //            mlot.Product = bom.ChangeProduct;

        //        }
        //    }
        //    #endregion

        //    if (plan.InterBom != null)
        //        return plan.InterBom.ChangeStep;

        //    return step.GetDefaultNextStep();
        //}

        /// <summary>
        /// </summary>
        /// <param name="hb"/>
        /// <param name="handled"/>
        public void ON_DONE0(Mozart.SeePlan.Simulation.IHandlingBatch hb, ref bool handled)
        {
            FabLot lot = hb.ToFabLot();

            InFlowMaster.OnDoneWipLocation(hb);

            if (SimHelper.IsTftRunning)
            {
                InOutProfileMaster.AddOut(lot, AoFactory.Current.NowDT);
            }
        }
Пример #2
0
        /// <summary>
        /// </summary>
        /// <param name="handled"/>
        /// <param name="prevReturnValue"/>
        /// <returns/>
        public IEnumerable <Mozart.SeePlan.Simulation.ILot> INSTANCING0(ref bool handled, IEnumerable <Mozart.SeePlan.Simulation.ILot> prevReturnValue)
        {
            List <FabLot> list = new List <FabLot>();

            //if (SimHelper.IsTftRunning)
            //    list = GetFrontInLots();

            if (SimHelper.IsCellRunning)
            {
                InOutProfileMaster.GenerateCellInProfile();
                list = InOutProfileMaster.CreateCellInputLot();

                OutCollector.WriteRelasePlan_Cell(list);
            }

            return(list);
        }