提交代码

This commit is contained in:
2023-11-28 10:59:50 +08:00
parent de0a1d28d3
commit db46ed8cd1
18 changed files with 402 additions and 191 deletions
@@ -1111,8 +1111,20 @@ namespace FineUIPro.Web.HJGL.WeldingManage
}
if (delJoints.Count() > 0)
{
db2.HJGL_WeldJoint.DeleteAllOnSubmit(delJoints);
db2.SubmitChanges();
try
{
db2.HJGL_WeldJoint.DeleteAllOnSubmit(delJoints);
db2.SubmitChanges();
}
catch (Exception)
{
string weldJointCodes = string.Empty;
foreach (var item in delJoints)
{
weldJointCodes += item.WeldJointCode + ",";
}
Alert.ShowInParent(weldJointCodes, MessageBoxIcon.Warning);
}
}
}