internal static IList <IMaterial> GetBankWip(PegPart pegPart) { FabPegPart pp = pegPart.ToFabPegPart(); FabProduct prod = pp.Current.Product; FabStep step = pp.Current.Step; string key = LcdHelper.CreateKey(step.ShopID, step.StepID); List <FabPlanWip> list; CellBankPlanWips.TryGetValue(key, out list); if (list == null) { return(null); } List <IMaterial> result = new List <IMaterial>(); foreach (var item in list) { if (item.ProductID == prod.ProductID) { result.Add(item); } } return(result); }
internal static void PrePareBankWip() { if (CellBankPlanWips == null) { CellBankPlanWips = new Dictionary <string, List <FabPlanWip> >(); } foreach (var item in InputMart.Instance.CellBankWips.Values) { FabPlanWip wip = CreateHelper.CreatePlanWip(item); string key = LcdHelper.CreateKey(item.ShopID, item.WipStepID); List <FabPlanWip> list; if (CellBankPlanWips.TryGetValue(key, out list) == false) { CellBankPlanWips.Add(key, list = new List <FabPlanWip>()); } list.Add(wip); } }