feat(hjgl):焊接日报增加导入功能
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user