1.智能货架退出出库后解锁

2.数据库支持多线程
3.调整出库单据导入模板
This commit is contained in:
hehaibing-1996
2025-03-14 08:34:03 +08:00
parent f8fe33c32b
commit 549a45dcf0
8 changed files with 84 additions and 4 deletions

View File

@ -694,6 +694,18 @@ namespace WCS.BLL.HardWare
WarningManager.SendWarning(warningModel);
}
var currentOutStoreMatSns = CurrentOutStoreMatSNs.ToList();
Task.Run(() =>
{
var matDetails = DbHelp.db.Queryable<InventoryDetail>()
.Where(t => currentOutStoreMatSns.Contains(t.MatSN))
.Where(t => t.IsLocked)
.ToList();
matDetails.ForEach(t => t.IsLocked = false);
DbHelp.db.Updateable(matDetails).ExecuteCommand();
});
CurrentOutStoreMatSNs.Clear();
WarningLight.CloseLight(TcpCleint);
SetCurrentMode(Mode.);