屏蔽锁库存的功能
This commit is contained in:
@ -695,15 +695,15 @@ namespace WCS.BLL.HardWare
|
||||
}
|
||||
|
||||
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();
|
||||
});
|
||||
//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();
|
||||
|
Reference in New Issue
Block a user