From 50c3f52d4d5f561bc9d19635366d0f3aaae82342 Mon Sep 17 00:00:00 2001 From: 王彬 Date: Thu, 20 Jun 2019 15:01:27 +0800 Subject: [PATCH] 1.完善代码 --- .idea/workspace.xml | 258 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------------------------------------------------- src/com/taover/ui/EntityGenWindow.java | 3 +++ src/erp.default.properties | 2 +- 3 files changed, 108 insertions(+), 155 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 9273806..a81cfbb 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,12 +2,10 @@ - + - - - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -70,51 +36,46 @@ - + - - + + - + - - + + - + - - + + - - - - - - + - - + + - - + + - - + + @@ -138,13 +99,14 @@ @@ -189,6 +151,11 @@ + + + + + @@ -271,18 +238,31 @@ - + + + + + - + + + + + + + + - + @@ -291,15 +271,15 @@ - - + + - + - + @@ -340,13 +320,6 @@ - - - - - - - @@ -357,30 +330,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -388,104 +340,81 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - + + - + - + - - + + - + - - + + - + - - + + - + - - + + - - + + - + - - + + - + - - - - - - - + + - - + + @@ -493,5 +422,26 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/com/taover/ui/EntityGenWindow.java b/src/com/taover/ui/EntityGenWindow.java index a7e6761..39c30e0 100644 --- a/src/com/taover/ui/EntityGenWindow.java +++ b/src/com/taover/ui/EntityGenWindow.java @@ -115,6 +115,9 @@ public class EntityGenWindow extends JFrame{ eBtn.setEnabled(true); } catch (Exception e1) { e1.printStackTrace(); + + JOptionPane.showMessageDialog(EntityGenWindow.this, "生成失败", "系统报错:"+e1.getMessage(), JOptionPane.INFORMATION_MESSAGE); + eBtn.setEnabled(true); } }); btnNewButton.setBounds(319, 360, 113, 38); diff --git a/src/erp.default.properties b/src/erp.default.properties index db32840..2e41cbb 100644 --- a/src/erp.default.properties +++ b/src/erp.default.properties @@ -15,7 +15,7 @@ DBLikeStr=% #数据库驱动类型 driver=com.mysql.jdbc.Driver #数据库连接url -URL=jdbc\:mysql\://127.0.0.1\:3306/erp +URL=jdbc\:mysql\://127.0.0.1\:3306/ #URL=jdbc\:mysql\://localhost\:3306/taoverprinter #数据库类型 dbtype=mysql -- libgit2 0.21.2