Update StolowkaZPM.java
This commit is contained in:
parent
0e4c131649
commit
a9ad9f24d1
@ -22,6 +22,8 @@ public class StolowkaZPM {
|
|||||||
private JFrame frmStolowkaZpm;
|
private JFrame frmStolowkaZpm;
|
||||||
private JLabel lblNewLabel;
|
private JLabel lblNewLabel;
|
||||||
protected String Dalej;
|
protected String Dalej;
|
||||||
|
protected String imie;
|
||||||
|
protected static int IDuzytkownika;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Launch the application.
|
* Launch the application.
|
||||||
@ -30,6 +32,8 @@ public class StolowkaZPM {
|
|||||||
EventQueue.invokeLater(new Runnable() {
|
EventQueue.invokeLater(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
|
//DrukujBilet one = new DrukujBilet();
|
||||||
|
//one.setName(IDuzytkownika);
|
||||||
StolowkaZPM window = new StolowkaZPM();
|
StolowkaZPM window = new StolowkaZPM();
|
||||||
window.frmStolowkaZpm.setVisible(true);
|
window.frmStolowkaZpm.setVisible(true);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@ -42,8 +46,7 @@ public class StolowkaZPM {
|
|||||||
|
|
||||||
|
|
||||||
Connection conn=null;
|
Connection conn=null;
|
||||||
protected String imie;
|
|
||||||
protected int IDuzytkownika;
|
|
||||||
|
|
||||||
public StolowkaZPM() {
|
public StolowkaZPM() {
|
||||||
initialize1();
|
initialize1();
|
||||||
@ -122,6 +125,7 @@ public class StolowkaZPM {
|
|||||||
String Dalej = rFID.getString("PIN");
|
String Dalej = rFID.getString("PIN");
|
||||||
imie = rFID.getString("User");
|
imie = rFID.getString("User");
|
||||||
IDuzytkownika = rFID.getInt("IDusers");
|
IDuzytkownika = rFID.getInt("IDusers");
|
||||||
|
|
||||||
//JOptionPane.showMessageDialog(null, IDuzytkownika);
|
//JOptionPane.showMessageDialog(null, IDuzytkownika);
|
||||||
int count = 0;
|
int count = 0;
|
||||||
while (rFID.next()) {
|
while (rFID.next()) {
|
||||||
@ -171,4 +175,5 @@ public class StolowkaZPM {
|
|||||||
rfidView.setText("");
|
rfidView.setText("");
|
||||||
}
|
}
|
||||||
}});
|
}});
|
||||||
}}
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user