| 
					
				 | 
			
			
				@@ -853,16 +853,31 @@ namespace PTMedicalInsurance.Forms 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private int downloadMedData(TradeEnum trade,string version,Sunny.UI.UIProcessBar uiProcessBar) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             string errorMessage = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (rbAutoDown.Checked) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                JObject joMaxVerNO = mIS.getDirectoryMaxVersionNO(rbgDirecType.SelectedIndex); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                string ver = joMaxVerNO["result"]["MaxVersionNO"].ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (!string.IsNullOrEmpty(ver)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    version = ver; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    tbVer.Text = ver; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             JObject joRtn = cBus.DownDirecotry(trade, version); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (JsonHelper.parseCenterRtnValue(joRtn, out errorMessage) == 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 //解析 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                DataImoport DI = new DataImoport(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             DataImoport DI = new DataImoport(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 JObject joImportRtn = DI.importMedDataToIris(trade,joRtn,uiProcessBar); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (JsonHelper.parseIrisRtnValue(joImportRtn, out errorMessage) == 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    return 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    //递归调用 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (rbAutoDown.Checked) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        downloadMedData(trade, version, uiProcessBar); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 return 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             MessageBox.Show(errorMessage); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return -1; 
			 |