commit by yzf

master
Yang 3 years ago
parent 8d979adb15
commit ce6d19af48

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

@ -636,27 +636,29 @@ namespace FactorySystemApi.Plm_Formula {
private string versionField; private string versionField;
public string SP { get; set; }
public string SP_Version { get; set; }
public string SP { get //public string SP { get
{ // {
return this.codeField; // return this.codeField;
} // }
set // set
{ // {
this.codeField = value; // this.codeField = value;
} // }
} //}
public string SP_Version //public string SP_Version
{ //{
get // get
{ // {
return this.versionField; // return this.versionField;
} // }
set // set
{ // {
this.versionField = value; // this.versionField = value;
} // }
} //}
/// <remarks/> /// <remarks/>
public string Code { public string Code {

Loading…
Cancel
Save