提交代码

This commit is contained in:
2023-12-01 12:11:50 +08:00
parent 66a8cb638a
commit 23c2b9fedd
8 changed files with 75 additions and 29 deletions
@@ -505,6 +505,12 @@ namespace FineUIPro.Web.HJGL.WeldingManage
NewTask.TaskCode = this.txtTaskCode.Text.Trim();
NewTask.WeldTaskId = SQLHelper.GetNewID();
NewTask.WeldJointId = selectRowId[i];
var oldWeldTask = BLL.WeldTaskService.GetWeldTaskByWeldJointId(NewTask.WeldJointId);
if (oldWeldTask != null)
{
ShowNotify("所选焊口已存在任务单,无法保存!", MessageBoxIcon.Success);
return;
}
Model.HJGL_WeldJoint weldJoint = BLL.WeldJointService.GetWeldJointByWeldJointId(NewTask.WeldJointId);
if (weldJoint != null)
{