|
|
|
|
@ -204,8 +204,9 @@ namespace FactorySystemBll
|
|
|
|
|
materialList[i].Add("FK3ShortCode", k3Code.ToString().Split('.').Last());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
result += db.Updateable(materialList[i]).AS("TFS_Material").WhereColumns("FID").ExecuteCommand();
|
|
|
|
|
}
|
|
|
|
|
result += db.Updateable(materialList).AS("TFS_Material").WhereColumns("FID").ExecuteCommand();
|
|
|
|
|
|
|
|
|
|
result += UnionModifyData(materialList, "TFS_Material", teamId, db);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -227,8 +228,10 @@ namespace FactorySystemBll
|
|
|
|
|
infoList[i]["FEditDate"] = DateTime.Now;
|
|
|
|
|
infoList[i].Remove("FMaterialID");
|
|
|
|
|
infoList[i].Add("FType", 2);
|
|
|
|
|
|
|
|
|
|
result += db.Updateable(infoList[i]).AS("TFS_MaterialInfo").WhereColumns("FDataID", "FType").ExecuteCommand();
|
|
|
|
|
}
|
|
|
|
|
result += db.Updateable(infoList).AS("TFS_MaterialInfo").WhereColumns("FType", "FDataID").ExecuteCommand();
|
|
|
|
|
//result += db.Updateable(infoList).AS("TFS_MaterialInfo").WhereColumns("FDataID", "FType").ExecuteCommand();
|
|
|
|
|
result += UnionModifyData(infoList, "TFS_MaterialInfo", teamId, db, "FDataID");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -272,8 +275,11 @@ namespace FactorySystemBll
|
|
|
|
|
if (sqlList.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
string updateSql = string.Join(";", sqlList);
|
|
|
|
|
try { result = db.Ado.ExecuteCommand(updateSql); }
|
|
|
|
|
catch (Exception) { }
|
|
|
|
|
try {
|
|
|
|
|
result = db.Ado.ExecuteCommand(updateSql);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|