private Dictionary <string, List <ResultData> > ImportData_MA() { Dictionary <string, List <ResultData> > datas = new Dictionary <string, List <ResultData> >(); var table = _modelContext.ToolArrange; if (table == null) { return(datas); } string targetProductID = this.TargetProductID; string targetStepID = this.TargetStepID; foreach (var item in table) { string eqpID = item.EQP_ID; if (string.IsNullOrEmpty(eqpID)) { continue; } string stepID = item.STEP_ID; if (stepID != targetStepID) { continue; } string producID = item.PRODUCT_ID; if (producID != targetProductID) { continue; } List <ResultData> list; string key = ResultData.CreateKey(item.EQP_ID, item.STEP_ID, producID, item.PRODUCT_VERSION, item.TOOL_ID); if (datas.TryGetValue(key, out list) == false) { datas.Add(key, list = new List <ResultData>()); } ResultData info = new ResultData(item.SHOP_ID, eqpID, stepID, producID, item.PRODUCT_VERSION, item.TOOL_ID, item.ACTIVATE_TYPE, item.PRIORITY); CommonHelper.AddSort(list, info, ResultData.Comparer.Default); } return(datas); }