提交代码

This commit is contained in:
2023-11-25 12:34:55 +08:00
parent 3aeb7e47de
commit 3798809740
6 changed files with 530 additions and 1 deletions
@@ -1055,6 +1055,8 @@ namespace FineUIPro.Web.HJGL.WeldingManage
temp.IsHotProess
}).ToList();
var weldJointCodes =weldJoints.Select(x=>x.WeldJointCode).Distinct().ToList();
var pipelineCodes = weldJoints.Select(x => x.PipelineCode).Distinct().ToList();
for (int i = 0; i < weldJoints.Count(); i++)
{
Model.HJGL_WeldJoint weldJoint = new Model.HJGL_WeldJoint();
@@ -1093,6 +1095,16 @@ namespace FineUIPro.Web.HJGL.WeldingManage
BLL.WeldJointService.AddBulkWeldJoint(weldJoints_add);
}
Model.SGGLDB db = Funs.DB;
var q = from x in db.HJGL_WeldJoint
join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId
where y.UnitWorkId == Request.Params["UnitWorkId"] && pipelineCodes.Contains(x.PipelineCode) && !weldJointCodes.Contains(x.WeldJointCode)
select x;
if (q.Count() > 0)
{
db.HJGL_WeldJoint.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
}
//public void AddView_HJGL_WeldJoint(List<Model.View_HJGL_WeldJoint> PipelineList)