예제 #1
0
        internal static List <PlanWip> GetPlanWips(IWipInfo wipInfo)
        {
            List <PlanWip> wips = new List <PlanWip>();

            PlanWip planWip = PrepareWipRuleHelper.CreatePlanWip(wipInfo);


            wips.Add(planWip);

            return(wips);
        }
예제 #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);
        }
예제 #3
0
        public static List <PlanWip> GetPlanWips(IWipInfo wipInfo)
        {
            try
            {
                List <PlanWip> wips = new List <PlanWip>();

                PlanWip planWip = CreateHelper.CreatePlanWip(wipInfo);
                wips.Add(planWip);

                return(wips);
            }
            catch (Exception e)
            {
                WriteHelper.WriteErrorHistory(ErrorLevel.FATAL, string.Format("ErrorMessage : {0}   MethodName : {1}", e.Message, System.Reflection.MethodInfo.GetCurrentMethod().Name));
                return(default(List <PlanWip>));
            }
        }
예제 #4
0
        public static PlanWip CreatePlanWip(IWipInfo wip)
        {
            try
            {
                MicronBEAssyWipInfo wipInfo = wip as MicronBEAssyWipInfo;
                MicronBEAssyPlanWip planWip = new MicronBEAssyPlanWip(wipInfo);

                planWip.MapStep       = wipInfo.InitialStep;
                planWip.AvailableTime = FindHelper.GetEngineStartTime();
                planWip.Product       = wipInfo.Product;
                planWip.LotID         = wipInfo.LotID;
                planWip.State         = wipInfo.CurrentState.ToString();

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