| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -107,7 +107,7 @@ namespace Shentun.Peis.RegisterChecks | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            registerCheckEnt.CompleteFlag = CompleteFlag; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (registerCheckEnt.CompleteFlag == RegisterCheckCompleteFlag.UnChecked) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                registerCheckEnt.CheckDoctorId = null; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //registerCheckEnt.CheckDoctorId = null;   //保留医生  删除结果时
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                registerCheckEnt.ExecOrganizationUnitId = null; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                registerCheckEnt.CheckDate = null; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -210,13 +210,13 @@ namespace Shentun.Peis.RegisterChecks | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            entity.CheckDoctorId = checkDoctorId; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            entity.CompleteFlag = RegisterCheckCompleteFlag.Checked; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(execOrganizationUnitId != null && execOrganizationUnitId != Guid.Empty) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (execOrganizationUnitId != null && execOrganizationUnitId != Guid.Empty) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                entity.ExecOrganizationUnitId = execOrganizationUnitId; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            else | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if(Guid.TryParse(entity.CheckDoctorId,out var checkDoctorIdGuid)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (Guid.TryParse(entity.CheckDoctorId, out var checkDoctorIdGuid)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    var identityUserOrganizationUnit = _identityUserOrganizationUnitRepository.GetAsync(o => o.UserId == checkDoctorIdGuid).Result; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    entity.ExecOrganizationUnitId = identityUserOrganizationUnit.OrganizationUnitId; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -551,7 +551,7 @@ namespace Shentun.Peis.RegisterChecks | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        SerialNo = maxnum | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    }; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    await _primarykeyBuilderRepository.InsertAsync(primarykeyBuilderEnt,true); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    await _primarykeyBuilderRepository.InsertAsync(primarykeyBuilderEnt, true); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                #endregion
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -578,7 +578,7 @@ namespace Shentun.Peis.RegisterChecks | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        SerialNo = maxnum | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    }; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    await _primarykeyBuilderRepository.InsertAsync(primarykeyBuilderEnt,true); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    await _primarykeyBuilderRepository.InsertAsync(primarykeyBuilderEnt, true); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |