internal static List <PlanWip> GetPlanWips(IWipInfo wipInfo) { List <PlanWip> wips = new List <PlanWip>(); PlanWip planWip = PrepareWipRuleHelper.CreatePlanWip(wipInfo); wips.Add(planWip); return(wips); }
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); }
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>)); } }
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)); } }