LAPTOP-5NTQJPUS\LT 1 gadu atpakaļ
vecāks
revīzija
4d87314b6b

+ 0 - 9
DataFusion/src/com/zskk/control/ViewController.java

@@ -86,15 +86,6 @@ public class ViewController extends Controller {
 
 	}
 	
-	public void ttt4() {
-		try {
-			DataService dataService = new DataService();
-			dataService.downloadFileToFolder("smb://"+ "pacs:"+"pacs@"+"172.27.64.61", "/datacenter/20240115", "0532FB45.img", "/home/zskk/SMB_FILE",null);
-		} catch (Exception e) {
-			// TODO: handle exception
-			this.renderText(e.toString());
-		}		
-	}
 	
 	public void sdcfind() {
 		String execCmd = ExecUtil.execCmd("/zskk_system/other/cfind.sh " + this.getPara("time") + " STUDYUID_" + "temppp" + ".xml");

+ 1 - 16
DataFusion/src/com/zskk/service/DataService.java

@@ -143,23 +143,8 @@ public class DataService {
                         .addFormDataPart("file", localFile.getName(),
                             RequestBody.create(MEDIA_TYPE_MARKDOWN, localFile))
                         .build();
-//                
-//                Request request = new Request.Builder()
-//                    .url("http://127.0.0.1:8080/df/view/upload")
-//                    .post(requestBody)
-//                    .build();
-//
-//                try (Response response = OKHTTP_CLIENT.newCall(request).execute()) {
-//                  if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
-//
-//                  System.out.println(response.body().string());
-//                  localFile.delete();
-////                  recoeRecord.set("pmh", "1");
-////                  Db.use("connected").update("reportinfo", "IMAGESFILENAME",recoeRecord);
-//                }
-            } catch (IOException e) {
-//                localFile.delete();
 
+            } catch (IOException e) {
                 e.printStackTrace();
             }
         }