public Step GETPREVPEGGINGSTEP(PegPart pegPart, Step currentStep) { if (InputMart.Instance.GlobalParameters.ApplyCellOutPlan == false) { return(null); } FabPegPart pp = pegPart.ToFabPegPart(); if (pp.Current.StepID == "0000") { string stepID = BopHelper.IsArrayShop(pp.FabProduct.ShopID) ? "9900" : "9990"; FabStep step = BopHelper.GetSafeDummyStep(pp.Current.FactoryID, pp.Current.ShopID, stepID); pp.AddCurrentPlan(pp.FabProduct, step); return(step); } return(null); }
private void LinkStdStep(Dictionary <string, List <FabStdStep> > dic) { foreach (List <FabStdStep> list in dic.Values) { bool isAfterCOA = false; FabStdStep prev = null; for (int i = 0; i < list.Count; i++) { FabStdStep step = list[i]; if (i == 0) { step.IsInputStep = true; } if (prev != null) { step.PrevStep = prev; } prev = step; if (i + 1 < list.Count) { step.NexStep = list[i + 1]; } if (step.LayerID == "COA") { isAfterCOA = true; } if (isAfterCOA && BopHelper.IsArrayShop(step.ShopID)) { step.IsAferCOA = true; } } } }