feat(hjgl):焊接日报增加导入功能

This commit is contained in:
2026-06-11 17:34:17 +08:00
parent ffd9fb7e29
commit 05b7eb90a8
11 changed files with 1015 additions and 3 deletions
@@ -102,6 +102,7 @@ namespace BLL
MaterialCode = newtable.MaterialCode,
PrefabricatedComponents = newtable.PrefabricatedComponents,
Number = newtable.Number,
// 领料出库由焊接任务单焊口驱动,关联明细需要保存焊口ID用于后续追溯。
WeldJointId = newtable.WeldJointId,
};
Funs.DB.Tw_InOutPlanDetail_Relation.InsertOnSubmit(table);
@@ -134,6 +135,7 @@ namespace BLL
table.MaterialCode = newtable.MaterialCode;
table.PrefabricatedComponents = newtable.PrefabricatedComponents;
table.Number = newtable.Number;
// 更新关联明细时同步维护焊口ID,避免出库申请修改后丢失焊口归属。
table.WeldJointId = newtable.WeldJointId;
Funs.DB.SubmitChanges();
}