|
|
|
|
@ -112,10 +112,10 @@ namespace FactorySystemApi.Controllers
|
|
|
|
|
inParam.Add("FEditDate", DateTime.Now);
|
|
|
|
|
}
|
|
|
|
|
//TUser tUser = BaseBll.GetTempModel<TUser>(user.FID);
|
|
|
|
|
TFS_Factory factory = BaseBll.GetTempModel<TFS_Factory>(int.Parse(inParam["factoryValue"].ToString()));
|
|
|
|
|
if (inParam.ContainsKey("factoryValue"))
|
|
|
|
|
TFS_Factory factory = BaseBll.GetTempModel<TFS_Factory>(int.Parse(inParam["FCreateFactoryID"].ToString()));
|
|
|
|
|
if (inParam.ContainsKey("FCreateFactoryID"))
|
|
|
|
|
{
|
|
|
|
|
inParam.Remove("factoryValue");
|
|
|
|
|
inParam.Remove("FCreateFactoryID");
|
|
|
|
|
}
|
|
|
|
|
inParam.Add("FCreateFactoryID", factory.FID);
|
|
|
|
|
inParam.Add("FCreateFactoryCode", factory.FCode);
|
|
|
|
|
|