服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-08-06 9fd5a25e7abb33ac9346f9fe01691607c8ee9f53
包装保存托盘信息
已修改1个文件
9 ■■■■■ 文件已修改
Tiger.Business.MES/WorkAction/PackingAction.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Tiger.Business.MES/WorkAction/PackingAction.cs
@@ -512,6 +512,13 @@
            var pkgList = GetPackageList(CurPkg.Item);
            var woSNs = CurPosition.WorkBatch.WoSNs.Where(q => CurPosition.CurWipSNs.Any(w => q.SN == w.SN)).ToList();
            foreach (var woSN in woSNs)
            {
                woSN.TRAY_SN = CurPkg.Item.Package.SN;
                woSN.OUTER_SN = CurPkg.Item.Package.SN;
            }
            //保存数据库
            var db = Biz.Db;
            var dbTran = db.UseTran(() =>
@@ -585,12 +592,14 @@
                };
                wipActs.Add(wipAct);
            }
            //var woSNs = CurPosition.WorkBatch.WoSNs.Where(q => CurPosition.CurWipSNs.Any(w => q.SN == w.SN)).ToList();
            //保存数据
            CurStep.DBSubmitAction = () =>
            {
                var db = CurPosition.GetCommitDB();
                db.Storageable(wipActs, CurPosition.UserCode).ExecuteCommand();
                //db.Storageable(woSNs, CurPosition.UserCode).ExecuteCommand();
            };
            if (CurPkg.IsFinished)