private void SetLRcpInfo(RPT_FLOW_SUM flow, IList <RPT_FLOW_SUM_LRCP> LRcpList) { var list = LRcpList.Where(w => w.ProdSpec_ID == flow.ProdSpec_ID && w.PD_ID == flow.PD_ID); if (!list.Any()) { return; } var firstItem = list.First(); flow.LRecipe = firstItem.LRcp_Ident; }
private void SetEqpType(RPT_FLOW_SUM flow, IList <RPT_FLOW_SUM_EQPT_LR_MAPPING> EqpType_LRList) { if (EqpType_LRList == null) { EqpType_LRList = EQPType_LRCatcher.GetEntities().EntityList; } var list = EqpType_LRList.Where(w => w.LRecipe == flow.LRecipe); if (!list.Any()) { return; } flow.Eqp_Type = list.First().EQP_Type; }
private void SetEqpInfo(RPT_FLOW_SUM flow, IList <RPT_FLOW_SUM_EQPBASE> FlowEqpList) { //test if (flow.PD_ID == "APAAPD0180.00") { string test = ""; } var list = FlowEqpList.Where(w => (w.ProdSpec_ID == flow.ProdSpec_ID || w.Origin == "4") && w.PD_ID == flow.PD_ID); if (!list.Any()) { return; } var firstItem = list.First(); flow.Eqp_Type = firstItem.Eqp_Type; flow.Eqp_List = FormatListToStringWithinMaxLenth(list.Where(w => w.Origin == firstItem.Origin).Select(s => s.Eqp_ID).Distinct().OrderBy(o => o).ToList(), 255); //flow.Eqp_List = FormatListToStringWithinMaxLenth(list.Select(s => s.Eqp_ID).Distinct().OrderBy(o => o).ToList(), 255); }
private void SetMRcpInfoByDset(RPT_FLOW_SUM flow, IList <RPT_FLOW_SUM_MR_LR_MAPPING> MR_LRList) { if (MR_LRList == null) { MR_LRList = MR_LRCatcher.GetEntities().EntityList; } var list = MR_LRList.Where(w => w.LRecipe == flow.LRecipe); if (!list.Any()) { return; } if (flow.Eqp_Type == "") { flow.Eqp_List = FormatListToStringWithinMaxLenth(list.Select(s => s.EQP_ID).Distinct().OrderBy(o => o).ToList(), 255); flow.MRecipe_List = FormatListToStringWithinMaxLenth(list.Select(s => s.MRecipe).Distinct().OrderBy(o => o).ToList(), 255); } else { list = list.Where(w => flow.Eqp_List.Contains(w.EQP_ID)); flow.MRecipe_List = list.Any() ? FormatListToStringWithinMaxLenth(list.Select(s => s.MRecipe).Distinct().OrderBy(o => o).ToList(), 255) : ""; } }
private bool SetMRcpInfoBySset(RPT_FLOW_SUM flow, IList <FBLRCP_SSET_M> SetList) { if (SetList == null) { SetList = SETCatcher.GetEntities().EntityList; } var list = SetList.Where(w => w.D_TheSystemKey == flow.LRecipe); if (!list.Any()) { return(false); } if (flow.Eqp_Type == "") { flow.Eqp_List = FormatListToStringWithinMaxLenth(list.Select(s => s.EQP_IDENT).Distinct().OrderBy(o => o).ToList(), 255); flow.MRecipe_List = FormatListToStringWithinMaxLenth(list.Select(s => s.RCP_IDENT).Distinct().OrderBy(o => o).ToList(), 255); } else { list = list.Where(w => flow.Eqp_List.Contains(w.EQP_IDENT)); flow.MRecipe_List = list.Any() ? FormatListToStringWithinMaxLenth(list.Select(s => s.RCP_IDENT).OrderBy(o => o).ToList(), 255) : ""; } return(true); }