|
|
|
|
@ -114,6 +114,22 @@ namespace FactorySystemBll
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 按照协同物料清单下来的逻辑修改配方物料类型
|
|
|
|
|
string ftype = formula.FType.ToLower();
|
|
|
|
|
|
|
|
|
|
if (ftype == "a" || ftype == "f")
|
|
|
|
|
{
|
|
|
|
|
formula.FType = "20";
|
|
|
|
|
}
|
|
|
|
|
else if (ftype == "b" || ftype == "bb" || ftype == "i" || ftype == "iz")
|
|
|
|
|
{
|
|
|
|
|
formula.FType = "30";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
formula.FType = "40";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TBasicCode bType = typeList.Find(s => s.FName == formula.FType || s.FValue == formula.FType);
|
|
|
|
|
if (bType != null) formula.FType = bType.FValue;
|
|
|
|
|
updateList.Add(formula);
|
|
|
|
|
|