Possibility of registering new owners added
[RRRRHHHH_Code] / ruralHouses / src / gui / listOfBookingRequestsGUI.java
index 80e1800..2a70df5 100644 (file)
@@ -31,7 +31,7 @@ public class listOfBookingRequestsGUI extends JFrame {
        private static final long serialVersionUID = 1L;
        private JPanel contentPane;
        private JTable table;
-       private Owner own;
+       private Offer off;
        private BookingManager bookM = new BookingManager();
        private DefaultTableModel tableModel;
        private Vector<Booking> bookings = new Vector<Booking>();
@@ -39,9 +39,9 @@ public class listOfBookingRequestsGUI extends JFrame {
        /**
         * Create the frame.
         */
-       public listOfBookingRequestsGUI(Owner own) {
+       public listOfBookingRequestsGUI(Offer of) {
                setTitle("Adding requests");
-               this.own = own;
+               this.off = of;
                try {
 
                        init();
@@ -57,7 +57,7 @@ public class listOfBookingRequestsGUI extends JFrame {
                setContentPane(contentPane);
                contentPane.setLayout(null);
                
-               this.bookings= this.bookM.getAllBookings(own);
+               this.bookings= this.off.getBookings();
                JLabel lblNewLabel = new JLabel();
                lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 27));
                lblNewLabel.setBounds(23, 41, 536, 33);
@@ -117,7 +117,7 @@ public class listOfBookingRequestsGUI extends JFrame {
                        row.add(book.getBookNumber());
                        row.add(book.isPaid());
                        row.add(book.getBookDate());
-                       row.add(book.getTelephone());
+                       row.add(book.getClient());
                        row.add(book.getOffer());
                        tableModel.addRow(row);
                }