diff options
| author | tspitzer | 2013-09-30 11:40:02 +0200 |
|---|---|---|
| committer | tspitzer | 2013-09-30 11:40:02 +0200 |
| commit | 695c870f18e5cecfe8da7033c8db7c9c70a42c4d (patch) | |
| tree | bb861dd3e22b81a4d2a65dffa8fcc20a34ba94c5 | |
| parent | db (diff) | |
| download | tutor-module-695c870f18e5cecfe8da7033c8db7c9c70a42c4d.tar.gz tutor-module-695c870f18e5cecfe8da7033c8db7c9c70a42c4d.tar.xz tutor-module-695c870f18e5cecfe8da7033c8db7c9c70a42c4d.zip | |
working
| -rw-r--r-- | Dozentenmodul/bin/GUI/AddOS$1.class | bin | 1449 -> 1480 bytes | |||
| -rw-r--r-- | Dozentenmodul/bin/GUI/AddOS$2.class | bin | 615 -> 615 bytes | |||
| -rw-r--r-- | Dozentenmodul/bin/GUI/AddOS.class | bin | 3910 -> 3910 bytes | |||
| -rw-r--r-- | Dozentenmodul/bin/GUI/AddSoftware$1.class | bin | 1497 -> 1528 bytes | |||
| -rw-r--r-- | Dozentenmodul/bin/GUI/AddSoftware$2.class | bin | 651 -> 651 bytes | |||
| -rw-r--r-- | Dozentenmodul/bin/GUI/AddSoftware.class | bin | 3946 -> 3563 bytes | |||
| -rw-r--r-- | Dozentenmodul/bin/GUI/EingabeSystemDaten$1.class | bin | 765 -> 765 bytes | |||
| -rw-r--r-- | Dozentenmodul/bin/GUI/EingabeSystemDaten$2.class | bin | 1727 -> 1727 bytes | |||
| -rw-r--r-- | Dozentenmodul/bin/GUI/EingabeSystemDaten$3.class | bin | 2098 -> 2098 bytes | |||
| -rw-r--r-- | Dozentenmodul/bin/GUI/EingabeSystemDaten.class | bin | 7868 -> 7868 bytes | |||
| -rw-r--r-- | Dozentenmodul/bin/sql/sql.class | bin | 5206 -> 5183 bytes | |||
| -rw-r--r-- | Dozentenmodul/src/GUI/AddOS.java | 1 | ||||
| -rw-r--r-- | Dozentenmodul/src/GUI/AddSoftware.java | 6 | ||||
| -rw-r--r-- | Dozentenmodul/src/GUI/EingabeSystemDaten.java | 1 | ||||
| -rw-r--r-- | Dozentenmodul/src/sql/sql.java | 12 |
15 files changed, 12 insertions, 8 deletions
diff --git a/Dozentenmodul/bin/GUI/AddOS$1.class b/Dozentenmodul/bin/GUI/AddOS$1.class Binary files differindex 21e1889b..e7863e77 100644 --- a/Dozentenmodul/bin/GUI/AddOS$1.class +++ b/Dozentenmodul/bin/GUI/AddOS$1.class diff --git a/Dozentenmodul/bin/GUI/AddOS$2.class b/Dozentenmodul/bin/GUI/AddOS$2.class Binary files differindex 5abf8061..08fffc2a 100644 --- a/Dozentenmodul/bin/GUI/AddOS$2.class +++ b/Dozentenmodul/bin/GUI/AddOS$2.class diff --git a/Dozentenmodul/bin/GUI/AddOS.class b/Dozentenmodul/bin/GUI/AddOS.class Binary files differindex 4e78b39c..a2e9dc07 100644 --- a/Dozentenmodul/bin/GUI/AddOS.class +++ b/Dozentenmodul/bin/GUI/AddOS.class diff --git a/Dozentenmodul/bin/GUI/AddSoftware$1.class b/Dozentenmodul/bin/GUI/AddSoftware$1.class Binary files differindex a6d39c7c..cd6f0364 100644 --- a/Dozentenmodul/bin/GUI/AddSoftware$1.class +++ b/Dozentenmodul/bin/GUI/AddSoftware$1.class diff --git a/Dozentenmodul/bin/GUI/AddSoftware$2.class b/Dozentenmodul/bin/GUI/AddSoftware$2.class Binary files differindex ffee99c1..a4b65d07 100644 --- a/Dozentenmodul/bin/GUI/AddSoftware$2.class +++ b/Dozentenmodul/bin/GUI/AddSoftware$2.class diff --git a/Dozentenmodul/bin/GUI/AddSoftware.class b/Dozentenmodul/bin/GUI/AddSoftware.class Binary files differindex 14f85078..f83d17ed 100644 --- a/Dozentenmodul/bin/GUI/AddSoftware.class +++ b/Dozentenmodul/bin/GUI/AddSoftware.class diff --git a/Dozentenmodul/bin/GUI/EingabeSystemDaten$1.class b/Dozentenmodul/bin/GUI/EingabeSystemDaten$1.class Binary files differindex 64af4539..0d82d498 100644 --- a/Dozentenmodul/bin/GUI/EingabeSystemDaten$1.class +++ b/Dozentenmodul/bin/GUI/EingabeSystemDaten$1.class diff --git a/Dozentenmodul/bin/GUI/EingabeSystemDaten$2.class b/Dozentenmodul/bin/GUI/EingabeSystemDaten$2.class Binary files differindex 400745b2..e1c316f9 100644 --- a/Dozentenmodul/bin/GUI/EingabeSystemDaten$2.class +++ b/Dozentenmodul/bin/GUI/EingabeSystemDaten$2.class diff --git a/Dozentenmodul/bin/GUI/EingabeSystemDaten$3.class b/Dozentenmodul/bin/GUI/EingabeSystemDaten$3.class Binary files differindex b654a5d9..9f289a12 100644 --- a/Dozentenmodul/bin/GUI/EingabeSystemDaten$3.class +++ b/Dozentenmodul/bin/GUI/EingabeSystemDaten$3.class diff --git a/Dozentenmodul/bin/GUI/EingabeSystemDaten.class b/Dozentenmodul/bin/GUI/EingabeSystemDaten.class Binary files differindex 12cfba6b..452b9830 100644 --- a/Dozentenmodul/bin/GUI/EingabeSystemDaten.class +++ b/Dozentenmodul/bin/GUI/EingabeSystemDaten.class diff --git a/Dozentenmodul/bin/sql/sql.class b/Dozentenmodul/bin/sql/sql.class Binary files differindex c329e52e..f000a43f 100644 --- a/Dozentenmodul/bin/sql/sql.class +++ b/Dozentenmodul/bin/sql/sql.class diff --git a/Dozentenmodul/src/GUI/AddOS.java b/Dozentenmodul/src/GUI/AddOS.java index 5039a4e1..045031bd 100644 --- a/Dozentenmodul/src/GUI/AddOS.java +++ b/Dozentenmodul/src/GUI/AddOS.java @@ -124,6 +124,7 @@ public class AddOS extends JDialog { }
Connection con=sql.getConnection();
sql.AddOS(con, textField_1.getText().toString(), textField_2.getText().toString(), comboBox.getSelectedItem().toString(), Kosten, textField.getText().toString());
+ dispose();
}
});
okButton.setActionCommand("OK");
diff --git a/Dozentenmodul/src/GUI/AddSoftware.java b/Dozentenmodul/src/GUI/AddSoftware.java index c3a41227..c04c5012 100644 --- a/Dozentenmodul/src/GUI/AddSoftware.java +++ b/Dozentenmodul/src/GUI/AddSoftware.java @@ -31,7 +31,7 @@ public class AddSoftware extends JDialog { /**
* Launch the application.
*/
- public static void main(String[] args) {
+ /*public static void main(String[] args) {
try {
AddSoftware dialog = new AddSoftware();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
@@ -39,7 +39,7 @@ public class AddSoftware extends JDialog { } catch (Exception e) {
e.printStackTrace();
}
- }
+ }*/
/**
* Create the dialog.
@@ -124,7 +124,9 @@ public class AddSoftware extends JDialog { }
Connection con=sql.getConnection();
sql.AddSoftware(con, textField_1.getText().toString(), textField_2.getText().toString(), comboBox.getSelectedItem().toString(), Kosten, textField.getText().toString());
+ dispose();
}
+
});
okButton.setActionCommand("OK");
buttonPane.add(okButton);
diff --git a/Dozentenmodul/src/GUI/EingabeSystemDaten.java b/Dozentenmodul/src/GUI/EingabeSystemDaten.java index 9e370328..4a70d4b3 100644 --- a/Dozentenmodul/src/GUI/EingabeSystemDaten.java +++ b/Dozentenmodul/src/GUI/EingabeSystemDaten.java @@ -177,6 +177,7 @@ public class EingabeSystemDaten extends JDialog { public void actionPerformed(ActionEvent arg0) {
AddOS os=new AddOS();
os.setVisible(true);
+
}
});
btnHinzufgen.setBounds(326, 372, 118, 23);
diff --git a/Dozentenmodul/src/sql/sql.java b/Dozentenmodul/src/sql/sql.java index 35e09615..813900cc 100644 --- a/Dozentenmodul/src/sql/sql.java +++ b/Dozentenmodul/src/sql/sql.java @@ -19,7 +19,7 @@ public class sql { e.printStackTrace();
}
try {
- Connection con=DriverManager.getConnection("jdbc:mysql://132.230.4.16/bwLehrpool?user=root&password=12wil$on");
+ Connection con=DriverManager.getConnection("jdbc:mysql://132.230.4.16/bwLehrpool?user=bwlpuser&password=armag3ddon");
return con;
} catch (SQLException e) {
// TODO Auto-generated catch block
@@ -34,7 +34,7 @@ public class sql { Statement stm;
try {
stm = con.createStatement();
- return stm.executeQuery("SELECT distinct Produktname, Version, Architektur FROM bwlehrpool.betriebssystem order by Produktname asc;");
+ return stm.executeQuery("SELECT distinct Produktname, Version, Architektur FROM bwLehrpool.Betriebssystem order by Produktname asc;");
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
@@ -55,7 +55,7 @@ public class sql { {
addHersteller(con, Hersteller);
}
- int ret=stm.executeUpdate("INSERT INTO `bwlehrpool`.`betriebssystem`(`Produktname`,`Version`,`Architektur`,`IstKostenlos`,`SWHersteller_pk`)VALUES('"+name+"','"+Version+"','"+Architektur+"',"+Kosten+","+pk_Hersteller+");");
+ int ret=stm.executeUpdate("INSERT INTO `bwLehrpool`.`Betriebssystem`(`Produktname`,`Version`,`Architektur`,`IstKostenlos`,`SWHersteller_pk`)VALUES('"+name+"','"+Version+"','"+Architektur+"',"+Kosten+","+pk_Hersteller+");");
return ret;
} catch (SQLException e) {
// TODO Auto-generated catch block
@@ -103,8 +103,8 @@ public class sql { int ret=-1;
try {
stm=con.createStatement();
- ret=stm.executeUpdate("INSERT INTO `bwlehrpool`.`swhersteller`(`Name`)VALUES('"+Name+"');");
- con.commit();
+ ret=stm.executeUpdate("INSERT INTO `bwLehrpool`.`SWHersteller`(`Name`)VALUES('"+Name+"');");
+ //con.commit();
} catch (SQLException e) {
// TODO Auto-generated catch block
@@ -166,7 +166,7 @@ public class sql { {
addHersteller(con, Hersteller);
}
- int ret=stm.executeUpdate("INSERT INTO `bwlehrpool`.`software`(`Produktname`,`Version`,`Architektur`,`IstKostenlos`,`SWHersteller_pk`)VALUES('"+name+"','"+Version+"','"+Architektur+"',"+Kosten+","+pk_Hersteller+");");
+ int ret=stm.executeUpdate("INSERT INTO `bwLehrpool`.`Software`(`Produktname`,`Version`,`Architektur`,`IstKostenlos`,`SWHersteller_pk`)VALUES('"+name+"','"+Version+"','"+Architektur+"',"+Kosten+","+pk_Hersteller+");");
return ret;
} catch (SQLException e) {
// TODO Auto-generated catch block
|
