|
@@ -30,6 +30,8 @@ import java.util.EventObject;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
+
|
|
|
+import nc.itf.th.IThOcrService;
|
|
|
import nc.itf.uap.IUAPQueryBS;
|
|
|
import javax.swing.AbstractAction;
|
|
|
import javax.swing.Action;
|
|
@@ -1782,7 +1784,7 @@ public class ThFileContentPanel extends JPanel {
|
|
|
}
|
|
|
|
|
|
//删除home发票文件夹里的对应发票 add by ZTH
|
|
|
- String deletefilepath = RuntimeEnv.getInstance().getNCHome()
|
|
|
+ /*String deletefilepath = RuntimeEnv.getInstance().getNCHome()
|
|
|
+File.separator +"uploadfile" + File.separator+ filepath; // 文件保存的路径
|
|
|
|
|
|
File file = new File(deletefilepath);
|
|
@@ -1791,6 +1793,12 @@ public class ThFileContentPanel extends JPanel {
|
|
|
MessageDialog.showHintDlg(ThFileContentPanel.this, "提示","删除成功!");
|
|
|
} else {
|
|
|
MessageDialog.showErrorDlg(ThFileContentPanel.this, "提示","删除操作失败。");
|
|
|
+ }*/
|
|
|
+ IThOcrService ocrservice=(IThOcrService) NCLocator.getInstance().lookup(IThOcrService.class.getName());
|
|
|
+ if (ocrservice.deleteFile(filepath)){
|
|
|
+ MessageDialog.showHintDlg(ThFileContentPanel.this, "提示","删除成功!");
|
|
|
+ } else {
|
|
|
+ MessageDialog.showErrorDlg(ThFileContentPanel.this, "提示","删除操作失败。");
|
|
|
}
|
|
|
|
|
|
//由于删除太慢,改成自定义档案数据停用
|