|
|
|
@ -118,7 +118,12 @@ namespace FactorySystemApi.Controllers
|
|
|
|
PropertyInfo temp = propertys.Find(s => s.Name == field.FColumnFIeld);
|
|
|
|
PropertyInfo temp = propertys.Find(s => s.Name == field.FColumnFIeld);
|
|
|
|
if (temp != null) temp.SetValue(formula, GetValueByName(inParam, field.FFieldName, field.FDefault));
|
|
|
|
if (temp != null) temp.SetValue(formula, GetValueByName(inParam, field.FFieldName, field.FDefault));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (inParam.ContainsKey("SP_AUTHOR"))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
formula.FConversionPersonnel = inParam["SP_AUTHOR"].ToString();
|
|
|
|
|
|
|
|
}
|
|
|
|
if (string.IsNullOrEmpty(formula.FPlmCode))
|
|
|
|
if (string.IsNullOrEmpty(formula.FPlmCode))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
apiResult.Error("FPlmCode不能为空");
|
|
|
|
apiResult.Error("FPlmCode不能为空");
|
|
|
|
@ -145,10 +150,6 @@ namespace FactorySystemApi.Controllers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
apiResult.Error("FConversionPersonnel不能为空");
|
|
|
|
apiResult.Error("FConversionPersonnel不能为空");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (string.IsNullOrEmpty(formula.FBomVersionCode))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
apiResult.Error("FBomVersionCode不能为空");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int userId = -1;
|
|
|
|
int userId = -1;
|
|
|
|
|