public void WaitPut(List <LatticeInfo> latticeInfoList, string barCode) { latticeInfoList.ForEach(o => { if (o.Product.Exists(p => p.BarCode == barCode && !p.IsComplete)) { SlaveInfoService.SetLatticeStatus(o, LatticeStatus.WaitPut); SlaveInfoService.SetProductStatus(o, barCode, ProductStatus.WaitPut); } }); current.Post((o) => { ButtonService.UpdateButton(latticeInfoList); }, null); SlaveInfoService.SaveAync(); }