| 
					
				 | 
			
			
				@@ -51,10 +51,14 @@ public class CreatDatPlugin extends AbstractListPlugin { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             ",nckd_port,nckd_url,nckd_filename,nckd_user" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             ",nckd_password,nckd_split,nckd_endsign",new QFilter[]{qFilter}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //文件名 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            if (nckd_url.equals("/var/appstatic/")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                nckd_url="/home/kingdee/cosmic/nginx-appstatic/store/appstatic/"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             String filename=tablenumber+".dat"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            String filedir="C:\\datTemp"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            String filedir="C:\\datTemp"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            String filedir="/home/kingdee/cosmic/nginx-appstatic/store/appstatic/"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //生成文件的路径 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            String filePath=filedir+"/"+filename; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            String filePath=filedir+filename; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             File dir=new File(filedir); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //不存在则创建文件夹 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (!dir.exists()) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -79,17 +83,17 @@ public class CreatDatPlugin extends AbstractListPlugin { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             String nckd_url=jkdataDy.getString("nckd_url"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //服务器端口号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int port=jkdataDy.getInt("nckd_port"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            SftpClient sftpClient=new SftpClient(host,username,password,port); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            //获取服务器连接 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                sftpClient.connect(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                //上传文件到服务器指定路径 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                sftpClient.fileCreat(filePath,nckd_url+filename); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                //关闭连接 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                sftpClient.disconnect(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } catch (Exception e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                throw new RuntimeException(e); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            SftpClient sftpClient=new SftpClient(host,username,password,port); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            //获取服务器连接 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                sftpClient.connect(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                //上传文件到服务器指定路径 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                sftpClient.fileCreat(filePath,nckd_url+filename); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                //关闭连接 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                sftpClient.disconnect(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            } catch (Exception e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                throw new RuntimeException(e); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 |