取消修改旧物料的协同ID

master
leo 3 years ago
parent 375b108ca0
commit c508ed35bd

@ -366,11 +366,11 @@ namespace FactorySystemBll
if (!hasNewView.ContainsKey(vItem.FViewType)) hasNewView.Add(vItem.FViewType, vItem.FFactoryID.ToString() + ","); if (!hasNewView.ContainsKey(vItem.FViewType)) hasNewView.Add(vItem.FViewType, vItem.FFactoryID.ToString() + ",");
else hasNewView[vItem.FViewType] = hasNewView[vItem.FViewType] + vItem.FFactoryID.ToString() + ","; else hasNewView[vItem.FViewType] = hasNewView[vItem.FViewType] + vItem.FFactoryID.ToString() + ",";
} }
else //else
{ //{
vData.FTeamID = teamInfo.FID; // vData.FTeamID = teamInfo.FID;
db.Updateable(vData).WhereColumns("FID").IgnoreColumns(true).ExecuteCommand(); // db.Updateable(vData).WhereColumns("FID").IgnoreColumns(true).ExecuteCommand();
} //}
//是否有工厂视图 //是否有工厂视图
vData = db.Queryable<TFS_ViewMaterial>().Where(s => s.FFactoryID == teamInfo.FProdFactoryID && s.FMaterialID == mItem.FID).First(); vData = db.Queryable<TFS_ViewMaterial>().Where(s => s.FFactoryID == teamInfo.FProdFactoryID && s.FMaterialID == mItem.FID).First();
if (vData == null) if (vData == null)
@ -402,11 +402,11 @@ namespace FactorySystemBll
if (!hasNewView.ContainsKey(vItem.FViewType)) hasNewView.Add(vItem.FViewType, vItem.FFactoryID.ToString() + ","); if (!hasNewView.ContainsKey(vItem.FViewType)) hasNewView.Add(vItem.FViewType, vItem.FFactoryID.ToString() + ",");
else hasNewView[vItem.FViewType] = hasNewView[vItem.FViewType] + vItem.FFactoryID.ToString() + ","; else hasNewView[vItem.FViewType] = hasNewView[vItem.FViewType] + vItem.FFactoryID.ToString() + ",";
} }
else //else
{ //{
vData.FTeamID = teamInfo.FID; // vData.FTeamID = teamInfo.FID;
db.Updateable(vData).WhereColumns("FID").IgnoreColumns(true).ExecuteCommand(); // db.Updateable(vData).WhereColumns("FID").IgnoreColumns(true).ExecuteCommand();
} //}
mItem.FIsNew = isAddFormula; mItem.FIsNew = isAddFormula;
mItem.FOldID = oldId; mItem.FOldID = oldId;

Loading…
Cancel
Save