@ -431,8 +431,8 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl<En 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            //如果被占用,则编号自动+1
   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            String [ ]  acceptArr  =  _acceptNo . split ( "-" ) ;   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            int  acceptSeq  =  Integer . parseInt ( acceptArr [ 1 ] )  +  1 ;   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            String  acceptSeqStr  =  fillByZero ( acceptSeq ) ;   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            String  newAcceptNo  =  acceptArr [ 0 ]  +  "-"  +  acceptSeqStr  ;   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					//            String acceptSeqStr = fillByZero(acceptSeq);
  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            String  newAcceptNo  =  acceptArr [ 0 ]  +  "-"  +  acceptSeq ;   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            return  checkAcceptNoIsUse ( newAcceptNo ) ;   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					        }   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					        return  _acceptNo ;   
				
			 
			
		
	
	
		
			
				
					
						
							
								 
							 
						
						
							
								 
							 
						
						
					 
				
				 
				 
				
					@ -621,7 +621,8 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl<En 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            }   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            if  ( ( im . getAcceptPassed ( )  ! =  null )  & &  ( im . getAcceptPassed ( )  ! =  0 ) )  {   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                throw  new  RuntimeException ( String . format ( "检材只能在未受理状态才能保存" ) ) ;   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                continue ;   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					//                throw new RuntimeException(String.format("检材只能在未受理状态才能保存"));
  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            }   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            Entrustment  entrustment  =  entrustmentService . getById ( im . getEntrustmentId ( ) ) ;   
				
			 
			
		
	
	
		
			
				
					
						
							
								 
							 
						
						
							
								 
							 
						
						
					 
				
				 
				 
				
					@ -1241,7 +1242,6 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl<En 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					    public  List < EntrustmentIdentificationMaterial >  createNewIm ( List < EntrustmentIdentificationMaterial >  identificationMaterialList ,  DLPUser  dlpUser )  {   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					        Entrustment  entrustment  =  entrustmentService . getById ( identificationMaterialList . get ( 0 ) . getEntrustmentId ( ) ) ;   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					        if  ( ! dlpUser . isStaff ( )  & &  entrustment . getStatus ( )  ! =  EntrustmentStatusConstants . ENTRUSTMENT_STATUS_CREATED . getStatus ( ) )  {   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            throw  new  RuntimeException ( String . format ( "你已提交过该委托,无法再添加检材信息!" ) ) ;   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					        }   
				
			 
			
		
	
	
		
			
				
					
						
							
								 
							 
						
						
							
								 
							 
						
						
					 
				
				 
				 
				
					@ -1481,7 +1481,8 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl<En 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					//                data.put("evidence", evidence);
  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                maps . add ( data ) ;   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                String  templateFileName  =  AppStartupRunner . getCfg ( CommonConstants . DLP_CODE_ENTRUSTMENT_LABEL_TEMPLATE_IM_SAMPLE1 ) ;   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					//                String templateFileName = AppStartupRunner.getCfg(CommonConstants.DLP_CODE_ENTRUSTMENT_LABEL_TEMPLATE_IM_SAMPLE1);
  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                String  templateFileName  = "(大)受理时打印的检材条码模板.vm" ;   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                List < String >  htmlA  =  remoteTemplate2htmlService . getManyHtml ( templateFileName ,  maps ) ;   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                htmlList . addAll ( htmlA ) ;   
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            }