按照协同物料清单下来的逻辑修改对接的配方物料类型

master
Leo 2 years ago
parent 1ca1c96afb
commit bf3d0b660d

@ -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);

Loading…
Cancel
Save