| | |
| | | |
| | | 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(() => |
| | |
| | | }; |
| | | 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) |