diff --git a/FactorySystemBll/MaterialTeamworkBll.cs b/FactorySystemBll/MaterialTeamworkBll.cs index 8710dc3..79655c6 100644 --- a/FactorySystemBll/MaterialTeamworkBll.cs +++ b/FactorySystemBll/MaterialTeamworkBll.cs @@ -209,6 +209,25 @@ namespace FactorySystemBll for (int i = 0; i < viewList.Count; i++) { + + if (!viewList[i].ContainsKey("FK3Code") && viewList[i].ContainsKey("FSAPCode")) + { + viewList[i].Add("FK3Code", viewList[i]["FSAPCode"]); + } + else if(viewList[i].ContainsKey("FK3Code") && !viewList[i].ContainsKey("FSAPCode")) + { + viewList[i].Add("FSAPCode", viewList[i]["FK3Code"]); + } + + if (!viewList[i].ContainsKey("FK3Name") && viewList[i].ContainsKey("FSAPDescription")) + { + viewList[i].Add("FK3Name", viewList[i]["FSAPDescription"]); + } + else if (viewList[i].ContainsKey("FK3Name") && !viewList[i].ContainsKey("FSAPDescription")) + { + viewList[i].Add("FSAPDescription", viewList[i]["FK3Name"]); + } + // 设置成成品视图 if (viewList[i]["FMRP1ProductType"].ToString() == "10") {