Esempio n. 1
0
        /// <summary>
        /// </summary>
        /// <param name="entity"/>
        /// <returns/>
        public bool OnAfterLoad_Wip(Wip entity)
        {
            MicronBETestProduct product = FindHelper.FindProduct(entity.PRODUCT_ID);

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

            MicronBETestProcess process = FindHelper.FindProcess(entity.PROCESS_ID);

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

            MicronBETestWipInfo wipInfo = new MicronBETestWipInfo();

            wipInfo.LotID   = entity.LOT_ID;
            wipInfo.LineID  = entity.LINE_ID;
            wipInfo.Product = product;
            wipInfo.Process = process;

            wipInfo.UnitQty      = Convert.ToDouble(entity.LOT_QTY);
            wipInfo.InitialStep  = process.FindStep(entity.STEP_ID);
            wipInfo.CurrentState = FindHelper.FindLotState(entity.LOT_STATE);


            InputMart.Instance.MicronBETestWipInfo.Add(wipInfo.InitialStep.StepID, wipInfo);


            return(false);
        }
Esempio n. 2
0
        private static PlanWip CreatePlanWip(IWipInfo wip)
        {
            MicronBETestWipInfo wipInfo = wip as MicronBETestWipInfo;
            MicronBETestPlanWip planWip = new MicronBETestPlanWip(wipInfo);

            planWip.MapStep = wipInfo.InitialStep;
            //planWip.AvailableTime = FindHelper.GetEngineStartTime();
            planWip.Product = wipInfo.Product;
            planWip.LotID   = wipInfo.LotID;

            return(planWip);
        }