|  | @@ -174,8 +174,15 @@ namespace OTSModelSharp
 | 
	
		
			
				|  |  |          
 | 
	
		
			
				|  |  |              MsrMsg.STMThreadStu.csMsrEndTime = timeEnd.ToString("yyyy-MM-dd HH:mm:ss");
 | 
	
		
			
				|  |  |              ProgressEvent(MsrMsg);
 | 
	
		
			
				|  |  | -         
 | 
	
		
			
				|  |  | -         
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            if (MsrMsg.STMThreadStu.iMsrStatu == otsdataconst.OTS_MSR_THREAD_STATUS.FAILED || MsrMsg.STMThreadStu.iMsrStatu == otsdataconst.OTS_MSR_THREAD_STATUS.COMPLETED)
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                if (m_pProjData.GetGenParam().AutoBeamOff)
 | 
	
		
			
				|  |  | +                {
 | 
	
		
			
				|  |  | +                    m_SemController.SetSemBeamCurrentOff();
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          void ThreadOverWithoutDisConnect()
 | 
	
		
			
				|  |  |          {
 |