交换柜补药写标签指令添加await
This commit is contained in:
		
							parent
							
								
									c971e9d1bc
								
							
						
					
					
						commit
						5a27970ffc
					
				| 
						 | 
					@ -632,9 +632,9 @@ namespace DM_Weight.ViewModels
 | 
				
			||||||
                                List<ChannelStock> singleChannelsBoxSmart = record.FindAll(it => it.BoardType == 35);
 | 
					                                List<ChannelStock> singleChannelsBoxSmart = record.FindAll(it => it.BoardType == 35);
 | 
				
			||||||
                                if ((singleChannelsBoxSmart.Count > 0 ? singleChannelsBoxSmart[0].BoardType : 1) == 35)
 | 
					                                if ((singleChannelsBoxSmart.Count > 0 ? singleChannelsBoxSmart[0].BoardType : 1) == 35)
 | 
				
			||||||
                                {
 | 
					                                {
 | 
				
			||||||
                                    singleChannelsBoxSmart.ForEach(it =>
 | 
					                                    singleChannelsBoxSmart.ForEach(async it =>
 | 
				
			||||||
                                    {
 | 
					                                    {
 | 
				
			||||||
                                        _portUtil.WriteQuantityMethod((it.Quantity - it.TakeQuantity), it.DrawerNo, it.ColNo);
 | 
					                                        await _portUtil.WriteQuantityMethod((it.Quantity - it.TakeQuantity), it.DrawerNo, it.ColNo);
 | 
				
			||||||
                                        Thread.Sleep(200);
 | 
					                                        Thread.Sleep(200);
 | 
				
			||||||
                                    });
 | 
					                                    });
 | 
				
			||||||
                                }
 | 
					                                }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -166,7 +166,8 @@ namespace DM_Weight.ViewModels
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else
 | 
					            else
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                _ChannelLists.Clear();
 | 
					                _ChannelLists?.Clear();
 | 
				
			||||||
 | 
					                _ChannelLists = new List<ChannelList>();
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue